Skip to main content

Sigma - Finance Research Agent

Project description

σ SIGMA

The Terminal-Based Financial Research Agent

Version 3.5.5 Python 3.11+ License UI Framework


What is Sigma?

Sigma is a financial analysis terminal powered by modern AI. It unifies natural language research, quantitative backtesting, and real-time market data into a single, high-performance CLI application.

Unlike generic chat tools, Sigma is built for finance:

  • Deterministic Tools: Real APIs for quotes, financials, and news—no hallucinations.
  • Local & Cloud AI: Route queries to OpenAI, Anthropic, Gemini, or run locally with Ollama.
  • Integrated Backtesting: First-class support for LEAN engine to test strategies instantly.
  • Privacy First: Your API keys and strategies stay on your machine.

Installation

Prerequisites

  • Python 3.11+
  • [Optional] Docker (for LEAN) or LEAN CLI
  • [Optional] Ollama (for local inference)

One-Command Setup

Sigma includes an intelligent Setup Agent that handles the heavy lifting.

# Clone and install
pip install sigma-terminal

# Launch (triggers Setup Agent on first run)
python -m sigma

The Setup Agent will:

  1. Detect your OS and Python environment.
  2. Install the LEAN backtesting engine (if missing).
  3. Install and configure Ollama (if missing).
  4. help you add API keys for data providers (Polygon, Alpha Vantage, etc.).

Usage

Sigma is designed for natural language. Just type what you need.

Market Research

"Analyze AAPL and compare it with MSFT for the last 5 years" "Get me the latest earnings report for NVDA and summarize risks" "Show me a chart of SPY vs QQQ YTD"

Quantitative Backtesting

"Backtest a simple moving average crossover on BTC-USD from 2020" "Run a momentum strategy on TSLA, weekly rebalance"

Tool & System Control

"Switch model to local llama3" "List all available tools" "/backtest AAPL -s sma_cross" (Shortcuts available)


Architecture

Sigma v3.5.5 is built on a modular, event-driven architecture:

Component Description
Core Engine Orchestrates intent parsing, tool routing, and result synthesis.
LLM Router Intelligent routing between OpenAI, Anthropic, Google, and Ollama. Handles rate limits and fallbacks.
Tool Registry A typed system connecting the LLM to 30+ financial data functions.
Backtest Service Wraps the LEAN engine to stream logs and results directly to the TUI.
UI (Textual) A multi-pane terminal interface with real-time streaming, trace logs, and plotting.

Configuration

Configuration is stored in ~/.sigma/ and managed automatically. You can also edit it manually:

~/.sigma/config.json:

{
  "default_model": "gpt-4o",
  "ollama_url": "http://localhost:11434",
  "data_providers": {
    "polygon": "ENABLED",
    "yfinance": "FALLBACK"
  }
}

Supported Providers

  • AI: OpenAI, Anthropic (Claude), Google (Gemini), Ollama (Local)
  • Data: Polygon.io, Alpha Vantage, Financial Modeling Prep, YFinance (Default)

License

Proprietary / Closed Source. Copyright (c) 2026 Sigma Team. All Rights Reserved.

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

sigma_terminal-3.5.5.tar.gz (144.1 kB view details)

Uploaded Source

Built Distribution

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

sigma_terminal-3.5.5-py3-none-any.whl (150.6 kB view details)

Uploaded Python 3

File details

Details for the file sigma_terminal-3.5.5.tar.gz.

File metadata

  • Download URL: sigma_terminal-3.5.5.tar.gz
  • Upload date:
  • Size: 144.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sigma_terminal-3.5.5.tar.gz
Algorithm Hash digest
SHA256 e4f6d6cfed8f613288c40db833e63690d4aa7ab5264dc6bba4379831b1b14454
MD5 9bfff97faa227f1d0b440f50ae3be401
BLAKE2b-256 42536efe8f260bd66599da684257e3c9923f6f630b2bc55c692af755d2ae1da1

See more details on using hashes here.

Provenance

The following attestation bundles were made for sigma_terminal-3.5.5.tar.gz:

Publisher: release.yml on desenyon/sigma

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sigma_terminal-3.5.5-py3-none-any.whl.

File metadata

  • Download URL: sigma_terminal-3.5.5-py3-none-any.whl
  • Upload date:
  • Size: 150.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sigma_terminal-3.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 38bcf72fda75977e541c33905072269fe3cc11e33255ce3661c6fc898b761ddf
MD5 8b226e59b48d94a9761fae96c49317ed
BLAKE2b-256 20e45f429ef0348910b4e9f5d1c686ce8a9ce5057035877882c58ca40ce91541

See more details on using hashes here.

Provenance

The following attestation bundles were made for sigma_terminal-3.5.5-py3-none-any.whl:

Publisher: release.yml on desenyon/sigma

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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