Skip to main content

Polled price

Good for scripts. For anything latency-sensitive, stream instead.

Streams

All streams share the same API: await stream.run(callback) blocks and invokes the callback per event; stream.stop() ends it.

Price stream

PriceUpdate fields: feed_id, price, timestamp_ms, best_bid, best_ask, raw.

Pair data

Live catalog diffs (funding, OI, spread, market hours) from the data service. Payloads are partial — bootstrap from GET /v2/trading and deep-merge. Full handshake, hosts, and payload rules: Pair data Socket.IO.

Order events

The reliable way to confirm fills (see Core concepts):
For streaming prices straight into locally built orders, see the market-maker fast path.