Sigma - Finance Research Agent
Project description
σ SIGMA
The AI-Powered Finance Research Agent
Quick Start • Features • Commands • Architecture • Roadmap
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:
- Choose AI Provider — Google Gemini, OpenAI, Anthropic, Groq, xAI, or Ollama
- Enter API Key — Or use local Ollama (completely free, no key needed!)
- Auto-detect Integrations — Finds Ollama, LEAN, and more
- 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 Gemini • OpenAI • Anthropic • Groq • xAI • Ollama
Data: Polygon.io • Alpha Vantage • Exa
σ — Finance Research AI Agent
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1da3482c246009c18d606dde4688c0a580c5e64fbe08151f8676aabd99cc2e98
|
|
| MD5 |
a9b5b8a9b3afa55e8e78e680233af5f1
|
|
| BLAKE2b-256 |
a798be0e811c96614a088ef08183e9c4849420e7dcf6d19e74401c52020c3701
|
Provenance
The following attestation bundles were made for sigma_terminal-3.4.1.tar.gz:
Publisher:
release.yml on desenyon/sigma
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sigma_terminal-3.4.1.tar.gz -
Subject digest:
1da3482c246009c18d606dde4688c0a580c5e64fbe08151f8676aabd99cc2e98 - Sigstore transparency entry: 897031490
- Sigstore integration time:
-
Permalink:
desenyon/sigma@60c2bb07548fdb48a9231b2973115279226554c8 -
Branch / Tag:
refs/tags/v3.4.1 - Owner: https://github.com/desenyon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@60c2bb07548fdb48a9231b2973115279226554c8 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d778302ed5b1baeda17a5d4f56e4b256f2b9b7bd190a0b9d754b3416f842fb0f
|
|
| MD5 |
dbda662b86828fae6790340fae6a8030
|
|
| BLAKE2b-256 |
7d870b21dba9450ce41bf16cfe77da427c7ccd5fc8fb25d83cb7d3c9b8bf0d80
|
Provenance
The following attestation bundles were made for sigma_terminal-3.4.1-py3-none-any.whl:
Publisher:
release.yml on desenyon/sigma
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sigma_terminal-3.4.1-py3-none-any.whl -
Subject digest:
d778302ed5b1baeda17a5d4f56e4b256f2b9b7bd190a0b9d754b3416f842fb0f - Sigstore transparency entry: 897031581
- Sigstore integration time:
-
Permalink:
desenyon/sigma@60c2bb07548fdb48a9231b2973115279226554c8 -
Branch / Tag:
refs/tags/v3.4.1 - Owner: https://github.com/desenyon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@60c2bb07548fdb48a9231b2973115279226554c8 -
Trigger Event:
push
-
Statement type: