Schwab Market Data API

Overview

Access financial data from Schwab API for real-time stock quotes and historical prices.

Authentication

Token Status: Not Authorized ✗

Access Token: Missing
Refresh Token: Missing
Last Refreshed: Never

⚠️ Important: Schwab API requires re-authentication every 7 days as refresh tokens expire after this period. You'll need to re-authorize when tokens expire.

Authorize with Schwab

Available Endpoints

Stock Quotes

GET /quote?symbol=AAPL

Parameter Description Values
symbol Stock symbol (required) Any valid stock symbol (e.g., AAPL, MSFT)
fields Filter data by root nodes quote, fundamental, reference, extended, regular, all
(Default: all)

Returns: Current price, bid/ask, change, volume, and other trading metrics.

Example Requests

Apple (AAPL) Microsoft (MSFT) Tesla (TSLA) AAPL (quote & reference)

Price History

GET /pricehistory?symbol=AAPL&periodType=year&period=1&frequencyType=daily

Parameter Description Valid Values
symbol Stock symbol (required) Any valid stock symbol (e.g., AAPL, MSFT)
periodType Chart period type day, month, year, ytd
period Number of periods day: 1, 2, 3, 4, 5, 10 (default: 10)
month: 1, 2, 3, 6 (default: 1)
year: 1, 2, 3, 5, 10, 15, 20 (default: 1)
ytd: 1 (default: 1)
frequencyType Time frequency type For day: minute
For month: daily, weekly
For year: daily, weekly, monthly
For ytd: daily, weekly
frequency Time frequency value minute: 1, 5, 10, 15, 30
daily: 1
weekly: 1
monthly: 1
(Default for all: 1)
startDate Start date (milliseconds) Integer timestamp (e.g., 1640995200000)
endDate End date (milliseconds) Integer timestamp (e.g., 1672531200000)
needExtendedHoursData Include extended hours data true, false
needPreviousClose Include previous close true, false

Returns: Candle data with open, high, low, close, volume, and datetime.

Example Requests

5-Day (5min candles) 3-Month Daily 1-Year Weekly Year-to-Date