Polymarket Position Reconciliation: Keeping Trading Bot State in Sync
rust
dev.to
Your Polymarket trading bot says: Position: +100 But the account actually holds: Position: +40 Which one should the trading system trust? This is a position reconciliation problem. For an automated Polymarket trading bot, local state can become different from actual account state after: partial fills WebSocket disconnects missed events application restarts delayed events unexpected API responses My approach is to treat reconciliation as a first-class part of the trading