Coverage for features/__init__.py: 100%
15 statements
« prev ^ index » next coverage.py v7.17.3, created at 2026-11-22 12:55 +0000
« prev ^ index » next coverage.py v7.17.3, created at 2026-11-22 12:55 +0000
1from .alt_data_features import (
2 ALT_DATA_FEATURE_NAMES,
3 FINANCIAL_CONDITIONS_CHANGE_NEUTRAL,
4 IMPLIED_VOL_TERM_STRUCTURE_NEUTRAL,
5 IMPLIED_VOLATILITY_LEVEL_NEUTRAL,
6 financial_conditions_change,
7 implied_vol_term_structure,
8 implied_volatility_level,
9)
10from .bond_features import (
11 BOND_FEATURE_NAMES,
12 CREDIT_SPREAD_LEVEL_NEUTRAL,
13 YIELD_CURVE_CURVATURE_NEUTRAL,
14 YIELD_CURVE_LEVEL_NEUTRAL,
15 analytic_convexity,
16 analytic_modified_duration,
17 bond_dv01,
18 credit_spread_level,
19 empirical_duration_beta,
20 nearest_yield_curve_point,
21 yield_curve_curvature,
22 yield_curve_level,
23)
24from .bond_features import (
25 yield_curve_slope as bond_yield_curve_slope,
26)
27from .cross_asset_sensitivity import (
28 CROSS_ASSET_SENSITIVITY_FEATURE_NAMES,
29 rolling_sensitivity,
30 sensitivity_features_vector,
31 sensitivity_interaction,
32)
33from .derivatives_macro_features import (
34 DERIVATIVES_MACRO_FEATURE_NAMES,
35 FUTURES_MACRO_FEATURE_NAMES,
36 FUTURES_TERM_STRUCTURE_SLOPE_NEUTRAL,
37 OPTIONS_IMPLIED_VOL_SKEW_NEUTRAL,
38 OPTIONS_MACRO_FEATURE_NAMES,
39 OPTIONS_PUT_CALL_RATIO_NEUTRAL,
40 futures_term_structure_slope,
41 options_implied_vol_skew,
42 options_put_call_ratio,
43)
44from .macro_features import (
45 CREDIT_SPREAD_NEUTRAL,
46 CRYPTO_RISK_APPETITE_NEUTRAL,
47 YIELD_CURVE_SLOPE_NEUTRAL,
48 credit_spread_proxy,
49 crypto_risk_appetite_proxy,
50 yield_curve_slope_proxy,
51)
52from .options_greeks import (
53 baw_american_price,
54 bs_price,
55 compute_greeks,
56 implied_volatility,
57)
58from .options_greeks import (
59 delta as option_delta,
60)
61from .options_greeks import (
62 gamma as option_gamma,
63)
64from .options_greeks import (
65 rho as option_rho,
66)
67from .options_greeks import (
68 theta as option_theta,
69)
70from .options_greeks import (
71 vega as option_vega,
72)
73from .sector_map import (
74 DEFAULT_SECTOR_MAPPING_PATH,
75 UNKNOWN_SECTOR_LABEL,
76 load_sector_mapping,
77 resolve_sector,
78)
79from .technical_indicators import (
80 CROSS_SECTIONAL_MOMENTUM_RANK_NEUTRAL,
81 average_true_range_pct,
82 bollinger_pctb,
83 cross_sectional_momentum_rank,
84 distance_from_52w_high,
85 macd_histogram_normalized,
86 relative_strength_index,
87 volume_zscore,
88)
90__all__ = [
91 "ALT_DATA_FEATURE_NAMES",
92 "BOND_FEATURE_NAMES",
93 "CREDIT_SPREAD_LEVEL_NEUTRAL",
94 "CREDIT_SPREAD_NEUTRAL",
95 "CROSS_ASSET_SENSITIVITY_FEATURE_NAMES",
96 "CROSS_SECTIONAL_MOMENTUM_RANK_NEUTRAL",
97 "CRYPTO_RISK_APPETITE_NEUTRAL",
98 "DEFAULT_SECTOR_MAPPING_PATH",
99 "DERIVATIVES_MACRO_FEATURE_NAMES",
100 "FINANCIAL_CONDITIONS_CHANGE_NEUTRAL",
101 "FUTURES_MACRO_FEATURE_NAMES",
102 "FUTURES_TERM_STRUCTURE_SLOPE_NEUTRAL",
103 "IMPLIED_VOL_TERM_STRUCTURE_NEUTRAL",
104 "IMPLIED_VOLATILITY_LEVEL_NEUTRAL",
105 "OPTIONS_IMPLIED_VOL_SKEW_NEUTRAL",
106 "OPTIONS_MACRO_FEATURE_NAMES",
107 "OPTIONS_PUT_CALL_RATIO_NEUTRAL",
108 "UNKNOWN_SECTOR_LABEL",
109 "YIELD_CURVE_CURVATURE_NEUTRAL",
110 "YIELD_CURVE_LEVEL_NEUTRAL",
111 "YIELD_CURVE_SLOPE_NEUTRAL",
112 "analytic_convexity",
113 "analytic_modified_duration",
114 "average_true_range_pct",
115 "baw_american_price",
116 "bollinger_pctb",
117 "bond_dv01",
118 "bond_yield_curve_slope",
119 "bs_price",
120 "compute_greeks",
121 "credit_spread_level",
122 "credit_spread_proxy",
123 "cross_sectional_momentum_rank",
124 "crypto_risk_appetite_proxy",
125 "distance_from_52w_high",
126 "empirical_duration_beta",
127 "financial_conditions_change",
128 "futures_term_structure_slope",
129 "implied_vol_term_structure",
130 "implied_volatility",
131 "implied_volatility_level",
132 "load_sector_mapping",
133 "macd_histogram_normalized",
134 "nearest_yield_curve_point",
135 "option_delta",
136 "option_gamma",
137 "option_rho",
138 "option_theta",
139 "option_vega",
140 "options_implied_vol_skew",
141 "options_put_call_ratio",
142 "relative_strength_index",
143 "resolve_sector",
144 "rolling_sensitivity",
145 "sensitivity_features_vector",
146 "sensitivity_interaction",
147 "volume_zscore",
148 "yield_curve_curvature",
149 "yield_curve_level",
150 "yield_curve_slope_proxy",
151]