360 Secure SkillHub
360 安全技能中心

Massive Exchange data feed

核心功能是通过REST、WebSocket、Flat Files三种方式,获取股票、期权、期货、加密货币等多品类的实时报价、历史OHLCV数据、交易记录等金融市场数据,支撑OpenClaw的交易决策、回测或机器学习数据集构建。输入需配置API密钥(S3密钥可选),输出为JSON或CSV格式。免费版提供15分钟延迟数据并有限流,实时数据需付费订阅。

player-1101
player-1101
热度 16.02
最近更新 2026-05-07 07:46:47
分类:数据依赖:第三方 API / 代码执行 / 读写文件应用场景:财务 / 市场分析 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add massive-api
Metadata
name
massive-data-feed
description
Fetch real-time and historical market data from the Massive API 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.
provider
{"name":"Massive.com, Inc.","website":"https://massive.com","github":"https://github.com/massive-com","docs":"https://massive.com/docs","description":"Massive.com is a financial market data API provider offering real-time and historical data across US stocks, options, futures, crypto, forex, and indices. Data is sourced directly from proprietary exchange feeds and SEC/FINRA-regulated SIP consolidators. Massive has official client libraries for Python, Go, JavaScript, and Kotlin, and an official MCP server (github.com/massive-com/mcp_massive). This skill uses only the official massive-python-client SDK published by Massive.com, Inc. Note: Massive.com (financial data) is unrelated to any bandwidth-sharing or resource-monetization software that may have previously used this domain.\n"}
credentials
[{"name":"MASSIVE_API_KEY","description":"Massive API key from https://massive.com/dashboard/keys. Used to authenticate REST and WebSocket requests. Treat as sensitive.","required":true},{"name":"MASSIVE_S3_ACCESS_KEY","description":"S3 Access Key from https://massive.com/dashboard/keys. Required only for Flat Files bulk historical downloads. Optional otherwise.","required":false},{"name":"MASSIVE_S3_SECRET_KEY","description":"S3 Secret Key from https://massive.com/dashboard/keys. Required only for Flat Files. Optional otherwise.","required":false}]
warnings
["Store credentials in a .env file or secret manager — never hardcode or log them.","Real-time WebSocket data requires a paid Massive subscription.","One concurrent WebSocket connection per asset class is allowed by default."]

Massive Data Feed Skill

Massive provides three access methods for market data:

Method Best For
REST API On-demand queries — quotes, OHLCV bars, historical records
WebSocket API Real-time streaming — live trades, quotes, minute bars
Flat Files Bulk historical downloads — backtesting, ML datasets

Setup

First-time only:

bash scripts/setup.sh

Required env vars:

MASSIVE_API_KEY=your_api_key_here
# Only needed for Flat Files:
MASSIVE_S3_ACCESS_KEY=your_s3_access_key
MASSIVE_S3_SECRET_KEY=your_s3_secret_key

Get your API key and S3 credentials at: https://massive.com/dashboard/keys


SDK Initialization (REST)

import os
from massive import Client  # massive-python-client

client = Client(api_key=os.environ["MASSIVE_API_KEY"])

Authentication (REST — Alternative: Raw HTTP)

Include your API key either as a query parameter or header:

import requests

API_KEY = os.environ["MASSIVE_API_KEY"]
BASE_URL = "https://api.massive.com/v1"

# Option A: query parameter
resp = requests.get(f"{BASE_URL}/stocks/trades", params={"apiKey": API_KEY, "ticker": "AAPL"})

# Option B: authorization header
resp = requests.get(f"{BASE_URL}/stocks/trades",
    headers={"Authorization": f"Bearer {API_KEY}"},
    params={"ticker": "AAPL"})

Reference Files — Read the relevant one before proceeding

Task Read
Stock quotes, trades, OHLCV bars, fundamentals references/stocks.md
Options chains, Greeks, trades, quotes references/options.md
Futures prices and historical bars references/futures.md
Crypto prices, trades, OHLCV references/crypto.md
Real-time streaming via WebSocket references/websocket.md
Bulk historical CSV downloads references/flat-files.md

Response Format

All REST endpoints return JSON with a consistent structure:

{
  "status": "OK",
  "count": 10,
  "request_id": "abc123",
  "results": [ ... ]
}

Always check status == "OK" before using results.


Important Constraints

  • 15-minute delayed data is available on free plans. Real-time requires a paid plan.
  • Rate limits apply on free plans (5 requests/minute REST). Paid plans have higher limits.
  • WebSocket: one concurrent connection per asset class by default. Contact support for more.
  • Flat Files data for each trading day is available by ~11:00 AM ET the following day.
  • Massive does not execute trades — pair this skill with the snaptrade-trading skill for execution.