Skip to main content
Base URL:
For /user API key signatures, see Developer Authentication.

Namespaces

/

Authentication: Public Public order book and event data.

/user

Authentication: API key HMAC User-specific balances, positions, orders and trades.

Public Client Messages

PingPayload:

Subscribe to Token Order Books

Authentication: Public Subscribe to one or more outcome token IDs. Use the market tokenId1 and tokenId2 values from market data when you want both sides of a binary market. Payload type: OrderbookTokenIds.
Socket.IO example:
On subscribe, the backend joins one order book room per token ID and requests an initial snapshot for each token. Successful snapshots are emitted on orderbook as an OrderBook[]. Live level changes are emitted later on orderbook-price-change. If an initial snapshot cannot be loaded because of a transient backend failure, the server emits orderbook-error with the affected tokenIds. Unknown token IDs may produce no snapshot and no error.

Unsubscribe from Token Order Books

Authentication: Public Stop receiving order book snapshots and deltas for one or more outcome token IDs. Payload type: OrderbookTokenIds.
Socket.IO example:
The backend does not emit a dedicated unsubscribe confirmation event. OrderbookTokenIds:

Public Server Events

PongPayload: AppError: OrderBook: OrderBookLevel: OrderBookPriceChange: OrderBookPriceLevel: OrderBookError: EventOnchainUpdatePublic: EventOnchainUpdateRaw: TickSizeChange: OrderSpeedBumpPending: CryptoPrice: CryptoPriceHistory: CryptoPriceError contains the affected symbol and reason: "subscribe_failed". GlobalTrade uses the TradeActivity shape, including anonymous and marketDisplayName. event-trade uses the same payload as global-trade, but is emitted only to the room for the trade’s parent event. Send event-connect with that event UUID to receive it. LiveVolume:

User Client Messages

UserConnectPayload: TradingApiKeyAuth:

User Server Events

UserAuthenticated: BalanceUpdate: MarketSharesUpdate: MarketShareToken: SocketUser: UserPositionUpdate: UserOrderEvent: TradeEvent: TradeMakerOrder: RewardClaimUpdate: TransactionUpdate: