Massive(polygon.io) Stock Data Feed
Fetch real-time and historical market data from Massive (formerly Polygon.io) for use in OpenClaw's trading decisions. Use this skill whenever OpenClaw needs...
Latest: v1.0.0
Initial release of the massive-data-feed skill for real-time and historical market data via Massive (formerly Polygon.io).
- Fetches stock, options, futures, index, forex, and crypto data for OpenClaw.
- Supports REST API (on-demand), WebSocket (real-time streaming), and Flat Files (bulk downloads).
- Requires Massive API key; S3 credentials optional for bulk Flat File access.
- Includes best practices for secure credential handling and describes plan-related data and connection limits.
- Provides reference documentation links for asset-specific data features.
Full description
Fetch real-time and historical market data from Massive (formerly Polygon.io) for use in OpenClaw's trading decisions. Use this skill whenever OpenClaw needs stock quotes, options chains, futures prices, crypto prices, OHLCV bars, trades, or any other market data. Triggers on any request for price data, market data, historical bars, real-time streaming, or backtesting data across stocks, options, futures, indices, forex, and crypto.
Massive (formerly Polygon.io) — Data Feed Skill
Market data for OpenClaw. Does not execute trades — pair with snaptrade-trading for execution.
| Method | Best For |
|---|---|
| REST API | On-demand quotes, OHLCV bars, historical records |
| WebSocket | Real-time streaming — live trades, quotes, minute bars |
| Flat Files | Bulk historical CSVs — backtesting, ML datasets |
Setup
bash scripts/setup.sh
source .venv-massive/bin/activate
API keys: https://massive.com/dashboard/keys
SDK Initialization
import os
from massive import Client
client = Client(api_key=os.environ["MASSIVE_API_KEY"])
Raw HTTP (alternative)
import requests
API_KEY = os.environ["MASSIVE_API_KEY"]
BASE_URL = "https://api.massive.com/v1"
resp = requests.get(f"{BASE_URL}/stocks/trades",
params={"apiKey": API_KEY, "ticker": "AAPL"})
Reference Files
| Task | Read |
|---|---|
| Stocks — quotes, trades, OHLCV, fundamentals | references/stocks.md |
| Options — chains, Greeks, trades, quotes | references/options.md |
| Futures — prices, historical bars | references/futures.md |
| Crypto — prices, trades, OHLCV | references/crypto.md |
| Real-time streaming | references/websocket.md |
| Bulk historical CSV downloads | references/flat-files.md |
Response Format
{ "status": "OK", "count": 10, "results": [ ... ] }
Always check status == "OK" before using results.
Constraints
- Free plan: 15-min delayed data, 5 REST requests/min
- Real-time data requires a paid plan
- WebSocket: one connection per asset class by default
- Flat Files available ~11:00 AM ET the following trading day
