sigma-terminal 3.3.1__py3-none-any.whl → 3.4.0__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.
@@ -1,19 +1,19 @@
1
- sigma/__init__.py,sha256=kiHQwV8B7SaTTXY4_nYl6o8CSwp4t8yTN8rhnkHCymE,3545
1
+ sigma/__init__.py,sha256=ObKg2a0Db-VNZnKfzNgMloLupgpuH82eezqrjAYIBDg,3602
2
2
  sigma/__main__.py,sha256=JR33oXObSRLsirM_8pvzTIUBr16QXS294WkQRIFI95g,114
3
- sigma/app.py,sha256=O3QK7tJjpS8B_u1r-vbGm5OAumcYxqJhz5gTfa-63uY,28093
3
+ sigma/app.py,sha256=pTwsFqBT_S_xKT8ZxYasVmww5SjlQxg7iBrkf1DXvmc,43146
4
4
  sigma/backtest.py,sha256=7hImn0A4eO6gokWVLKERWqapN1N-T9ohc8Vof1XJo-0,13258
5
- sigma/charts.py,sha256=-mosf43yHrXqZGss_dvhfoi6gAAppRd9YZEtHGagzm8,11815
6
- sigma/cli.py,sha256=e2OfzAH9d8uFYtGvAmvVESv1GcZMC3Rz-Gx0M6qainU,16767
5
+ sigma/charts.py,sha256=nYTwj_58FI_5SJG7VRSv_L8RV-Ge1wnbt5tze4rUhb8,12752
6
+ sigma/cli.py,sha256=HHPkWABtXs0oQ-_CV_nmJ-gmQWtkFiBv-x2OfjTSPGU,16792
7
7
  sigma/comparison.py,sha256=cI0VGSMiQfUjTu5BpSAYUEzo7Kf-yCo0I4kr1S87rgo,21686
8
- sigma/config.py,sha256=K4ak01UEnMZS6pGlCCRAWHQCAjwJwF5fsuojpJaQJ7s,12099
9
- sigma/llm.py,sha256=Y9AsD72zZL09mXMJongffzQlgVs11aq4SBA1vNmQWCs,23745
8
+ sigma/config.py,sha256=k9Kx1433OFd-t-0hjKSPbkR0S0yL3_P3JVsbmrGY7sc,16597
9
+ sigma/llm.py,sha256=eb3n5jQwBEyunv_uP5BrUYQLCmaug_tLk1m-3FN5ldA,29298
10
10
  sigma/monitoring.py,sha256=7iC9DaTX8dFIygwAyEgpFQFpLPQrmLg6UW1bBeB_n7M,22672
11
11
  sigma/portfolio.py,sha256=ySypECWntDfa4pRVrNgxRsNDyOCEEgTOCUhrQIiMgBY,24020
12
12
  sigma/reporting.py,sha256=3qzuG-uITeO2z9ENOst4QcJSY2z8FyJs_eGQVe7JGM4,19157
13
13
  sigma/robustness.py,sha256=rvy-LQx9b7IZRYTI1srnL_yrVWeNAwcUFra0YSD6ZrE,23502
14
- sigma/setup.py,sha256=94Zva-uBbvJhfQRxbOVWaWOz6cGhNW0IVAsXnfLoNto,16715
14
+ sigma/setup.py,sha256=7tJrt1oRyvzQUBdlV0PT8YsYRYS6srx0yFN9245fWxk,16751
15
15
  sigma/strategy.py,sha256=1IucLv3vcWyQgAsMhav6Q1qf-i3yk3obYEdaOkRA4Nw,28881
16
- sigma/tools.py,sha256=PdjDIk6OSoLLIK2Qu31A0_IetD_RJk4WaUnAgnxLAz4,36266
16
+ sigma/tools.py,sha256=W4402K_Vy4YnV_9HccyI_oE_YOLM4bgZb930mjbWy24,46652
17
17
  sigma/visualization.py,sha256=w5amseNd-sO8oCUpE_jnZFQD2xW-Twx6W6kk6xSb-ZA,24749
18
18
  sigma/analytics/__init__.py,sha256=NrcxlzsxMkURMiN-o3Ou6CxFKFX-VD_HDWW8SrI1aDM,22999
