Hello,
I faced a problem with bets duplication in triggered betting.
I read all topics regsrding this issue and and really still has no good idea of how to avoid duplicating.
I tried all suggested methods - even waiting for 15 secods between triggers checks(market refresh time is 3sec - trigger waits 5! times longer ).
And yesterday I've got another duplicated bet.
I read that you can't check the status of bet sent, but
BetFair has the 'reference' number for ANY bet it has got to process. In any state: matched/unmatched/lapsed or voided.
I am sure than it is easy enough to implement some bet option(or even settings variable) 'Wait for bet is processed for {N} sec', which will wait for ANY changes in bets state for the selection matched for the bet. At least - the count of bets(of any type) on selection must changed in this period of time.
It could solve 99.9% of bets processing problems independently of the reason -
BetFair or network delays etc.
Sure, the best way is the ability to assign some string of user's betID(independently of
BetFair unique ref. num) to any bet sent via
BetFair API, but it could be done by
BetFair only.
And just for now - could you please provide some good method to "wait for N seconds" after triggered bet action and not set the whole trigger to check conditions too rare?