listClearedOrders with Commission

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • benmess.
    Junior Member
    • Sep 2014
    • 1

    #1

    listClearedOrders with Commission

    Hi all,
    I want to get the total profit or loss for a BetId net of commission. It would appear that whatever I send to listClearedOrders does not return any commission (this is on the AUS wallet). The documentation suggests that if you list BetIds this will not return commission, but if you list marketIds it should. In both cases (and even event type Ids) I get nothing in the commission field.
    This is through code as well as the visualiser.

    Anybody got an example of what parameters to set to get the commission to show up please?
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 680

    #2
    listClearedOrders with Commission

    Hi benmess,

    Commission is returned at MARKET level only so you need to specify MARKET in the groupBy parameters of listCurrentOrders, as shown below:

    Code:
    [{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listClearedOrders", "params": {"betStatus":"SETTLED","settledDateRange":{},"groupBy":"MARKET"}, "id": 1}]
    The table published via https://api.developer.betfair.com/se...elds+Available indicates which fields will be available at each roll-up when making requests to listClearedOrders

    Kind Regards

    Neil

    Comment

    Working...
    X