Registry / http-networking / massive-api-client

massive-api-client

JSON →
library0.0.4pypypi✓ verified 85d ago

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.

pip install massive-api-client
INSTALL
IMPORT
SIG · MASSIVE-API-CLIENT
M
massive-api-client
http-networkingpythonv0.0.4
Install
2.2s avg
Import
976ms
Disk
47MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 2.35s
py 3.11
✓ —
✓ 2.33s
py 3.12
✓ —
✓ 2.1s
py 3.13
✓ —
✓ 2.13s
py 3.9
2/4 runs
2/4 runs
47MB installed
● package 47MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RESTClient
from massive import RESTClient
from polygon import RESTClient
Import path changed from 'polygon' to 'massive' in v2.0.0 as part of the Polygon.io → Massive.com rebrand. Old import still works if using polygon-api-client v1.x.
WebSocketClient
from massive.websocket import WebSocketClient
from polygon.websocket import WebSocketClient

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)
Debug
Known issues
breakingImport path changed from 'polygon' to 'massive' in v2.0.0. 'from polygon import RESTClient' no longer works with the new package.
fix
Update imports to 'from massive import RESTClient' and 'from massive.websocket import WebSocketClient'.
affects: >=2.0.0
breakingDefault API base URL changed from api.polygon.io to api.massive.com in v2.0.0. Both domains remain operational.
fix
If you must use the old endpoint explicitly: RESTClient(API_KEY, base_url='https://api.polygon.io')
affects: >=2.0.0
gotchaExisting POLYGON_API_KEY values continue to work with Massive.com. No key rotation needed.
fix
No action needed. Keep using your existing API key.
affects: all
Errors
Common errors & fixes
ImportError: cannot import name 'RESTClient' from 'polygon'
Using old import path after upgrading to massive-api-client v2.x.
fix
Change 'from polygon import RESTClient' to 'from massive import RESTClient'.
ModuleNotFoundError: No module named 'massive'
Still using polygon-api-client v1.x or package not installed.
fix
Run 'pip install massive-api-client' to get v2.x with the new import path.
401 Client Error: Unauthorized for url: https://api.massive.com
API key not passed or invalid.
fix
Pass API key explicitly: RESTClient(api_key=os.environ['POLYGON_API_KEY']) or set POLYGON_API_KEY env var.
Upgrade
Version history
0.0.4latest on PyPI · released Apr 14, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
90 hits · last 30 days
node
82
Bingbot
1
Perplexity
1
OpenAI (training)
1
Resources
massive-api-client — pip install massive-api-client · libregistry