Tradier API

Finance / OAuth Advanced HTTPS CORS
Varies by plan (check documentation)

Overview

Tradier is a US brokerage API that provides access to equity and options market data including delayed quotes, intraday prices, and historical data going back years. It uses OAuth 2.0 authentication and offers both a sandbox environment for testing and a live environment for production use. While powerful, the OAuth flow makes it more complex than simple API key authentication.

💡

Beginner Tip

Use Tradier free sandbox environment (sandbox.tradier.com) to test your integration without needing a brokerage account — the sandbox provides simulated market data and lets you test order flows safely.

Available Data

stock price and symbol
open/close/high/low values
trading volume
market cap
historical price data

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Tradier",
    "description": "US equity/option market data (delayed, intraday, historical)",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

quotes.quote.symbol The ticker symbol for this quote.
quotes.quote.last Most recent trade price for the security.
quotes.quote.bid Current highest bid price.
quotes.quote.ask Current lowest ask price.
quotes.quote.volume Total trading volume for the current session.
quotes.quote.change_percentage Percentage change in price compared to the previous close.

Implementation Example

const url = "https://developer.tradier.com/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "Authorization": "Bearer YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

401 Unauthorized - invalid_token OAuth access token is missing, expired, or from the wrong environment.
Ensure you use a sandbox token for sandbox.tradier.com and a production token for api.tradier.com — they are not interchangeable.
400 Bad Request - symbol not found The stock or options symbol format is incorrect.
For options, use the OCC format: underlying + expiry date + call/put flag + strike price (e.g., AAPL230120C00150000).
Empty quotes array Market is closed and real-time data is unavailable.
Check the market calendar endpoint to see if the market is open, or use the historical data endpoint for after-hours research.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 8/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth OAuth
HTTPS REQUIRED
CORS YES
Category Finance
Difficulty Advanced
Verified: 2026-04-04

Similar APIs

View All →