19
19
  sigma/core/__init__.py,sha256=vpMwe22zgDRze9LuGumTNvyRS2rzaeAgNd9_4dkaFrk,136
@@ -23,8 +23,8 @@ sigma/core/models.py,sha256=IkpvIK28rvGsjqV9cvC3NhbdiHaRmNzEJUevJkpLGyA,15745
23
23
  sigma/data/__init__.py,sha256=nqFtjuuTGhEO7bs-eVAzesKIf0w7U_38qgkGi5O53Ek,23896
24
24
  sigma/data/models.py,sha256=Zoh4s90ihPPVpUw3Nh5SqInNzf7l-jB8_I1de1OUDNQ,3694
25
25
  sigma/tools/backtest.py,sha256=xYunp_dm46uGBw0pxNcWsSh4UuLmE1xuaHvWzzmcGv4,53869
26
- sigma_terminal-3.3.1.dist-info/METADATA,sha256=NbdZqMduf4cJMbaw-ooiFR230EokHgDyJ0boYmu7QOA,13515
27
- sigma_terminal-3.3.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
28
- sigma_terminal-3.3.1.dist-info/entry_points.txt,sha256=lFpcHMWvr4jUIO-MRrBwKhxWp-AIsRJDaWMU4dOQzlw,121
29
- sigma_terminal-3.3.1.dist-info/licenses/LICENSE,sha256=YGf6UbSNXayxJnonOYohaDbbV1yZQfQ1wyStkTuHS6w,1099
30
- sigma_terminal-3.3.1.dist-info/RECORD,,
26
+ sigma_terminal-3.4.0.dist-info/METADATA,sha256=m0ev5Oyl3i63H1owht9M2KHdFJL8wBvsWBUL9nPVm4E,10488
27
+ sigma_terminal-3.4.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
28
+ sigma_terminal-3.4.0.dist-info/entry_points.txt,sha256=lFpcHMWvr4jUIO-MRrBwKhxWp-AIsRJDaWMU4dOQzlw,121
29
+ sigma_terminal-3.4.0.dist-info/licenses/LICENSE,sha256=YGf6UbSNXayxJnonOYohaDbbV1yZQfQ1wyStkTuHS6w,1099
30
+ sigma_terminal-3.4.0.dist-info/RECORD,,
@@ -1,444 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: sigma-terminal
3
- Version: 3.3.1
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
- <h1 align="center">
62
- <code>σ</code> SIGMA
63
- </h1>
64
-
65
- <p align="center">
66
- <strong>The AI-Powered Finance Research Agent</strong>
67
- </p>
68
-
69
- <p align="center">
70
- <a href="#quick-start">Quick Start</a> •
71
- <a href="#features">Features</a> •
72
- <a href="#commands">Commands</a> •
73
- <a href="#architecture">Architecture</a> •
74
- <a href="#roadmap">Roadmap</a>
75
- </p>
76
-
77
- <p align="center">
78
- <img src="https://img.shields.io/badge/version-3.3.1-blue.svg" alt="Version 3.3.1"/>
79
- <img src="https://img.shields.io/badge/python-3.11+-green.svg" alt="Python 3.11+"/>
80
- <img src="https://img.shields.io/badge/platform-macOS-lightgrey.svg" alt="macOS"/>
81
- <img src="https://img.shields.io/badge/AI-Multi--Provider-purple.svg" alt="Multi-Provider AI"/>
82
- <img src="https://img.shields.io/badge/license-Proprietary-red.svg" alt="License"/>
83
- </p>
84
-
85
- ---
86
-
87
- ## What is Sigma?
88
-
89
- **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.
90
-
91
- ## Quick Start
92
-
93
- ### One Command Install
94
-
95
- ```bash
96
- pip install sigma-terminal
97
- ```
98
-
99
- ### First Launch = Automatic Setup
100
-
101
- ```bash
102
- python -m sigma
103
- ```
104
-
105
- **That's it.** Sigma detects it's your first time and walks you through:
106
-
107
- 1. **Choose AI Provider** — Google Gemini, OpenAI, Anthropic, Groq, xAI, or Ollama
108
- 2. **Enter API Key** — Or use local Ollama (completely free, no key needed!)
109
- 3. **Auto-detect Integrations** — Finds Ollama, LEAN, and more
110
- 4. **Launch Directly** — Straight into the beautiful terminal UI
111
-
112
- Your config persists at `~/.sigma/` — **setup never asks again**.
113
-
114
- ---
115
-
116
- ## Features
117
-
118
- ### Multi-Provider AI Engine
119
-
120
- Switch between providers on the fly. Use free tiers or bring your own keys.
121
-
122
- | Provider | Models | Speed | Cost | Tool Calls |
123
- | ----------------------- | ------------------------- | --------- | ------------------- | ---------- |
124
- | **Google Gemini** | gemini-2.0-flash, 1.5-pro | Fast | Free tier | Native |
125
- | **OpenAI** | gpt-4o, o1-preview | Fast | Paid | Native |
126
- | **Anthropic** | claude-sonnet-4, opus | Fast | Paid | Native |
127
- | **Groq** | llama-3.3-70b | Very Fast | Free tier | Native |
128
- | **xAI** | grok-2 | Fast | Paid | Native |
129
- | **Ollama** | llama3.2, mistral, phi3 | Local | **100% FREE** | Native |
130
-
131
- **Built-in Rate Limiting** — No more API flooding or timeouts. Sigma intelligently manages request rates per provider.
132
-
133
- ### Real-Time Market Intelligence
134
-
135
- Every tool is a function call. The AI decides what to use.
136
-
137
- | Tool | What It Does |
138
- | ------------------------------- | --------------------------------------------- |
139
- | `get_stock_quote` | Live price, change, volume, market cap |
140
- | `technical_analysis` | RSI, MACD, Bollinger, MAs, Support/Resistance |
141
- | `get_financial_statements` | Income, balance sheet, cash flow |
142
- | `get_analyst_recommendations` | Price targets, ratings, consensus |
143
- | `get_insider_trades` | Who's buying, who's selling |
144
- | `get_institutional_holders` | Track the smart money |
145
- | `compare_stocks` | Multi-stock comparison with metrics |
146
- | `get_market_overview` | Major indices at a glance |
147
- | `get_sector_performance` | Sector rotation analysis |
148
-
149
- ### Data APIs
150
-
151
- | Tool | Source | What It Does |
152
- | ------------------------------ | ------------- | --------------------------------------- |
153
- | `get_economic_indicators` | Alpha Vantage | GDP, inflation, unemployment, CPI, etc. |
154
- | `get_intraday_data` | Alpha Vantage | 1min to 60min candles |
155
- | `get_market_news` | Alpha Vantage | News with sentiment analysis |
156
- | `search_financial_news` | Exa | Search Bloomberg, Reuters, WSJ |
157
- | `search_sec_filings` | Exa | 10-K, 10-Q, 8-K filings |
158
- | `search_earnings_transcripts`| Exa | Earnings call transcripts |
159
-
160
- **Alpha Vantage** — Built-in free API key included. Works out of the box.
161
-
162
- **Exa Search** — Optional. Get your key at https://exa.ai and configure during setup.
163
-
164
- ### Backtesting Engine
165
-
166
- Test strategies before risking capital:
167
-
168
- | Strategy | Description | Use Case |
169
- | ----------------- | ----------------------- | ------------------ |
170
- | `sma_crossover` | 20/50 MA crossover | Trend following |
171
- | `rsi` | RSI oversold/overbought | Mean reversion |
172
- | `macd` | MACD signal crossovers | Momentum |
173
- | `bollinger` | Band breakout/bounce | Volatility |
174
- | `momentum` | Price momentum | Trend continuation |
175
- | `breakout` | S/R level breaks | Breakout trading |
176
-
177
- ```bash
178
- # Via CLI
179
- sigma backtest AAPL --strategy sma_crossover --period 2y
180
-
181
- # Via chat
182
- You: "Backtest RSI strategy on SPY for the last year"
183
- ```
184
-
185
- ### LEAN Integration (Auto-Detected!)
186
-
187
- Sigma automatically finds your LEAN/QuantConnect installation:
188
-
189
- ```
190
- ✓ LEAN/QuantConnect detected!
191
- CLI: /usr/local/bin/lean
192
- Directory: /Users/you/Lean
193
-
194
- Enable LEAN integration? [y/n] (y): y
195
- σ LEAN integration enabled
196
- ```
197
-
198
- **Don't have LEAN?** Sigma offers to install it for you:
199
-
200
- ```
201
- ! LEAN/QuantConnect not detected
202
- Would you like to [install/manual/skip] (skip): install
203
-
204
- σ Installing LEAN CLI via pip...
205
- ✓ LEAN CLI installed successfully!
206
- ```
207
-
208
- ### Beautiful Terminal UI
209
-
210
- - **Animated Tool Calls** — Watch `⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏` spin as tools execute
211
- - **Live Ticker Detection** — Type `AAPL` and see `$AAPL` highlighted instantly
212
- - **Smart Autocomplete** — Tab to complete commands and tickers
213
- - **Pulsing σ Indicator** — Subtle animation shows Sigma is thinking
214
- - **Rich Responses** — Markdown tables, formatting, structure
215
-
216
- ---
217
-
218
- ## Commands
219
-
220
- ### In-App Commands
221
-
222
- | Command | Description |
223
- | -------------------- | -------------------------------- |
224
- | `/help` | Comprehensive help with examples |
225
- | `/clear` | Clear chat history |
226
- | `/keys` | Configure API keys |
227
- | `/models` | Show available models |
228
- | `/status` | Current configuration |
229
- | `/provider <name>` | Switch AI provider |
230
- | `/model <name>` | Switch model |
231
- | `/backtest` | Show backtesting strategies |
232
- | `/tickers` | Popular tickers by category |
233
-
234
- ### Keyboard Shortcuts
235
-
236
- | Shortcut | Action |
237
- | ---------- | ----------------------- |
238
- | `Tab` | Autocomplete suggestion |
239
- | `Ctrl+L` | Clear chat |
240
- | `Ctrl+M` | Show models |
241
- | `Ctrl+H` | Toggle quick help |
242
- | `Ctrl+P` | Command palette |
243
- | `Esc` | Cancel operation |
244
-
245
- ### CLI Commands
246
-
247
- ```bash
248
- # Launch interactive mode
249
- sigma
250
-
251
- # Quick queries (no UI)
252
- sigma ask "analyze AAPL"
253
- sigma quote AAPL MSFT NVDA
254
- sigma compare AAPL MSFT GOOGL
255
-
256
- # Backtesting
257
- sigma backtest AAPL --strategy sma_crossover --period 2y
258
-
259
- # Configuration
260
- sigma --setup # Re-run setup wizard
261
- sigma --status # Show current config
262
- sigma --setkey google YOUR_API_KEY
263
- sigma --provider ollama
264
- sigma --model llama3.2
265
- sigma --list-models # Show all available models
266
- ```
267
-
268
- ---
269
-
270
- ## Natural Language Examples
271
-
272
- Sigma understands you. Just talk to it:
273
-
274
- **Analysis**
275
-
276
- ```
277
- "What's happening with AAPL today?"
278
- "Give me a full breakdown of NVDA"
279
- "Is TSLA overvalued right now?"
280
- ```
281
-
282
- **Comparison**
283
-
284
- ```
285
- "Compare NVDA, AMD, and INTC"
286
- "Which is better: GOOGL or META?"
287
- "Show me the Magnificent 7 stocks side by side"
288
- ```
289
-
290
- **Technical**
291
-
292
- ```
293
- "Technical analysis of QQQ"
294
- "What are the support and resistance levels for SPY?"
295
- "Is AAPL overbought?"
296
- ```
297
-
298
- **Fundamentals**
299
-
300
- ```
301
- "What's the P/E ratio of MSFT?"
302
- "Show me AMZN's revenue growth"
303
- "Income statement for GOOGL"
304
- ```
305
-
306
- **Activity**
307
-
308
- ```
309
- "Who are the biggest institutional holders of AAPL?"
310
- "Any insider trading at TSLA?"
311
- "What are analysts saying about META?"
312
- ```
313
-
314
- **Market**
315
-
316
- ```
317
- "How's the market doing?"
318
- "Which sectors are hot right now?"
319
- "Give me a market overview"
320
- ```
321
-
322
- **Backtesting**
323
-
324
- ```
325
- "Backtest SMA crossover on SPY"
326
- "Run RSI strategy on AAPL for 2 years"
327
- "Test momentum strategy on QQQ"
328
- ```
329
-
330
- ---
331
-
332
- ## Configuration
333
-
334
- ### Config Location
335
-
336
- ```
337
- ~/.sigma/
338
- ├── config.env # API keys and settings
339
- └── .first_run_complete # First-run marker
340
- ```
341
-
342
- ### Config File Format
343
-
344
- ```bash
345
- # ~/.sigma/config.env
346
-
347
- # API Keys
348
- GOOGLE_API_KEY=AIzaSy...
349
- OPENAI_API_KEY=sk-...
350
- ANTHROPIC_API_KEY=sk-ant-...
351
- GROQ_API_KEY=gsk_...
352
- XAI_API_KEY=xai-...
353
-
354
- # Defaults
355
- DEFAULT_PROVIDER=google
356
- DEFAULT_MODEL=gemini-2.0-flash
357
-
358
- # Integrations
359
- OLLAMA_HOST=http://localhost:11434
360
- LEAN_ENABLED=true
361
- LEAN_CLI_PATH=/usr/local/bin/lean
362
- LEAN_DIRECTORY=/Users/you/Lean
363
-
364
- # Data
365
- OUTPUT_DIR=/Users/you/Documents/Sigma
366
- CACHE_ENABLED=true
367
- ```
368
-
369
- ---
370
-
371
- ## Roadmap
372
-
373
- ### v3.3.1 (Current)
374
-
375
- - [X] Auto-setup on first launch
376
- - [X] LEAN auto-detection with install option
377
- - [X] API rate limiting (no more timeouts!)
378
- - [X] Ollama native tool call support
379
- - [X] Enhanced ticker recognition
380
- - [X] Animated tool call display
381
- - [X] Pulsing indicator
382
- - [X] Smart autocomplete
383
- - [X] Comprehensive help system
384
- - [X] Alpha Vantage integration (economic data, intraday, news)
385
- - [X] Exa Search integration (financial news, SEC filings, earnings transcripts)
386
-
387
- ### v3.4.0 (Next)
388
-
389
- - [ ] Portfolio tracking & management
390
- - [ ] Watchlists with price alerts
391
- - [ ] Options flow analysis
392
- - [ ] Earnings calendar integration
393
- - [ ] Multi-ticker comparison charts
394
- - [ ] Export to CSV/PDF
395
-
396
- ### v4.0.0 (Future)
397
-
398
- - [ ] Full LEAN backtesting integration
399
- - [ ] Paper trading mode
400
- - [ ] Custom strategy builder (visual)
401
- - [ ] Discord/Slack notifications
402
- - [ ] REST API for external integrations
403
- - [ ] Multi-user support
404
-
405
- ---
406
-
407
- ## Acknowledgments
408
-
409
- Built with:
410
-
411
- - [Textual](https://textual.textualize.io/) — Beautiful TUIs in Python
412
- - [Rich](https://rich.readthedocs.io/) — Rich text formatting
413
- - [yfinance](https://github.com/ranaroussi/yfinance) — Yahoo Finance data
414
- - [Plotly](https://plotly.com/python/) — Interactive charts
415
- - [Pydantic](https://docs.pydantic.dev/) — Data validation
416
-
417
- AI Providers:
418
-
419
- - [Google Gemini](https://ai.google.dev/)
420
- - [OpenAI](https://openai.com/)
421
- - [Anthropic](https://anthropic.com/)
422
- - [Groq](https://groq.com/)
423
- - [xAI](https://x.ai/)
424
- - [Ollama](https://ollama.ai/)
425
-
426
- ---
427
-
428
- ## License
429
-
430
- Proprietary. All rights reserved.
431
-
432
- ---
433
-
434
- <p align="center">
435
- <strong>Built by humans who got tired of slow, clunky finance tools.</strong>
436
- </p>
437
-
438
- <p align="center">
439
- <code>σ</code> — Because your portfolio deserves an AI that actually works.
440
- </p>
441
-
442
- <p align="center">
443
- <sub>Star this repo if Sigma saved you time!</sub>
444
- </p>