sec-edgar
하는 일
이 스킬은 SEC의 공식 미국 기업 공시와 재무 수치를 가져옵니다. 미국 상장 기업의 원문 자료가 필요한 투자자와 분석가를 위한 스킬입니다.
사용하는 경우
- ✓미국 상장 기업의 최신 10-K나 10-Q 보고서를 원할 때.
- ✓SEC 공시에서 기업이 보고한 매출이나 이익 이력이 필요할 때.
- ✓미국 기업이 제출한 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
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.