Massive.com Python Client (formerly Polygon.io)

2.0.0 · active · verified Sun Apr 19

Official Python client for Massive.com (formerly Polygon.io) REST and WebSocket financial data APIs. Polygon.io rebranded as Massive.com on October 30, 2025. Package renamed from polygon-api-client. Import path changed from 'polygon' to 'massive'. Both api.polygon.io and api.massive.com remain operational. Current stable version follows the polygon-api-client release cadence.

Common errors

Warnings

Install

Imports

Quickstart

Both POLYGON_API_KEY and MASSIVE_API_KEY env vars work. Existing API keys continue to function after rebrand.

import os
from massive import RESTClient

API_KEY = os.environ.get('POLYGON_API_KEY') or os.environ.get('MASSIVE_API_KEY')

with RESTClient(API_KEY) as client:
    resp = client.get_aggs('AAPL', 1, 'day', '2024-01-01', '2024-01-10')
    for agg in resp.results:
        print(agg)

view raw JSON →