websockets
Articles about websockets.
Articles
- 10 min read
How to handle stale market data in a trading bot's loss limits
A loss limit is only as current as the oldest price in it. Measure each required price's age from its source time at decision time, tell a quiet market from a dead feed with heartbeats and sequence numbers, and while any price is stale treat P&L as unknown: no new exposure, verified risk-reducing orders only.