Market data for OpenClaw. Does not execute trades — pair with snaptrade-trading for execution.
MethodBest ForREST APIOn-demand quotes, OHLCV bars, historical recordsWebSocketReal-time streaming — live trades, quotes, minute barsFlat FilesBulk historical CSVs — backtesting, ML datasets
bash
bash scripts/setup.sh
source .venv-massive/bin/activate
API keys: https://massive.com/dashboard/keys
python
import os
from massive import Client
client = Client(api_key=os.environ["MASSIVE_API_KEY"])
python
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"})
TaskReadStocks — quotes, trades, OHLCV, fundamentalsreferences/stocks.mdOptions — chains, Greeks, trades, quotesreferences/options.mdFutures — prices, historical barsreferences/futures.mdCrypto — prices, trades, OHLCVreferences/crypto.mdReal-time streamingreferences/websocket.mdBulk historical CSV downloadsreferences/flat-files.md
json
{ "status": "OK", "count": 10, "results": [ ... ] }
Always check status == "OK" before using results.