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.3.tar.gz
(16.1 kB
view hashes)
Built Distribution
Close
Hashes for world_price-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ecbf32955bba38c872561b3118d371c96344c56698d8e7e4e461e44cc418ca8 |
|
MD5 | 6e5dca0931ac18ecfd8c06ae61836eb9 |
|
BLAKE2b-256 | 8319455898f49d5e4b79518bfaba0aa9ba98445b121f0425154b621386a84c99 |