The new API doesn't provide a simple way to list your matched bets, which seems like a pretty significant omission to me!
listCurrentOrders() can request EXECUTABLE bets (those with an unmatched portion), EXECUTION_COMPLETE (those that are fully matched) or ALL (everything)
EXECUTION_COMPLETE is, in my view, a bit of an odd state. If I place a £100 bet and £99.99 of it is matched, then it won't be returned. The only way to find out that I've had a £99 bet matched is to request ALL bets.
Could we please have an additional orderProjection state that returns both fully and partially matched bets? The old API did this perfectly well. Having to request all bets in order to find the matched ones is very inefficient, especially when you have got a lot of bets.
Secondly, it would be fantastic if there was a way to return the selection name and market name of the bets. All you get back from the new API is the selection ID and market ID. To discover the names of your bets, you need to load the market data of each market.
Imagine having to implement something like the 'My Account/Current Bets/Matched bets' web page using the new API. You'd have to call listCurrentOrders( ALL ) (multiple times, paging through the output), then listMarketCatalogue() for each individual market there, to retrieve market & runner names. It's amazingly inefficient and IMO poor design, especially since the old API could do this so well.
listCurrentOrders() can request EXECUTABLE bets (those with an unmatched portion), EXECUTION_COMPLETE (those that are fully matched) or ALL (everything)
EXECUTION_COMPLETE is, in my view, a bit of an odd state. If I place a £100 bet and £99.99 of it is matched, then it won't be returned. The only way to find out that I've had a £99 bet matched is to request ALL bets.
Could we please have an additional orderProjection state that returns both fully and partially matched bets? The old API did this perfectly well. Having to request all bets in order to find the matched ones is very inefficient, especially when you have got a lot of bets.
Secondly, it would be fantastic if there was a way to return the selection name and market name of the bets. All you get back from the new API is the selection ID and market ID. To discover the names of your bets, you need to load the market data of each market.
Imagine having to implement something like the 'My Account/Current Bets/Matched bets' web page using the new API. You'd have to call listCurrentOrders( ALL ) (multiple times, paging through the output), then listMarketCatalogue() for each individual market there, to retrieve market & runner names. It's amazingly inefficient and IMO poor design, especially since the old API could do this so well.


Comment