Skip to main content

crypto currency world price

Project description

Fetches World Price of a Certain Symbol Concurrently

Downloads

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

world_price-0.0.3-py2.py3-none-any.whl (17.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file world_price-0.0.3.tar.gz.

File metadata

  • Download URL: world_price-0.0.3.tar.gz
  • Upload date:
  • Size: 16.1 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 world_price-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d46cdd5356b448ea68f80ebe5e739bb867f21854a29ccc4215f23cf2bcc37827
MD5 5cea1a77b58123e72ec17ae280e46336
BLAKE2b-256 3e2c7b2de3428ad96cf080a4ed1e00985cfa798e7611745bafe68b3e83760965

See more details on using hashes here.

File details

Details for the file world_price-0.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: world_price-0.0.3-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 world_price-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7ecbf32955bba38c872561b3118d371c96344c56698d8e7e4e461e44cc418ca8
MD5 6e5dca0931ac18ecfd8c06ae61836eb9
BLAKE2b-256 8319455898f49d5e4b79518bfaba0aa9ba98445b121f0425154b621386a84c99

See more details on using hashes here.

Supported by

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