AI-powered quantitative trading agent harness
Project description
Superinvestor
AI-powered quantitative trading agent harness for US equities.
Features
- Multi-analyst pipeline -- parallel AI agents (fundamental, technical, sentiment) analyze stocks independently, then a synthesizer produces a final recommendation
- Multiple data sources -- Polygon.io (market data), SEC EDGAR (filings, 13F holdings), FRED (economic indicators)
- CLI and TUI -- stream analysis from the command line or explore interactively in the terminal UI
- Pluggable AI providers -- Anthropic Claude (primary), with optional OpenAI and Google support
- Async-first -- built on httpx, aiosqlite, and Pydantic for fast, typed, concurrent workflows
Installation
pip install superinvestor
For development:
git clone https://github.com/SiluPanda/superinvestor.git
cd superinvestor
uv sync --all-extras
Quick Start
Set the required environment variables:
export SUPERINVESTOR_ANTHROPIC_API_KEY="sk-ant-..."
export SUPERINVESTOR_POLYGON_API_KEY="..."
export SUPERINVESTOR_FRED_API_KEY="..."
Run an analysis:
superinvestor analyze AAPL --stream
Launch the terminal UI:
superinvestor tui
Optional Configuration
| Variable | Description |
|---|---|
SUPERINVESTOR_CLAUDE_MODEL |
Override the default Claude model |
SUPERINVESTOR_DB_PATH |
Custom SQLite database path |
Architecture
CLI / TUI
|
v
Orchestrator
|
+---> Fundamental Analyst (AI agent)
+---> Technical Analyst (AI agent)
+---> Sentiment Analyst (AI agent)
|
v
Synthesizer -- merges analyst outputs into a final recommendation
|
v
SQLite (analysis history, cached data)
Each analyst runs as an independent AI agent with access to its own data sources. The orchestrator dispatches them in parallel and collects their reports. The synthesizer weighs all perspectives and produces a single, structured recommendation.
Development
# Run tests
uv run pytest
# Type checking
uv run pyright
# Lint and format
uv run ruff check .
uv run ruff format .
Requires Python 3.12+.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file superinvestor_ai-0.2.0.tar.gz.
File metadata
- Download URL: superinvestor_ai-0.2.0.tar.gz
- Upload date:
- Size: 205.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03c1b0a465e71d7f2b24b1865c816481f60a845bb45a817a095e3fb2c65759f4
|
|
| MD5 |
024baf841c66dd777e8a31e400ac81bf
|
|
| BLAKE2b-256 |
1f098ffde433124523ae27f035b8a91bcd9a3b0d761b30094fbf5c4241053147
|
File details
Details for the file superinvestor_ai-0.2.0-py3-none-any.whl.
File metadata
- Download URL: superinvestor_ai-0.2.0-py3-none-any.whl
- Upload date:
- Size: 70.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bff857bce2c6263288a33e94d081711040e18c1548b9b5d43c0ce5ec3bceb8c
|
|
| MD5 |
e16f9942aef73780133bf143c67400a9
|
|
| BLAKE2b-256 |
550f3a1f48652f5e579589f52aae1b2f5e0048dd1c22347a2e5d40b00fb9faca
|