Hi,
I'm using listClearedOrders to calculate the accurate P&L result of orders placed on a horse racing event by my bot.
I have started testing this today and noticed that there is always a delay between the market closing and when the orders appear on the ClearedOrders returned list. This seems to vary from 2 minutes up to more than 10 minutes. Bets placed by my bot on the next race can be affected by the result of the bets on the previous race, so it is important that I know the accurate result as soon as a race is closed. I would expect that when a market is closed then that implies that all orders have been settled and therefore they should appear on the cleared orders list? I don't understand the behaviour I am observing with listClearedOrders.
I could use the last known situation from the last MarketBook returned but this might not always be accurate if the last MarketBook is not the most up to date.
Will the delay in listClearedOrders always be present or is this something that is expected to be resolved?
Thanks
Kevin
I'm using listClearedOrders to calculate the accurate P&L result of orders placed on a horse racing event by my bot.
I have started testing this today and noticed that there is always a delay between the market closing and when the orders appear on the ClearedOrders returned list. This seems to vary from 2 minutes up to more than 10 minutes. Bets placed by my bot on the next race can be affected by the result of the bets on the previous race, so it is important that I know the accurate result as soon as a race is closed. I would expect that when a market is closed then that implies that all orders have been settled and therefore they should appear on the cleared orders list? I don't understand the behaviour I am observing with listClearedOrders.
I could use the last known situation from the last MarketBook returned but this might not always be accurate if the last MarketBook is not the most up to date.
Will the delay in listClearedOrders always be present or is this something that is expected to be resolved?
Thanks
Kevin
Comment