AgentFriendly
Get MACD for trend and momentum analysis
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
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
No recorded changes to this endpoint across all 1 revision of this API.