Technical indicators are simple to describe and tedious to build. RSI, MACD and ADX each need a long run of candles, a smoothing method and a warm-up period before the first value is reliable. If you only want the latest reading, that is a lot of code and data to carry. Mboum's indicator endpoints return the calculated values directly, so your code asks for a reading and gets one. This guide explains what the three indicators measure, shows the response format, and ends with a script that checks all three across several timeframes.
What the three indicators measure
RSI: momentum
The Relative Strength Index compares recent gains with recent losses and returns a value from 0 to 100. The standard setting looks back 14 candles, which is the endpoint's default. A reading above 70 is commonly called overbought and below 30 oversold. Those are rules of thumb, and a strong trend can stay above 70 for a long time.
MACD: trend and momentum
MACD (Moving Average Convergence/Divergence) is the difference between a fast and a slow exponential moving average, 12 and 26 candles by default. A signal line, a 9-candle average of MACD, is drawn over it. The histogram is MACD minus the signal line. A positive histogram means MACD is above its signal line. The API returns all three as MACD, MACD_Signal and MACD_Hist.
ADX: trend strength
The Average Directional Index measures how strong a trend is, not which way it points. It also runs from 0 to 100 and defaults to 14 candles. Many traders treat a reading under 20 or 25 as a weak or absent trend and one above 25 as a trend worth following. The endpoint takes the usual series_type parameter, but ADX always uses each candle's high, low and close.
Stochastic and CCI: stretched prices
The stochastic oscillator shows where the latest close sits within the recent high-low range, from 0 to 100. The API returns SlowK and its average SlowD. Readings above 80 or below 20 are the usual extremes. The Commodity Channel Index (CCI) measures how far price has moved from its average. It has no fixed ceiling, and values beyond +100 or -100 are commonly read as stretched. Send series_type to the CCI endpoint even though it always uses high, low and close. For AAPL on daily candles, a live check returned "SlowK": 80.879, "SlowD": 71.923 and a 20-period CCI of 168.991.
One call, one reading
All indicator endpoints sit under https://api.mboum.com/v1/markets/indicators/ and cost 2 per call. Ask for the latest RSI on daily candles:
curl --get "https://api.mboum.com/v1/markets/indicators/rsi" \
--data-urlencode "ticker=AAPL" \
--data-urlencode "interval=1d" \
--data-urlencode "series_type=close" \
--data-urlencode "time_period=14" \
--data-urlencode "limit=2" \
--header "Authorization: Bearer YOUR_MBOUM_API_KEY"
The response has a meta object and a body list with the oldest value first and the newest last. Timestamps are Unix seconds. The values below are the end of a live response, trimmed:
{
"meta": {"symbol": "AAPL", "interval": "1d", "indicator": "Relative Strength Index (RSI)", "time_period": "14"},
"body": [
{"timestamp": 1794321000, "RSI": 55.62},
{"timestamp": 1794407400, "RSI": 60.421}
]
}
The endpoints at a glance
/rsi: fieldRSI. Parametertime_period, default 14./macd: fieldsMACD,MACD_Signal,MACD_Hist. Parametersfast_period(12),slow_period(26),signal_period(9)./adx: fieldADX. Parametertime_period, default 14./stoch: fieldsSlowKandSlowD. ParametersfastK_Period(5),slowK_Period(3),slowD_Period(3)./cci: fieldCCI. Parametertime_period, default 10.
Every endpoint takes interval with the values 1m, 5m, 15m, 30m, 1h, 1d, 1wk, 1mo and 3mo. Each interval has a fixed lookback: 1 day for 1m, 1 month for 5m to 1h, 5 years for 1d and 1wk, and 10 years for 1mo and 3mo.
Check three timeframes at once
One timeframe can mislead, so this script reads RSI, MACD and ADX on hourly, daily and weekly candles. That is nine calls at weight 2, or 18 requests. It asks for only the newest value of each (limit=1) and prints a short table.
import time
import requests
BASE = "https://api.mboum.com/v1/markets/indicators"
HEADERS = {"Authorization": "Bearer YOUR_MBOUM_API_KEY"}
SYMBOL = "AAPL"
INTERVALS = ["1h", "1d", "1wk"]
def latest(indicator, interval, **extra):
params = {
"ticker": SYMBOL,
"interval": interval,
"series_type": "close",
"limit": 1,
**extra,
}
resp = requests.get(f"{BASE}/{indicator}", headers=HEADERS, params=params, timeout=30)
resp.raise_for_status()
data = resp.json()
body = data.get("body")
if data.get("success") is False or not body:
raise SystemExit(f"{indicator} {interval}: {data.get('message')}")
time.sleep(0.2)
return body[-1]
def read_rsi(value):
if value >= 70:
return "RSI 70+"
if value <= 30:
return "RSI 30 or less"
return "RSI 30-70"
def read_adx(value):
return "ADX 25+" if value >= 25 else "ADX under 25"
def main():
print(f"{SYMBOL}\n{'':<5} {'RSI(14)':>8} {'MACD hist':>10} {'ADX(14)':>8} read")
for interval in INTERVALS:
rsi = latest("rsi", interval, time_period=14)["RSI"]
macd = latest("macd", interval)["MACD_Hist"]
adx = latest("adx", interval, time_period=14)["ADX"]
side = "MACD above signal" if macd > 0 else "MACD below signal"
print(
f"{interval:<5} {rsi:>8.1f} {macd:>+10.3f} {adx:>8.1f} "
f"{read_rsi(rsi)}, {side}, {read_adx(adx)}"
)
if __name__ == "__main__":
main()
Here is the output for AAPL on November 11, 2026:
AAPL
RSI(14) MACD hist ADX(14) read
1h 68.7 +0.433 22.0 RSI 30-70, MACD above signal, ADX under 25
1d 60.4 +0.477 17.5 RSI 30-70, MACD above signal, ADX under 25
1wk 68.5 +0.485 21.6 RSI 30-70, MACD above signal, ADX under 25
Momentum is positive on all three timeframes, since MACD sits above its signal line. ADX is below 25 on every one, so none of them shows a strong trend by that rule of thumb. The "read" column is a convention, so change the thresholds to match your own rules.
Best practices
- Request only what you need.
limit=1returns just the latest value. Raise it when you want history, for example to compare today's RSI with last week's. - Treat the last value as live. The newest item can come from a candle that is still forming. In our checks, hourly and weekly series ended with an extra point whose timestamp was not a regular candle start.
- Check for failures. A bad ticker can return HTTP 200 with
"success": false, and a bad parameter returns HTTP 422. The script stops with the message instead of reading a missing field. - Do not poll daily data. A daily RSI changes once a day after the close. Cache it and save requests for the intraday intervals you actually need.
Next steps
Pick one symbol and run the script, then add stoch or cci with the same helper function. For the full parameter list, see the API documentation. Get a free key at mboum.com/pages/api.
The data is for information only. It is not investment advice.