Massive(polygon.io) Stock Data Feed

Data & APIs

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.

Install

openclaw skills install massive-api-data

Massive (formerly Polygon.io) — Data Feed Skill

Market data for OpenClaw. Does not execute trades — pair with snaptrade-trading for execution.

MethodBest For
REST APIOn-demand quotes, OHLCV bars, historical records
WebSocketReal-time streaming — live trades, quotes, minute bars
Flat FilesBulk 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

TaskRead
Stocks — quotes, trades, OHLCV, fundamentalsreferences/stocks.md
Options — chains, Greeks, trades, quotesreferences/options.md
Futures — prices, historical barsreferences/futures.md
Crypto — prices, trades, OHLCVreferences/crypto.md
Real-time streamingreferences/websocket.md
Bulk historical CSV downloadsreferences/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