global-stock-data

作者 simonlin1212已验证

US stock market data for AI coding assistants — zero-auth, official sources. CBOE options with full Greeks + 0DTE flow, FINRA market-wide short volume, SEC EDGAR filing stream, and a free market-wide screener. 13 layers, 30+ endpoints, 11 sources. Every source labeled with its compliance tier.

1,486
Stars
232
Forks
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/simonlin1212/global-stock-data

快速入门

使用 global-stock-data 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

简体中文 | English

global-stock-data

US Market Data for AI Coding Assistants
Options Greeks · 0DTE Flow · SEC Filings · Short Volume · Fundamentals · Screener

License: Apache 2.0 Python 3.9+ GitHub stars Layers Endpoints Sources Zero-Auth

Architecture · Compliance · Quick Start · Endpoints · Data Sources · FAQ

Full-stack market data for US equities — 13 layers · 30+ endpoints · 11 sources · zero-auth · only requests.

Official-source-first (V2.0): CBOE options with full Greeks + 0DTE flow, FINRA market-wide short volume, SEC EDGAR filing stream + a free market-wide screener, Treasury / CFTC / earnings calendar. Every source is labeled with its compliance tier, terms quoted verbatim — "official" does not mean "free to use".

A single self-contained Skill file that turns raw US stock data — scattered across many sources — into a toolkit an AI coding assistant can call directly. You no longer memorize Eastmoney secid prefixes, Yahoo crumb auth flows, or SEC EDGAR CIK mappings. That's all handled.

This project distributes code, not market data. Data is fetched by the user under each source's own terms. For commercial use, rely only on tier-S sources.

Compatible with Claude Code · Codex · OpenClaw. The Skill file is structured Markdown + embedded Python — any AI coding assistant with context injection can use it.


Architecture

US Full-Stack Data · 13-layer architecture · V2.0
│
├── Market Data      Sina + Tencent + Eastmoney push2        Real-time quotes, 25-78 fields
├── K-line           Sina(back to 1984) + Yahoo chart        Daily / weekly / monthly / minute
├── Technical Ind.   MA/EMA + MACD + RSI + KDJ + Bollinger   Pure Python, zero extra deps
├── Fundamentals     Eastmoney + Yahoo + SEC XBRL            Statements + key metrics + holdings
├── Fund Flow        Eastmoney push2his                      Daily main/large/medium/small flow
├── Options          Yahoo crumb                             Options chain (US only)
├── SEC Filing       EDGAR submissions + XBRL                10-K/10-Q/8-K + 503 GAAP metrics (US)
└── Tools            Eastmoney + Yahoo + SEC CIK             Search + market list + news + ticker↔CIK

━━━ New in V2.0 (official-source-first) ━━━
├── Options·CBOE     cdn.cboe.com official feed   ⭐ full chain + IV + delta/gamma/vega/theta/rho + 0DTE + flow
├── Short Volume     FINRA Reg SHO                ⭐ market-wide daily short volume (12,112 symbols) + series
├── Filing Stream    EDGAR daily index + FTS      ⭐ Form 4 / 8-K / 13F same-day + full-text since 2001
├── Market Screener  EDGAR frames                 ⭐ any XBRL tag across the whole market (1,842~5,309 co.) — free
└── Macro / Calendar Treasury + CFTC + Nasdaq     ⭐ yield curve (1M~30Y) + COT + earnings calendar

Compliance tiers

Source terms differ a lot. "Official" does not mean "free to use". These tiers come from reading each source's actual terms of service on 2026-07-24. Quotes are verbatim.

TierCommercialRedistributeSourcesBasis (quoted)
SSEC EDGAR / Treasury / CFTCEDGAR: "Anyone can access and download this information for free", "We allow scripted access". Hard limit 10 req/s, User-Agent required
B⚠️ verify firstFINRAFiles are published for download, but terms prohibit "data mining, scraping or harvesting tools (including robots)" and state "non-commercial use"
C❌ needs permissionCBOE / Nasdaq / Yahoo / Eastmoney / Sina / TencentCBOE requires "approval in advance" + "execution of a license agreement"; Yahoo states personal use only
⛔ ExcludedHKEX (CCASS)Terms prohibit "any 'robot', 'bot', 'spider', 'scraper'..." and apply "whether or not for gain"this tool ships no scraper for it

