---
title: "Get MACD for trend and momentum analysis"
method: GET
path: "/agentFriendly/ta/{slug}/macd"
tags: ["AgentFriendly"]
---

# Get MACD for trend and momentum analysis

`GET /agentFriendly/ta/{slug}/macd`

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.

## Path parameters

- `slug` string, required

## Query parameters

- `short` integer
- `long` integer
- `signal` integer
- `fetchInterval` 'm1' | 'm5' | 'm15' | 'm30' | 'h1' | 'h2' | 'h6' | 'h12' | 'd1'

## Response `200`

MACD data culled to 200 points

- object

## Other responses

- `402` — Payment Required

---

[API](https://skmtc.dev/coincap/apis/coincap-api.md) · [All operations](https://skmtc.dev/coincap/apis/coincap-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coincap/coincap-api/revisions/e3d3739c2c03/schema)
