Trading bot stuck after buy order fills due to race condition and orphaned last-buy-order records
Trading bot stuck after buy order fills due to race condition and orphaned last-buy-order records: a task in LegoFlow-SWE (Harbor dataset). In fast‑moving markets a buy order can be filled almost immediately after it is created. While the bot still has a queued trading job running for that symbol…
The task
In fast‑moving markets a buy order can be filled almost immediately after it is created. While the bot still has a queued trading job running for that symbol, the fill notification arrives via websocket and triggers additional database writes. Because these writes happen outside the scope of the queued job and…
Part of Lego-X/LegoFlow-SWE.