Technical Indicator Data
Retrieve time-series data for specific technical indicators including SMA, RSI, MACD, and Bollinger Bands. Build custom technical analysis and charting tools.
Use Case: Overlay 50-day and 200-day moving averages on a stock price chart for trend analysis.
Authorizations
OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.
Query Parameters
Stock ticker to query (required). Send the plain uppercase symbol exactly as you'd type it on a brokerage screen, e.g. AAPL, MSFT, TSLA.
How long each bar covers. Use a number of minutes (1, 5, 15, 30, 60, 240), a letter for daily/weekly/monthly (D, W, M), or an N-trade tick bar (100T, 500T). See ChartResolution for the full list.
How long each candle/bar on the chart should cover. Three families of values are supported:
Intraday (minute bars) — 1, 3, 5, 15, 30, 45, 60, 120, 180, 240 — the number is the bar's length in minutes (e.g. 5 = five-minute bars, 60 = hourly).
Daily and longer — D / 1D = daily, W / 1W = weekly, M / 1M = monthly, 3M / 6M / 12M = three-/six-/twelve-month bars.
Tick-based — 1T, 5T, 10T, 25T, 50T, 100T, 250T, 500T, 1000T — bars that close every N trades instead of every N minutes. Useful for fast-moving markets where time-based bars are too noisy.
1, 3, 5, 15, 30, 45, 60, 120, 180, 240, D, W, M, 1D, 1W, 1M, 3M, 6M, 12M, 1T, 5T, 10T, 25T, 50T, 100T, 250T, 500T, 1000T "D"
Which technical indicator to compute. Common picks: sma (simple moving average), ema (exponential moving average), rsi (relative strength index), macd (moving-average convergence-divergence), bbands (Bollinger Bands). See TechnicalIndicatorType for the full list of supported slugs.
Technical indicator slug (e.g. sma, ema, rsi, macd, bbands). Pass this with the indicator endpoint to compute that indicator over the requested bars.
sma, ema, rsi, macd, bbands, stoch, adx, cci, willr, mfi "rsi"
(Required) Start timestamp (Unix seconds)
(Required) End timestamp (Unix seconds)
(Optional) Period for SMA/RSI/BBANDS
MACD fast EMA length, in bars. The shorter of the two moving averages used to compute MACD. Standard value is 12. Only used when indicator=macd.
MACD slow EMA length, in bars. The longer of the two moving averages used to compute MACD. Standard value is 26. Only used when indicator=macd.
MACD signal EMA length, in bars. Used to smooth the MACD line into the signal line; crossovers between the two are the basic MACD trading cue. Standard value is 9. Only used when indicator=macd.