Connection
Event Contracts:pred. Event Contracts uses the corresponding ec prefix.
Subscribe to a Public Channel
A subscription request contains a request timestampt, a client id, an operation, a channel, and channel-specific items.
items; all: true is reserved for private channels.
Public Channels
Response Envelope
type: "snapshot" before subsequent update messages. Order-book snapshots contain full bids and asks arrays; they are not deltas.
CPI Example
Subscribe to a crypto reference price:Connection Recovery
When a connection is interrupted:- reconnect with backoff;
- restore public subscriptions;
- use REST endpoints such as
/api/v4/event_contracts/marketsand/api/v4/event_contracts/tokens/{token_id}/tickerto refresh authoritative state; - deduplicate repeated updates using the channel key and timestamp.