Quick Start
Install
Section titled “Install”python -m pip install -U finresearch-cliVerify The CLI
Section titled “Verify The CLI”Check the command registry and local source readiness:
finance --listfinance sources.status --output jsonRun a first set of research commands:
finance filings.recent AAPL forms=10-K,10-Q limit=3finance filings.statement COST statement=balance query="Common Stock"finance formula.margin numerator=11969 denominator=254453finance market.quote AAPLfinance backtest.run sma_cross AAPL 2020-01-01 2024-12-31 fast=20 slow=100First JSON Output
Section titled “First JSON Output”Most commands return JSON by default. formula.* commands are a good first check because they do not need network access:
finance formula.margin numerator=11969 denominator=254453 --output json{ "ok": true, "data": { "margin": 0.04703815635893466, "margin_pct": 4.7038156358934655, "inputs": { "numerator": 11969.0, "denominator": 254453.0 }, "method": "numerator / denominator" }, "error": null, "warnings": []}Use --output text for readable terminal output when a command supports it.
Documents
Section titled “Documents”Use document commands after you have a local PDF, local HTML file, or URL:
finance document.read ./deck.pdf max_pages=3 --output jsonfinance document.scan ./filing.html format=html query="operating lease costs" window=1200 --output jsonfinance document.window ./filing.html format=html match_id=char_52000_52200 direction=next chars=4000 --output jsonfinance help filingsfinance filings.statement --helpfinance document.scan --help