sec-edgar
यह क्या करती है
यह स्किल SEC से अमेरिकी कंपनियों की आधिकारिक फ़िलिंग और वित्तीय आँकड़े लाती है। यह उन निवेशकों और विश्लेषकों के लिए है जिन्हें अमेरिकी सूचीबद्ध कंपनियों के मूल दस्तावेज़ चाहिए।
कब इस्तेमाल करें
- ✓जब आप किसी अमेरिकी सूचीबद्ध कंपनी की ताज़ा 10-K या 10-Q रिपोर्ट चाहें।
- ✓जब आपको आधिकारिक फ़िलिंग से कंपनी के राजस्व या आय का इतिहास चाहिए।
- ✓जब आप अमेरिकी कंपनी द्वारा दायर 8-K घोषणा खोजना चाहें।
Skill का लिंक
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/sec-edgar/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Apple की ताज़ा 10-K फ़िलिंग खोजिए और SEC डेटा से उसका राजस्व इतिहास निकालिए।”
हर हफ़्ते 5 नई skills, 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 key चाहिए?
नहीं। SEC एंडपॉइंट को key नहीं चाहिए, पर अनुरोध IP के आधार पर सीमित होते हैं, इसलिए स्किल उन्हें धीमा रखती है।
XBRL क्या है?
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
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
vibe-trading
37kयह आपके एजेंट को वित्त शोध का पूरा टूलकिट देती है, जिसमें बैकटेस्ट, फ़ैक्टर एनालिसिस, ऑप्शन प्राइसिंग और कई बाज़ारों का डेटा शामिल है।
adr-hshare
37kयह आपके एजेंट को दिखाती है कि कई बाज़ारों में लिस्टेड एक चीनी कंपनी के भाव की तुलना कैसे करें, जैसे अमेरिकी ADR और हॉन्गकॉन्ग शेयर।
akshare
37kयह आपके एजेंट को चीनी और वैश्विक शेयरों, फ़्यूचर्स, फ़ॉरेक्स और आर्थिक संकेतकों का मुफ़्त बाज़ार डेटा लेने देती है, बिना API key के।
alpha-zoo
37kयह आपके एजेंट को बने-बनाए स्टॉक फ़ैक्टरों की लाइब्रेरी देखने और चुने हुए बाज़ार पर उनके पूरे समूह के रिटर्न की भविष्यवाणी की क्षमता जाँचने देती है।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।