Skip to main content

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"])

>>> orderbook.get_orderbook_top_bid("binance", "BTC/USDT")
(23130.41, 0.05)

Build

python -m build

Project details


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.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

topbid-0.2.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file topbid-0.2.1.tar.gz.

File metadata

  • Download URL: topbid-0.2.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.4

File hashes

Hashes for topbid-0.2.1.tar.gz
Algorithm Hash digest
SHA256 778c9d965cdb8bc865216a012737c80371225d974e6f382f94c4c408452408b5
MD5 aa44dc9c414f9b6b7a9254f043c7ba47
BLAKE2b-256 187bf723b2b51ff5ef31858f5df4bb75755707ab30f437e1f397bbe553e8a88d

See more details on using hashes here.

File details

Details for the file topbid-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: topbid-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.4

File hashes

Hashes for topbid-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e49c66036a49e740f37d0438589c9da6b12d4c030fa8d08d6a5776416ce1477f
MD5 cf871d3d231579905c900b3f8adfc719
BLAKE2b-256 31d33afd6bcae2e0d562daf78ee3680330285a2c647d3a3ba11ba3870b39031a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page