Overview

Details about how to obtain access tokens using OAuth 2.0

Fetch positions, balances and other account related details.

Place equity and complex option trades including advanced orders.

Fetch quotes, chains and historical data via REST and streaming APIs.

Stream market data events in real-time.

Create and update custom watchlists.

Examples, response types, property details and explanations.

Streaming

Tradier offers access to an HTTP and WebSocket streaming API. These streaming APIs allow you to receive updated market data and account information as these events occur. We process market data and account events as soon as they happen and send them downstream to anyone listening.

Streaming sessions

In order to initiate streaming, you’ll need to create an authenticated streaming session. Once this session has been created you can make a request to the streaming API endpoints using the returned session identifier. Streaming session identifiers are short-lived identifiers that have short expiry times – so they should be used immediately after request.

HTTP Streaming

As long as data is flowing across the HTTP socket, the HTTP request will stay open. If you’re streaming very inactive symbols and don’t receive data for 15 minutes, the session will close automatically. You should implement reconnecting in the event the socket is closed.

WebSocket streaming

We offer a secure WebSocket connection that can be natively connected to directly via a browser using modern WebSocket APIs or through backend client libraries. An additional advantage of leveraging the WebSocket streaming APIs is it does not require reconnection to modify the streamed securities.

Limits

While we do not publish the symbol limits for these APIs, we do monitor for abuse to make sure people aren’t doing anything egregious (like asking for an entire exchange worth of symbols). Essentially, ask for what you need. Don’t abuse the APIs and you should be fine. It is not permitted to open more than one session at a time.