Skip to main content

Sigma - Finance Research Agent

Project description

σ SIGMA

The AI-Powered Finance Research Agent

Quick StartFeaturesCommandsArchitectureRoadmap

Version 3.4.1 Python 3.11+ Cross Platform Multi-Provider AI License


What is Sigma?

Sigma isn't just another finance app. It's a conversational AI agent that thinks like a quant, analyzes like a hedge fund, and speaks like your smartest friend who happens to be a CFA.

Quick Start

One Command Install

```bash pip install sigma-terminal ```

Launch Sigma

```bash sigma ```

Or alternatively: python -m sigma

First Launch = Automatic Setup

That's it. Sigma detects it's your first time and walks you through:

  1. Choose AI Provider — Google Gemini, OpenAI, Anthropic, Groq, xAI, or Ollama
  2. Enter API Key — Or use local Ollama (completely free, no key needed!)
  3. Auto-detect Integrations — Finds Ollama, LEAN, and more
  4. Launch Directly — Straight into the beautiful terminal UI

Your config persists at `~/.sigma/` — setup never asks again.


Features

Multi-Provider AI Engine

Switch between providers on the fly. Use free tiers or bring your own keys.

Provider Models Speed Cost Tool Calls
Google Gemini gemini-2.5-flash, 2.5-pro Fast Free tier Native
OpenAI gpt-4o, gpt-4o-mini, o3-mini Fast Paid Native
Anthropic claude-sonnet-4, 3.5-sonnet Fast Paid Native
Groq llama-3.3-70b Very Fast Free tier Native
xAI grok-2, grok-2-mini Fast Paid Native
Ollama llama3.2, mistral, phi3 Local FREE Native

Built-in Rate Limiting — No more API flooding or timeouts.

Error Codes — Clear error codes (E1100-E1400) help you quickly diagnose issues.

Real-Time Market Intelligence

Tool What It Does
`get_stock_quote` Live price, change, volume, market cap
`technical_analysis` RSI, MACD, Bollinger, MAs, Support/Resistance
`get_financial_statements` Income, balance sheet, cash flow
`get_analyst_recommendations` Price targets, ratings, consensus
`get_insider_trades` Who's buying, who's selling
`get_institutional_holders` Track the smart money
`compare_stocks` Multi-stock comparison with metrics
`get_market_overview` Major indices at a glance
`get_sector_performance` Sector rotation analysis

Data APIs

Tool Source What It Does
`get_economic_indicators` Alpha Vantage GDP, inflation, unemployment, CPI
`get_intraday_data` Alpha Vantage 1min to 60min candles
`get_market_news` Alpha Vantage News with sentiment analysis
`polygon_get_quote` Polygon.io Real-time quotes with extended data
`polygon_get_aggregates` Polygon.io Historical bars with custom timespan
`polygon_get_ticker_news` Polygon.io News articles for specific tickers
`search_financial_news` Exa Search Bloomberg, Reuters, WSJ
`search_sec_filings` Exa 10-K, 10-Q, 8-K filings

Backtesting Engine

Strategy Description Use Case
`sma_crossover` 20/50 MA crossover Trend following
`rsi` RSI oversold/overbought Mean reversion
`macd` MACD signal crossovers Momentum
`bollinger` Band breakout/bounce Volatility
`momentum` Price momentum Trend continuation
`breakout` S/R level breaks Breakout trading

Commands

In-App Commands

Command Description
`/help` Comprehensive help with examples
`/clear` Clear chat history
`/keys` Configure API keys (improved!)
`/models` Show available models
`/status` Current configuration
`/provider <name>` Switch AI provider
`/model <name>` Switch model
`/setkey <p> <k>` Set API key for provider
`/backtest` Show backtesting strategies

Keyboard Shortcuts

Shortcut Action
`Tab` Autocomplete suggestion
`Ctrl+L` Clear chat
`Ctrl+M` Show models
`Ctrl+H` Toggle quick help
`Esc` Cancel operation

Configuration

Config Location

``` ~/.sigma/ |-- config.env # API keys and settings └── .first_run_complete # First-run marker ```

Error Codes

Code Range Category Example
E1000-1099 General E1002: Timeout
E1100-1199 API Keys E1101: Invalid API key
E1200-1299 Provider E1202: Model not found
E1300-1399 Data E1300: Symbol not found
E1400-1499 Network E1400: Connection error

Changelog

v3.4.1 (Current)

  • Color-Coded Returns — Green/red highlighting for gains/losses
  • 6 New Analysis Tools — Valuation, risk, earnings, dividends, options, peer comparison
  • Revamped Help Section — Beautiful organized /help with 29 tools
  • ASCII Spinner — Clean terminal-friendly animation
  • No Emojis — Professional text-only interface

v3.4.0

  • Improved API Key Management — Beautiful `/keys` interface with URLs
  • Polygon.io Integration — Real-time quotes, aggregates, news
  • xAI Grok Support — Full support for Grok-2 and Grok-2-mini
  • Error Codes — Structured error codes (E1000-E1499)
  • Updated Models — Removed deprecated, added latest versions
  • Enhanced AI — Maximum helpfulness with proactive insights
  • Modern UI — Gradient blues, improved styling
  • Cross-Platform — Works on macOS, Linux, Windows

v3.3.x

  • Auto-setup on first launch
  • LEAN auto-detection
  • API rate limiting
  • Ollama native tool calls
  • Alpha Vantage & Exa integration

Acknowledgments

Built with Textual, Rich, yfinance, Plotly, LEAN

AI: Google GeminiOpenAIAnthropicGroqxAIOllama

Data: Polygon.ioAlpha VantageExa


σ — Finance Research AI Agent

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.4.1.tar.gz (141.8 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.4.1-py3-none-any.whl (143.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sigma_terminal-3.4.1.tar.gz
  • Upload date:
  • Size: 141.8 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.4.1.tar.gz
Algorithm Hash digest
SHA256 1da3482c246009c18d606dde4688c0a580c5e64fbe08151f8676aabd99cc2e98
MD5 a9b5b8a9b3afa55e8e78e680233af5f1
BLAKE2b-256 a798be0e811c96614a088ef08183e9c4849420e7dcf6d19e74401c52020c3701

See more details on using hashes here.

Provenance

The following attestation bundles were made for sigma_terminal-3.4.1.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.4.1-py3-none-any.whl.

File metadata

  • Download URL: sigma_terminal-3.4.1-py3-none-any.whl
  • Upload date:
  • Size: 143.4 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.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d778302ed5b1baeda17a5d4f56e4b256f2b9b7bd190a0b9d754b3416f842fb0f
MD5 dbda662b86828fae6790340fae6a8030
BLAKE2b-256 7d870b21dba9450ce41bf16cfe77da427c7ccd5fc8fb25d83cb7d3c9b8bf0d80

See more details on using hashes here.

Provenance

The following attestation bundles were made for sigma_terminal-3.4.1-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