ESC to close

Technical Indicators API

Maintained by Piyush Arora

Last updated:

Pull daily technical indicator values for US stocks and ETFs: RSI, MACD, SMA and EMA moving averages, Bollinger Bands, ADX, SuperTrend, Ichimoku, Stochastic, ATR, OBV and more: 52 indicators, up to 10 in one call. Every value is computed over the ticker's full price history with TradingView and TA-Lib conventions, so a 200-day EMA or a Wilder RSI matches what you see on a chart, back to the first trading day on file. The response names the company and each indicator's parameters once in metadata; each row in data carries the date and the indicator values. The technical analysis API is free on every plan.

GET https://data.businessquant.com/technical_indicators?ticker={ticker}&indicators={ids}&api_key={api_key}

Related endpoints: Find every indicator id, its parameters and output fields in the List of Technical Indicators API. Pull the underlying daily OHLCV from the EOD Stock Prices API, and combine price signals with fundamentals through the Stock Screener API.

1. Request Parameters

Provide an API key, one company (ticker or CIK) and up to 10 indicator ids. Without a date range the call returns the latest 500 trading days, newest first. Indicator ids come from /technical_indicators/list; common names such as sma50, bollinger or williams_r are accepted too.

ParameterDescription
api_key
Required
Your unique API key for authentication.
indicators
Required
Comma-separated indicator ids, at most 10 per call. Each id returns all of its output fields: macd returns the MACD line, signal line and histogram.
Format: indicators=rsi,macd,sma_50
ticker
Conditional
Stock or ETF ticker. (Provide exactly one: ticker or cik). BRK.B and BRK-B both work.
Format: ticker=AAPL
cik
Conditional
SEC Central Index Key of the company. (Provide exactly one: ticker or cik).
Format: cik=320193
from_date
Optional
First trading day to return, inclusive.
Format: from_date=2025-01-01
till_date
Optional
Last trading day to return, inclusive.
Format: till_date=2025-12-31
limit
Optional
Rows to return: default 500, maximum 20,000. Applied after the date range, from the end that order starts at.
Format: limit=250
order
Optional
desc (newest first, default) or asc (oldest first).
Format: order=asc
include_ohlc
Optional
true adds the day's open, high, low, close and volume to every row.
Format: include_ohlc=true
Example cURL Request
curl -X GET "https://data.businessquant.com/technical_indicators?ticker=AAPL&indicators=rsi,macd,sma_50,bbands&limit=10&api_key=YOUR_API_KEY"
Python
import requests

r = requests.get("https://data.businessquant.com/technical_indicators", params={
    "ticker": "AAPL",
    "indicators": "rsi,macd,sma_50",
    "from_date": "2025-01-01",
    "order": "asc",
    "api_key": "YOUR_API_KEY",
})
rows = r.json()["data"]   # [{"date": "2025-01-02", "rsi": ..., "macd": ...}, ...]

2. Sample Response

Apple's RSI, MACD, 50-day SMA and Bollinger Bands for the latest 10 trading days. metadata.indicators lists each requested indicator with its parameters and the fields it adds to every row. Switch to JSON for the raw response.

Apple — Daily Technical Indicators

Ticker: AAPL  •  Indicators: rsi, macd, sma_50, bbands  •  10 trading days

TickerAAPL
CompanyApple
IntervalDaily
From2026-11-09
Till2026-11-20
Date rsimacdmacd_signalmacd_histsma_50bb_upperbb_middlebb_lowerbb_percent_bbb_bandwidth
2026-11-20 46.452.673.43-0.7601341.81359.42347.48335.530.29426.88
2026-11-19 52.973.543.62-0.0785341.60359.47347.74336.000.56286.75
2026-11-18 56.563.933.640.2858341.15359.40347.69335.970.70336.74
2026-11-17 56.104.033.570.4603340.41358.87347.26335.660.70026.68
2026-11-16 57.004.163.460.7033339.69358.51346.64334.770.75856.85
2026-11-13 60.644.173.280.8933339.04357.78346.15334.530.93526.72
2026-11-12 59.693.773.060.7186338.48356.21345.51334.810.93796.19
2026-11-11 60.423.352.880.4769337.88354.75344.87334.981.045.73
2026-11-10 55.622.692.76-0.0668337.27352.82344.23335.650.74924.99
2026-11-09 57.612.532.77-0.2438336.63352.31343.87335.430.90404.91

