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
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"])
>>> o.get_orderbook_bid_by_trade({"pair": "BTC/USDT", "exchange": "binance"})
(23130.41, 0.05)
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.1.1.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file topbid-0.1.1.tar.gz
.
File metadata
- Download URL: topbid-0.1.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e784c319a9237f316f13a78a5d21ec25aac82325b42a1c8fe7bf0290cd92b556 |
|
MD5 | 72fc4024e75292df6c6920f2c2ebb0e0 |
|
BLAKE2b-256 | e296e4f25fd645724d6ed0fb89da0ce9bd9f85c04bdd56dbe71e6d5499011a0f |
File details
Details for the file topbid-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: topbid-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 029e6d722a3652efb0378a2152125df06f196ccd465e8b54e5d5e40cf44e5c95 |
|
MD5 | 3fbc5b5d1cc6b5ca45c1b43bd588d299 |
|
BLAKE2b-256 | 6c54f036bfabbd0ef27fa073f68e530342d60993327dcd9bc2f11f0cefa7634e |