listClearedOrders

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rah111
    Junior Member
    • May 2009
    • 11

    #1

    listClearedOrders

    Hi all,
    When I use a listClearedOrders call I get back details of bets which include the gross profit on each bet. What is the call I need to make to get details of commission and nett profit on the race, which may have only one bet but may have multiple bets?
    Thanks,
    Russell.
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 679

    #2
    Hi Russell,

    You need to request groupBy":"MARKET" to return the details of profit and commission on a race/s. See example below and further documentation explaining the returned fields based on each rollup level via https://api.developer.betfair.com/se...elds+Available

    [{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listClearedOrders", "params": {"betStatus":"SETTLED","settledDateRange":{},"grou pBy":"MARKET"}, "id": 1}]

    Thanks

    Neil

    Comment

    • rah111
      Junior Member
      • May 2009
      • 11

      #3
      Hi Neil.
      Have just played with that and can see the commission in there.
      Thanks a lot.
      Regards,
      Russell.

      Comment

      Working...
      X