Commission attribute on client.listClearedOrders

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Burdett
    Junior Member
    • Sep 2012
    • 29

    #1

    Commission attribute on client.listClearedOrders


    I've been using the below code for some time to verify bet settlement details.

    I have recently noticed however that where I'm showing profitable wins, I'm actually getting an associative commission value of zero. I was expecting (if using these tools correctly) to see the value of commission charged against this win.

    var mySettlementReport = client.listClearedOrders(BetStatus.SETTLED, null, null, null, null, null, null, myTime, null, null, null, null, null);
    int NumberOfBetResultsReturned = mySettlementReport.ClearedOrders.Count;

    Console.WriteLine("Bet Return Value: " +mySettlementReport.ClearedOrders[y].Profit.ToString();
    Console.WriteLine("Commission is: " + mySettlementReport.ClearedOrders[y].Commission.ToString());

    Console.ReadKey();

    I have gotten the unexpected output of:
    Bet Return Value: 18
    Commission is: 0

    The above example was for a horse race win on the australian market.

    Any pointers from more senior developers on why I'm not getting the correct commission, or in fact any commission would be greatly appreciated.

    Thanks

    David.
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #2
    Hi

    What Group_By parameter are you using for your listClearedOrders() call ? Some groupings dont return a commision figure.

    Comment

    Working...
    X