Massive (formerly Polygon.io) Indices:aggregates API

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

Operations 6

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/{indicesTicker} Get the exponential moving average of an index · Exponential Moving Average (EMA) #
Ask an LLM
“What's the exponential moving average of the S&P 500 index?”
“Can I get an EMA for a market index over a custom window?”
Tell an agent
Calculate the EMA for index {indicesTicker}.
Get the {window}-period exponential moving average of {indicesTicker}.
GET /v1/indicators/macd/{indicesTicker} Get MACD for an index · Moving Average Convergence/Divergence (MACD) #
Ask an LLM
“Is MACD signaling a trend change on the Nasdaq-100 index?”
“Can I tune the long window for an index MACD?”
Tell an agent
Get MACD for index {indicesTicker}.
Compute MACD on {indicesTicker} with long window {long_window}.
GET /v1/indicators/rsi/{indicesTicker} Get the relative strength index of an index · Relative Strength Index (RSI) #
Ask an LLM
“Is the broad market index overbought on RSI?”
“What is the daily RSI of a stock market index?”
Tell an agent
Get the RSI for index {indicesTicker}.
Calculate a {window}-period RSI for {indicesTicker} on {timespan} bars.
GET /v1/indicators/sma/{indicesTicker} Get the simple moving average of an index · Simple Moving Average (SMA) #
Ask an LLM
“Is an index trading above its 200-day simple moving average?”
“Can I get the simple moving average of a market index?”
Tell an agent
Calculate the simple moving average of index {indicesTicker}.
Get the {window}-period SMA for {indicesTicker}.
GET /v2/aggs/ticker/{indicesTicker}/prev Get an index's previous-day OHLC · Previous Close #
Ask an LLM
“Where did an index close on the prior trading day?”
“What were yesterday's open, high, low and close for a market index?”
Tell an agent
Get the previous close for index {indicesTicker}.
Show yesterday's OHLC for {indicesTicker}.
GET /v2/aggs/ticker/{indicesTicker}/range/{multiplier}/{timespan}/{from}/{to} Get index value bars over a date range · Aggregates (Bars) #
Ask an LLM
“Can I get hourly bars for an index across a date range?”
“What were the daily values of a market index last quarter?”
Tell an agent
Get {multiplier}-{timespan} bars for {indicesTicker} from {from} to {to}.
Pull index candles for {indicesTicker} 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-indices-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-indices-aggregates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: The future of fintech.
  title: Polygon Indices: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 (57 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/massive-com/refs/heads/main/openapi/massive-com-indices-aggregates-api-openapi.yml