Massive (formerly Polygon.io) Stocks:aggregates API

The stocks:aggregates API from Massive (formerly Polygon.io) — 7 operation(s) for stocks:aggregates.

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/indicators/ema/{stockTicker} Get the exponential moving average of a stock · Exponential Moving Average (EMA) #
Ask an LLM
“What's the 20-day exponential moving average for Apple stock?”
“Can I get a stock's EMA on split-adjusted prices?”
Tell an agent
Calculate the EMA for stock {stockTicker}.
Get the {window}-period exponential moving average for {stockTicker} on {timespan} bars.
GET /v1/indicators/macd/{stockTicker} Get MACD for a stock · Moving Average Convergence/Divergence (MACD) #
Ask an LLM
“Has a stock's MACD line crossed above its signal line?”
“Can I change the short, long and signal windows for a stock's MACD?”
Tell an agent
Get MACD for stock {stockTicker}.
Compute MACD for {stockTicker} using windows {short_window}, {long_window} and {signal_window}.
GET /v1/indicators/rsi/{stockTicker} Get the relative strength index of a stock · Relative Strength Index (RSI) #
Ask an LLM
“Is a stock overbought or oversold on the RSI?”
“What is a share price's 14-day relative strength index?”
Tell an agent
Get the RSI for stock {stockTicker}.
Calculate a {window}-period RSI for {stockTicker}.
GET /v1/indicators/sma/{stockTicker} Get the simple moving average of a stock · Simple Moving Average (SMA) #
Ask an LLM
“Is a stock trading above its 200-day simple moving average?”
“What's the 50-day SMA of a share price?”
Tell an agent
Calculate the simple moving average for stock {stockTicker}.
Get the {window}-period SMA for {stockTicker} on {timespan} bars.
GET /v2/aggs/grouped/locale/us/market/stocks/{date} Get daily OHLC for every US stock · Grouped Daily (Bars) #
Ask an LLM
“Can I get the open, high, low and close for every US stock on one day?”
“Can the whole-market daily bars include OTC securities?”
Tell an agent
Get grouped daily bars for all US stocks on {date}.
Show every stock's OHLC for {date}, including OTC set to {include_otc}.
GET /v2/aggs/ticker/{stocksTicker}/prev Get a stock's previous-day OHLC · Previous Close #
Ask an LLM
“What did a stock close at yesterday?”
“What were the prior session's high, low and volume for a share?”
Tell an agent
Get the previous close for stock {stocksTicker}.
Show yesterday's OHLC bar for {stocksTicker}.
GET /v2/aggs/ticker/{stocksTicker}/range/{multiplier}/{timespan}/{from}/{to} Get stock price bars over a date range · Aggregates (Bars) #
Ask an LLM
“Can I get 5-minute candles for a stock across a date range?”
“What were a stock's daily bars for the past year, adjusted for splits?”
Tell an agent
Get {multiplier}-{timespan} bars for {stocksTicker} from {from} to {to}.
Pull stock candles for {stocksTicker} between {from} and {to}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/massive-com:massive-com-stocks-aggregates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

massive-com-stocks-aggregates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: The future of fintech.
  title: Polygon Stocks:aggregates API
  version: 1.0.0
servers:
- description: Polygon Platform API
  url: https://api.polygon.io
- description: Polygon Platform API (Staging)
  url: https://api.staging.polygon.io
security:
- apiKey: []
tags:


# --- truncated at 32 KB (73 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/massive-com/refs/heads/main/openapi/massive-com-stocks-aggregates-api-openapi.yml