A working HKEX shareholding layer was built, then removed. Shipping code that violates a source's terms would defeat the point of grading sources in the first place. This project distributes code, not data. For commercial use, rely only on tier S.


Quick start

3 steps, 2 minutes.

# 1. Create the skill directory
mkdir -p ~/.claude/skills/global-stock-data

# 2. Download SKILL.md
curl -o ~/.claude/skills/global-stock-data/SKILL.md \
  https://raw.githubusercontent.com/simonlin1212/global-stock-data/main/SKILL.md

# 3. Install the dependency
pip install requests

⚠️ Before using the SEC layers, set SEC_CONTACT in SKILL.md to your real name and email. SEC requires a declared User-Agent; requests without one are rejected as an Undeclared Automated Tool. The code raises a clear error if you forget.

Launch Claude Code and say "check AAPL's financials" — the skill activates on its own. Codex / OpenClaw users: paste SKILL.md into your system prompt or project context file; the embedded Python runs as-is.


Endpoints

Price — Sina / Tencent / Eastmoney quotes (25-78 fields) · Sina & Yahoo K-line (US back to 1984, daily→minute) · MA/EMA/MACD/RSI/KDJ/Bollinger computed locally.

Value — Eastmoney three statements + GMAININDICATOR (US 49 / HK 75 fields) · Yahoo quoteSummary (23 modules: financials, analysts, institutional holdings) · SEC EDGAR XBRL (503 GAAP metrics).

Flow & positioning ⭐ — CBOE options with full Greeks + IV + 0DTE + unusual-flow detection · FINRA market-wide daily short volume (12,112 symbols) · Eastmoney daily fund flow.

Filings & events ⭐ — EDGAR daily index (same-day Form 4 insider / 8-K / 13F, one day: 547 / 370 / 261) · full-text search since 2001 · 10-K/10-Q/8-K list.

Screener & macro ⭐ — EDGAR frames (any XBRL tag across the whole market, free — net income CY2025Q1 = 5,309 companies) · Treasury yield curve (1M~30Y) · CFTC COT · Nasdaq earnings calendar.

Tools — stock search (CN+EN) · full-market list (US 5925+ / HK 18000+) · news by ticker · ticker↔CIK.

Full endpoint tables

Options ⭐ (US only)

EndpointData
CBOE officialFull chain + IV + delta/gamma/vega/theta/rho, plus 0DTE filtering and unusual-flow detection (vol/OI > 1 = new positioning)
Yahoo (fallback)Options chain, all expiries — no Greeks

Short volume ⭐ (US only)

EndpointData
FINRA Reg SHOMarket-wide daily short volume (12,112 symbols), per-symbol series, ratio ranking

Filing stream ⭐ (US only)

EndpointData
EDGAR daily indexSame-day Form 4 / 8-K / 13F / 144 — one day: 547 / 370 / 261 / 118
EDGAR full-textSearch every filing body back to 2001
EDGAR submissions / XBRLFiling list + structured financials (503 GAAP metrics)

Market screener ⭐ (US only)

EndpointData
EDGAR framesOne XBRL tag across the whole market in one call — a free screener

Macro / calendar ⭐

EndpointData
Treasury / CFTC / NasdaqYield curve (1M~30Y) · COT · earnings calendar (pre/post-market + EPS est.)

Price / value / flow / tools

EndpointData
Sina / Tencent / Eastmoney push2US/HK real-time quotes, 25-78 fields
Sina / Yahoo chartK-line, daily→minute, US back to 1984
Eastmoney datacenter / GMAININDICATORStatements + key metrics (bilingual)
Yahoo quoteSummary23 modules: financials / analysts / institutional holdings
Eastmoney push2hisDaily main/large/medium/small fund flow
Eastmoney search / push2 list / Yahoo search / SEC CIKSearch / full-market list / news / ticker↔CIK

Every source is free, no API key. Yahoo crumb is auto-managed; SEC EDGAR only needs a declared User-Agent.


Usage examples

