Early access is open. Free sample datasets are live now. Download a sample

Data product · Early access

Technical Indicators API: RSI, MACD, Moving Averages

RSI, MACD, moving averages and Bollinger Bands computed on our servers from the same bars you'd download, so a screener or bot can ask for the indicator value directly.

Coverage

What you get

Item Detail
Product code X-INDICATORS
Coverage Any symbol we carry bars for: stocks (AAPL), futures (ESZ6), crypto (BTC-USD), forex
Granularity Any bar interval your plan has, from 1m to 1d
History Follows the bar history of your plan
Delivery REST
Update speed Recomputed as each bar closes

Writing an RSI takes ten lines. Getting one that matches what your charting platform shows takes longer, because of warm-up periods, Wilder's smoothing versus a simple average, and whether the last bar is still open. We compute indicators from our own bars with documented parameters, so the number you get back is reproducible.

Schema

Schema

Single-output indicators (RSI, SMA, EMA) fill value. Multi-output ones (MACD, Bollinger Bands) fill values with named keys.

Field Type Required Description
symbol string yes Any of our symbols, e.g. AAPL, ESZ6, BTC-USD
indicator string yes e.g. rsi, macd, bbands
interval string yes Bar interval used
time_period number yes Look-back length
series_type string yes close, open, high, low
timestamp / date string yes Bar the value belongs to
value number yes Single-output indicators
values object optional Multi-output, e.g. {"macd": .., "signal": .., "histogram": ..} or {"upper_band", "middle_band", "lower_band"}
signal string optional buy, sell, neutral

Example record:

{
  "symbol": "AAPL",
  "indicator": "rsi",
  "interval": "1d",
  "time_period": 14,
  "series_type": "close",
  "date": "2026-11-18",
  "value": 61.84
}

Sample data

Sample data

A free indicators sample isn't posted yet. Indicators depend on the underlying bars, and our stock bars aren't licensed for free redistribution. A sample file is available on request, for any symbol and indicator you name.

Use cases

Use cases

Screeners. Ask for rsi with time_period = 14 on daily bars for a list of symbols and keep the ones where value is under 30. No need to download a year of bars per name first.

Trading bots on a small server. A bot that only needs a 50/200 moving average crossover can request two sma values per symbol instead of storing and updating its own price history.

MACD confirmation. The values object returns macd, signal and histogram together. A histogram that flips sign while rsi is rising from oversold is a common two-condition filter.

Checking your own code. If you compute indicators locally, compare a few dates against ours with the same interval, time_period and series_type. A mismatch usually means a smoothing or warm-up difference, and it's better to find that before going live.

Code

Code examples

Example: 14-period daily RSI for one stock.

curl "https://api.marketdata.co/v1/indicators/rsi?symbol=AAPL&interval=1d&time_period=14&series_type=close&start=2026-01-01" \
  -H "Authorization: Bearer $MARKETDATA_API_KEY"

Example: MACD on hourly Bitcoin bars, loaded into pandas.

import os
import requests
import pandas as pd

resp = requests.get(
    "https://api.marketdata.co/v1/indicators/macd",
    params={"symbol": "BTC-USD", "interval": "1h", "series_type": "close",
            "start": "2026-11-01", "end": "2026-11-18"},
    headers={"Authorization": f"Bearer {os.environ['MARKETDATA_API_KEY']}"},
)
resp.raise_for_status()
rows = resp.json()["results"]
macd = pd.json_normalize(rows)  # values.macd, values.signal, values.histogram
macd["timestamp"] = pd.to_datetime(macd["timestamp"])
macd = macd.set_index("timestamp")

hist = macd["values.histogram"]
flips = macd[(hist.shift() < 0) & (hist > 0)]
print(flips.index[-5:])

Pricing

Pricing

Plan Technical indicators
Free, $0 All indicators, on the bar history the Free plan includes
Starter, $29/mo Same, on Starter's longer history and intraday bars
Pro, $79/mo Adds return and correlation analytics
Business, $249/mo Commercial use

Each indicator call counts against your plan's normal rate limit. There's no separate dataset, since you can rebuild any indicator from the bar files. For context, plans that include indicators at the providers we studied range from $0 to $299 a month.

Side by side

How we compare

12 of the 50 providers we studied offer indicators, and the menus range from 4 indicators to over 100. We aren't trying to have the longest list. We're aiming for the set traders actually use, computed the same way across stocks, crypto, forex and futures, with the parameters in every response, and included on every plan instead of sold as an add-on. Values come back as numbers, not strings.

FAQ

Frequently asked questions

Which indicators are available?

The core set is planned to include sma, ema, rsi, macd and bbands, with more added as people ask for them. Our indicators reference will list every one with its parameters.

Are indicators calculated on adjusted prices?

For stocks, yes: indicators are computed on split-adjusted bars, so a split doesn't create a fake crash in RSI or a broken moving average. Crypto and forex have no splits to adjust for.

What time zone are the timestamps in?

UTC, the same as our intraday bars. Daily indicators carry a date instead, which is the trading date of the bar.

Is the indicator data real-time?

It's as fresh as the bars on your plan. If your plan gets 15-minute delayed stock bars, the indicators are 15 minutes delayed too.

Can I download indicators as a file?

Not as a separate dataset. Download the bars instead and compute them locally; our RSI strategy guide shows how in pandas.

Keep reading