Skip to main content
Drop everything ≤ this seq for the named market and wait for the next Snapshot.

Payload

market_id
string
asset_id
string
reason
InvalidationReason
Reconnect, Lag, SequenceGap { expected, received }, or ExchangeReset.
local_ts_ms
u64
seq
u64

Example

use px_core::WsUpdate;

if let WsUpdate::Clear { market_id, .. } = update? {
    cache.remove(&market_id);
}