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_top_bid("binance", "BTC/USDT")
(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.2.0.post1.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file topbid-0.2.0.post1.tar.gz
.
File metadata
- Download URL: topbid-0.2.0.post1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89e279d6352fa6c5718c0723c8eb88e10d7b5382d0dcf90f6a9e7fca453c7e34 |
|
MD5 | af585cf16487a4c2e8f88495c0390bcb |
|
BLAKE2b-256 | 092140bb60e5620a328babf7c66fed9c55f1c4646f3144bdd0b20290a0aa079d |
File details
Details for the file topbid-0.2.0.post1-py3-none-any.whl
.
File metadata
- Download URL: topbid-0.2.0.post1-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 | 13fdfc6c9f7a691ca048e8cba4b07600d08ac6794fdb06b3833bc0fafcd23172 |
|
MD5 | 75aaa722107518277e5f568cb20840e0 |
|
BLAKE2b-256 | 37b850c833809991585350255aa05d4bc59832016dfc80058ab6e415ecf76df3 |