Hi
I have an issue with the error message I get back when I try to cancel bets BET_TAKEN_OR_LAPSED.
Obviously this could mean two totally different things, one could mean profit, a potential opposing trade bet being placed and the other is a lapsed bet not to be looked at again.
How do other people handle this error message do they instantly try to check the listCurrentOrders object to try and find out whether the bet was LAPSED or MATCHED.
The reason I ask is that I have found that sometimes this has not been updated at the time I try to check it when I get this error message back. Therefore I have to assume either a lapsed or matched bet by other means which doesn't always work e.g looking at the current exposure etc.
It would be much better to return whether the bet was actually
TAKEN
or
LAPSED
When trying to cancel a bet.
This would also mean less API lookups as the error message would let you know whether the bet was actually matched or not.
I'd be interested to know what other people to do to get a 100% accurate response ASAP after this message.
Thanks
Rob
I have an issue with the error message I get back when I try to cancel bets BET_TAKEN_OR_LAPSED.
Obviously this could mean two totally different things, one could mean profit, a potential opposing trade bet being placed and the other is a lapsed bet not to be looked at again.
How do other people handle this error message do they instantly try to check the listCurrentOrders object to try and find out whether the bet was LAPSED or MATCHED.
The reason I ask is that I have found that sometimes this has not been updated at the time I try to check it when I get this error message back. Therefore I have to assume either a lapsed or matched bet by other means which doesn't always work e.g looking at the current exposure etc.
It would be much better to return whether the bet was actually
TAKEN
or
LAPSED
When trying to cancel a bet.
This would also mean less API lookups as the error message would let you know whether the bet was actually matched or not.
I'd be interested to know what other people to do to get a 100% accurate response ASAP after this message.
Thanks
Rob

