sec-edgar
Fungsinya
Skill ini mengambil pengajuan resmi perusahaan AS dan angka keuangan dari SEC. Skill ini untuk investor dan analis yang membutuhkan dokumen sumber untuk perusahaan AS yang terdaftar.
Kapan dipakai
- βSaat Anda menginginkan laporan 10-K atau 10-Q terbaru dari perusahaan AS yang terdaftar.
- βSaat Anda membutuhkan riwayat pendapatan atau laba yang dilaporkan perusahaan dari pengajuan resmi.
- βSaat Anda ingin menemukan pengumuman 8-K yang diajukan perusahaan AS.
Link skill
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/sec-edgar/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTemukan pengajuan 10-K terbaru Apple dan ambil riwayat pendapatannya dari data SEC.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini mencari identifier SEC perusahaan dari ticker-nya, lalu mendaftar pengajuan terbaru dengan tautan ke dokumen. Skill ini juga mengambil angka keuangan yang dilaporkan perusahaan dalam format XBRL.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah mencakup perusahaan di luar AS?
Tidak. SEC EDGAR hanya mencakup perusahaan pelapor AS, sehingga pasar lain memerlukan sumber data lain.
Apakah perlu API key?
Tidak. Endpoint SEC tidak memerlukan kunci, tetapi permintaannya dibatasi per IP, sehingga skill ini mengatur kecepatannya.
Apa itu XBRL?
XBRL adalah format standar yang dipakai perusahaan untuk menandai angka keuangan, sehingga komputer bisa membacanya.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 37k
- Peringkat
- #7552
- Lisensi
- MIT
- Diperbarui
- 1/11/2026
Komentar
- β¦
Skill lain dari repositori ini
vibe-trading
37kMemberi agent Anda perangkat riset keuangan lengkap, mencakup backtest, analisis faktor, penetapan harga opsi, dan data pasar di banyak pasar.
adr-hshare
37kMenunjukkan kepada agent Anda cara membandingkan harga perusahaan Tiongkok yang terdaftar di beberapa pasar, seperti ADR AS dan saham Hong Kong.
akshare
37kMemungkinkan agent Anda mengambil data pasar gratis untuk saham Tiongkok dan global, futures, forex, dan indikator ekonomi, tanpa perlu kunci API.
alpha-zoo
37kMemungkinkan agent Anda menelusuri pustaka faktor saham siap pakai dan menguji seberapa baik sekumpulan faktor itu memprediksi imbal hasil di pasar pilihan.
Skill serupa
gitcrawl
394kMemungkinkan agent Anda mencari arsip issue dan pull request GitHub yang tersimpan, mengelompokkan yang duplikat, dan memeriksa status terkininya di GitHub.
slacrawl
394kMemungkinkan agent Anda mencari dan menghitung pesan di arsip Slack lokal, memeriksa seberapa baru arsip itu, dan menyegarkannya bila diperlukan.
goplaces
394kMembantu agent Anda mencari tempat, mendapatkan detail dan ulasannya, serta menentukan nama tempat memakai Google Places, dengan keluaran JSON untuk skrip.