listClearedOrders -> How to get selectionId Runner Name and location name?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Leeeeeeee
    Junior Member
    • Jun 2019
    • 1

    #1

    listClearedOrders -> How to get selectionId Runner Name and location name?

    Hi,

    We are using the Betfair API for horse racing and one of our pages shows settled/cleared bets. I have searched everywhere and tried different methods, but am stuck trying to get the actual Runner name and track name from the returned listClearedOrders. We have the selectionId, but can't find a way to map it to the actual runner name.

    Any ideas?

    Many thanks.
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    Runner names should be in the marketCatalogue, if it's still available. IIRC you may need to specify that runner data is returned.

    Comment

    • DB2702
      Junior Member
      • Aug 2020
      • 5

      #3
      Originally posted by Leeeeeeee View Post
      Hi,

      We are using the Betfair API for horse racing and one of our pages shows settled/cleared bets. I have searched everywhere and tried different methods, but am stuck trying to get the actual Runner name and track name from the returned listClearedOrders. We have the selectionId, but can't find a way to map it to the actual runner name.

      Any ideas?

      Many thanks.
      Got same issue. Did you find a solution

      Comment

      • BetfairDeveloperProgram
        Administrator
        • Oct 2008
        • 680

        #4
        Hi DB2702

        To get this information from listClearedOrders you should use the parameter "includeItemDescription":"true". See example below:

        Request

        [{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listClearedOrders", "params": {"betStatus":"SETTLED","settledDateRange":{},"incl udeItemDescription":"true"}, "id": 1}]

        Response

        {"eventTypeId":"7","eventId":"31305318","marketId" :"1.196198864","selectionId":20347217,"handicap":0 .0,"betId":"261870528141","placedDate":"2022-03-17T14:10:57.000Z","persistenceType":"LAPSE","order Type":"LIMIT","side":"BACK","itemDescription":{"ev entTypeDesc":"Horse Racing","eventDesc":"14:10 Cheltenham","marketDesc":"Win","marketType":"WIN", "marketStartTime":"2022-03-17T14:10:00.000Z","runnerDesc":"Sassy Yet Classy","numberOfWinners":1},"betOutcome":"LOST"," priceRequested":10.5,"settledDate":"2022-03-17T14:32:25.000Z","lastMatchedDate":"2022-03-17T14:10:58.000Z","betCount":1,"priceMatched":10.5 ,"priceReduced":false,"sizeSettled":2.0,"profit ":-2.0}

        Thanks

        Neil

        Comment

        Working...
        X