Coverage for aether_quant/features.py: 100%
13 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
1"""Pure feature functions: technical indicators, sensitivity features, per-date cross-sectional ranks and the as-of
2(lookahead-free) beta labels."""
4from features import (
5 average_true_range_pct,
6 bollinger_pctb,
7 cross_sectional_momentum_rank,
8 distance_from_52w_high,
9 empirical_duration_beta,
10 load_sector_mapping,
11 macd_histogram_normalized,
12 relative_strength_index,
13 rolling_sensitivity,
14 volume_zscore,
15)
16from features.asof_beta_labels import (
17 asof_beta_by_row,
18 asof_residual_forward_return,
19 asof_rolling_beta,
20 build_asof_rank_labels,
21 cross_sectional_residualize,
22)
23from features.bond_features import (
24 analytic_convexity,
25 analytic_modified_duration,
26 bond_dv01,
27 credit_spread_level,
28 duration_beta_from_arrays,
29 nearest_yield_curve_point,
30 resolve_bond_duration_beta_mode,
31 rolling_duration_beta,
32 rolling_duration_beta_series,
33 yield_curve_curvature,
34 yield_curve_level,
35 yield_curve_slope,
36)
37from features.cross_asset_sensitivity import sensitivity_features_vector, sensitivity_interaction
38from features.cross_asset_timing import (
39 CrossAssetTimeline,
40 LateBarCrossAssetCache,
41 bar_available_at,
42 cross_asset_inputs,
43 day_ordinal,
44 fill_forward_open_forex_days,
45 is_late_bar_asset,
46 lean_market_holidays,
47 momentum_from_closes,
48 resolve_forex_lean_holidays,
49 returns_from_closes,
50)
51from features.cross_sectional_inputs import (
52 apply_cross_sectional_inputs,
53 asset_class_by_ticker,
54 asset_class_of,
55 expand_input_names,
56 rank_input_frame,
57 rank_input_matrix,
58 ranked_input_names,
59 resolve_cross_sectional_inputs,
60 settings_from_config,
61)
62from features.cross_sectional_norm import cross_sectional_rank
63from features.fx_carry import fx_carry_3m, split_forex_ticker
64from features.fx_signals import fx_sleeve_scores, ts_momentum_score, ts_momentum_series
65from features.macro_features import credit_spread_proxy, crypto_risk_appetite_proxy, yield_curve_slope_proxy
66from features.options_greeks import baw_american_price, bs_price, compute_greeks, delta, gamma, implied_volatility, rho, theta, vega
67from features.wide_panel import WideBars, days_since_filing, extended_info_features, growth_rows, info_features, long_frame, price_features, residual_daily, wide_label
69__all__ = [
70 "CrossAssetTimeline",
71 "LateBarCrossAssetCache",
72 "WideBars",
73 "analytic_convexity",
74 "analytic_modified_duration",
75 "apply_cross_sectional_inputs",
76 "asof_beta_by_row",
77 "asof_residual_forward_return",
78 "asof_rolling_beta",
79 "asset_class_by_ticker",
80 "asset_class_of",
81 "average_true_range_pct",
82 "bar_available_at",
83 "baw_american_price",
84 "bollinger_pctb",
85 "bond_dv01",
86 "bs_price",
87 "build_asof_rank_labels",
88 "compute_greeks",
89 "credit_spread_level",
90 "credit_spread_proxy",
91 "cross_asset_inputs",
92 "cross_sectional_momentum_rank",
93 "cross_sectional_rank",
94 "cross_sectional_residualize",
95 "crypto_risk_appetite_proxy",
96 "day_ordinal",
97 "days_since_filing",
98 "delta",
99 "distance_from_52w_high",
100 "duration_beta_from_arrays",
101 "empirical_duration_beta",
102 "expand_input_names",
103 "extended_info_features",
104 "fill_forward_open_forex_days",
105 "fx_carry_3m",
106 "fx_sleeve_scores",
107 "gamma",
108 "growth_rows",
109 "implied_volatility",
110 "info_features",
111 "is_late_bar_asset",
112 "lean_market_holidays",
113 "load_sector_mapping",
114 "long_frame",
115 "macd_histogram_normalized",
116 "momentum_from_closes",
117 "nearest_yield_curve_point",
118 "price_features",
119 "rank_input_frame",
120 "rank_input_matrix",
121 "ranked_input_names",
122 "relative_strength_index",
123 "residual_daily",
124 "resolve_bond_duration_beta_mode",
125 "resolve_cross_sectional_inputs",
126 "resolve_forex_lean_holidays",
127 "returns_from_closes",
128 "rho",
129 "rolling_duration_beta",
130 "rolling_duration_beta_series",
131 "rolling_sensitivity",
132 "sensitivity_features_vector",
133 "sensitivity_interaction",
134 "settings_from_config",
135 "split_forex_ticker",
136 "theta",
137 "ts_momentum_score",
138 "ts_momentum_series",
139 "vega",
140 "volume_zscore",
141 "wide_label",
142 "yield_curve_curvature",
143 "yield_curve_level",
144 "yield_curve_slope",
145 "yield_curve_slope_proxy",
146]