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.6.1
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.1.tar.gz
(15.4 kB
view hashes)
Built Distribution
Close
Hashes for betfairstreamer-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c05cceef4a7c4b3a8b487429bed468b76b6e3e9894e51368e9264e0eaf283af |
|
MD5 | cc08e9960707c25e68219f40957980fd |
|
BLAKE2b-256 | e9e2878f9735698f106caa7367fe726751f84717cf5483d7fe6164252add4535 |