Authentication & Access

Authorize the market-data WebSocket with your access token.

View as Markdown

Market data uses the same account and credentials as the Trade API — there’s no separate signup. If you don’t have access yet, start with Getting Started; for the full token flow, see the Trade API Authentication & Access guide.

The Market Data Access Token

When you request an access token, the response includes two tokens:

  • accessToken — for REST requests and the trading WebSocket.
  • mdAccessToken — for the market-data WebSocket.

Use mdAccessToken to authorize the market-data connection.

Market Data Servers

Market data is served from a dedicated host, separate from the trading API:

EnvironmentWebSocket URL
Livewss://md.tradovateapi.com/v1/websocket
Demowss://md-demo.tradovateapi.com/v1/websocket

Authorizing the Connection

A WebSocket connection is authorized once per session. After opening the socket, send an authorize request with your mdAccessToken:

authorize
1
<your mdAccessToken>

A successful response looks like a[{"s":200,"i":1}]. For the connection and frame-decoding details, see Real-Time Data via WebSocket; for the underlying protocol, see the Trade API WebSocket guide.