Fexter is a Bloomberg-style stock analysis CLI for US equities and ETFs.
- Snapshot quote retrieval
- Deterministic quantitative analysis with pillar scoring
- Exa-enriched news sentiment
- Stock comparison and universe scanning
- Long-only trend + mean-reversion backtesting with parameter sweeps
- SQLite-backed watchlists and response caching
- Human-readable tables with
--jsonoutput for automation
- Install Rust (stable): https://rustup.rs/
- Clone the repository:
git clone https://github.com/Satchit4/Fexter.git
cd Fexter- Create
.envfrom example:
cp .env.example .env- Fill required keys in
.env. For market data, set one of:
FINANCIAL_DATASETS_API_KEYMASSIVE_API_KEY(orPOLYGON_API_KEY)ALPHAVANTAGE_API_KEY
Base URL guidance:
- Massive:
https://api.massive.com(orhttps://api.polygon.io) - Alpha Vantage:
https://www.alphavantage.co - Do not paste a full endpoint URL with query parameters into base URL fields.
- Build:
cargo build- Optional: install globally as
fexter:
cargo install --path .# Quote
fexter -- quote AAPL --range 1mo --interval 1d
# Analyze
fexter -- analyze AAPL --with-llm
# Compare
fexter -- compare MSFT NVDA
# Scan
fexter -- scan --universe top500 --limit 25 --min-score 70
# Backtest single ticker
fexter -- backtest --ticker SPY --from 2022-01-01 --to 2025-01-01 --sweep "fast=10,20,30 slow=50,100,200"
# Backtest universe
fexter -- backtest --universe top500
# Watchlists
fexter -- watchlist create core
fexter -- watchlist add core AAPL
fexter -- watchlist list
# Report
fexter -- report AAPL --with-llm --format mdMost commands support:
- default terminal table output
--jsonmachine-readable output
Default SQLite path:
.fexter/fexter.db
Cache entries are stored in cache_market_data with TTL control via FEXTER_CACHE_TTL_SECS.
Set ...API_KEY: add one market data key (FINANCIAL_DATASETS_API_KEY,MASSIVE_API_KEY,POLYGON_API_KEY, orALPHAVANTAGE_API_KEY).market data API returned 404: check base URL; for Massive usehttps://api.massive.com, for Alpha Vantage usehttps://www.alphavantage.co.EXASEARCH_API_KEY is required: set Exa key in.envfor analyze/scan/report.missing data: provider response schema may differ; verify API base URL override variables.- Slow scan/backtest: reduce universe size or run ticker-specific commands first.
- Never commit live API keys.
- Keep
.envlocal and ignored by git.