Skip to content

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.

Run these commands after installation:

Terminal window
finance sources.list --output json
finance sources.status --output json

sources.list shows known providers and capabilities. sources.status checks package imports and configured environment variables without running connectivity probes.

These areas work from the default package install, subject to normal provider availability:

AreaEnables
SEC filingsFiling discovery, filing sections, XBRL statement rows, and filing reports through filings.*.
DocumentsNative PDF/HTML text extraction, document scanning, windows, table extraction, and OCR through document.*.
Yahoo FinanceQuotes, OHLCV, fundamentals, calendars, sectors, industries, and screens through market.*, fundamentals.*, calendar.*, sector.*, industry.*, and screen.*.
News and transcriptsPublic GDELT news search/analysis and public transcript pages through news.*, transcripts.*, and kpi.*.
CalculatorsDeterministic finance formulas and valuation math through formula.* and valuation.*.
BacktestsBuilt-in VectorBT strategy runs, tuning, and factor payload helpers through backtest.*.

Some provider-backed commands use environment variables:

VariableEnables
FMP_API_KEYFinancial Modeling Prep consensus estimates.
ALPHAVANTAGE_API_KEY or ALPHA_VANTAGE_API_KEYAlpha Vantage market data fallback.
ALPACA_API_KEY and ALPACA_API_SECRETAlpaca market-data fallback.
FINANCE_SEC_USER_AGENTOptional SEC request identity string for EDGAR access.

Finance CLI reads these variables at runtime. It does not write API keys into project files or persistent config.

AreaCommands
SEC filingsfilings.*, document.*, ir.*
Market datamarket.*, price.*, valuation.*
News contextnews.*, price.context
Transcripts and KPIstranscripts.*, kpi.*
Formulas and valuationformula.*, valuation.*, estimates.*
Backtestingbacktest.*

Use sources.test when you want a lightweight validation query:

Terminal window
finance sources.test yfinance symbol=AAPL --output json
finance sources.test sec symbol=AAPL --output json
finance sources.test all symbol=MSFT timeout=60 --output json

The result includes provider-level ok, configured, status, latency, capabilities, and summary fields. For command-specific examples, use the namespace pages under Command Reference.