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.


Comment