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 |
bash scripts/setup.sh
source .venv-massive/bin/activate
API keys: https://massive.com/dashboard/keys
import os
from massive import Client
client = Client(api_key=os.environ["MASSIVE_API_KEY"])
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"})
| 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 |
{ "status": "OK", "count": 10, "results": [ ... ] }
Always check status == "OK" before using results.
共 1 个版本
暂无安全检测报告