Skip to main content

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

superinvestor_ai-0.1.0.tar.gz (197.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

superinvestor_ai-0.1.0-py3-none-any.whl (60.6 kB view details)

Uploaded Python 3

File details

Details for the file superinvestor_ai-0.1.0.tar.gz.

File metadata

  • Download URL: superinvestor_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 197.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.11

File hashes

Hashes for superinvestor_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 793f4959421d5f2c7179446a99e962a78861075acbdc48c1a84d9779e325b402
MD5 f2e4e7660751ec9d98dc9dad4f28f35c
BLAKE2b-256 ef432e41c63d2483e5f174fa0fae50d327be5fb1cf3e620a16f1a55692af8f08

See more details on using hashes here.

File details

Details for the file superinvestor_ai-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for superinvestor_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08b25910c05587969ef93cb890caafa99529e07f978f4a43202773813c003942
MD5 7fe778e933d4019ecbfd2a7f52cc97cc
BLAKE2b-256 fa81cfe6f52368377e5b4e63da4f8e1fb0a0e8bcb1de167fed4e795078612615

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page