Retrieving Place terms for Horse race

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mayoman1973
    Junior Member
    • Jan 2017
    • 8

    #1

    Retrieving Place terms for Horse race

    Is there any API call available to retrieve the odds divisor for calculating the Place price from the E/W market. I can see the terms in the betfair UI but don't see any easy way to get them through the API.
    http://forum.bdp.betfair.com/showthread.php?t=2800 was a question that addressed this and there was talk of this being implemented. I can't open the link that discussed it further.
    Thanks
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    This information is returned by the listMarketCatalogue call.

    In the response, there is a Market Description which contains a field that shows the E/W divisor.

    Comment

    • mayoman1973
      Junior Member
      • Jan 2017
      • 8

      #3
      I have looked at the MarketDescription data in the listCatalog response but cannot see anything that looks like EW place terms, odds divisor etc. Do ye have any idea of what the parameter is called?
      Dont have my code available to paste a sample response but I have gone through the JSON response manually and don't see anything

      Comment

      • Merlin
        Junior Member
        • Jan 2009
        • 56

        #4
        Hi mayoman1973,

        the returned parameter is an Integer called 'eachWayDivisor', it is only present if the market type is 'EACH_WAY' (so you can't get it from the 'description' for the 'WIN' market in the same race, for example). Make sure you are setting a 'marketProjection' of 'MARKET_DESCRIPTION' in the call to 'listMarketCatalogue'.

        cheers

        Merlin

        Comment

        • mayoman1973
          Junior Member
          • Jan 2017
          • 8

          #5
          Got it, thanks folks.

          For anyone else who might be using the Java library https://github.com/betfair/API-NG-sa...master/java/ng

          problem was the MarketDescription class does not have a member variable for the eachWayDivisor parameter ( which as the guys in this thread is what contains the required value and is returned in the JSON response )

          You need to add this member variable, its setter & getter methods and the client will populate it correctly then

          Comment

          Working...
          X