Loading...
Loading...
Scraper de MarketWatch: quotes, financials (income/balance/cash flow), SEC filings, analyst estimates, options chain, historical OHLCV. Sin API key.
npx skill4agent add gauss314/skills marketwatchpip install requests beautifulsoup4| Script | Descripción |
|---|---|
| fetch_marketwatch.py | Script principal: todos los endpoints |
# Quote + perfil de compañía
python scripts/fetch_marketwatch.py --ticker AAPL --quote --profile
# Income statement anual (por defecto)
python scripts/fetch_marketwatch.py --ticker MSFT --income
# Income statement trimestral
python scripts/fetch_marketwatch.py --ticker AAPL --income --quarterly
# Balance sheet + cash flow trimestral
python scripts/fetch_marketwatch.py --ticker NVDA --balance --cashflow --quarterly
# Todos los financials (income + balance + cashflow)
python scripts/fetch_marketwatch.py --ticker AAPL --financials
# SEC filings (10-K, 10-Q, 8-K)
python scripts/fetch_marketwatch.py --ticker AAPL --sec-filings
# Analyst estimates + target price
python scripts/fetch_marketwatch.py --ticker AAPL --analyst
# Options chain
python scripts/fetch_marketwatch.py --ticker AAPL --options
# Historical OHLCV
python scripts/fetch_marketwatch.py --ticker AAPL --historical
# Todo lo disponible
python scripts/fetch_marketwatch.py --ticker GGAL --all
# A JSON
python scripts/fetch_marketwatch.py --ticker AAPL --all --output aapl.json
# Control de rate limiting
python scripts/fetch_marketwatch.py --ticker AAPL --quote --delay 5| Flag | Data | Frecuencia | Períodos |
|---|---|---|---|
| Precio, cambio, performance (5d, 1m, YTD) | Tiempo real | 1 snapshot |
| Ratios clave, sector, industria, empleados | Actual | 1 snapshot |
| Income Statement | Anual / Trimestral | ~5 años |
| Balance Sheet | Anual / Trimestral | ~5 años |
| Cash Flow Statement | Anual / Trimestral | ~5 años |
| Income + Balance + Cash Flow (atajo) | Según | ~5 años |
| SEC filings (10-K, 10-Q, 8-K) | Histórico | ~20+ entradas |
| Estimaciones, target price, recomendaciones | Trimestral/anual | ~15+ campos |
| Options chain (calls/puts por strike) | Fechas de expiración | Todas disponibles |
| OHLCV histórico diario | Diario | ~1-3 meses |
| Todos los anteriores | Según | - |
| Situación | Síntoma | Solución |
|---|---|---|
| Muchos requests seguidos | 401 Unauthorized | Aumentar |
| IP bloqueada temporalmente | 401 incluso con delay | Esperar 5-10 minutos |
| Headers incorrectos | 401 inmediato | Usar headers de navegador (ya incluidos) |
| Sin session cookies | 401 | El scraper maneja cookies automáticamente |
skills/marketwatch/
├── SKILL.md # Este archivo
├── references/
│ └── REFERENCE.md # Documentación completa de todos los endpoints
└── scripts/
└── fetch_marketwatch.py # Script principal📖 Referencia completa: Para entender en detalle cada endpoint, columnas de options, campos de financials, estructura de historical data, etc., consultá references/REFERENCE.md.