返回 Skill 列表
extension
分类: 数据与分析需要 API Key

Massive(polygon.io) Stock Data Feed

从 Massive(前身为 Polygon.io)获取实时和历史市场数据,供 OpenClaw 交易决策使用。在 OpenClaw 需要时调用此技能。

person作者: player-1101hubclawhub

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