This project uses ccxtpro to stream market data from exchanges. You can use this project to stream market data from exchanges to a queue. You can select which exchanges and which symbols you want to stream. by arguments or by a zookeepernode.
Project description
ccxt-market-ticker
This library can be used to use the ccxt library to get the ticker of all markets of an exchange. The library also provides a function to get the ticker of all markets of all exchanges with MQListener and MQPublisher.
MQListener Example:
from marketticker.MQListener import MQListener
from marketticker.Symbol import Symbol
listener = MQListener("localhost", 5672, "test", "test")
listener.connect()
class YourListener:
def onMarketDataReceived(self, data):
print("1: " + str(data))
def onMarketTickerReceived(self, data):
print("1: " + str(data))
listener.followMarketTicker("binance", Symbol("BTC/USDT"), "1m", YourListener())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ccxt_market_ticker-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a14b6772c9ebe4325249aed868097a0290117148c11bb74678c046d53eca837 |
|
MD5 | 5ec599ed4af9876f217fb5176ca852b4 |
|
BLAKE2b-256 | c78d7286ef5098ac3e8ff2d4a81ff7314c85f2946f1981717d9a9b434b9fa591 |