Skip to main content

crypto currency world price

Project description

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

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

crypto currency world price-0.0.1.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

crypto_currency_world_price-0.0.1-py2.py3-none-any.whl (17.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file crypto currency world price-0.0.1.tar.gz.

File metadata

  • Download URL: crypto currency world price-0.0.1.tar.gz
  • Upload date:
  • Size: 15.9 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

Hashes for crypto currency world price-0.0.1.tar.gz
Algorithm Hash digest
SHA256 746981446a590e68e137ad95bb433aeaca0f1da1ac220e500a06c0b8ba4a267a
MD5 154245faa772ca4e099909c1e51917ea
BLAKE2b-256 a5a9d0ca0f864961baec916f0130efb0a3b4472b6c88adfe32acc67c191955ca

See more details on using hashes here.

File details

Details for the file crypto_currency_world_price-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: crypto_currency_world_price-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.3 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

Hashes for crypto_currency_world_price-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0234694bf95adb5ad417f65feb52779321f3773cf25a65dc8baceeb12fe10326
MD5 b63f66f30df37eef05b8820282847628
BLAKE2b-256 67dea8a0d62a2425fecb60f7580e0f7465112ca1233fbe0ed729eb94741debce

See more details on using hashes here.

Supported by

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