{
  "x402Version": 2,
  "id": 6792,
  "slug": "6792",
  "resource": "https://agent.massive.com/v1/indicators/sma/:stockTicker",
  "description": "Get the simple moving average (SMA) for a ticker symbol over a given time range. Can't find what you're looking for? POST feedback to /feedback, no charge.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x525f6dDcE9aF7a7179D7696aaBfCd5FCd15a21e6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "pathParams": {
            "stockTicker": "AAPL"
          },
          "queryParams": {
            "adjusted": true,
            "expand_underlying": false,
            "limit": 10,
            "order": "desc",
            "series_type": "close",
            "timespan": "day",
            "window": 50
          },
          "type": "http"
        },
        "output": {
          "example": {
            "next_url": "https://api.massive.com/v1/indicators/sma/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy",
            "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3",
            "results": {
              "underlying": {
                "aggregates": [
                  {
                    "c": 75.0875,
                    "h": 75.15,
                    "l": 73.7975,
                    "n": 1,
                    "o": 74.06,
                    "t": 1577941200000,
                    "v": 135647456,
                    "vw": 74.6099
                  },
                  {
                    "c": 74.3575,
                    "h": 75.145,
                    "l": 74.125,
                    "n": 1,
                    "o": 74.2875,
                    "t": 1578027600000,
                    "v": 146535512,
                    "vw": 74.7026
                  }
                ],
                "url": "https://api.massive.com/v2/aggs/ticker/AAPL/range/1/day/2003-01-01/2022-07-25"
              },
              "values": [
                {
                  "timestamp": 1517562000016,
                  "value": 140.139
                }
              ]
            },
            "status": "OK"
          },
          "type": "json"
        }
      },
      "routeTemplate": "/v1/indicators/sma/: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 simple moving average (SMA) 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 simple moving average 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"
                  },
                  "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 simple moving average. i.e. 'close' will result in using close prices to calculate the simple moving average (SMA).",
                    "enum": [
                      "open",
                      "high",
                      "low",
                      "close"
                    ],
                    "type": "string"
                  },
                  "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"
                  },
                  "window": {
                    "default": 50,
                    "description": "The window size used to calculate the simple moving average (SMA). i.e. a window size of 10 with daily aggregates would result in a 10 day moving average.",
                    "type": "integer"
                  }
                },
                "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"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "agent.massive.com",
  "lastUpdated": "2026-09-04T11:11:02.981Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-31T14:41:26.248Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agent.massive.com",
    "manifest_name": "agent.massive.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"
  }
}