Helper library to store current best bid from crypto exchanges APIs
Project description
topbid
Helper library to store current best bid from crypto exchanges APIs. Currently supports Binance, Kraken and Kucoin.
Requires Python 3.8+
Installation
pip install topbid
Usage
>>> from topbid.orderbook import OrderBook
>>> orderbook = OrderBook("cryptocompare-api-key", ["binance", "kucoin"])
2023-01-01 13:37:00,000 - topbid_orderbook - INFO - Saved mappings from CryptoCompare API for exchange binance
2023-01-01 13:37:00,000 - topbid_orderbook - INFO - Saved mappings from CryptoCompare API for exchange kucoin
>>> orderbook.update("binance", ["BTC/USDT"])
>>> orderbook.get_orderbook_top_bid("binance", "BTC/USDT")
(23130.41, 0.05)
>>> orderbook.delete("binance", "BTC/USDT")
Build
python -m build
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
topbid-0.2.2.tar.gz
(4.4 kB
view hashes)
Built Distribution
topbid-0.2.2-py3-none-any.whl
(4.8 kB
view hashes)