massive
Official Massive (formerly Polygon.io) REST and Websocket client.
What it is and what it does
Massive is the official Python client for the Massive (formerly Polygon.io) market data platform, rebranded on October 30, 2025. It provides both REST and WebSocket interfaces to fetch stock trades, quotes, aggregated bars, and options chain data. The package wraps HTTP calls via urllib3 and WebSocket connections via websockets, handling authentication, pagination, and filtering transparently so you can focus on querying market data rather than managing API details.
The REST client supports automatic pagination by default, fetching all results across pages unless you disable it; it also exposes filter operators (.gt, .gte, .lt, .lte) for refining queries. The WebSocket client streams real-time tick data to a handler function you define. Both clients require an API key from Massive.com and support debug tracing to inspect requests and responses. The package targets Python 3.9 through 3.14 and is actively maintained, with the rebranding preserving backward compatibility so existing integrations continue to work.
Use it for:
- Fetch historical OHLC bars and trade ticks for backtesting trading strategies or analyzing historical price patterns.
- Stream real-time trades and quotes via WebSocket for live market monitoring or algorithmic trading systems.
- Query options chains with strike price and expiration filters to analyze option pricing and volatility surfaces.
- Build financial dashboards that display last trade, last quote, and aggregate data for multiple tickers.
- Retrieve tick-level data for a specific date to audit fills or reconstruct intraday market microstructure.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Official Python client for Massive's REST and WebSocket APIs, providing access to real-time and historical market data including trades, quotes, aggregates, and options chains.
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and is MIT-licensed. Install it if you need programmatic access to Massive's market data APIs; the REST and WebSocket clients are straightforward to use and handle pagination and filtering for you. The main gotcha is that you must obtain an API key and be aware of free-tier rate limits.
Install
massive on PyPI
pip
pip install massiveuv
uv add massivepoetry
poetry add massiveInstalling massive
Before you install
Low friction installation with three lightweight runtime dependencies (certifi, urllib3, websockets). Active maintenance with recent releases; last commit 2026-07-09 and 1496 repository stars indicate ongoing development and community engagement.
License in practice
MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute the package freely provided you include the license notice.
Quickstart
pip install massive
from massive import RESTClient
client = RESTClient(api_key="<API_KEY>")
trades = [t for t in client.list_trades(ticker="AAPL", timestamp="2022-01-04")]
Requires Python 3.9 or higher; API key from Massive.com dashboard required to authenticate requests.
Verify before relying
- Rate limit behavior and free tier usage constraints beyond the general mention of 'usage limitations'.
- Exact pagination defaults and whether all list_* methods support the pagination parameter.
- WebSocket reconnection and error-handling guarantees under network disruption.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — certifi, urllib3, websockets |
| Maintenance | actively maintained — 80 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 280,289/month — #8,113 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: massive-2.8.0-py3-none-any.whl
Keywords: massive, free, rest, stock, market, data, api, massive.com, websocket, client
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
polygon-api-clientProvides REST and WebSocket client libraries…
permissive · top 15,000 on PyPI
coinbase-advanced-pyOfficial Python SDK for the Coinbase Advanced…
permissive · top 15,000 on PyPI
schwab-pyUnofficial wrapper for the Charles Schwab API…
permissive · top 15,000 on PyPI
longbridgeLongbridge provides a Python SDK for accessing…
unclear · top 15,000 on PyPI
python-kraken-sdkProvides REST and WebSocket clients for trading…
permissive · top 15,000 on PyPI
binance-connectorConnects Python applications to Binance's…
permissive · top 15,000 on PyPI
yfinanceFetches financial and market data from Yahoo…
permissive · top 1,000 on PyPI
yahooqueryRetrieves financial data from Yahoo Finance…
permissive · top 15,000 on PyPI
sec-apiA Python client for the SEC-API.io service that…
permissive · top 15,000 on PyPI
smartapi-pythonA Python client library for Angel Broking's…
unclear · top 15,000 on PyPI