aggregates

Pack: polygon-io · Endpoint: https://gateway.pipeworx.io/polygon-io/mcp

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.

Parameters

NameTypeRequiredDescription
tickerstringyes
multipliernumberyes
timespanstringyes
fromstringyes
tostringyes
adjustedbooleanno
sortstringno
limitnumberno

Example call

Arguments

{
  "ticker": "AAPL",
  "multiplier": 1,
  "timespan": "day",
  "from": "2024-01-01",
  "to": "2024-01-31"
}

curl

curl -X POST https://gateway.pipeworx.io/polygon-io/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"aggregates","arguments":{"ticker":"AAPL","multiplier":1,"timespan":"day","from":"2024-01-01","to":"2024-01-31"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('aggregates', {
  "ticker": "AAPL",
  "multiplier": 1,
  "timespan": "day",
  "from": "2024-01-01",
  "to": "2024-01-31"
});

More examples

{
  "ticker": "TSLA",
  "multiplier": 15,
  "timespan": "minute",
  "from": "2024-01-15",
  "to": "2024-01-16",
  "limit": 100
}

Response shape

FieldTypeDescription
tickerstringTicker symbol
statusstringAPI response status
adjustedbooleanWhether data is adjusted
resultsarrayOHLC bar data
countnumberNumber of results
next_urlstringNext page URL if available
Full JSON Schema
{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "description": "Ticker symbol"
    },
    "status": {
      "type": "string",
      "description": "API response status"
    },
    "adjusted": {
      "type": "boolean",
      "description": "Whether data is adjusted"
    },
    "results": {
      "type": "array",
      "description": "OHLC bar data",
      "items": {
        "type": "object",
        "properties": {
          "c": {
            "type": "number",
            "description": "Close price"
          },
          "h": {
            "type": "number",
            "description": "High price"
          },
          "l": {
            "type": "number",
            "description": "Low price"
          },
          "o": {
            "type": "number",
            "description": "Open price"
          },
          "v": {
            "type": "number",
            "description": "Volume"
          },
          "vw": {
            "type": "number",
            "description": "Volume weighted average"
          },
          "t": {
            "type": "number",
            "description": "Timestamp"
          },
          "n": {
            "type": "number",
            "description": "Number of transactions"
          }
        }
      }
    },
    "count": {
      "type": "number",
      "description": "Number of results"
    },
    "next_url": {
      "type": "string",
      "description": "Next page URL if available"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "polygon-io": {
      "url": "https://gateway.pipeworx.io/polygon-io/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026