sigma-terminal 2.0.2__py3-none-any.whl → 3.2.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.
- sigma/__init__.py +182 -6
- sigma/__main__.py +2 -2
- sigma/analytics/__init__.py +636 -0
- sigma/app.py +563 -898
- sigma/backtest.py +372 -0
- sigma/charts.py +407 -0
- sigma/cli.py +434 -0
- sigma/comparison.py +611 -0
- sigma/config.py +195 -0
- sigma/core/__init__.py +4 -17
- sigma/core/engine.py +493 -0
- sigma/core/intent.py +595 -0
- sigma/core/models.py +516 -125
- sigma/data/__init__.py +681 -0
- sigma/data/models.py +130 -0
- sigma/llm.py +401 -0
- sigma/monitoring.py +666 -0
- sigma/portfolio.py +697 -0
- sigma/reporting.py +658 -0
- sigma/robustness.py +675 -0
- sigma/setup.py +305 -402
- sigma/strategy.py +753 -0
- sigma/tools/backtest.py +23 -5
- sigma/tools.py +617 -0
- sigma/visualization.py +766 -0
- sigma_terminal-3.2.0.dist-info/METADATA +298 -0
- sigma_terminal-3.2.0.dist-info/RECORD +30 -0
- sigma_terminal-3.2.0.dist-info/entry_points.txt +6 -0
- sigma_terminal-3.2.0.dist-info/licenses/LICENSE +25 -0
- sigma/core/agent.py +0 -205
- sigma/core/config.py +0 -119
- sigma/core/llm.py +0 -794
- sigma/tools/__init__.py +0 -5
- sigma/tools/charts.py +0 -400
- sigma/tools/financial.py +0 -1457
- sigma/ui/__init__.py +0 -1
- sigma_terminal-2.0.2.dist-info/METADATA +0 -222
- sigma_terminal-2.0.2.dist-info/RECORD +0 -19
- sigma_terminal-2.0.2.dist-info/entry_points.txt +0 -2
- sigma_terminal-2.0.2.dist-info/licenses/LICENSE +0 -42
- {sigma_terminal-2.0.2.dist-info → sigma_terminal-3.2.0.dist-info}/WHEEL +0 -0
sigma/__init__.py
CHANGED
|
@@ -1,9 +1,185 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""
|
|
2
|
+
Sigma v3.2.0 - Finance Research Agent
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
An elite finance research agent combining:
|
|
5
|
+
- Multi-provider AI (Google Gemini, OpenAI, Anthropic, Groq, xAI, Ollama)
|
|
6
|
+
- Real-time market data and analytics
|
|
7
|
+
- Advanced charting and visualization
|
|
8
|
+
- Strategy discovery and backtesting
|
|
9
|
+
- Portfolio optimization and risk management
|
|
10
|
+
- Robustness testing and stress analysis
|
|
11
|
+
- Research memo generation and export
|
|
12
|
+
- Monitoring, alerts, and watchlists
|
|
13
|
+
"""
|
|
5
14
|
|
|
6
|
-
|
|
7
|
-
|
|
15
|
+
__version__ = "3.2.0"
|
|
16
|
+
__author__ = "Sigma Team"
|
|
8
17
|
|
|
9
|
-
|
|
18
|
+
# Core functionality
|
|
19
|
+
from .app import launch, SigmaApp
|
|
20
|
+
from .cli import main
|
|
21
|
+
|
|
22
|
+
# Configuration
|
|
23
|
+
from .config import get_settings, save_api_key, LLMProvider
|
|
24
|
+
|
|
25
|
+
# Data tools
|
|
26
|
+
from .tools import (
|
|
27
|
+
get_stock_quote,
|
|
28
|
+
get_stock_history,
|
|
29
|
+
get_company_info,
|
|
30
|
+
get_financial_statements,
|
|
31
|
+
get_analyst_recommendations,
|
|
32
|
+
technical_analysis,
|
|
33
|
+
compare_stocks,
|
|
34
|
+
get_market_overview,
|
|
35
|
+
get_sector_performance,
|
|
36
|
+
TOOLS,
|
|
37
|
+
execute_tool,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
# Backtesting
|
|
41
|
+
from .backtest import run_backtest, get_available_strategies
|
|
42
|
+
|
|
43
|
+
# Analytics
|
|
44
|
+
from .analytics import (
|
|
45
|
+
PerformanceAnalytics,
|
|
46
|
+
RegimeDetector,
|
|
47
|
+
SeasonalityAnalyzer,
|
|
48
|
+
FactorAnalyzer,
|
|
49
|
+
CorrelationAnalyzer,
|
|
50
|
+
MonteCarloSimulator,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
# Comparison
|
|
54
|
+
from .comparison import ComparisonEngine, MacroSensitivityAnalyzer
|
|
55
|
+
|
|
56
|
+
# Strategy
|
|
57
|
+
from .strategy import (
|
|
58
|
+
HypothesisGenerator,
|
|
59
|
+
HypothesisTester,
|
|
60
|
+
RuleConverter,
|
|
61
|
+
StrategyGenerator,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# Portfolio
|
|
65
|
+
from .portfolio import (
|
|
66
|
+
PortfolioOptimizer,
|
|
67
|
+
OptimizationMethod,
|
|
68
|
+
PositionSizer,
|
|
69
|
+
RiskEngine,
|
|
70
|
+
RebalancingEngine,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
# Visualization
|
|
74
|
+
from .visualization import ChartBuilder, ChartRecipes, AutoCaptionGenerator
|
|
75
|
+
|
|
76
|
+
# Reporting
|
|
77
|
+
from .reporting import (
|
|
78
|
+
MemoGenerator,
|
|
79
|
+
ExportEngine,
|
|
80
|
+
ReproducibilityEngine,
|
|
81
|
+
SessionLogger,
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
# Monitoring
|
|
85
|
+
from .monitoring import (
|
|
86
|
+
AlertEngine,
|
|
87
|
+
WatchlistManager,
|
|
88
|
+
DriftDetector,
|
|
89
|
+
ScheduledRunner,
|
|
90
|
+
Alert,
|
|
91
|
+
AlertType,
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
# Robustness
|
|
95
|
+
from .robustness import (
|
|
96
|
+
StressTester,
|
|
97
|
+
OverfittingDetector,
|
|
98
|
+
ExplainabilityEngine,
|
|
99
|
+
SampleSizeValidator,
|
|
100
|
+
BiasDetector,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
# Setup
|
|
104
|
+
from .setup import run_setup, quick_setup
|
|
105
|
+
|
|
106
|
+
__all__ = [
|
|
107
|
+
# Version
|
|
108
|
+
"__version__",
|
|
109
|
+
|
|
110
|
+
# Core
|
|
111
|
+
"launch",
|
|
112
|
+
"main",
|
|
113
|
+
"SigmaApp",
|
|
114
|
+
|
|
115
|
+
# Config
|
|
116
|
+
"get_settings",
|
|
117
|
+
"save_api_key",
|
|
118
|
+
"LLMProvider",
|
|
119
|
+
|
|
120
|
+
# Tools
|
|
121
|
+
"get_stock_quote",
|
|
122
|
+
"get_stock_history",
|
|
123
|
+
"get_company_info",
|
|
124
|
+
"technical_analysis",
|
|
125
|
+
"compare_stocks",
|
|
126
|
+
"TOOLS",
|
|
127
|
+
"execute_tool",
|
|
128
|
+
|
|
129
|
+
# Backtesting
|
|
130
|
+
"run_backtest",
|
|
131
|
+
"get_available_strategies",
|
|
132
|
+
|
|
133
|
+
# Analytics
|
|
134
|
+
"PerformanceAnalytics",
|
|
135
|
+
"RegimeDetector",
|
|
136
|
+
"SeasonalityAnalyzer",
|
|
137
|
+
"FactorAnalyzer",
|
|
138
|
+
"CorrelationAnalyzer",
|
|
139
|
+
"MonteCarloSimulator",
|
|
140
|
+
|
|
141
|
+
# Comparison
|
|
142
|
+
"ComparisonEngine",
|
|
143
|
+
"MacroSensitivityAnalyzer",
|
|
144
|
+
|
|
145
|
+
# Strategy
|
|
146
|
+
"HypothesisGenerator",
|
|
147
|
+
"HypothesisTester",
|
|
148
|
+
"RuleConverter",
|
|
149
|
+
"StrategyGenerator",
|
|
150
|
+
|
|
151
|
+
# Portfolio
|
|
152
|
+
"PortfolioOptimizer",
|
|
153
|
+
"OptimizationMethod",
|
|
154
|
+
"PositionSizer",
|
|
155
|
+
"RiskEngine",
|
|
156
|
+
"RebalancingEngine",
|
|
157
|
+
|
|
158
|
+
# Visualization
|
|
159
|
+
"ChartBuilder",
|
|
160
|
+
"ChartRecipes",
|
|
161
|
+
"AutoCaptionGenerator",
|
|
162
|
+
|
|
163
|
+
# Reporting
|
|
164
|
+
"MemoGenerator",
|
|
165
|
+
"ExportEngine",
|
|
166
|
+
"ReproducibilityEngine",
|
|
167
|
+
"SessionLogger",
|
|
168
|
+
|
|
169
|
+
# Monitoring
|
|
170
|
+
"AlertEngine",
|
|
171
|
+
"WatchlistManager",
|
|
172
|
+
"DriftDetector",
|
|
173
|
+
"Alert",
|
|
174
|
+
"AlertType",
|
|
175
|
+
|
|
176
|
+
# Robustness
|
|
177
|
+
"StressTester",
|
|
178
|
+
"OverfittingDetector",
|
|
179
|
+
"ExplainabilityEngine",
|
|
180
|
+
"SampleSizeValidator",
|
|
181
|
+
|
|
182
|
+
# Setup
|
|
183
|
+
"run_setup",
|
|
184
|
+
"quick_setup",
|
|
185
|
+
]
|
sigma/__main__.py
CHANGED