The orderbook stream lives at a single endpoint:
Authentication happens during the WebSocket upgrade — there is no separate
login message and no token to refresh mid-stream. You either open the
connection authenticated, or the upgrade is rejected before the socket opens.
Stream keys
WebSocket connections authenticate with a stream API key, which is distinct
from your REST API key. Stream keys look like:
One stream key authenticates every connection your account opens, up to your
connection limit.
Stream keys are currently issued by ParlayX in a closed release. If you don’t
have one yet and are interested in using this service,
reach out to us.
Supplying the key
Supply your key one of three ways, in order of preference:
Prefer the subprotocol or header. The ?api_key= query parameter is supported
as a fallback for clients that can’t set headers, but query strings are
commonly written to logs and proxies along the way — avoid it when you can.
Handshake responses
The outcome of authentication is an HTTP status on the upgrade request, before
any frame is sent:
Once the upgrade succeeds the server immediately sends a
welcome frame. From there, see
Subscriptions & markets to start streaming.