AgentFriendly

Get MACD for trend and momentum analysis

Changed on

Returns MACD line, signal line, and histogram data for identifying trend changes and momentum shifts, sampled to 200 points for AI trading analysis. Preferred MACD tool — the /ta/{slug}/macd and /ta/{slug}/macd/latest variants are legacy; use this, or /ta/{slug}/allLatest for all indicators in one call. Subject to the shared TA rate pool; for many assets prefer /agentFriendly/full_assets_by_slug with includeTaData=true.

get/agentFriendly/ta/{slug}/macd

Request

Path parameters

slugstring required

Asset slug (e.g., bitcoin)

Query parameters

shortinteger

Short EMA period

longinteger

Long EMA period

signalinteger

Signal line EMA period

fetchInterval'm1' | 'm5' | 'm15' | 'm30' | 'h1' | 'h2' | 'h6' | 'h12' | 'd1'

Timeframe for price bars

Response

MACD data culled to 200 points

object required

Changes

    • warning

      for the query request parameter long, the min was set to 1.00

    • warning

      for the query request parameter short, the min was set to 1.00

    • warning

      for the query request parameter signal, the min was set to 1.00

    • info

      the endpoint scheme security apiKey was added to the API

    • info

      the endpoint scheme security x402 was added to the API

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      endpoint added