URL
wss://ws.sandbox.rails.xyz?market=BTC-19JUN26-62000-C
Authorizations
See Get Access Token on how to retrieve the token. SetSec-WebSocket-Protocol during the handshake or on connect().
Example value (authorization token):
Query Parameters
Option contract name. Example value:
BTC-19JUN26-62000-C. To connect across all contracts, use the value ALL.Request Envelope
All WebSocket requests follow the same top-level structure:messagedefines the request typecontentcontains request-specific parameters (can be omitted if no parameters)- An optional
clientRequestIdfield is supported for correlation
Response Envelope
All WebSocket responses and stream messages follow a consistent top-level structure:resultTypeidentifies the type of response or message (e.g., “optionsContracts”, “publicOrderBookDelta”)datacontains the response or message payload, including astatusCodeand, where relevant, themarket
Dynamic Subscriptions
The Order Creation Stream (orders) is subscribed by default when you connect. All other streams are added after connecting using explicit subscribe and unsubscribe requests — they cannot be specified in the connection URL. Market-data streams for contracts and quotes are scoped by underlying and expiration date; order book and trades are scoped by contract; account streams are scoped to your account.
Subscribe
Add streams to your connection
Unsubscribe
Remove streams from your connection
Supported Streams
Check out their respective documentation for details on the data they provide and any supported requests.Order Creation Stream
Create, modify, and cancel orders, with fill and rejection notifications
Contracts Stream
Contract definitions with live mark price, IV, and Greeks
Quotes Stream
Top-of-book bid/ask with implied volatility per contract
Order Book Stream
Full order book snapshots and deltas for a contract
Public Trades Stream
Real-time public trade executions for a contract
Positions Stream
Open positions with mark price, margin, and PnL
Open Orders Stream
Your open orders and incremental updates
Recent Orders Stream
Recent order history
Account Summary Stream
Balance, margin used, and PnL
Settlements Stream
Settlement results at expiry
Common Requests
Theping request is available regardless of your current subscriptions and can be used to monitor connection health.
Ping
Connection health monitoring - available even without any subscription
Deterministic Delivery
Multiple WebSocket connections with identical connection and subscription parameters receive the same sequence of events with no per-connection filtering or divergence. This enables:- Multiple parallel connections for redundancy
- Hot standby consumers for failover
- Independent processes handling the same events
- Focused connections for specific stream subsets