sec-edgar
できること
このスキルは、米国企業の公式の開示書類と財務数値を、SECから取得します。米国上場企業の一次資料が必要な投資家やアナリスト向けです。
使う場面
- ✓米国上場企業の最新の10-Kや10-Qを取得したいとき。
- ✓公式の開示書類から、企業が報告した売上や利益の履歴が必要なとき。
- ✓米国企業が提出した8-Kの発表を探したいとき。
スキルのリンク
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/sec-edgar/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Appleの最新の10-Kを探し、SECのデータから売上の履歴を取得してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、ティッカーから企業のSEC識別子を調べ、書類へのリンク付きで最近の開示を一覧にします。また、企業がXBRL形式で報告した財務数値も取得します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
SEC EDGAR
Overview
The U.S. Securities and Exchange Commission (SEC) publishes free, no-auth JSON endpoints for every reporting company on its EDGAR system: a ticker-to-CIK directory, a recent-filings index, and the full set of XBRL ("companyfacts") financial concepts a company has reported. This skill documents how Vibe-Trading fetches that data through the bundled sec_edgar_client transport and the get_sec_filings agent tool.
This is the fetch skill — it covers how to get filing-index rows, document URLs, and us-gaap metric series out of EDGAR. The separate edgar-sec-filings skill is the methodology layer (how to read a 10-K, score insider activity, interpret 8-K items); for any actual data retrieval it delegates here.
Scope is the United States only. EDGAR has no coverage of A-shares, HK, or other non-U.S. markets — route those through tushare / yfinance / akshare instead.
Link convention: every link below that points into
references/is written relative to this document (references/...) — the form GitHub resolves when someone opens the file in a browser. Theread_filetool resolves the same string against the skill that owns it, so the agent and a human reader reach one file. Keep the relative form when adding new docs, and keep reference paths unique across skills: a path two skills both carry is reported as ambiguous rather than guessed.
Quick Start
Preferred path — the get_sec_filings tool (read-only, throttled, returns strict JSON):
{ "ticker": "AAPL", "form": "10-K", "limit": 5 }
{ "ticker": "MSFT", "metric": "Revenues", "limit": 8 }
The tool resolves the ticker to a CIK, fetches the filing index (optionally filtered by form), and — when metric is set — also pulls the XBRL series for that us-gaap concept. See sec-edgar/references/get_sec_filings_tool.md for the full parameter and envelope contract.
Script path — call the sec_edgar_client transport directly when you need raw JSON the tool does not surface (e.g. company address, all units of a concept):
from backtest.loaders.sec_edgar_client import cik_for, get_submissions, get_company_facts
cik = cik_for("AAPL") # "0000320193", or None if not in the SEC table
submissions = get_submissions(cik) # recent-filings index + company metadata
facts = get_company_facts(cik) # all reported XBRL concepts
A runnable end-to-end example lives at sec-edgar/scripts/sec_filings_example.py.
Parameter & Format Notes
- Ticker: U.S. equity symbol, case-insensitive (
AAPL,msft). Resolved to a CIK via the SEC company-tickers table; an unlisted ticker returns an error envelope (tool) orNone(cik_for). - CIK: the SEC Central Index Key, normalized to a zero-padded 10-digit string (
320193→"0000320193"). The submissions and companyfacts endpoints require the padded form; document URLs use the un-padded form. - Form: SEC form type, case-insensitive (
10-K,10-Q,8-K,DEF 14A,4). Omit to return all recent forms. - Metric: an XBRL
us-gaapconcept name (Revenues,NetIncomeLoss,Assets,StockholdersEquity). Case-sensitive — these are exact taxonomy element names. - Dates: SEC returns ISO
YYYY-MM-DDstrings (e.g.2023-09-30). - Return shape: the tool returns a JSON-string envelope; the client returns decoded JSON (
dict).
Reference Docs
- sec_edgar_client transport —
cik_for,get_submissions,get_company_facts, CIK padding, throttle bucket, contact User-Agent. - get_sec_filings tool — parameters, success/error envelope,
filings[]andmetricfield shapes. - Endpoints & rate limits — the three public endpoints, secid/CIK rules, fair-access policy, env overrides.
- Common forms & XBRL concepts — frequently used form types and us-gaap concept names.
Scripts
- End-to-end fetch example — ticker → CIK → recent 10-Ks → a metric series, using the bundled client.
Notes
- Free, no API key: EDGAR is public. The only requirement is a descriptive
User-Agentcarrying a contact address; the client ships a compliant default and honors theVIBE_TRADING_SEC_UAoverride. - Rate-limited by IP: the SEC throttles per source IP and temporarily blocks clients that burst without a contact UA. Every request routes
よくある質問
米国以外の企業も対象ですか?
いいえ。SEC EDGARは米国の報告企業のみを対象とするため、他の市場には別のデータソースが必要です。
APIキーが必要ですか?
いいえ。SECのエンドポイントにはキーは不要ですが、IPごとにリクエスト数が制限されているため、スキルは調整しながら送ります。
XBRLとは何ですか?
企業が財務数値にタグを付けるための標準形式で、コンピューターが読めるようにするものです。
詳細
作者による元の説明
U.S. SEC EDGAR fetch interface — resolve a ticker to its CIK, list recent filings (10-K / 10-Q / 8-K and friends) with primary-document URLs, and pull XBRL companyfacts financial series. Free, no API key; rate-limited by IP so every request is throttled and carries a contact User-Agent. United States only.
repo: HKUDS/Vibe-Trading
人気
- GitHubのスター
- 37k
- ランキング
- #7552
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
vibe-trading
37kバックテスト、ファクター分析、オプション価格、多くの市場にまたがる市場データを含む、金融リサーチの完全なツールキットをエージェントに与えます。
adr-hshare
37k中国企業が複数の市場に上場している価格差、例えば米国のADRと香港株の差を比べる方法をエージェントに示します。
akshare
37kエージェントが、APIキーなしで、中国と世界の株式、先物、外国為替、経済指標の無料の市場データを取得できるよう支援します。
alpha-zoo
37k既製のストックファクターのライブラリを閲覧し、選んだ市場で一群のファクターがリターンをどれだけ予測するかを検証できるよう支援します。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。