My horse racing bot places bets right up to the actual off, not the expected start time, and then switches modes once the market goes In Play. If the market gets suspeneded then it pauses for 2 seconds. I take the market status info from the getMarketPricesCompressed v5 API call.
The problem I have is that in about 1 in 10 races the bot is still placing bets from the pre-off system once the market goes In Play. I always call getMarketPricesCompressed before placing any bets. Has anyone had this issue too?
I have had to write additional code to identify and cancel bets which are not susposed to be In Play, this takes up valuable processing time when I am more interested in getting my bets on as early as possible. It would be far less riskier if they were't placed at all. Any suggestions?