{
  "x402Version": 2,
  "id": 1543,
  "slug": "1543",
  "resource": "https://marketdata.use.x402atlas.com/macd",
  "description": "MACD momentum indicator for any ticker — trend and signal-line analytics for stocks, crypto, forex and options.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x9D667BC76F166322df087b3B3927D4d83D44A5d0",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "15000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x9D667BC76F166322df087b3B3927D4d83D44A5d0",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "15000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x9D667BC76F166322df087b3B3927D4d83D44A5d0",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "15000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "15000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "category": "finance",
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "limit": 10,
            "long_window": 26,
            "order": "desc",
            "series_type": "close",
            "short_window": 12,
            "signal_window": 9,
            "ticker": "AAPL",
            "timespan": "day"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "indicator": "macd",
            "points": [
              {
                "histogram": 38.38,
                "signal": 106.98,
                "time": "2024-01-02T00:00:00Z",
                "value": 182.34
              }
            ],
            "queried_at": "2024-01-02T12:00:00Z",
            "ticker": "AAPL"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "limit": {
                    "description": "Max points returned",
                    "maximum": 50000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "long_window": {
                    "description": "MACD long window",
                    "maximum": 50000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "order": {
                    "description": "Result ordering",
                    "enum": [
                      "asc",
                      "desc"
                    ],
                    "type": "string"
                  },
                  "series_type": {
                    "description": "Price field used to compute the indicator",
                    "enum": [
                      "open",
                      "high",
                      "low",
                      "close"
                    ],
                    "type": "string"
                  },
                  "short_window": {
                    "description": "MACD short window",
                    "maximum": 50000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "signal_window": {
                    "description": "MACD signal window",
                    "maximum": 50000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "ticker": {
                    "description": "Asset-prefixed ticker, e.g. AAPL, X:BTCUSD",
                    "type": "string"
                  },
                  "timespan": {
                    "description": "Aggregate window unit used to compute the indicator",
                    "enum": [
                      "minute",
                      "hour",
                      "day",
                      "week",
                      "month",
                      "quarter",
                      "year"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "ticker"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "indicator": {
                    "description": "Which indicator this response is for.",
                    "type": "string"
                  },
                  "points": {
                    "description": "Normalized indicator readings, oldest or newest first per `order`.",
                    "items": {
                      "properties": {
                        "histogram": {
                          "description": "MACD histogram value (value minus signal).",
                          "type": "number"
                        },
                        "signal": {
                          "description": "MACD signal line value.",
                          "type": "number"
                        },
                        "time": {
                          "description": "Reading timestamp.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "value": {
                          "description": "Indicator value.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "time",
                        "value"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "queried_at": {
                    "description": "UTC timestamp when this bridge queried the upstream.",
                    "format": "date-time",
                    "type": "string"
                  },
                  "ticker": {
                    "description": "Echo of the requested ticker.",
                    "type": "string"
                  },
                  "timespan": {
                    "description": "Echo of the requested timespan, if any.",
                    "type": "string"
                  }
                },
                "required": [
                  "queried_at",
                  "ticker",
                  "indicator",
                  "points"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "technical-indicator",
        "macd",
        "momentum",
        "signal",
        "stocks",
        "crypto",
        "market-data",
        "marketdata"
      ]
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "marketdata.use.x402atlas.com",
  "lastUpdated": "2026-09-15T06:31:19.038Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-15T06:31:18.94Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "marketdata.use.x402atlas.com",
    "manifest_name": "marketdata.use.x402atlas.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}