Just tell your AI assistant:

ScenarioPrompt
0DTE options flow ⭐"Show NVDA's 0DTE options flow — unusual activity"
Short volume ⭐"TSLA's short volume ratio trend this week"
Insider filings ⭐"Any Form 4 insider filings today for my watchlist"
Full-text filings ⭐"Which companies first mentioned 'HBM4' in an 8-K"
Market screener ⭐"Rank all filers by R&D expense for CY2025Q1"
Macro ⭐"What's the 10Y-2Y Treasury spread right now"
US / HK quote"AAPL's price and PE" · "How's Tencent 00700 today"
K-line"Pull TSLA's daily K-line for the past 6 months"
Statements / valuation"Apple's latest income statement" · "BABA's PE/PB/ROE + target"
Institutional holdings"Which institutions hold NVDA, and what %"
Technical analysis"AAPL's MACD and RSI — any golden cross?"
Batch compare"Compare valuations of AAPL MSFT GOOGL"

Data sources

SourceTierAuthCoverage
SEC EDGARSreal UAUS filings / XBRL / filing stream / full-text search / market screener
US TreasurySnoneYield curve (1M~30Y)
CFTCSnoneCOT reports
FINRABnoneUS market-wide daily short volume (verify before commercial use)
CBOECnoneUS options + Greeks + IV + 0DTE (needs Cboe's prior approval)
NasdaqCnoneUS earnings calendar (terms unverified)
Eastmoney (push2 / push2his / datacenter / search)CnoneUS+HK quotes / fund flow / statements / search
Yahoo FinanceCcookie+crumb (auto)US+HK all categories (personal use only)
SinaCnoneUS+HK quotes, US K-line
TencentCnoneUS+HK quotes

Tiers: S = government data, commercial + redistribution OK · B = published files, verify before commercial use · C = needs prior approval or terms unverified, personal research only. See Compliance tiers for the quoted basis. All requests go through direct HTTP with a built-in thread-safe rate limiter (SEC capped at 8 req/s against the official 10).


FAQ

Q: How does this relate to a-stock-data? Sister project. a-stock-data covers China A-shares; global-stock-data covers US and HK. Install both — they don't conflict.

Q: Does Yahoo Finance need an API key? No. The code fetches cookie + crumb automatically and refreshes on expiry.

Q: Any limits on SEC EDGAR? Yes — a declared User-Agent and 10 req/s. Set SEC_CONTACT to your real email; the built-in throttle stays under the limit.

Q: HK options data? No. HK options aren't in Yahoo's coverage and need HKEX's paid feed. The options layer is US only.

Q: Running from a server in mainland China — can it reach Yahoo / SEC? They're overseas and may be flaky on a direct connection. Use a proxy, or lean on the Eastmoney / Sina / Tencent sources.

Q: Can I use it without Claude Code? Yes. SKILL.md is Markdown + embedded Python — Codex, OpenClaw, or any AI coding assistant can read it, and you can copy the Python into your own scripts.


Changelog

See CHANGELOG.md.

Disclaimer

This project provides data-access tools only. It is not investment advice. Investing involves risk.

Support

If this saved you time, a coffee is appreciated ☕

Buy Me a Coffee

Want a data endpoint that isn't here? Open an Issue; sponsors' issues go first.

License

Apache License 2.0Author: Simon Lin · X @linsizhen · Email: simonlin0423@gmail.com

常见问题

What is global-stock-data?

global-stock-data is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by simonlin1212. US stock market data for AI coding assistants — zero-auth, official sources. CBOE options with full Greeks + 0DTE flow, FINRA market-wide short volume, SEC EDGAR filing stream, and a free market-wide screener. 13 layers, 30+ endpoints, 11 sources. Every source labeled with its compliance tier. It has 1,486 GitHub stars.

Is global-stock-data safe to use?

Yes. global-stock-data passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install global-stock-data?

Clone the repository with "git clone https://github.com/simonlin1212/global-stock-data" and add it to your Claude Code skills directory (see the Installation section above). global-stock-data ships a SKILL.md manifest, so compatible agents can discover and load it automatically.

Are there alternatives to global-stock-data?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh global-stock-data against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情