Skip to content

Quick Start

You need Python 3.10 or later and a terminal. Commands run on your computer. See the worked examples before installing.

Create an isolated environment:

Terminal window
python -m venv .venv

Activate it on macOS or Linux:

Terminal window
source .venv/bin/activate

On Windows PowerShell:

Terminal window
.venv\Scripts\Activate.ps1

Install the published package:

Terminal window
python -m pip install -U finresearch-cli

Starting 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:

Terminal window
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.

This calculation needs no network connection or API key:

Terminal window
finance formula.cagr start=100 end=150 periods=3 --output md

The headline should be CAGR = 14.47%: compound annual growth from 100 to 150 over three years. Inspect the full example.

For SEC requests, declare your name and real contact email. Replace the example contact below. On macOS or Linux:

Terminal window
export FINANCE_SEC_USER_AGENT="Your Name your.email@example.com"

On Windows PowerShell:

Terminal window
$env:FINANCE_SEC_USER_AGENT="Your Name your.email@example.com"

Read an excerpt from Apple’s annual filing:

Terminal window
finance filings.read AAPL section=business max_chars=4000 --output md

Check 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 a readable excerpt to a new file (choose another filename if this one exists):

Terminal window
finance filings.read AAPL section=business max_chars=4000 --output md > aapl-business.md

For scripts and agents, use --output json to preserve the result envelope, including errors and warnings.

  • finance not found: activate the environment where you installed it.
  • Unknown command or format: check finance --list and finance --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.