h0wang / meteor

A library for collecting real-time market data from popular cryptocurrency exchanges via web socket using Python 3.8 or above.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

meteor

meteor is a library for collecting market data from popular cryptocurrency exchanges via web socket using Python 3.8 or above.

Basic Useage

import asyncio

from meteor import Subscriber
from meteor.subscription import CoinbaseTradeSubscription

event_loop = asyncio.get_event_loop()
queue = asyncio.Queue()

subscription = CoinbaseTradeSubscription("BTCUSD")
subscriber = Subscriber(subscription, queue)

event_loop.run_until_complete(subscriber.subscribe())

Demonstration

$ python -m meteor --currency_pair BTCUSD ETHGBP

License

meteor is developed and distributed under the Apache 2.0 license.

About

A library for collecting real-time market data from popular cryptocurrency exchanges via web socket using Python 3.8 or above.


Languages

Language:Python 100.0%