Skip to main content
Glama

Aggregates

aggregates
Read-onlyIdempotent

Massive (formerly Polygon.io) OHLC price bars for a US stock ticker — 1 minute through quarterly granularity. Returns timestamped open/high/low/close + volume + VWAP. Use for charting equities, intraday analysis, backtesting historical prices.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYes
fromYes
sortNo
limitNo
tickerYes
adjustedNo
timespanYes
multiplierYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoNumber of results
statusNoAPI response status
tickerNoTicker symbol
resultsNoOHLC bar data
adjustedNoWhether data is adjusted
next_urlNoNext page URL if available
field_legendNoLegend for the single-letter OHLC bar keys (o/h/l/c/v/vw/n/t).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "from": "2024-01-01",
      -    "multiplier": 1,
      -    "ticker": "AAPL",
      -    "timespan": "day",
      -    "to": "2024-01-31"
      -  },
      -  {
      -    "from": "2024-01-15",
      -    "limit": 100,
      -    "multiplier": 15,
      -    "ticker": "TSLA",
      -    "timespan": "minute",
      -    "to": "2024-01-16"
      -  }
      -]New value: +[
      +  {
      +    "from": "2026-09-01",
      +    "multiplier": 1,
      +    "ticker": "AAPL",
      +    "timespan": "day",
      +    "to": "2026-09-10"
      +  },
      +  {
      +    "from": "2026-09-25",
      +    "limit": 100,
      +    "multiplier": 15,
      +    "ticker": "TSLA",
      +    "timespan": "minute",
      +    "to": "2026-09-25"
      +  }
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / properties / field_legend
      Added value: +{
      +  "description": "Legend for the single-letter OHLC bar keys (o/h/l/c/v/vw/n/t).",
      +  "type": "object"
      +}
    • addedOutput schema / properties / results / items / properties / date
      Added value: +{
      +  "description": "Bar start as an ISO 8601 timestamp (derived from `t`).",
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "from": "2024-01-01",
      +    "multiplier": 1,
      +    "ticker": "AAPL",
      +    "timespan": "day",
      +    "to": "2024-01-31"
      +  },
      +  {
      +    "from": "2024-01-15",
      +    "limit": 100,
      +    "multiplier": 15,
      +    "ticker": "TSLA",
      +    "timespan": "minute",
      +    "to": "2024-01-16"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "adjusted": {
      +      "description": "Whether data is adjusted",
      +      "type": "boolean"
      +    },
      +    "count": {
      +      "description": "Number of results",
      +      "type": "number"
      +    },
      +    "next_url": {
      +      "description": "Next page URL if available",
      +      "type": "string"
      +    },
      +    "results": {
      +      "description": "OHLC bar data",
      +      "items": {
      +        "properties": {
      +          "c": {
      +            "description": "Close price",
      +            "type": "number"
      +          },
      +          "h": {
      +            "description": "High price",
      +            "type": "number"
      +          },
      +          "l": {
      +            "description": "Low price",
      +            "type": "number"
      +          },
      +          "n": {
      +            "description": "Number of transactions",
      +            "type": "number"
      +          },
      +          "o": {
      +            "description": "Open price",
      +            "type": "number"
      +          },
      +          "t": {
      +            "description": "Timestamp",
      +            "type": "number"
      +          },
      +          "v": {
      +            "description": "Volume",
      +            "type": "number"
      +          },
      +          "vw": {
      +            "description": "Volume weighted average",
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "status": {
      +      "description": "API response status",
      +      "type": "string"
      +    },
      +    "ticker": {
      +      "description": "Ticker symbol",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.