Tradier · AsyncAPI Specification
Tradier Streaming WebSocket API
Version 1.0.0
AsyncAPI 2.6 description of Tradier's WebSocket streaming for market events and account events. A streaming session must first be created via the brokerage REST endpoints (POST /v1/markets/events/session for market data and POST /v1/accounts/events/session for account data), which return a short-lived sessionid used to authenticate the WebSocket connection. Session identifiers are valid for up to 5 minutes prior to connection. Only one streaming session may be open at a time per user.
Channels
/v1/markets/events
Send a market data subscription request.
Market events streaming channel. After connecting the client sends a JSON subscription payload referencing a sessionid acquired from POST /v1/markets/events/session. The server then streams one or more of the requested payload types (quote, trade, summary, timesale, tradex). The subscription may be modified mid-stream by sending a new payload with the same sessionid.
/v1/accounts/events
Send an account events subscription request.
Account events streaming channel. After connecting the client sends a JSON subscription payload referencing a sessionid from POST /v1/accounts/events/session and the desired event types (currently "order"). The server streams order lifecycle events and periodic heartbeats. Streams may only target either live or sandbox accounts within a session.
Messages
MarketSubscription
Market Data Subscription Request
Client request to begin or modify a market data stream.
Quote
Quote Event
Bid/ask quote update for a symbol.
Trade
Trade Event
Executed trade event for a symbol.
Summary
Summary Event
Session open, high, low, or previous close update.
Timesale
Timesale Event
Time and sales tick for a symbol.
Tradex
Tradex Event
Extended trade event recommended for pre and post market sessions in place of the trade payload.
AccountSubscription
Account Events Subscription Request
Client request to begin streaming account events.
OrderEvent
Order Event
Order lifecycle event for a streamed account.
Heartbeat
Heartbeat Event
Stream keep-alive heartbeat.
Servers
wss
production-market
ws.tradier.com/v1/markets/events
Production WebSocket endpoint for market events streaming.
wss
production-account
ws.tradier.com/v1/accounts/events
Production WebSocket endpoint for account events streaming.