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.7.0
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.7.0.tar.gz
(18.7 kB
view hashes)
Built Distribution
Close
Hashes for betfairstreamer-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0574e63190d011b895c3f5b0ccaa8f88cb849e9b921d0b3a6f48cca7b8f99ca |
|
MD5 | c043cf4219d41ed851e267299ce88f64 |
|
BLAKE2b-256 | ddd1fae0af682c99522f60503af0165289f126c4b04285ca1b83e143ec0b87f1 |