listmarketbook runners order not static...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rotter
    Junior Member
    • Oct 2009
    • 3

    #1

    listmarketbook runners order not static...

    All,

    Trying to use the API-NG towards soccer but have hit a stone or two...
    When I use the listMarketbook to get the exchangePrices, how do I know to what runners(x) and the price is for.
    First I assumed that the price for the first runner was for the home team, second for Draw and the third for away
    https://api.developer.betfair.com/se...nitions-Runner

    But that seems to not be the case!!. This seems to be random at times and I get the away in my draw column and so on.

    So shouldn't this be static, or do I need to do some magic matching ( can't figure out how ) to determ if the runners/exchange odds is for home,draw,away. ?

    Cheers
  • Merlin
    Junior Member
    • Jan 2009
    • 56

    #2
    Hi rotter,
    the runners are returned in forecast price order, so as you say, this will usually (but not always) have the home team first.

    You need to check the selectionId for each runner record and match them up with the information you get from listMarketCatalogue with marketProjection set to ['RUNNER_DESCRIPTION', 'EVENT']. This will list the actual team names, rather than 'Home' or 'Away', but you can work that out from the event name.

    Cheers,

    Merlin

    Comment

    Working...
    X