Metadata-Version: 2.1
Name: topbid
Version: 0.2.1
Summary: Helper library to store current best bid from crypto exchanges APIs
Home-page: https://github.com/tferreira/topbid
Author: Thomas Ferreira
Author-email: fulura@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: request-boost (==0.6)
Requires-Dist: requests (==2.28.2)
Provides-Extra: dev
Requires-Dist: black (==22.12.0) ; extra == 'dev'
Requires-Dist: build (==0.10.0) ; extra == 'dev'
Requires-Dist: pylint (==2.15.10) ; extra == 'dev'
Requires-Dist: twine (==4.0.2) ; extra == 'dev'

# topbid
Helper library to store current best bid from crypto exchanges APIs

## Installation

```
pip install topbid
```

## Usage

```python
>>> 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)
```

## Build

```
python -m build
```
