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.1.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.1-py3-none-any.whl (60.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: superinvestor_ai-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 cce0aeee77e9de4d0506d0945efb626b3158a3361f3b4ae3cd265bfb7589faf1
MD5 d732ad1d215982f7e940cd728fda69df
BLAKE2b-256 325ef60b16579e8d0c3884d97a9305620744c399241fd1df229b767dda72a830

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for superinvestor_ai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0fcefc90b4d6da72a555a178163fbe4091b39667aa0e18a81a1d4b2f45665ba7
MD5 f6d424a23ee62bff80e101903c1ae2c5
BLAKE2b-256 c19564ea7575577ca0d79015b62985b575b82897fdc080873774b7b25ad69136

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