Sigma - Finance Research Agent
Project description
σ SIGMA
The Elite Financial Research Terminal
A high-performance, terminal-based research platform for the modern quantitative analyst.
Overview
Sigma v3.6.1 is not just a chatbot—it is a comprehensive financial operating system. Designed for speed, privacy, and precision, Sigma unifies state-of-the-art LLMs with institutional-grade data tools in a minimalist, keyboard-centric interface.
Inspired by the aesthetics of Claude Code and the power of Bloomberg Terminal, Sigma provides a distraction-free environment where natural language commands translate instantly into rigorous financial analysis.
Key Features
- Elite TUI Experience: A "Tokyonight" themed interface with zero latency, generative autocomplete, and real-time ticker recognition.
- Multi-Model Intelligence: Seamlessly route queries to OpenAI o1, Claude 3.5 Sonnet, Gemini 1.5 Pro, or run locally with Ollama (Qwen 2.5).
- Institutional Data: Direct integration with Polygon.io, Alpha Vantage, and Exa Search for hallucination-free market data.
- Quantitative Backtesting: Built-in LEAN Engine support allows you to generate, test, and refine algorithmic strategies in seconds.
- Privacy by Design: All API keys and strategies are stored locally. No cloud dependencies. No data logging.
Quick Start
Prerequisites
- Python 3.11+
- Ollama (Recommended for local intelligence)
- LEAN CLI (Auto-installed for backtesting)
Installation
Sigma features an autonomous Setup Agent that configures your environment automatically.
# 1. Clone the repository
git clone https://github.com/sigma/terminal.git
cd sigma
# 2. Install dependencies
pip install -r requirements.txt
# 3. Launch Sigma (Triggers Setup Agent)
python -m sigma
The Setup Agent will:
- Detect your hardware acceleration (Metal/CUDA).
- Install and pull the optimized local model (
qwen2.5:1.5b). - Configure your API keys securely in
.env. - Initialize the LEAN backtesting engine.
Usage
Sigma is controlled via natural language or slash commands. The interface is designed for flow.
Market Intelligence
"Analyze the correlation between NVDA and SMCI over the last 6 months." "What are the key risk factors in Apple's latest 10-K?" "Visualize the volatility surface for SPY options."
Strategy Development
"Backtest a mean-reversion strategy on BTC-USD using 15-minute bars." "Optimize parameters for a dual-moving average crossover on TSLA."
System Control
/model <name>- Switch active LLM (e.g.,/model gpt-4o)/clear- Reset context window/quit- Exit session
Architecture
Sigma is built on a modular, event-driven architecture designed for extensibility.
| Layer | Component | Description |
|---|---|---|
| Interface | Textual TUI | Async, reactive terminal UI with custom widgets and syntax highlighting. |
| Intelligence | LLM Router | Dynamically routes queries based on complexity and cost (Local vs. Cloud). |
| Data | Tool Registry | Type-safe bridge connecting LLMs to 30+ financial data endpoints. |
| Execution | LEAN Engine | Dockerized backtesting environment for institutional-grade strategy validation. |
Configuration
Configuration is managed via the .env file in your home directory (~/.sigma/config.env) or project root.
# Example .env
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
POLYGON_API_KEY=...
DEFAULT_PROVIDER=ollama
OLLAMA_HOST=http://localhost:11434
Contributing
We welcome contributions from the community! Please see our Contributing Guidelines for details on how to get started.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
For support or inquiries, please open an issue on GitHub or contact the maintainers at support@sigma.terminal.
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.6.1.tar.gz.
File metadata
- Download URL: sigma_terminal-3.6.1.tar.gz
- Upload date:
- Size: 157.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ec36e8c5bba793b05666248613d4895a506cedc515b30b31c0d74ba76ef68fb
|
|
| MD5 |
a062b00176069c7e1b1e8cf7c92b6dff
|
|
| BLAKE2b-256 |
cc7fc2d9e28dfe594441416835c647d119667258782982d4eac717260be5eaab
|
Provenance
The following attestation bundles were made for sigma_terminal-3.6.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.6.1.tar.gz -
Subject digest:
8ec36e8c5bba793b05666248613d4895a506cedc515b30b31c0d74ba76ef68fb - Sigstore transparency entry: 952279743
- Sigstore integration time:
-
Permalink:
desenyon/sigma@c115f39883532011c2a19b7ec5daa65bab4ce709 -
Branch / Tag:
refs/tags/v3.6.1 - Owner: https://github.com/desenyon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c115f39883532011c2a19b7ec5daa65bab4ce709 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sigma_terminal-3.6.1-py3-none-any.whl.
File metadata
- Download URL: sigma_terminal-3.6.1-py3-none-any.whl
- Upload date:
- Size: 158.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 |
d7c65dd8335724319ae80c29e84d41add6900694739b3326db03387292f592b0
|
|
| MD5 |
d003a1f34966b089de4462c2263f89c1
|
|
| BLAKE2b-256 |
98818956c0a797ee7f0824082650245e767b80774bf12e12f2871668a91af3ca
|
Provenance
The following attestation bundles were made for sigma_terminal-3.6.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.6.1-py3-none-any.whl -
Subject digest:
d7c65dd8335724319ae80c29e84d41add6900694739b3326db03387292f592b0 - Sigstore transparency entry: 952279745
- Sigstore integration time:
-
Permalink:
desenyon/sigma@c115f39883532011c2a19b7ec5daa65bab4ce709 -
Branch / Tag:
refs/tags/v3.6.1 - Owner: https://github.com/desenyon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c115f39883532011c2a19b7ec5daa65bab4ce709 -
Trigger Event:
push
-
Statement type: