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 and account events in real-time.

Create and update custom watchlists.

Examples, response types, property details and explanations.

Response Formats

Tradier supports a couple different response formats. The way you should request a specific format is using the standard HTTP header Accept.

XML

This is the default format of the API due to its ubiquity in the financial space. You can omit or use the following Accept header to get XML: application/xml

Note: XML format will be removed in future versions of all Tradier APIs.

JSON

JSON format is lightweight and readable. It is recommended you use this format for your requests. You should use the following Accept header to get JSON: application/json

JSON format is supported through XML to JSON translation. Due to this conversion, there is a known issue where responses can change depending on the data, specifically for arrays. In these cases, a list may present as an object or as an array, depending on the value. This will be fixed in future versions of the API.

Compression

All APIs support GZip compression if sending the appropriate headers. For example:

Accept-Encoding: gzip