Posts

Showing posts with the label UTC timezone trading bot bug

Weather Bot — Episode 8: FOK Ghost Orders, Orderbook Lies, and the UTC Bug That Broke My Polymarket Bot

The bot was making money. Resolution holds were working. The strategy felt solid. And then four bugs showed up in the span of a week, each one capable of quietly draining my account if I hadn't caught it. None of these appeared during DRY RUN. Every single one only showed up when real money was moving through real APIs. That's the part nobody tells you about building trading bots — the code that works perfectly in testing can break in ways you never imagined once it's live. What This Post Covers Four bugs, found in order, each one weirder than the last. If you're building anything on Polymarket's API, this episode might save you some money. If you're not, it's at least a window into what "running an automated trading bot" actually looks like day to day. The Orderbook That Lied I lost an entire day of trading opportunities because of this one. My buy logic checked get_order_book().asks to see if I could buy at my target price. Every sin...