Skip to main content

Private WebSocket

The Private WebSocket endpoint provides real-time updates for user-specific data including orders, positions, account balances, and RFQs. Enabled RFQ subscribers also receive anonymous trade prints shared across participants.
Authentication RequiredThis WebSocket endpoint requires API key authentication in the connection handshake. See the Authentication guide for details.

Endpoint

Subscription Types

Order Subscriptions

Subscribe to Orders

Leave marketSlugs empty to subscribe to all markets.

Order Snapshot Response

Initial snapshot of open orders:

Order Update Response

Real-time order execution updates:
Order quantities can contain decimals for partial-contract markets. lastShares is a string and may also contain a decimal quantity.

Position Subscriptions

Subscribe to Positions

Position Update Response

Position messages can include netPositionDecimal, qtyBoughtDecimal, qtySoldDecimal, bodPositionDecimal, and qtyAvailableDecimal, matching GET /v1/portfolio/positions. Use those fields when present; the older integer fields are rounded and remain for backward compatibility.

Account Balance Subscriptions

Subscribe to Balances

Balance Snapshot Response

Balance Update Response

The description field is reserved and currently always empty.

RFQ Subscriptions

Subscribe to RFQs

Subscribe without marketSlugs. RFQ and quote visibility follows the participant associated with the authenticated API key. Anonymous rfqTrade prints are shared across participants.

RFQ Event Response

No separate success acknowledgment is sent. Events use the rfqEvent envelope, and each message contains exactly one event variant:
The RFQ in rfqCreated and rfqClosed includes optional tickSize, the price increment in dollars. See RFQ price ticks for pricing rules. Confirm or decline using quoteAccepted.quote.id. See quote replacement.

RFQ Trade Response

rfqTrade.trade uses the same fields as RFQ trade history:
Prices and quantities are decimal strings. Continue using SUBSCRIPTION_TYPE_ORDER for your own order activity.

Recovery

The stream is live and best effort, with no replay or durable cursor. Unsubscribing, disconnecting, or an upstream failure ends it. Recover missed trades through RFQ trade history, and reconcile RFQ and quote state with GET /v1/rfqs and GET /v1/rfqs/quotes.

Execution Types

Ledger Entry Types

Order States

Order Intent

Subscription LimitsYou can subscribe to a maximum of 100 markets per subscription. Use multiple subscriptions if you need more.