Skip to content

kylegentle/cctickers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cctickers - Cryptocurrency tickers, aggregated

https://travis-ci.com/kylegentle/cctickers.svg?branch=master

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.

Usage

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)

Supported Exchanges

  • binance
  • bittrex
  • poloniex

Example Output

$ 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

About

A stream of cryptocurrency ticker data in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published