sigma-terminal 3.2.0__py3-none-any.whl → 3.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sigma/__init__.py +2 -2
- sigma/app.py +347 -103
- sigma/cli.py +38 -6
- sigma/config.py +176 -5
- sigma/llm.py +256 -18
- sigma/setup.py +98 -16
- sigma/tools.py +431 -5
- sigma_terminal-3.3.1.dist-info/METADATA +444 -0
- {sigma_terminal-3.2.0.dist-info → sigma_terminal-3.3.1.dist-info}/RECORD +12 -12
- sigma_terminal-3.2.0.dist-info/METADATA +0 -298
- {sigma_terminal-3.2.0.dist-info → sigma_terminal-3.3.1.dist-info}/WHEEL +0 -0
- {sigma_terminal-3.2.0.dist-info → sigma_terminal-3.3.1.dist-info}/entry_points.txt +0 -0
- {sigma_terminal-3.2.0.dist-info → sigma_terminal-3.3.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: sigma-terminal
|
|
3
|
-
Version: 3.2.0
|
|
4
|
-
Summary: Sigma - Finance Research Agent
|
|
5
|
-
Project-URL: Homepage, https://github.com/desenyon/sigma
|
|
6
|
-
Project-URL: Documentation, https://github.com/desenyon/sigma/wiki
|
|
7
|
-
Project-URL: Repository, https://github.com/desenyon/sigma
|
|
8
|
-
Author: Sigma Team
|
|
9
|
-
License: Proprietary
|
|
10
|
-
License-File: LICENSE
|
|
11
|
-
Keywords: ai,analytics,backtesting,finance,investment,macos,portfolio,quantitative,research,stocks,terminal,trading
|
|
12
|
-
Classifier: Development Status :: 4 - Beta
|
|
13
|
-
Classifier: Environment :: MacOS X
|
|
14
|
-
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
15
|
-
Classifier: License :: Other/Proprietary License
|
|
16
|
-
Classifier: Operating System :: MacOS
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
-
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
20
|
-
Requires-Python: >=3.11
|
|
21
|
-
Requires-Dist: aiohttp>=3.9.0
|
|
22
|
-
Requires-Dist: anthropic>=0.18.0
|
|
23
|
-
Requires-Dist: google-genai>=1.0.0
|
|
24
|
-
Requires-Dist: groq>=0.4.0
|
|
25
|
-
Requires-Dist: httpx>=0.26.0
|
|
26
|
-
Requires-Dist: kaleido>=0.2.1
|
|
27
|
-
Requires-Dist: numpy>=1.26.0
|
|
28
|
-
Requires-Dist: openai>=1.12.0
|
|
29
|
-
Requires-Dist: pandas>=2.2.0
|
|
30
|
-
Requires-Dist: pillow>=10.2.0
|
|
31
|
-
Requires-Dist: plotext>=5.2.8
|
|
32
|
-
Requires-Dist: plotly>=5.18.0
|
|
33
|
-
Requires-Dist: pydantic-settings>=2.1.0
|
|
34
|
-
Requires-Dist: pydantic>=2.6.0
|
|
35
|
-
Requires-Dist: pyobjc-framework-cocoa>=10.0; sys_platform == 'darwin'
|
|
36
|
-
Requires-Dist: python-dotenv>=1.0.0
|
|
37
|
-
Requires-Dist: requests>=2.31.0
|
|
38
|
-
Requires-Dist: rich>=13.7.0
|
|
39
|
-
Requires-Dist: scipy>=1.12.0
|
|
40
|
-
Requires-Dist: textual>=0.47.0
|
|
41
|
-
Requires-Dist: yfinance>=0.2.36
|
|
42
|
-
Provides-Extra: all
|
|
43
|
-
Requires-Dist: black>=24.0.0; extra == 'all'
|
|
44
|
-
Requires-Dist: lean>=1.0.0; extra == 'all'
|
|
45
|
-
Requires-Dist: mypy>=1.8.0; extra == 'all'
|
|
46
|
-
Requires-Dist: py2app>=0.28.0; extra == 'all'
|
|
47
|
-
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'all'
|
|
48
|
-
Requires-Dist: pytest>=8.0.0; extra == 'all'
|
|
49
|
-
Requires-Dist: ruff>=0.2.0; extra == 'all'
|
|
50
|
-
Provides-Extra: dev
|
|
51
|
-
Requires-Dist: black>=24.0.0; extra == 'dev'
|
|
52
|
-
Requires-Dist: mypy>=1.8.0; extra == 'dev'
|
|
53
|
-
Requires-Dist: py2app>=0.28.0; extra == 'dev'
|
|
54
|
-
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
|
|
55
|
-
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
56
|
-
Requires-Dist: ruff>=0.2.0; extra == 'dev'
|
|
57
|
-
Provides-Extra: lean
|
|
58
|
-
Requires-Dist: lean>=1.0.0; extra == 'lean'
|
|
59
|
-
Description-Content-Type: text/markdown
|
|
60
|
-
|
|
61
|
-
# Sigma
|
|
62
|
-
|
|
63
|
-
<div align="center">
|
|
64
|
-
|
|
65
|
-
```
|
|
66
|
-
_____ _
|
|
67
|
-
/ ___/(_)___ _____ ___ ____ _
|
|
68
|
-
\__ \/ / __ `/ __ `__ \/ __ `/
|
|
69
|
-
___/ / / /_/ / / / / / / /_/ /
|
|
70
|
-
/____/_/\__, /_/ /_/ /_/\__,_/
|
|
71
|
-
/____/
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
**Finance Research Agent**
|
|
75
|
-
|
|
76
|
-
Native macOS | Multi-Provider AI | Real-Time Data
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
[Installation](#installation) | [Usage](#usage) | [Commands](#commands) | [Configuration
|
|
81
|
-
](#configuration)
|
|
82
|
-
|
|
83
|
-
---
|
|
84
|
-
|
|
85
|
-
## Overview
|
|
86
|
-
|
|
87
|
-
Sigma is an AI-powered Finance Research Agent that runs natively on macOS. Ask questions in natural language, get comprehensive market analysis, charts, and backtests in seconds.
|
|
88
|
-
|
|
89
|
-
---
|
|
90
|
-
|
|
91
|
-
## Installation
|
|
92
|
-
|
|
93
|
-
## Via Brew
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
brew tap desenyon/sigma
|
|
97
|
-
brew install sigma
|
|
98
|
-
# or if you want app (experimental)
|
|
99
|
-
brew install --cask sigma
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### Via pip
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
pip install sigma-terminal
|
|
106
|
-
sigma --setup
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### From source
|
|
110
|
-
|
|
111
|
-
```bash
|
|
112
|
-
git clone https://github.com/desenyon/sigma.git
|
|
113
|
-
cd sigma
|
|
114
|
-
pip install -e .
|
|
115
|
-
sigma --setup
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
## Usage
|
|
121
|
-
|
|
122
|
-
### Interactive Mode
|
|
123
|
-
|
|
124
|
-
```bash
|
|
125
|
-
sigma
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
Launch the full terminal interface with:
|
|
129
|
-
|
|
130
|
-
- Natural language queries with autocomplete
|
|
131
|
-
- Real-time market data
|
|
132
|
-
- Interactive charts and analysis
|
|
133
|
-
- Conversation history
|
|
134
|
-
|
|
135
|
-
### CLI Mode
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
sigma ask "analyze AAPL technicals"
|
|
139
|
-
sigma quote AAPL MSFT GOOGL
|
|
140
|
-
sigma compare NVDA AMD INTC
|
|
141
|
-
sigma backtest TSLA --strategy macd_momentum
|
|
142
|
-
sigma chart SPY --period 1y
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
---
|
|
146
|
-
|
|
147
|
-
## Commands
|
|
148
|
-
|
|
149
|
-
| Command | Description |
|
|
150
|
-
| --------------------------- | ----------------------- |
|
|
151
|
-
| `sigma` | Launch interactive mode |
|
|
152
|
-
| `sigma ask "<query>"` | Ask a question |
|
|
153
|
-
| `sigma quote <symbols>` | Get stock quotes |
|
|
154
|
-
| `sigma compare <symbols>` | Compare multiple stocks |
|
|
155
|
-
| `sigma backtest <symbol>` | Run a backtest |
|
|
156
|
-
| `sigma chart <symbol>` | Generate a chart |
|
|
157
|
-
| `sigma --setup` | Run setup wizard |
|
|
158
|
-
| `sigma --status` | Show configuration |
|
|
159
|
-
| `sigma --list-models` | List available models |
|
|
160
|
-
|
|
161
|
-
### Interactive Commands
|
|
162
|
-
|
|
163
|
-
| Command | Description |
|
|
164
|
-
| -------------------- | ------------------------ |
|
|
165
|
-
| `/help` | Show available commands |
|
|
166
|
-
| `/clear` | Clear chat history |
|
|
167
|
-
| `/keys` | Configure API keys |
|
|
168
|
-
| `/models` | Show available models |
|
|
169
|
-
| `/provider <name>` | Switch AI provider |
|
|
170
|
-
| `/backtest` | Show backtest strategies |
|
|
171
|
-
| `/status` | Show configuration |
|
|
172
|
-
| `/export` | Export conversation |
|
|
173
|
-
|
|
174
|
-
---
|
|
175
|
-
|
|
176
|
-
## Features
|
|
177
|
-
|
|
178
|
-
### AI Providers
|
|
179
|
-
|
|
180
|
-
| Provider | Models | Notes |
|
|
181
|
-
| ------------- | ------------------------------------- | ------------------- |
|
|
182
|
-
| Google Gemini | gemini-2.0-flash, 1.5-pro | Free tier available |
|
|
183
|
-
| OpenAI | gpt-4o, gpt-4o-mini | Best reasoning |
|
|
184
|
-
| Anthropic | Claude claude-sonnet-4-20250514, Opus | Deep analysis |
|
|
185
|
-
| Groq | Llama 3.3 70B | Ultra-fast |
|
|
186
|
-
| xAI | Grok 2 | Real-time knowledge |
|
|
187
|
-
| Ollama | Llama, Mistral, Phi | Local, private |
|
|
188
|
-
|
|
189
|
-
### Market Data
|
|
190
|
-
|
|
191
|
-
- Real-time quotes and price data
|
|
192
|
-
- Historical OHLCV with adjustments
|
|
193
|
-
- Technical indicators (RSI, MACD, Bollinger, MAs)
|
|
194
|
-
- Fundamental data and financials
|
|
195
|
-
- Analyst recommendations
|
|
196
|
-
- Insider and fund activity
|
|
197
|
-
|
|
198
|
-
### Analysis
|
|
199
|
-
|
|
200
|
-
- Performance metrics (Sharpe, Sortino, Calmar)
|
|
201
|
-
- Risk analysis (VaR, drawdowns, volatility)
|
|
202
|
-
- Sector and market overview
|
|
203
|
-
- Multi-asset comparison
|
|
204
|
-
- Regime detection
|
|
205
|
-
- Seasonality patterns
|
|
206
|
-
|
|
207
|
-
### Backtesting
|
|
208
|
-
|
|
209
|
-
| Strategy | Description |
|
|
210
|
-
| ---------------------- | ---------------------------- |
|
|
211
|
-
| `sma_crossover` | SMA 20/50 crossover |
|
|
212
|
-
| `rsi_mean_reversion` | RSI oversold/overbought |
|
|
213
|
-
| `macd_momentum` | MACD signal crossover |
|
|
214
|
-
| `bollinger_bands` | Bollinger band bounce |
|
|
215
|
-
| `dual_momentum` | Absolute + relative momentum |
|
|
216
|
-
| `breakout` | Price breakout system |
|
|
217
|
-
|
|
218
|
-
### Visualization
|
|
219
|
-
|
|
220
|
-
- Candlestick charts with volume
|
|
221
|
-
- Technical overlays
|
|
222
|
-
- Performance curves
|
|
223
|
-
- Comparison charts
|
|
224
|
-
|
|
225
|
-
---
|
|
226
|
-
|
|
227
|
-
## Configuration
|
|
228
|
-
|
|
229
|
-
Configuration is stored in `~/.sigma/`.
|
|
230
|
-
|
|
231
|
-
### Environment Variables
|
|
232
|
-
|
|
233
|
-
```bash
|
|
234
|
-
export GOOGLE_API_KEY="your-key"
|
|
235
|
-
export OPENAI_API_KEY="your-key"
|
|
236
|
-
export ANTHROPIC_API_KEY="your-key"
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
### Config File
|
|
240
|
-
|
|
241
|
-
Create `~/.sigma/config.env`:
|
|
242
|
-
|
|
243
|
-
```
|
|
244
|
-
DEFAULT_PROVIDER=google
|
|
245
|
-
DEFAULT_MODEL=gemini-2.0-flash
|
|
246
|
-
GOOGLE_API_KEY=your-key
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
---
|
|
250
|
-
|
|
251
|
-
## Keyboard Shortcuts
|
|
252
|
-
|
|
253
|
-
| Shortcut | Action |
|
|
254
|
-
| ----------- | ------------------ |
|
|
255
|
-
| `Ctrl+L` | Clear screen |
|
|
256
|
-
| `Ctrl+K` | Configure API keys |
|
|
257
|
-
| `Ctrl+M` | Show models |
|
|
258
|
-
| `Ctrl+C` | Exit |
|
|
259
|
-
| `Tab` | Autocomplete |
|
|
260
|
-
| `Up/Down` | History navigation |
|
|
261
|
-
|
|
262
|
-
---
|
|
263
|
-
|
|
264
|
-
## Examples
|
|
265
|
-
|
|
266
|
-
```bash
|
|
267
|
-
# Get a quick stock overview
|
|
268
|
-
sigma ask "give me a summary of AAPL"
|
|
269
|
-
|
|
270
|
-
# Technical analysis
|
|
271
|
-
sigma ask "what do the technicals say about NVDA?"
|
|
272
|
-
|
|
273
|
-
# Compare stocks
|
|
274
|
-
sigma ask "compare AAPL MSFT GOOGL performance this year"
|
|
275
|
-
|
|
276
|
-
# Backtest a strategy
|
|
277
|
-
sigma ask "backtest SMA crossover on SPY for 2 years"
|
|
278
|
-
|
|
279
|
-
# Market overview
|
|
280
|
-
sigma ask "how are the markets doing today?"
|
|
281
|
-
|
|
282
|
-
# Sector analysis
|
|
283
|
-
sigma ask "which sectors are performing best?"
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
---
|
|
287
|
-
|
|
288
|
-
## License
|
|
289
|
-
|
|
290
|
-
Proprietary - See [LICENSE](LICENSE)
|
|
291
|
-
|
|
292
|
-
---
|
|
293
|
-
|
|
294
|
-
<div align="center">
|
|
295
|
-
|
|
296
|
-
**Sigma v3.2.0 - Finance Research Agent**
|
|
297
|
-
|
|
298
|
-
</div>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|