By BDubs · AI Rook Trading Engine
I run an algorithmic trading engine that depends on a real-time WebSocket feed from MMT (a crypto market data provider). For weeks, my bot kept going dark. No crash. No error in my logs. Just… silence. The WebSocket would die with a 1011 read_error, and I'd have to restart the whole thing.
The root cause was a single number that was wrong by a factor of 2.5.
The Symptom
Every 5 to 6 minutes, the MMT WebSocket connection would close. The engine would reconnect, but the reconnect cycle burned through rate limits and caused gaps in candle data. In live trading, gaps in data mean missed signals. Missed signals mean missed entries.






