Betfair Exchange Stream API wrapper
Project description
Betfairstreamer
What this library provides
- Run single or multiple streams simultaneously.
- Market cache and order cache, these provide abstractions over the betfairstream.
- Using numpy arrays to slicing markets selections.
- Async streaming (Optional).
- Parse historical data.
Installation
pip install betfairstreamer==0.5.3
Example
Jupyter Notebook available in examples folder
Demo
Benchmark
Setup: Two processes, one sending betfair stream messages , one receiving.
Hardware: I7 8550U, 16GB ram
Results:
* Using a market cache it can read around ~90k messages/second (no decoding bytes -> dict), with decoding ~25k
* Without market cache (reading and splitting byte messages. >> 100 Mb/s
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
betfairstreamer-0.6.0.tar.gz
(14.3 kB
view hashes)
Built Distribution
Close
Hashes for betfairstreamer-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4843581f381a975804ef6d44330bd998a603734911ded44b71b29e231a507049 |
|
MD5 | a2a4b6cd4811e630029f9bd93d5f424b |
|
BLAKE2b-256 | 868bb5174111c12658e0532ed8fb230290c5b4d24a08f19f26951bd6cafae1d9 |