Skip to content

donnercody/ccxt-market-ticker

Repository files navigation

ccxt-market-ticker


Docker: https://hub.docker.com/r/donnercody/ccxt-market-ticker

docker pull donnercody/ccxt-market-ticker

pyPi: https://pypi.org/project/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.followMarket("binance", Symbol("BTC/USDT"), "1m", YourListener())

About

This docker container uses ccxt pro to follow market ticker or tickers and sends it to a webhook or a message queue like rabbitmq.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages