sigma-terminal 2.0.1__tar.gz → 3.2.0__tar.gz

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.
Files changed (57) hide show
  1. {sigma_terminal-2.0.1 → sigma_terminal-3.2.0}/.gitignore +53 -30
  2. sigma_terminal-3.2.0/LICENSE +25 -0
  3. sigma_terminal-3.2.0/PKG-INFO +298 -0
  4. sigma_terminal-3.2.0/README.md +238 -0
  5. sigma_terminal-3.2.0/homebrew/README.md +250 -0
  6. sigma_terminal-3.2.0/homebrew/sigma-cli.rb +143 -0
  7. sigma_terminal-3.2.0/homebrew/sigma.rb +36 -0
  8. sigma_terminal-3.2.0/pyproject.toml +106 -0
  9. sigma_terminal-3.2.0/scripts/build.sh +81 -0
  10. sigma_terminal-3.2.0/scripts/create_app.py +366 -0
  11. sigma_terminal-3.2.0/sigma/__init__.py +185 -0
  12. sigma_terminal-3.2.0/sigma/__main__.py +6 -0
  13. sigma_terminal-3.2.0/sigma/analytics/__init__.py +636 -0
  14. sigma_terminal-3.2.0/sigma/app.py +612 -0
  15. sigma_terminal-3.2.0/sigma/backtest.py +372 -0
  16. sigma_terminal-3.2.0/sigma/charts.py +407 -0
  17. sigma_terminal-3.2.0/sigma/cli.py +434 -0
  18. sigma_terminal-3.2.0/sigma/comparison.py +611 -0
  19. sigma_terminal-3.2.0/sigma/config.py +195 -0
  20. sigma_terminal-3.2.0/sigma/core/__init__.py +5 -0
  21. sigma_terminal-3.2.0/sigma/core/engine.py +493 -0
  22. sigma_terminal-3.2.0/sigma/core/intent.py +595 -0
  23. sigma_terminal-3.2.0/sigma/core/models.py +544 -0
  24. sigma_terminal-3.2.0/sigma/data/__init__.py +681 -0
  25. sigma_terminal-3.2.0/sigma/data/models.py +130 -0
  26. sigma_terminal-3.2.0/sigma/llm.py +401 -0
  27. sigma_terminal-3.2.0/sigma/monitoring.py +666 -0
  28. sigma_terminal-3.2.0/sigma/portfolio.py +697 -0
  29. sigma_terminal-3.2.0/sigma/reporting.py +658 -0
  30. sigma_terminal-3.2.0/sigma/robustness.py +675 -0
  31. sigma_terminal-3.2.0/sigma/setup.py +358 -0
  32. sigma_terminal-3.2.0/sigma/strategy.py +753 -0
  33. {sigma_terminal-2.0.1 → sigma_terminal-3.2.0}/sigma/tools/backtest.py +23 -5
  34. sigma_terminal-3.2.0/sigma/tools.py +617 -0
  35. sigma_terminal-3.2.0/sigma/visualization.py +766 -0
  36. sigma_terminal-2.0.1/.env.example +0 -47
  37. sigma_terminal-2.0.1/LICENSE +0 -42
  38. sigma_terminal-2.0.1/PKG-INFO +0 -222
  39. sigma_terminal-2.0.1/README.md +0 -181
  40. sigma_terminal-2.0.1/homebrew/README.md +0 -375
  41. sigma_terminal-2.0.1/pyproject.toml +0 -79
  42. sigma_terminal-2.0.1/scripts/build.sh +0 -59
  43. sigma_terminal-2.0.1/sigma/__init__.py +0 -9
  44. sigma_terminal-2.0.1/sigma/__main__.py +0 -6
  45. sigma_terminal-2.0.1/sigma/app.py +0 -947
  46. sigma_terminal-2.0.1/sigma/core/__init__.py +0 -18
  47. sigma_terminal-2.0.1/sigma/core/agent.py +0 -205
  48. sigma_terminal-2.0.1/sigma/core/config.py +0 -119
  49. sigma_terminal-2.0.1/sigma/core/llm.py +0 -794
  50. sigma_terminal-2.0.1/sigma/core/models.py +0 -153
  51. sigma_terminal-2.0.1/sigma/setup.py +0 -455
  52. sigma_terminal-2.0.1/sigma/tools/__init__.py +0 -5
  53. sigma_terminal-2.0.1/sigma/tools/charts.py +0 -400
  54. sigma_terminal-2.0.1/sigma/tools/financial.py +0 -1457
  55. sigma_terminal-2.0.1/sigma/ui/__init__.py +0 -1
  56. sigma_terminal-2.0.1/tests/__init__.py +0 -1
  57. sigma_terminal-2.0.1/tests/test_financial.py +0 -57
