Technical Support Questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gus
    Senior Member
    • Jan 2009
    • 134

    #16
    Dunno what the recommended approach is, but in my test app I navigate to Horse racing via a dynamically generated Menu Tree, so the series of requests I use to get to UK and Irish Horse Races for the current day is:

    1) https://beta-api.betfair.com/rest/v1.0/listEventTypes/{"filter":{"eventTypeIds":[]}}


    2) https://beta-api.betfair.com/rest/v1.0/listEvents/{"filter":{"eventTypeIds":[7],"marketStartTime":{"to":"2
    6T07:44:20.81Z","from":"2013-03-25T07:44:20.81Z"},"marketCountries":["GB","IE"]}}


    with the from and to times generated from the current time and the current time + 1 day, and the required marketCountries selected by the user in his preferences

    then clicking on the meeting name (e.g "Lingfield") generated from the second query sends:

    3) https://beta-api.betfair.com/rest/v1.0/listMarketCatalogue/{"sort":"FIRST_TO_START","marketProjection":["MARKET_DE
    SCRIPTION","RUNNER_DESCRIPTION"],"maxResults":15,"filter":{"eventIds":["26982923"]}}

    with the maxResults coming from the response to 2)
    (the "sort" param doesn't seem to work in the api yet )

    Comment

    • MarkL
      Junior Member
      • Oct 2008
      • 29

      #17
      Originally posted by DivideByZeroError View Post
      Given that the marketFilter isn't working yet and there are more than 60 horse-racing markets, is there a work-around to get the market details?
      Hi,

      I'm not sure what you mean by "the marketFilter isn't working yet"? Can you clarify?

      Comment

      • DivideByZeroError
        Junior Member
        • May 2009
        • 13

        #18
        I'm referring to the known error listed in the documentation:


        "MarketFilter - Market Filter contains "marketId" as a possible parameter, but it is not possible to filter by marketId. This field is ignored"


        It looks like I'm going to have to make two calls to find the market details for a given market id, because the data limit seems to be inconsistent across the different market projections.

        Comment

        • BetfairDeveloperProgram
          Administrator
          • Oct 2008
          • 680

          #19
          MarketFilter - Market Filter contains "marketId" as a possible parameter, but it is not possible to filter by marketId. This field is ignored
          This issue was fixed in a release on the 9th April.

          Thanks

          Neil

          Comment

          Working...
          X