Notice: This repository is unmaintained. It is left visible in case someone finds it useful or interesting.
cctickers (pronounced "stickers") is a python package exposing a stream of aggregated cryptocurrency ticker data from public exchange APIs.
As a standalone package:
cctickers btc-eth
Or, from your own python program:
from cctickers import tickerqueue
with tickerqueue('btc-eth') as tq:
while True:
ticker = tq.get()
print(ticker)
- binance
- bittrex
- poloniex
$ cctickers btc-eth
timestamp=2018-06-23 19:25:37.719630 exchange=bittrex pair=BTC-ETH bid=0.076687 ask=0.07699996 last=0.076688
timestamp=2018-06-23 19:25:37.769693 exchange=poloniex pair=BTC-ETH bid=0.07687165 ask=0.07693830 last=0.07687165
timestamp=2018-06-23 19:25:37.880539 exchange=binance pair=BTC-ETH bid=0.07685900 ask=0.07692000 last=None
timestamp=2018-06-23 19:25:38.191170 exchange=binance pair=BTC-ETH bid=0.07685900 ask=0.07692000 last=None
timestamp=2018-06-23 19:25:38.497928 exchange=binance pair=BTC-ETH bid=0.07685900 ask=0.07692000 last=None
timestamp=2018-06-23 19:25:38.690992 exchange=binance pair=BTC-ETH bid=0.07685900 ask=0.07692000 last=None
timestamp=2018-06-23 19:25:38.753903 exchange=poloniex pair=BTC-ETH bid=0.07687165 ask=0.07693830 last=0.07687165
timestamp=2018-06-23 19:25:38.776684 exchange=bittrex pair=BTC-ETH bid=0.076687 ask=0.07699996 last=0.076688