Get MACD for trend and momentum analysis
Changed onReturns 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.
Request
- Base URLhttps://rest.coincap.io/v3
- Auth
- HTTP bearer
- or API key in query parameter apiKey
- or API key in header Payment-Signature
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Asset slug (e.g., bitcoin)
Query parameters
Short EMA period
Long EMA period
Signal line EMA period
Timeframe for price bars
Response
MACD data culled to 200 points
Changes
- warning
for the
queryrequest parameterlong, the min was set to1.00 - warning
for the
queryrequest parametershort, the min was set to1.00 - warning
for the
queryrequest parametersignal, the min was set to1.00 - info
the endpoint scheme security
apiKeywas added to the API - info
the endpoint scheme security
x402was added to the API - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- warning
- info
endpoint added
- info