betcode-org / flumine

flūmine - Betting trading framework
MIT License
166 stars 60 forks source link

Partially matched order moved with replace_order fails with Violation, but was successfully submitted to Betfair #536

Open andrewl36 opened 2 years ago

andrewl36 commented 2 years ago

I noticed Flumine thought there was a violation, but the 0.76 at 9.2 was submitted to Betfair successfully. Scenario:

andrewl36 commented 2 years ago

@liampauling Does the above log indicate it wasn't Flumine that issued the Violation, as it went Executeable? However, why then did betfair show the bet submitted?

liampauling commented 2 years ago

Very tricky to debug this, it seems everything is valid up until the last two lines, something else (not the first replace) is causing that violation, can you add more logs to your strategy to try and work out what it is?

andrewl36 commented 2 years ago

I'll try and work something out, I only saw the issue by chance and it only happened once yesterday. I'll keep an eye out of Lapse'd bets in betfair, as my strategy should cancel them before the off, but with the above Flumine is not aware of it as it thought it had been a violation...