Fetches World Price of a Certain Symbol Concurrently
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}")
Release files for crypto-currency-world-price 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| crypto currency world price-0.0.1.tar.gz | 15.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| crypto_currency_world_price-0.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 33.2 kB
Release files / crypto currency world price-0.0.1.tar.gz
| Download URL | crypto currency world price-0.0.1.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
746981446a590e68e137ad95bb433aeaca0f1da1ac220e500a06c0b8ba4a267a
|
|
BLAKE2b-256 checksum How to use checksums |
a5a9d0ca0f864961baec916f0130efb0a3b4472b6c88adfe32acc67c191955ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.4
|
Release files / crypto_currency_world_price-0.0.1-py2.py3-none-any.whl
| Download URL | crypto_currency_world_price-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0234694bf95adb5ad417f65feb52779321f3773cf25a65dc8baceeb12fe10326
|
|
BLAKE2b-256 checksum How to use checksums |
67dea8a0d62a2425fecb60f7580e0f7465112ca1233fbe0ed729eb94741debce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.4
|