Hi guys - its been a while since I have been here
Back in 2014 I had to write a heap of my own VB.NET Class wrappers to get stuff working so I was very happy when I checked out https://github.com/betfair/API-NG-sa...ng-sample-code and found all the new Class wrappers in the TO folder. Thanks.
All right so I playing with the cancelOrders. I place a bet on market 2.101353863, which has betid 5908294219. I also place a reference on the bet "BackBetForTroy". Now when I call CancelOrder passing in all those parameters I have SUCCESS. Here is call and response.
Calling: SportsAPING/v1.0/cancelOrders With args: {"marketId":"2.101353863","instructions":[{"betId":"5908294219"}],"customerRef":"BackBetForTroy"}
Got Response: {"jsonrpc":"2.0","result":{"customerRef":"BackBetF orTroy","status":"SUCCESS","errorCode":"ERROR_IN_M ATCHER","marketId":"2.101353863","instructionRepor ts":[{"status":"SUCCESS","errorCode":"INVALID_BET_SIZE" ,"instruction":{"betId":"5908294219"},"sizeCancell ed":5.0,"cancelledDate":"0001-01-01T00:00:00"}]},"id":2}
Anyway I tried to call cancelOrders passing in No details at all I was hoping it would cancel all bets. I also tried just passing in the market ID, but still an error. I tried canceling passing in market id and bet id, but leaving out my customer reference and again an error.
So am I to assume that cancelOrders really requires ALL parameters passed?
I read here https://api.developer.betfair.com/se...i/cancelOrders that If marketId and betId aren't supplied all bets are cancelled.
Back in 2014 I had to write a heap of my own VB.NET Class wrappers to get stuff working so I was very happy when I checked out https://github.com/betfair/API-NG-sa...ng-sample-code and found all the new Class wrappers in the TO folder. Thanks.All right so I playing with the cancelOrders. I place a bet on market 2.101353863, which has betid 5908294219. I also place a reference on the bet "BackBetForTroy". Now when I call CancelOrder passing in all those parameters I have SUCCESS. Here is call and response.
Calling: SportsAPING/v1.0/cancelOrders With args: {"marketId":"2.101353863","instructions":[{"betId":"5908294219"}],"customerRef":"BackBetForTroy"}
Got Response: {"jsonrpc":"2.0","result":{"customerRef":"BackBetF orTroy","status":"SUCCESS","errorCode":"ERROR_IN_M ATCHER","marketId":"2.101353863","instructionRepor ts":[{"status":"SUCCESS","errorCode":"INVALID_BET_SIZE" ,"instruction":{"betId":"5908294219"},"sizeCancell ed":5.0,"cancelledDate":"0001-01-01T00:00:00"}]},"id":2}
Anyway I tried to call cancelOrders passing in No details at all I was hoping it would cancel all bets. I also tried just passing in the market ID, but still an error. I tried canceling passing in market id and bet id, but leaving out my customer reference and again an error.
So am I to assume that cancelOrders really requires ALL parameters passed?
I read here https://api.developer.betfair.com/se...i/cancelOrders that If marketId and betId aren't supplied all bets are cancelled.


Comment