crypto currency world price
Project description
Fetches World Price of a Certain Symbol Concurrently
Module Installation
$ pip install world-price
How to use
from world_price import WorldPrice
from world_price.source import BinancePriceSource, HuoBiPriceSource, MxcPriceSource
SYMBOL = "BTC_USDT"
async def main():
price_source = [BinancePriceSource, HuoBiPriceSource, MxcPriceSource]
wp = WorldPrice(price_source, price_diff_tolerance=3/5)
p = await wp.get_price(SYMBOL)
print(f"world price of {SYMBOL}: {p}")
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
world_price-0.0.4.tar.gz
(17.3 kB
view hashes)
Built Distribution
Close
Hashes for world_price-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3114880ce858b467c54c2ea3ad755986a01815e1ee5e8bd7e8eaa413a8c6603e |
|
MD5 | 2e89c49f6e3dc151e3c97587ce71ccb8 |
|
BLAKE2b-256 | 8d94c49ab9d7737117373a706f07d8c7c82cf2f3c63aa8560b94002c2e20c57a |