Skip to content

Your first analysis

In this tutorial you run one analysis command against public market data and read its output. No credentials, database, or instance are required.

You need an engine checkout with the development environment installed.

Terminal window
git clone https://github.com/YOUR-USERNAME/Finance-Guru.git
cd Finance-Guru
uv sync --dev

From the repository root, analyze one year of AAPL history against the SPY benchmark.

Terminal window
uv run python src/analysis/risk_metrics_cli.py AAPL --days 252 --benchmark SPY

The command downloads public price history and prints risk metrics for the ticker. Expect values for Value at Risk, Conditional Value at Risk, Sharpe ratio, Sortino ratio, maximum drawdown, and the beta and alpha computed against the benchmark.

The command needs network access to a public market-data provider. If it fails, see Troubleshoot common failures.

Every analysis command documents its own flags.

Terminal window
uv run python src/analysis/risk_metrics_cli.py --help

Try a shorter window or machine-readable output. The help text lists supported values for the confidence level, the VaR method, and the output format.

You ran one command through the engine’s standard shape. Every analysis tool follows the same pattern of a ticker, a window, and optional flags. The CLI reference lists every supported command.

Finance Guru provides educational analysis only. It is not investment, tax, or legal advice. Financial markets involve risk, including loss of principal. Consult appropriately licensed professionals for decisions about your assets.

This page is built from the Wiki Getting Started page and docs/reference/api.md in the repository.