betcode-org/betfair

Streaming market book total_matched is different from polled total_matched

wattsjs opened this issue · 1 comments

When receiving a MarketBook over the streaming API (using the example in this repo), the total_matched attribute seems to be off. The sum of all the matched volumes are incorrect and don't match between the two methods. I've confirmed that my API key is not delayed and I am also processing the data fast enough as I have confirmed this when subscribing to only a single market. The total volume results in the manual_book match what is presented on the Betfair website.

image

Is this expected behavior or is there something else I may be doing wrong here?

Issue was that the volumes returned from the streaming API are in GBP (£) - so need to be converted to local currency.

You can use the trading.account.list_currency_rates() method to get the current rates 👍