Skip to main content
Discard your cache for market_id. The next Snapshot will rebuild it.

Payload

market_id
string
reason
InvalidationReason
Reconnect, Lag, SequenceGap { expected, received }, or ExchangeReset.

Example

use px_core::websocket::SessionEvent;

if let SessionEvent::BookInvalidated { market_id, .. } = event? {
    cache.remove(&market_id);
}