Metadata-Version: 2.1
Name: world-price
Version: 0.0.4
Summary: crypto currency world price
Home-page: https://github.com/bitsoda-exchange
Author: Bitsoda Exchange
Author-email: boyang.wang@bitsoda.com
License: GPL-3.0
Project-URL: Documentation, https://github.com/bitsoda-exchange/world_price/wiki
Project-URL: Source, https://github.com/bitsoda-exchange/world_price
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.5.*
Description-Content-Type: text/markdown
Requires-Dist: aiohttp

<p align="center">
  <a href="http://bitsoda.com">
    <img width="60" src="https://bitsoda-static.oss-cn-shanghai.aliyuncs.com/img/Bitsoda-Logo200.jpg">
  </a>
</p>

## Fetches **World Price** of a Certain Symbol Concurrently

[![Downloads](https://pepy.tech/badge/world-price)](https://pepy.tech/project/world-price)


### Module Installation

```bash
$ pip install world-price
```

### How to use

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


