crypto-currency-world-price 0.0.1

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

cryptocurrencyworldprice 0.0.1

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.