I'm using the API endpoint https://api.betfair.com/exchange/betting/json-rpc/v1 with python and have noticed that some matches price that are returned from listMarketBook are returning the 2nd or 3rd odds from Betfair and not the current odds available.
I'm using EX_BEST_OFFERS for priceData and in some instances the correct value is returned, however I have noticed that this doesn't seem to be the case for all matches. I have tried virtualise: True and EX_ALL_OFFERS and still receive the 2nd or 3rd price.
Is anyone able to shed some light as to why this occurs for some matches and not for all?
'{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds": ["1.200947134"], "priceProjection":{"priceData":["EX_BEST_OFFERS"], "virtualise":"true"}}, "id": 1}'
An example, see screenshot from Betfair and returned price below. I'm assuming the first price should be 1.70?
{'availableToBack': [{'price': 1.69, 'size': 42.7}, {'price': 1.68, 'size': 21.61}, {'price': 1.67, 'size': 10.41}]
I'm using EX_BEST_OFFERS for priceData and in some instances the correct value is returned, however I have noticed that this doesn't seem to be the case for all matches. I have tried virtualise: True and EX_ALL_OFFERS and still receive the 2nd or 3rd price.
Is anyone able to shed some light as to why this occurs for some matches and not for all?
'{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds": ["1.200947134"], "priceProjection":{"priceData":["EX_BEST_OFFERS"], "virtualise":"true"}}, "id": 1}'
An example, see screenshot from Betfair and returned price below. I'm assuming the first price should be 1.70?
{'availableToBack': [{'price': 1.69, 'size': 42.7}, {'price': 1.68, 'size': 21.61}, {'price': 1.67, 'size': 10.41}]


Comment