Not receiving starting price from listMarketBook for some matches

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sun082
    Junior Member
    • Mar 2022
    • 4

    #1

    Not receiving starting price from listMarketBook for some matches

    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}]
    You do not have permission to view this gallery.
    This gallery has 1 photos.
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    It may be because the available money on the 1.70 odds is below the minimum stake, so you couldn't specify 1.70 on a bet, but if you made a back bet of £2 at 1.69, you'd get £1 at 1.69 and £1 at 1.70, if you were first in.

    Comment

    • sun082
      Junior Member
      • Mar 2022
      • 4

      #3
      Thank you Jabe, that makes sense. I am noticing the same trend for the others.

      Comment

      • jabe
        Senior Member
        • Dec 2014
        • 705

        #4
        On second thoughts, you can specify £2 at 1.70, but it'd match the £1 that's available and leave your other £1 unmatched.

        The reason you didn't get the 1.70 returned in your call is still as we've said though.

        Comment

        Working...
        X