File size: 2,370 Bytes
72fc0ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
"""
Macro analysis: correlations, economic indicators, sentiment.
"""

# SDK Manager interface
from .manager import MacroManager

from quantlib_pro.macro.correlation import (
    CorrelationMetrics,
    rolling_correlation,
    correlation_regime,
    compute_correlation_metrics,
    detect_correlation_breakdowns,
    correlation_contagion_score,
    eigenvalue_concentration,
    make_psd,
    simulate_correlation_shock,
    cross_asset_correlation,
    correlation_heatmap_data,
)
from quantlib_pro.macro.economic import (
    MacroRegime,
    EconomicIndicator,
    MacroSnapshot,
    detect_macro_regime,
    growth_momentum,
    inflation_gap,
    real_interest_rate,
    yield_curve_slope,
    sahm_rule_indicator,
    leading_economic_index,
    diffusion_index,
    taylor_rule_rate,
    recession_probability,
    normalize_indicator,
)
from quantlib_pro.macro.sentiment import (
    SentimentRegime,
    SentimentSnapshot,
    vix_sentiment_level,
    put_call_ratio_sentiment,
    aaii_sentiment_score,
    fear_greed_index,
    contrarian_signal,
    advance_decline_line,
    mcclellan_oscillator,
    new_high_low_ratio,
    skew_sentiment,
    vix_term_structure_slope,
    sentiment_divergence,
    aggregate_sentiment_score,
)

__all__ = [
    # Correlation
    "CorrelationMetrics",
    "rolling_correlation",
    "correlation_regime",
    "compute_correlation_metrics",
    "detect_correlation_breakdowns",
    "correlation_contagion_score",
    "eigenvalue_concentration",
    "make_psd",
    "simulate_correlation_shock",
    "cross_asset_correlation",
    "correlation_heatmap_data",
    # Economic
    "MacroRegime",
    "EconomicIndicator",
    "MacroSnapshot",
    "detect_macro_regime",
    "growth_momentum",
    "inflation_gap",
    "real_interest_rate",
    "yield_curve_slope",
    "sahm_rule_indicator",
    "leading_economic_index",
    "diffusion_index",
    "taylor_rule_rate",
    "recession_probability",
    "normalize_indicator",
    # Sentiment
    "SentimentRegime",
    "SentimentSnapshot",
    "vix_sentiment_level",
    "put_call_ratio_sentiment",
    "aaii_sentiment_score",
    "fear_greed_index",
    "contrarian_signal",
    "advance_decline_line",
    "mcclellan_oscillator",
    "new_high_low_ratio",
    "skew_sentiment",
    "vix_term_structure_slope",
    "sentiment_divergence",
    "aggregate_sentiment_score",
]