Trading bot's $10 exposure cap failed after restart, letting $18.60 in orders through
A test of a trading bot's kill switch found that its $10 exposure limit was not enforced after a restart. Exposure was tracked as an in-memory counter that reset to zero on each launch, so the bot placed roughly $9.30 of orders again and ended with $18.60 of resting bids on a mock exchange. The fix reads open orders and positions from the venue at startup and before every loop. A daily-loss stop also passed its unit test but was never called by the live bot. The tests were run on October 25, 2026, against demo and mock exchanges with no real orders sent.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in