wss://api.rook.pm/v1/stream, with Authorization: Bearer <api-key> in the handshake. This protocol is separate from the REST OpenAPI specification.
Subscribe explicitly
Acknowledgements identify accepted and rejected selectors, the subscription ID and epoch. They never broaden subscriptions silently. Quote/book snapshots end at
snapshot_complete before subsequent updates. Trade subscriptions do not replay historical prints; use REST for retained history.
Sequence and recovery
Data envelopes carrytype, subscription_id, epoch, a monotonically increasing sequence, published_at and channel-specific data. Epochs and sequences are scoped to each subscription. Reconnects or sequence gaps require a new affected-state snapshot.
Book deltas identify the listing, revision, timestamps and changed levels with side, exact price and exact quantity. Quantity is the new absolute size; zero removes the level. Reference recovery uses the acknowledged cursor with the same family/resource filters on GET /changes.