Skip to content
RealMarketAPI

macd indicator api

MACD Indicator API: Server-Side Values for Chart Overlays

Fetch pre-calculated MACD line, signal, and histogram values from the indicator API and overlay them on OHLCV charts.

Summary

Deliver MACD overlays server-side without shipping indicator math to every client runtime.

Runnable example

MACD endpoint request. Replace YOUR_KEY with your API key.

MACD endpoint request
curl -X GET "https://api.realmarketapi.com/api/v1/indicator/macd
  ?ApiKey=YOUR_KEY
  &symbolCode=BTCUSD
  &timeFrame=H1
  &pageSize=50"

Production notes

  • 01Align the MACD fetch cadence with your candle timeframe to keep line and signal values consistent.
  • 02Cache MACD responses for at least one candle period — values only change on candle close.
  • 03Render a greyed-out indicator line when the endpoint times out rather than hiding the chart entirely.

Run this example with your own key

Create a free account, then try the request in the playground before wiring it into production.