Quick Start
You need Python 3.10 or later and a terminal. Commands run on your computer. See the worked examples before installing.
Install
Section titled “Install”Create an isolated environment:
python -m venv .venvActivate it on macOS or Linux:
source .venv/bin/activateOn Windows PowerShell:
.venv\Scripts\Activate.ps1Install the published package:
python -m pip install -U finresearch-cliStarting with 0.1.0b1, the base install includes SEC research, native document reading, market data, and calculators. OCR, PDF tables, and backtests are optional installs. This website documents the current repository; the published version may have fewer commands or output formats. Check finance --list and finance --help. For the current source version used in these examples, install with Git available:
python -m pip install -U "git+https://github.com/TempestShaw/FinanceCLI.git"If your system provides python3 instead of python, use it in the setup commands above.
Check your first result
Section titled “Check your first result”This calculation needs no network connection or API key:
finance formula.cagr start=100 end=150 periods=3 --output mdThe headline should be CAGR = 14.47%: compound annual growth from 100 to 150 over three years. Inspect the full example.
Read a company’s business
Section titled “Read a company’s business”For SEC requests, declare your name and real contact email. Replace the example contact below. On macOS or Linux:
export FINANCE_SEC_USER_AGENT="Your Name your.email@example.com"On Windows PowerShell:
$env:FINANCE_SEC_USER_AGENT="Your Name your.email@example.com"Read an excerpt from Apple’s annual filing:
finance filings.read AAPL section=business max_chars=4000 --output mdCheck the returned filing date and source. max_chars limits the excerpt length. Replace AAPL with another US company ticker. Continue with risks and statements.
Save and reuse
Section titled “Save and reuse”Save a readable excerpt to a new file (choose another filename if this one exists):
finance filings.read AAPL section=business max_chars=4000 --output md > aapl-business.mdFor scripts and agents, use --output json to preserve the result envelope, including errors and warnings.
If something fails
Section titled “If something fails”financenot found: activate the environment where you installed it.- Unknown command or format: check
finance --listandfinance --help; use the source install above for these examples. - SEC request fails: check your contact string and run
finance sources.test sec symbol=AAPL --output json. Keep the reported error; availability depends on the source. - Need options: run
finance filings.read --help.
See Data Sources or report a problem with the command and error, excluding credentials.