streaming ticks
Project description
A Event Driven Tick Streaming Framework
Module Installation
$ pip install tick_streaming
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
tick_streaming-0.0.2.tar.gz
(18.1 kB
view hashes)
Built Distributions
tick_streaming-0.0.2-py3.7.egg
(19.9 kB
view hashes)
Close
Hashes for tick_streaming-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31049ff5eff4559e7e0b790a7f83b8371fa15c63228cbeaf2098d88c1eea2c16 |
|
MD5 | 9737551b0c12d7355aff9794050f1dea |
|
BLAKE2b-256 | 8b120cc18d4d3a16f9ea38405d172d351429463dd6413053a9a0314a491e028b |