The `massive` library is the official Python client for the Massive (formerly Polygon.io) REST and WebSocket APIs. It provides comprehensive access to real-time and historical market data for Stocks, Options, Forex, and Crypto. The library is currently at version 2.5.0 and aims to follow the API's release cadence, often bundling breaking changes and maintaining backward compatibility where feasible.
pip install -U massiveVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the `RESTClient` using an API key (preferably from an environment variable) and fetch historical aggregate bars for a stock like Apple (AAPL). It iterates through the results, printing each aggregate bar.
Update your `pip install` command to `pip install massive` and change import statements from `from polygon import ...` to `from massive import ...`. Existing API keys and `api.polygon.io` endpoints will continue to work for an extended period, but updating is recommended.
Refer to the updated Futures API documentation for the new consolidated endpoint structures and methods. Your existing Futures API calls may need to be refactored.
Adjust your parsing and calculations for stock quote sizes, as they now represent raw share counts. Historical flat files will also be regenerated to reflect this change.
Migrate to the Benzinga News v2 API. The v2 API includes small breaking changes that enabled real-time delivery architecture and provides faster access to news. Consult the Benzinga News v2 documentation for migration details.
Review Massive.com's subscription plans for higher usage limits suitable for your application. Implement robust error handling and retry logic with exponential backoff for API calls.