Get moving average convergence/divergence (MACD) data for a ticker symbol over a given tim
Get moving average convergence/divergence (MACD) data for a ticker symbol over a given time range. Can't find what you're looking for? POST feedback to /feedback, no charge.
10000 (raw units)
price
14
calls / 30d
3
unique payers
2026-09-11
updated
Provider
agent.massive.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x525f6dDcE9aF7a7179D7696aaBfCd5FCd15a21e6",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"pathParams": {
"stockTicker": "AAPL"
},
"queryParams": {
"adjusted": true,
"expand_underlying": false,
"limit": 10,
"long_window": 26,
"order": "desc",
"series_type": "close",
"short_window": 12,
"signal_window": 9,
"timespan": "day"
},
"type": "http"
},
"output": {
"example": {
"next_url": "https://api.massive.com/v1/indicators/macd/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy",
"request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3",
"results": {
"underlying": {
"url": "https://api.massive.com/v2/aggs/ticker/AAPL/range/1/day/2003-01-01/2022-07-25"
},
"values": [
{
"histogram": 38.3801666667,
"signal": 106.9811666667,
"timestamp": 1517562000016,
"value": 145.3613333333
},
{
"histogram": 41.098859136,
"signal": 102.7386283473,
"timestamp": 1517562001016,
"value": 143.8374874833
}
]
},
"status": "OK"
},
"type": "json"
}
},
"routeTemplate": "/v1/indicators/macd/:stockTicker",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"pathParams": {
"properties": {
"stockTicker": {
"description": "Specify a case-sensitive ticker symbol for which to get moving average convergence/divergence (MACD) data. For example, AAPL represents Apple Inc.",
"type": "string"
}
},
"required": [
"stockTicker"
],
"type": "object"
},
"queryParams": {
"properties": {
"adjusted": {
"default": true,
"description": "Whether or not the aggregates used to calculate the MACD are adjusted for splits. By default, aggregates are adjusted. Set this to false to get results that are NOT adjusted for splits.",
"type": "boolean"
},
"expand_underlying": {
"default": false,
"description": "Whether or not to include the aggregates used to calculate this indicator in the response.",
"type": "boolean"
},
"limit": {
"default": 10,
"description": "Limit the number of results returned, default is 10 and max is 5000",
"maximum": 5000,
"type": "integer"
},
"long_window": {
"default": 26,
"description": "The long window size used to calculate MACD data.",
"type": "integer"
},
"order": {
"default": "desc",
"description": "The order in which to return the results, ordered by timestamp.",
"enum": [
"asc",
"desc"
],
"type": "string"
},
"series_type": {
"default": "close",
"description": "The price in the aggregate which will be used to calculate the MACD. i.e. 'close' will result in using close prices to calculate the MACD.",
"enum": [
"open",
"high",
"low",
"close"
],
"type": "string"
},
"short_window": {
"default": 12,
"description": "The short window size used to calculate MACD data.",
"type": "integer"
},
"signal_window": {
"default": 9,
"description": "The window size used to calculate the MACD signal line.",
"type": "integer"
},
"timespan": {
"default": "day",
"description": "The size of the aggregate time window.",
"enum": [
"minute",
"hour",
"day",
"week",
"month",
"quarter",
"year"
],
"type": "string"
},
"timestamp": {
"description": "Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.",
"type": "string"
},
"timestamp.gt": {
"description": "Range by timestamp.",
"type": "string"
},
"timestamp.gte": {
"description": "Range by timestamp.",
"type": "string"
},
"timestamp.lt": {
"description": "Range by timestamp.",
"type": "string"
},
"timestamp.lte": {
"description": "Range by timestamp.",
"type": "string"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://agent.massive.com/v1/indicators/macd/:stockTicker" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://agent.massive.com/v1/indicators/macd/:stockTicker");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://agent.massive.com/v1/indicators/macd/:stockTicker")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/6784.json, and this resource appears in /discovery/resources and /discovery/search.