The Fundcrunch.Tech library for market data processing in real time or on history.
Project description
Fundcrunch library
- connect directly to various exchanges and bind they stream into single local socket endpoint
- connector to Fundcrunch.Tech data streaming socket and REST endpoints
Installation
$ pip install fundcrunch
Install from source
$ git clone git@github.com:fundcrunch-tech/fundcrunch_py.git
$ cd fundcrunch_py
$ python3.7 -m venv .venv
$ source .venv/bin/activate
$ python setup.py install
$ cd examples
$ python feeder.py
Usage
from fundcrunch import Feeder
feeder_conf = { 'port': [9001, 8010, 7001],
'addr': '0.0.0.0',
'exchanges': [{'name': 'binance',
'pairs': ['BTC/USDT'],
'mode': ['order_book', 'trades', 'ohlc']}]
}
subscribe = ['ohlc-binance-BTC_USDT',
'ob-binance-BTC_USDT',
'trade_binance-BTC_USDT',]
feeder = Feeder(config=feder_conf, subscribe=subscribe)
feeder.start()
while True:
rcv = feeder.output.get()
print(rcv)
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
fundcrunch-0.1.1.tar.gz
(20.5 kB
view hashes)
Built Distributions
fundcrunch-0.1.1-py3.7.egg
(70.7 kB
view hashes)
fundcrunch-0.1.1-py3-none-any.whl
(32.2 kB
view hashes)
Close
Hashes for fundcrunch-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff41e5ce9ce7faae05b0771699a0b6ccf998d57eee9609318bc9de6ecf2eb703 |
|
MD5 | bea56bb30e20de22bb8f98597ca734b0 |
|
BLAKE2b-256 | 5337f01f8ffe1e8cb778e33bf4655051d2ced701a9ddd50cebef662fefd84959 |