Skip to content

Commit

Permalink
docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
liampauling committed Jan 18, 2021
1 parent 7eaf7f3 commit 180c5ac
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/streaming.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ while True:
print(current_orders)
```

### Order - Matches

In addition to `orders` and the `moreAvailable` flag the streaming output has a `matches` field which contains a list of the selections with `matchedBacks` and `matchedLays`.

```python
>>> current_orders.matches
[<bettingresources.Match>, <bettingresources.Match>]
```

### Historical

Betfairlightweight can also handle historical streaming data that has been purchased from [Betfair](https://historicdata.betfair.com/#/home) or collected yourself.
Expand All @@ -132,7 +141,7 @@ Betfairlightweight can also handle historical streaming data that has been purch
>>> trading = betfairlightweight.APIClient("username", "password")

# create listener
>>> listener = HistoricalListener(max_latency=1e100)
>>> listener = StreamListener(max_latency=None)

# create historical stream, update file_path to file location
>>> stream = trading.streaming.create_historical_stream(
Expand Down

0 comments on commit 180c5ac

Please sign in to comment.