3. Response Field Reference

Everything that repeats across rows (the company, the interval, each indicator's parameters) is stated once in metadata. Each data row has the trading date plus one field per indicator output.

Metadata Fields

FieldTypeDescription
tickerstringTicker the values belong to (share classes use a dash: BRK-B).
cikintegerSEC Central Index Key.
companynamestringCompany name as registered.
companyname_shortstringShort company name.
intervalstringBar interval the indicators are computed on: daily.
indicatorsarrayOne object per requested indicator: id, name, category, parameters (period, smoothing, multipliers) and fields, the keys it adds to each data row.
orderstringdesc or asc, as requested.
from_datestringEarliest date in data.
till_datestringLatest date in data.
total_recordsintegerNumber of rows in data.
messagestringPresent only when data is empty, saying why (for example, no trading days in the requested range).

Data Fields

FieldTypeDescription
datestringTrading date (YYYY-MM-DD).
{indicator field}number|nullOne key per output of each requested indicator, for example rsi, macd, macd_signal, macd_hist, bb_upper. null while the indicator is still warming up (a 200-day SMA has no value for a ticker's first 199 trading days).
supertrend_directioninteger1 in an uptrend (the line is below price), -1 in a downtrend.
obvintegerOn-balance volume, a running total of shares.
open, high, low, closenumberOnly with include_ohlc=true: the day's split-adjusted prices.
volumeintegerOnly with include_ohlc=true: shares traded that day.

4. How the Indicators Are Calculated

Recursive indicators such as the EMA, RSI, ATR and ADX depend on every bar before the one you read. Many technical analysis APIs start the calculation a few hundred bars back, so their long-period values drift from a charting platform's. This API computes each indicator over the ticker's whole daily history, with the conventions TradingView and TA-Lib use:

ConventionDetail
EMA seedingThe first EMA value is the SMA of the first n closes; after that alpha = 2 / (n + 1). DEMA, TEMA, MACD, PPO, TRIX and Keltner Channels build on this EMA.
Wilder smoothingRSI, ATR, NATR, ADX, +DI and -DI use Wilder's moving average (alpha = 1 / n), seeded with a simple average.
Bollinger Bands20-day SMA ± 2 population standard deviations.
Parabolic SARAcceleration 0.02, step 0.02, maximum 0.2, as TA-Lib's SAR.
Ichimoku spansSenkou span A and B are reported on the day they are plotted, 26 trading days after the bars that produce them.
PricesDaily bars adjusted for splits. Indicators are calculated from the ticker's current price history on every request, so a split or a price correction is reflected in every value straight away.
UpdatesCalculated from the latest daily prices: a new trading day appears as soon as its price bar does.

Technical Indicators API Request Examples

Copy any request below directly into your application.

1. RSI API: latest 30 days of 14-day RSI
https://data.businessquant.com/technical_indicators?ticker=AAPL&indicators=rsi&limit=30&api_key=YOUR_API_KEY
2. MACD API: a full year, oldest first
https://data.businessquant.com/technical_indicators?ticker=MSFT&indicators=macd&from_date=2025-01-01&till_date=2025-12-31&order=asc&api_key=YOUR_API_KEY
3. Moving average API: 50- and 200-day SMA crossover
https://data.businessquant.com/technical_indicators?ticker=NVDA&indicators=sma_50,sma_200&limit=250&api_key=YOUR_API_KEY
4. SuperTrend and ADX with daily OHLCV
https://data.businessquant.com/technical_indicators?ticker=TSLA&indicators=supertrend,adx&include_ohlc=true&api_key=YOUR_API_KEY
5. By CIK: Bollinger Bands, ATR and OBV
https://data.businessquant.com/technical_indicators?cik=320193&indicators=bbands,atr,obv&api_key=YOUR_API_KEY
Sample: SuperTrend and ADX with include_ohlc=true
{
    "metadata": {
        "ticker": "AAPL",
        "cik": 320193,
        "companyname": "Apple Inc.",
        "companyname_short": "Apple",
        "interval": "daily",
        "indicators": [
            {
                "id": "supertrend",
                "name": "SuperTrend",
                "category": "Trend",
                "parameters": {
                    "atr_period": 10,
                    "multiplier": 3
                },
                "fields": [
                    "supertrend",
                    "supertrend_direction"
                ]
            },
            {
                "id": "adx",
                "name": "Average Directional Index",
                "category": "Trend",
                "parameters": {
                    "period": 14,
                    "smoothing": "Wilder"
                },
                "fields": [
                    "adx",
                    "plus_di",
                    "minus_di"
                ]
            }
        ],
        "order": "desc",
        "from_date": "2026-11-16",
        "till_date": "2026-11-20",
        "total_records": 5
    },
    "data": [
        {
            "date": "2026-11-20",
            "supertrend": 334.2701,
            "supertrend_direction": 1,
            "adx": 15.60654,
            "plus_di": 23.03306,
            "minus_di": 27.01057,
            "open": 352.63,
            "high": 354.3,
            "low": 340.56,
            "close": 342.56,
            "volume": 72368860
        },
        {
            "date": "2026-11-19",
            "supertrend": 334.2701,
            "supertrend_direction": 1,
            "adx": 16.19565,
            "plus_di": 26.2926,
            "minus_di": 24.74597,
            "open": 352.91,
            "high": 355.28,
            "low": 346.47,
            "close": 349.21,
            "volume": 37810532
        },
        {
            "date": "2026-11-18",
            "supertrend": 334.2701,
            "supertrend_direction": 1,
            "adx": 17.20836,
            "plus_di": 28.71178,
            "minus_di": 21.80094,
            "open": 351.87,
            "high": 356.42,
            "low": 351.47,
            "close": 352.45,
            "volume": 27823478
        },
        {
            "date": "2026-11-17",
            "supertrend": 334.2701,
            "supertrend_direction": 1,
            "adx": 17.47967,
            "plus_di": 29.07977,
            "minus_di": 22.90024,
            "open": 352.92,
            "high": 355.36,
            "low": 349.67,
            "close": 351.91,
            "volume": 34138497
        },
        {
            "date": "2026-11-16",
            "supertrend": 334.2701,
            "supertrend_direction": 1,
            "adx": 17.90978,
            "plus_di": 30.73396,
            "minus_di": 22.56336,
            "open": 357.1,
            "high": 357.1,
            "low": 351.31,
            "close": 352.78,
            "volume": 38364630
        }
    ]
}

Frequently Asked Questions

Which technical indicators does the API provide?

52 indicators in five groups: moving averages (SMA and EMA at 5, 10, 20, 50, 100 and 200 days, WMA, DEMA, TEMA, TRIMA, KAMA, HMA, VWMA), trend (MACD, ADX with +DI and -DI, Aroon, Parabolic SAR, SuperTrend, Ichimoku Cloud), momentum (RSI, Stochastic, Stochastic RSI, Williams %R, CCI, ROC, Momentum, CMO, PPO, TRIX, Ultimate Oscillator, Balance of Power, Awesome Oscillator), volatility (ATR, NATR, Bollinger Bands, Keltner Channels, Donchian Channels, standard deviation, historical volatility) and volume (OBV, Accumulation/Distribution, Chaikin Oscillator, Chaikin Money Flow, MFI, average volume, relative volume). The List of Technical Indicators API returns all of them with their parameters.

Will the RSI and MACD values match TradingView?

Yes, for the same daily bars. Values follow TradingView and TA-Lib conventions (SMA-seeded EMAs, Wilder smoothing for RSI, ATR and ADX) and are computed from each ticker's first trading day, so long-period indicators such as the 200-day EMA do not depend on how much history the request covers.

How far back does the indicator history go?

As far back as the ticker's daily price history, decades for long-listed stocks. Use from_date and till_date to choose a range, and limit (up to 20,000 rows) to control the size of each response.

Can I request several indicators in one call?

Yes, up to 10 indicator ids per call, comma-separated. Each indicator's parameters are listed once in the metadata, and every data row carries all of the requested values for that date.

Why are some values null?

An indicator needs a minimum number of bars before it has a value: 14 for RSI, 26 plus 9 for the MACD signal line, 200 for the 200-day SMA. Rows inside that warm-up period return null for that indicator.

Is the Technical Indicators API free?

Yes. Technical indicators are available on every plan, including Free, with full history. Sign up for an API key to start pulling RSI, MACD, moving averages and the other indicators immediately.