Loading...
Loading...
SEC EDGAR financial data: secfi library + structured JSON income statements, balance sheets, cash flow from XBRL facts.
npx skill4agent add gauss314/skills sec-datasecfipip install secfipandasrequests| Endpoint | Descripción |
|---|---|
| Company Facts | |
| Company Concept | |
secfi.getCiks()companyfacts/CIK{cik}.json| Taxonomía | Empresas | Formularios | Ejemplos |
|---|---|---|---|
| Empresas US | 10-K, 10-Q | AAPL, MSFT, NVDA |
| Empresas extranjeras (Foreign Private Issuers) | 20-F, 6-K | GGAL, BABA, SAP, SPOT |
HEADERS = {"User-Agent": "osojuanferpity@xmail.com"}secfifetch_financials.py# AAPL (US-GAAP) — todo
python scripts/fetch_financials.py --ticker AAPL --all
# GGAL (IFRS) — todo
python scripts/fetch_financials.py --ticker GGAL --all
# Solo income statement
python scripts/fetch_financials.py --ticker MSFT --income
# Solo balance + cash flow
python scripts/fetch_financials.py --ticker NVDA --balance --cashflow
# Todos los conceptos disponibles (no solo core)
python scripts/fetch_financials.py --ticker AAPL --all --all-concepts
# Output personalizado
python scripts/fetch_financials.py --ticker AAPL --all --output data/aapl
# Solo anual (default)
python scripts/fetch_financials.py --ticker AAPL --all
# Incluir trimestral también
python scripts/fetch_financials.py --ticker AAPL --all --quarterly| Flag | Descripción |
|---|---|
| Ticker a consultar (requerido) |
| Fetch de income + balance + cashflow |
| Solo income statement |
| Solo balance sheet |
| Solo cash flow statement |
| Todos los conceptos disponibles en la taxonomía (default: solo core) |
| Solo datos anuales (default) |
| Incluir datos trimestrales |
| Prefijo de archivos de salida |
| Sin salida detallada |
{ticker}_financials.json → JSON completo con todos los conceptos
{ticker}_financials.csv → CSV tabular aplanado (concepto x entry)
{ticker}_financials_income_annual.csv → Matriz concepto x año (income)
{ticker}_financials_balance_annual.csv → Matriz concepto x año (balance)
{ticker}_financials_cashflow_annual.csv → Matriz concepto x año (cash flow)IFRS_MAP| US-GAAP | IFRS (ifrs-full) |
|---|---|
| |
| |
| |
| |
| |
FCF = Operating CF - CAPEX>> Company facts: 4053 KB
>> Income: 13 conceptos x 17 años
>> Balance: 24 conceptos x 17 años
>> Cash flow: 18 conceptos x 17 años
>> FCF 2025: $98.7B>> Company facts: 724 KB
>> Revenue: $7.72B (2024) · Net Income: $1.76B (2024)
>> Balance: Assets $35.3B · Equity $6.58B
>> Cash flow: Operating $3.80B · FCF $3.57B| Límite | Comportamiento |
|---|---|
| ~10 req/s | Límite SEC |
| Sin API key | Público, requiere User-Agent con email |
| Datos históricos | No cambian — cachear respuestas |
| Error | Causa | Solución |
|---|---|---|
| User-Agent inválido | Usar |
| CIK incorrecto | Verificar con |
| No está en SEC | Solo empresas que reportan a SEC |
| Usa IFRS | El script lo resuelve automáticamente |
skills/sec-data/
├── SKILL.md # Este archivo
├── references/
│ └── FINANCIALS_REFERENCE.md # Referencia completa: todos los conceptos + mapping IFRS
└── scripts/
└── fetch_financials.py # Script principal con mapping IFRS automático