@@ -1,5 +1,3 @@
1
- # Sigma - Development Files
2
-
3
1
  # Byte-compiled / optimized / DLL files
4
2
  __pycache__/
5
3
  *.py[cod]
@@ -37,14 +35,12 @@ pip-delete-this-directory.txt
37
35
  # Unit test / coverage reports
38
36
  htmlcov/
39
37
  .tox/
40
- .nox/
41
38
  .coverage
42
39
  .coverage.*
43
40
  .cache
44
41
  nosetests.xml
45
42
  coverage.xml
46
43
  *.cover
47
- *.py,cover
48
44
  .hypothesis/
49
45
  .pytest_cache/
50
46
 
@@ -52,6 +48,35 @@ coverage.xml
52
48
  *.mo
53
49
  *.pot
54
50
 
51
+ # Django stuff:
52
+ *.log
53
+ local_settings.py
54
+
55
+ # Flask stuff:
56
+ instance/
57
+ .webassets-cache
58
+
59
+ # Scrapy stuff:
60
+ .scrapy
61
+
62
+ # Sphinx documentation
63
+ docs/_build/
64
+
65
+ # PyBuilder
66
+ target/
67
+
68
+ # Jupyter Notebook
69
+ .ipynb_checkpoints
70
+
71
+ # pyenv
72
+ .python-version
73
+
74
+ # celery beat schedule file
75
+ celerybeat-schedule
76
+
77
+ # SageMath parsed files
78
+ *.sage.py
79
+
55
80
  # Environments
56
81
  .env
57
82
  .venv
@@ -61,37 +86,35 @@ ENV/
61
86
  env.bak/
62
87
  venv.bak/
63
88
 
64
- # IDEs
65
- .idea/
66
- .vscode/
67
- *.swp
68
- *.swo
69
- *~
89
+ # Spyder project settings
90
+ .spyderproject
91
+ .spyproject
70
92
 
71
- # Jupyter Notebook
72
- .ipynb_checkpoints
93
+ # Rope project settings
94
+ .ropeproject
73
95
 
74
- # pyenv
75
- .python-version
96
+ # mkdocs documentation
97
+ /site
76
98
 
77
99
  # mypy
78
100
  .mypy_cache/
79
- .dmypy.json
80
- dmypy.json
81
-
82
- # Pyre type checker
83
- .pyre/
84
-
85
- # Sigma specific
86
- .sigma/
87
- *.db
88
- *.sqlite
89
- *.sqlite3
90
101
 
91
- # Logs
92
- *.log
93
- logs/
102
+ # IDE
103
+ .idea/
104
+ .vscode/
105
+ *.swp
106
+ *.swo
107
+ *~
94
108
 
95
- # OS files
109
+ # macOS
96
110
  .DS_Store
