Skip to main content

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

Metadata

Release files for world-price 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for world-price 0.0.4
File Size Uploaded Provenance Actions
world_price-0.0.4.tar.gz 17.3 kB Without provenance Details for world_price-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for world-price 0.0.4
File Interpreter ABI Platform Actions
world_price-0.0.4-py2.py3-none-any.whl Python 3, Python 2 none any Details for world_price-0.0.4-py2.py3-none-any.whl

Total release size: 37.9 kB

Release files / world_price-0.0.4.tar.gz

Download URL world_price-0.0.4.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
186a55d8753282aa3712b90941a02e68ac60151f61d3f7b1f018702ce02c65fb
BLAKE2b-256 checksum
How to use checksums
ab50c7225c21e9ab14fb13f475f7bd0eb42d02a32aa2b97f81d3237ade8973c0
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 / world_price-0.0.4-py2.py3-none-any.whl

Download URL world_price-0.0.4-py2.py3-none-any.whl
Size 20.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3114880ce858b467c54c2ea3ad755986a01815e1ee5e8bd7e8eaa413a8c6603e
BLAKE2b-256 checksum
How to use checksums
8d94c49ab9d7737117373a706f07d8c7c82cf2f3c63aa8560b94002c2e20c57a
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

Security for world-price 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files No provenance

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page