Latest MACD datapoint
Changed onLEGACY — prefer /agentFriendly/ta/{slug}/macd (agent-optimized output) or /ta/{slug}/allLatest for all indicators at once. Use this legacy endpoint only when you need a custom start/end range or non-default periods — the agentFriendly variant computes a fixed recent window.
Request
- Base URLhttps://rest.coincap.io/v3
- Auth
- HTTP bearer
- or API key in query parameter apiKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Asset slug (e.g. bitcoin)
Query parameters
Start timestamp in ms
End timestamp in ms
Short EMA period (default: 12)
Long EMA period (default: 26)
Signal line EMA period (default: 9)
Timeframe for price bars
Include original price data
Response
Latest MACD datapoint
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
bearerAuthwas added to the API
- warning