Metadata-Version: 2.1
Name: betfairstreamer
Version: 0.6.0
Summary: Betfair Exchange Stream API wrapper
Home-page: https://github.com/almenjonatan/betfairstreamer.git
Author: Jonatan Almen
Author-email: almen.jonatan@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.8.0
Description-Content-Type: text/markdown
Requires-Dist: betfairlightweight
Requires-Dist: orjson
Requires-Dist: numpy
Requires-Dist: ciso8601
Requires-Dist: attrs
Requires-Dist: pytz

# 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
![](stream.gif)


## Benchmark
```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

```