97
- Thumbs.db
111
+ .AppleDouble
112
+ .LSOverride
113
+ ._*
114
+
115
+ # Sigma specific
116
+ *.dmg
117
+ *.app
118
+ Sigma.app/
119
+ output/
120
+ exports/
@@ -0,0 +1,25 @@
1
+ PROPRIETARY SOFTWARE LICENSE
2
+
3
+ Copyright (c) 2024-2026 Sigma. All Rights Reserved.
4
+
5
+ NOTICE: This software and its documentation are proprietary to Sigma
6
+ and are protected by copyright law and international treaties.
7
+
8
+ RESTRICTIONS:
9
+ 1. This software is licensed, not sold.
10
+ 2. You may not copy, modify, distribute, sell, or transfer this software.
11
+ 3. You may not reverse engineer, decompile, or disassemble this software.
12
+ 4. You may not use this software for commercial purposes without written permission.
13
+ 5. You may not remove or alter any proprietary notices or labels.
14
+
15
+ DISCLAIMER:
16
+ THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+
20
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
21
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
22
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
23
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
24
+
25
+ For licensing inquiries, contact: legal@sigma.finance
@@ -0,0 +1,298 @@
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>
@@ -0,0 +1,238 @@
1
+ # Sigma
2
+
3
+ <div align="center">
4
+
5
+ ```
6
+ _____ _
7
+ / ___/(_)___ _____ ___ ____ _
8
+ \__ \/ / __ `/ __ `__ \/ __ `/
9
+ ___/ / / /_/ / / / / / / /_/ /
10
+ /____/_/\__, /_/ /_/ /_/\__,_/
11
+ /____/
12
+ ```
13
+
14
+ **Finance Research Agent**
15
+
16
+ Native macOS | Multi-Provider AI | Real-Time Data
17
+
18
+ ---
19
+
20
+ [Installation](#installation) | [Usage](#usage) | [Commands](#commands) | [Configuration
21
+ ](#configuration)
22
+
23
+ ---
24
+
25
+ ## Overview
26
+
27
+ 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.
28
+
29
+ ---
30
+
31
+ ## Installation
32
+
33
+ ## Via Brew
34
+
35
+ ```bash
36
+ brew tap desenyon/sigma
37
+ brew install sigma
38
+ # or if you want app (experimental)
39
+ brew install --cask sigma
40
+ ```
41
+
42
+ ### Via pip
43
+
44
+ ```bash
45
+ pip install sigma-terminal
46
+ sigma --setup
47
+ ```
48
+
49
+ ### From source
50
+
51
+ ```bash
52
+ git clone https://github.com/desenyon/sigma.git
53
+ cd sigma
54
+ pip install -e .
55
+ sigma --setup
56
+ ```
57
+
58
+ ---
59
+
60
+ ## Usage
61
+
62
+ ### Interactive Mode
63
+
64
+ ```bash
65
+ sigma
66
+ ```
67
+
68
+ Launch the full terminal interface with:
69
+
70
+ - Natural language queries with autocomplete
71
+ - Real-time market data
72
+ - Interactive charts and analysis
73
+ - Conversation history
74
+
75
+ ### CLI Mode
76
+
77
+ ```bash
78
+ sigma ask "analyze AAPL technicals"
79
+ sigma quote AAPL MSFT GOOGL
80
+ sigma compare NVDA AMD INTC
81
+ sigma backtest TSLA --strategy macd_momentum
82
+ sigma chart SPY --period 1y
83
+ ```
84
+
85
+ ---
86
+
87
+ ## Commands
88
+
89
+ | Command | Description |
90
+ | --------------------------- | ----------------------- |
91
+ | `sigma` | Launch interactive mode |
92
+ | `sigma ask "<query>"` | Ask a question |
93
+ | `sigma quote <symbols>` | Get stock quotes |
94
+ | `sigma compare <symbols>` | Compare multiple stocks |
95
+ | `sigma backtest <symbol>` | Run a backtest |
96
+ | `sigma chart <symbol>` | Generate a chart |
97
+ | `sigma --setup` | Run setup wizard |
98
+ | `sigma --status` | Show configuration |
99
+ | `sigma --list-models` | List available models |
100
+
101
+ ### Interactive Commands
102
+
103
+ | Command | Description |
104
+ | -------------------- | ------------------------ |
105
+ | `/help` | Show available commands |
106
+ | `/clear` | Clear chat history |
107
+ | `/keys` | Configure API keys |
108
+ | `/models` | Show available models |
109
+ | `/provider <name>` | Switch AI provider |
110
+ | `/backtest` | Show backtest strategies |
111
+ | `/status` | Show configuration |
112
+ | `/export` | Export conversation |
113
+
114
+ ---
115
+
116
+ ## Features
117
+
118
+ ### AI Providers
119
+
120
+ | Provider | Models | Notes |
121
+ | ------------- | ------------------------------------- | ------------------- |
122
+ | Google Gemini | gemini-2.0-flash, 1.5-pro | Free tier available |
123
+ | OpenAI | gpt-4o, gpt-4o-mini | Best reasoning |
124
+ | Anthropic | Claude claude-sonnet-4-20250514, Opus | Deep analysis |
125
+ | Groq | Llama 3.3 70B | Ultra-fast |
126
+ | xAI | Grok 2 | Real-time knowledge |
127
+ | Ollama | Llama, Mistral, Phi | Local, private |
128
+
129
+ ### Market Data
130
+
131
+ - Real-time quotes and price data
132
+ - Historical OHLCV with adjustments
133
+ - Technical indicators (RSI, MACD, Bollinger, MAs)
134
+ - Fundamental data and financials
135
+ - Analyst recommendations
136
+ - Insider and fund activity
137
+
138
+ ### Analysis
139
+
140
+ - Performance metrics (Sharpe, Sortino, Calmar)
141
+ - Risk analysis (VaR, drawdowns, volatility)
142
+ - Sector and market overview
143
+ - Multi-asset comparison
144
+ - Regime detection
145
+ - Seasonality patterns
146
+
147
+ ### Backtesting
148
+
149
+ | Strategy | Description |
150
+ | ---------------------- | ---------------------------- |
151
+ | `sma_crossover` | SMA 20/50 crossover |
152
+ | `rsi_mean_reversion` | RSI oversold/overbought |
153
+ | `macd_momentum` | MACD signal crossover |
154
+ | `bollinger_bands` | Bollinger band bounce |
155
+ | `dual_momentum` | Absolute + relative momentum |
156
+ | `breakout` | Price breakout system |
157
+
158
+ ### Visualization
159
+
160
+ - Candlestick charts with volume
161
+ - Technical overlays
162
+ - Performance curves
163
+ - Comparison charts
164
+
165
+ ---
166
+
167
+ ## Configuration
168
+
169
+ Configuration is stored in `~/.sigma/`.
170
+
171
+ ### Environment Variables
172
+
173
+ ```bash
174
+ export GOOGLE_API_KEY="your-key"
175
+ export OPENAI_API_KEY="your-key"
176
+ export ANTHROPIC_API_KEY="your-key"
177
+ ```
178
+
179
+ ### Config File
180
+
181
+ Create `~/.sigma/config.env`:
182
+
183
+ ```
184
+ DEFAULT_PROVIDER=google
185
+ DEFAULT_MODEL=gemini-2.0-flash
186
+ GOOGLE_API_KEY=your-key
187
+ ```
188
+
189
+ ---
190
+
191
+ ## Keyboard Shortcuts
192
+
193
+ | Shortcut | Action |
194
+ | ----------- | ------------------ |
195
+ | `Ctrl+L` | Clear screen |
196
+ | `Ctrl+K` | Configure API keys |
197
+ | `Ctrl+M` | Show models |
198
+ | `Ctrl+C` | Exit |
199
+ | `Tab` | Autocomplete |
200
+ | `Up/Down` | History navigation |
201
+
202
+ ---
203
+
204
+ ## Examples
205
+
206
+ ```bash
207
+ # Get a quick stock overview
208
+ sigma ask "give me a summary of AAPL"
209
+
210
+ # Technical analysis
211
+ sigma ask "what do the technicals say about NVDA?"
212
+
213
+ # Compare stocks
214
+ sigma ask "compare AAPL MSFT GOOGL performance this year"
215
+
216
+ # Backtest a strategy
217
+ sigma ask "backtest SMA crossover on SPY for 2 years"
218
+
219
+ # Market overview
220
+ sigma ask "how are the markets doing today?"
221
+
222
+ # Sector analysis
223
+ sigma ask "which sectors are performing best?"
224
+ ```
225
+
226
+ ---
227
+
228
+ ## License
229
+
230
+ Proprietary - See [LICENSE](LICENSE)
231
+
232
+ ---
233
+
234
+ <div align="center">
235
+
236
+ **Sigma v3.2.0 - Finance Research Agent**
237
+
238
+ </div>