Aller au contenu
Skillpedia
Analyse et tableurs37k · #7552

sec-edgar

Ce qu’il fait

Cette compétence récupère les dépôts officiels et les chiffres financiers des sociétés américaines auprès de la SEC. Elle s'adresse aux investisseurs et analystes qui ont besoin de documents sources pour les entreprises américaines cotées.

Quand l’utiliser

  • ✓Quand vous voulez le dernier rapport 10-K ou 10-Q d'une entreprise américaine cotée.
  • ✓Quand vous avez besoin de l'historique des chiffres d'affaires ou des bénéfices publiés dans les dépôts officiels.
  • ✓Quand vous voulez trouver une annonce 8-K déposée par une entreprise américaine.

Lien du skill

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/sec-edgar/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/sec-edgar/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Trouve le dernier 10-K d'Apple et récupère son historique de chiffre d'affaires à partir des données de la SEC.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Elle recherche l'identifiant SEC de l'entreprise à partir de son symbole boursier, puis liste les dépôts récents avec des liens vers les documents. Elle récupère aussi les chiffres financiers publiés par l'entreprise au format XBRL.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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. The read_file tool 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) or None (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-gaap concept name (Revenues, NetIncomeLoss, Assets, StockholdersEquity). Case-sensitive — these are exact taxonomy element names.
  • Dates: SEC returns ISO YYYY-MM-DD strings (e.g. 2023-09-30).
  • Return shape: the tool returns a JSON-string envelope; the client returns decoded JSON (dict).

Reference Docs

Scripts

Notes

  • Free, no API key: EDGAR is public. The only requirement is a descriptive User-Agent carrying a contact address; the client ships a compliant default and honors the VIBE_TRADING_SEC_UA override.
  • Rate-limited by IP: the SEC throttles per source IP and temporarily blocks clients that burst without a contact UA. Every request routes
Questions fréquentes

Couvre-t-elle les entreprises hors des États-Unis ?

Non. EDGAR de la SEC ne couvre que les sociétés américaines qui publient des rapports ; les autres marchés demandent d'autres sources de données.

Faut-il une clé d'API ?

Non. Les points d'accès de la SEC n'en demandent pas, mais les requêtes sont limitées par adresse IP, donc la compétence les espace.

Qu'est-ce que le XBRL ?

Le XBRL est un format standard que les entreprises utilisent pour étiqueter leurs chiffres financiers afin que les ordinateurs puissent les lire.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
37k
Position au classement
#7552
Licence
MIT
Mis à jour
01/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires