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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file world_price-0.0.4.tar.gz.
File metadata
- Download URL: world_price-0.0.4.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
186a55d8753282aa3712b90941a02e68ac60151f61d3f7b1f018702ce02c65fb
|
|
| MD5 |
9dadc995fa12e327787d721dd0456485
|
|
| BLAKE2b-256 |
ab50c7225c21e9ab14fb13f475f7bd0eb42d02a32aa2b97f81d3237ade8973c0
|
File details
Details for the file world_price-0.0.4-py2.py3-none-any.whl.
File metadata
- Download URL: world_price-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3114880ce858b467c54c2ea3ad755986a01815e1ee5e8bd7e8eaa413a8c6603e
|
|
| MD5 |
2e89c49f6e3dc151e3c97587ce71ccb8
|
|
| BLAKE2b-256 |
8d94c49ab9d7737117373a706f07d8c7c82cf2f3c63aa8560b94002c2e20c57a
|