You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a queue with OverflowStrategy.ERROR (used for stateful channels: orderbook_delta, order_group_updates) fills, MessageQueue.put raises KalshiBackpressureError. The recv loop catches it, logs at ERROR, broadcasts sentinels, and breaks. The consumer iterator then sees StopAsyncIteration — indistinguishable from a clean shutdown.
The error is logged but there is no programmatic way for the consumer to detect that data loss occurred. Production strategies that rely on detecting backpressure to e.g. halt trading have no hook. The class docstring promises "use for stateful channels" implying the consumer will hear about the failure.
Activity
fix(ws): orderbook resync; seq reset detection; permanent close codes…