Data Sources And Keys
Finance CLI combines public providers, local parsers, and optional credentialed data sources. Use this page to understand which commands are available after a default install and which environment variables unlock provider-specific features.
Check Local Readiness
Section titled “Check Local Readiness”Run these commands after installation:
finance sources.list --output jsonfinance sources.status --output jsonsources.list shows known providers and capabilities. sources.status checks package imports and configured environment variables without running connectivity probes.
Default Install
Section titled “Default Install”These areas work from the default package install, subject to normal provider availability:
| Area | Enables |
|---|---|
| SEC filings | Filing discovery, filing sections, XBRL statement rows, and filing reports through filings.*. |
| Documents | Native PDF/HTML text extraction, document scanning, and windows through document.*. |
| Yahoo Finance | Quotes, OHLCV, fundamentals, calendars, sectors, industries, and screens through market.*, fundamentals.*, calendar.*, sector.*, industry.*, and screen.*. |
| News and transcripts | Public transcript pages through transcripts.*. |
| Calculators | Deterministic finance formulas and valuation math through formula.* and valuation.*. |
Optional Capabilities
Section titled “Optional Capabilities”Starting with 0.1.0b1, install these only when you need them:
| Capability | Install |
|---|---|
| PDF table extraction | python -m pip install -U "finresearch-cli[tables]" |
| OCR and layout parsing | python -m pip install -U "finresearch-cli[ocr]" |
| VectorBT backtests and tuning | python -m pip install -U "finresearch-cli[backtest]" |
Combine extras as "finresearch-cli[tables,ocr,backtest]". In a local checkout, use ".[tables,ocr,backtest]". OCR may download models on first use. If an optional dependency is absent, the command reports an error with its install instruction.
Optional Environment Variables
Section titled “Optional Environment Variables”Some provider-backed commands use environment variables:
| Variable | Enables |
|---|---|
FMP_API_KEY | Financial Modeling Prep consensus estimates. |
ALPHAVANTAGE_API_KEY or ALPHA_VANTAGE_API_KEY | Alpha Vantage market data fallback. |
ALPACA_API_KEY and ALPACA_API_SECRET | Alpaca market-data fallback. |
FINANCE_SEC_USER_AGENT | SEC request identity string for EDGAR access. Set this to a real contact string in CI or production. |
Finance CLI reads these variables at runtime. It does not write API keys into project files or persistent config.
Common Source Areas
Section titled “Common Source Areas”| Area | Commands |
|---|---|
| SEC filings | filings.*, document.*, ir.* |
| Market data | market.*, price.*, valuation.* |
| Event context | price.context, filings.recent |
| Transcripts | transcripts.* |
| Formulas and valuation | formula.*, valuation.*, estimates.* |
| Backtesting | backtest.* |
Provider Tests
Section titled “Provider Tests”Use sources.test when you want a lightweight validation query:
finance sources.test yfinance symbol=AAPL --output jsonfinance sources.test sec symbol=AAPL --output jsonfinance sources.test all symbol=MSFT timeout=60 --output jsonThe result includes provider-level ok, configured, status, latency, capabilities, and summary fields. For command-specific examples, use the namespace pages under Command Reference.