aether-quant 0.0.1__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.
Files changed (99) hide show
  1. aether_quant-0.0.1.dist-info/METADATA +7 -0
  2. aether_quant-0.0.1.dist-info/RECORD +99 -0
  3. aether_quant-0.0.1.dist-info/WHEEL +5 -0
  4. aether_quant-0.0.1.dist-info/entry_points.txt +2 -0
  5. aether_quant-0.0.1.dist-info/licenses/LICENSE +133 -0
  6. aether_quant-0.0.1.dist-info/top_level.txt +13 -0
  7. analyzer/README.md +69 -0
  8. analyzer/__init__.py +17 -0
  9. analyzer/market_analyzer.py +521 -0
  10. aq_cli.py +3633 -0
  11. audit/README.md +47 -0
  12. audit/__init__.py +38 -0
  13. audit/hash_chain.py +52 -0
  14. audit/postgres_audit.py +61 -0
  15. audit/postgres_worker.py +402 -0
  16. audit/redis_queue.py +124 -0
  17. audit/status_export.py +62 -0
  18. data_pipeline/README.md +257 -0
  19. data_pipeline/__init__.py +6 -0
  20. data_pipeline/bar_synthesis.py +97 -0
  21. data_pipeline/dividend_backfill.py +243 -0
  22. data_pipeline/factor_file_backfill.py +276 -0
  23. data_pipeline/fetch.py +206 -0
  24. data_pipeline/fred_backfill.py +435 -0
  25. data_pipeline/ib_backfill.py +287 -0
  26. data_pipeline/v2_manifest.py +75 -0
  27. data_pipeline/yfinance_backfill.py +501 -0
  28. evaluation/README.md +152 -0
  29. evaluation/__init__.py +73 -0
  30. evaluation/ablation.py +310 -0
  31. evaluation/benchmark_comparison.py +195 -0
  32. evaluation/confidence_threshold_calibration.py +157 -0
  33. evaluation/factor_neutralization_check.py +94 -0
  34. evaluation/feature_parity.py +321 -0
  35. evaluation/feature_reconciliation.py +286 -0
  36. evaluation/impact_model.py +77 -0
  37. evaluation/kill_switch_replay.py +186 -0
  38. evaluation/limit_fill_simulator.py +152 -0
  39. evaluation/model_predictions.py +192 -0
  40. evaluation/monte_carlo.py +161 -0
  41. evaluation/public_benchmarks.py +117 -0
  42. evaluation/rank_book_simulator.py +494 -0
  43. evaluation/rank_ic_core.py +204 -0
  44. evaluation/rank_signal_calibration.py +690 -0
  45. evaluation/rolling_ic_gate_calibration.py +190 -0
  46. evaluation/rolling_ic_gate_replay.py +138 -0
  47. execution/README.md +281 -0
  48. execution/__init__.py +80 -0
  49. execution/config_cache.py +48 -0
  50. execution/cost_model.py +213 -0
  51. execution/lean_config_render.py +131 -0
  52. execution/live_credentials.py +38 -0
  53. execution/live_credentials_io.py +52 -0
  54. execution/order_gate.py +388 -0
  55. execution/paper_readiness.py +181 -0
  56. execution/paper_readiness_io.py +54 -0
  57. execution/paper_readiness_report.py +103 -0
  58. execution/paper_readiness_scheduler.py +137 -0
  59. execution/reconciliation.py +160 -0
  60. execution/runtime_config_io.py +38 -0
  61. execution/secret_scan.py +73 -0
  62. features/README.md +77 -0
  63. features/__init__.py +137 -0
  64. features/alt_data_features.py +154 -0
  65. features/bond_features.py +275 -0
  66. features/cross_asset_sensitivity.py +79 -0
  67. features/derivatives_macro_features.py +72 -0
  68. features/macro_features.py +79 -0
  69. features/options_greeks.py +329 -0
  70. features/sector_map.py +53 -0
  71. features/technical_indicators.py +185 -0
  72. generate_backtest_report.py +311 -0
  73. generate_evaluation_report.py +712 -0
  74. inference/README.md +105 -0
  75. inference/__init__.py +36 -0
  76. inference/exported_model.py +929 -0
  77. inference/parallel_inference.py +160 -0
  78. inference/strategy_selector_inference.py +75 -0
  79. json_safety.py +130 -0
  80. portfolio/README.md +447 -0
  81. portfolio/__init__.py +41 -0
  82. portfolio/book_construction.py +786 -0
  83. portfolio/book_neutrality.py +178 -0
  84. portfolio/hrp_allocation.py +159 -0
  85. portfolio/options_arbitrage_detector.py +232 -0
  86. portfolio/options_assignment_risk.py +119 -0
  87. portfolio/options_margin_sizing.py +333 -0
  88. portfolio/options_strategy.py +1999 -0
  89. portfolio/rank_signal.py +219 -0
  90. portfolio/rolling_ic_gate.py +183 -0
  91. risk/README.md +275 -0
  92. risk/__init__.py +38 -0
  93. risk/asset_class_router.py +584 -0
  94. risk/forex_risk.py +158 -0
  95. risk/futures_risk.py +202 -0
  96. risk/kill_switch.py +261 -0
  97. risk/manual_override.py +118 -0
  98. risk/position_sizing.py +303 -0
  99. risk/rl_sizing.py +189 -0
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: aether-quant
3
+ Version: 0.0.1
4
+ Summary: Aether Quant convenience CLI
5
+ Requires-Python: >=3.10
6
+ License-File: LICENSE
7
+ Dynamic: license-file
@@ -0,0 +1,99 @@
1
+ aq_cli.py,sha256=vwQwg9hma97zy3fSK-c_dJodfEVCm18hdW7lBhWW1VQ,191932
2
+ generate_backtest_report.py,sha256=sjs9BRqXPp6CbuvfNjjybgwnDWK_BjPsGtSggxdOsjE,12734
3
+ generate_evaluation_report.py,sha256=2ACGJlCaJvGih6Ia5Kz4hBFhROgg9MsA8d_ca4IUjlo,31907
4
+ json_safety.py,sha256=KhA5ki8_GTqmrGfZlo6toGcRhQgIz3lcrewtai1adJs,5196
5
+ aether_quant-0.0.1.dist-info/licenses/LICENSE,sha256=NXPCUjCQJZQBI08U4d_xOYzcnm7pFURAHpK13sZYv4w,4623
6
+ analyzer/README.md,sha256=T7Rm4qvoN_m8gLnTqd2NXqVmNJ9zu2VdkDjpWOdCqT0,3963
7
+ analyzer/__init__.py,sha256=tm5EPSD9lUX4nw6jHjzExTlddQUpln8EdaC0SxHldKc,384
8
+ analyzer/market_analyzer.py,sha256=qg9QI1veGlqak1fpI3GrPqkQOjQWeLIQgiJNKW4iZq0,25477
9
+ audit/README.md,sha256=QddcDMxSX9hEIF40nPfH0eTmTbHS2Jmt-ixfsjn28QU,2940
10
+ audit/__init__.py,sha256=eSnzEAxoc6mLdgqpu_Hh7UUqQtSeERoJeGfYJE1_sqI,1466
11
+ audit/hash_chain.py,sha256=V9J3WRrZ3_jvhTx8zCqfdqlfjXeYJU1PBfakXz_wjvo,2572
12
+ audit/postgres_audit.py,sha256=X9mwkn0fvB3nEMmhwLbOHmzFsei8LLYJBXo-ob0Q5wE,2139
13
+ audit/postgres_worker.py,sha256=9uls-COeUPyElTaYZ4vqNQ2ypOmdPOAzlLIrtWioB7A,16488
14
+ audit/redis_queue.py,sha256=N01Pf4lSZg_775Al-1Nky7611mZ1q0pJbul9o5BMuzc,4629
15
+ audit/status_export.py,sha256=tU8Vs62hxLUxIJQ0ss5ClI3Q_iN40gGEIFXnCtf6oIk,2558
16
+ data_pipeline/README.md,sha256=TglPKPtyIeIUJjoej-rE6kCaHeUnWbCTR6Kms7Z-7vs,15174
17
+ data_pipeline/__init__.py,sha256=9p-XehXubFf5qA_V3EvHwnMY1TS_yQEol6PjG2s76gA,150
18
+ data_pipeline/bar_synthesis.py,sha256=KUQcZoz5lfFfiKlvF5ccOoNHUjTsId5LEbnM913Iw6U,4135
19
+ data_pipeline/dividend_backfill.py,sha256=e0uWXN2nrHvYrR9W7EylKkVViEYJSAJNJsS7ho4m3MI,10826
20
+ data_pipeline/factor_file_backfill.py,sha256=B4XTSn9iJsFpudZ0zBGJWtOseF5VFYa_3RUioT9FAlk,12463
21
+ data_pipeline/fetch.py,sha256=rp_jU9TTyGFAh0vb9rKx2ut78gapr-CoNG_gfxs4hIc,8805
22
+ data_pipeline/fred_backfill.py,sha256=hGN42lX0YjEo1Nds-SQdamC1BoV1BYJRYpPzKRDqG0A,20726
23
+ data_pipeline/ib_backfill.py,sha256=xYhkO9u4-wkHCyB6HUSXaZ9ldBndsXFvCBlRa0vjDIM,12204
24
+ data_pipeline/v2_manifest.py,sha256=Sf0jtsQ_RALkiMeyoY312_1t09yssH_gHV3vzfPd5tU,2587
25
+ data_pipeline/yfinance_backfill.py,sha256=tL7ktNKZHxKWpP734PLSoVps0hSmRjez0AAKcXGjJN8,21142
26
+ evaluation/README.md,sha256=BthaghRgL5X6XyXskeGBi-3jpUsgSMdX9Y8ZmzOuSfo,8934
27
+ evaluation/__init__.py,sha256=Pv1yySdqSJrxImgqi4y9lf_8vcTwOk-Sq_lTfOVuCfE,2539
28
+ evaluation/ablation.py,sha256=CqaZc0yE6WwMfGsLbTvvm7nZM-QAmG7i4QE4JI1nVMU,14852
29
+ evaluation/benchmark_comparison.py,sha256=tg-5QGp5To7dqtJX5Sup5E5JHsI8YLkTkb-02BmkUsY,8645
30
+ evaluation/confidence_threshold_calibration.py,sha256=A31gHZbqPmwCV9RB6tPNtJRgB49uBB4kygsC2x_QqOk,7199
31
+ evaluation/factor_neutralization_check.py,sha256=wrP3aTrfCGwMzabC9Nl9ndlOZI4_0_-qeElCPiy8COA,3430
32
+ evaluation/feature_parity.py,sha256=oRL6pwfHiS4h97BzguGn3lE0DgMp1neJK13y3RmLh6g,14756
33
+ evaluation/feature_reconciliation.py,sha256=vlLmr8rw8miG05W5pS1RcYaTd7I3_oiGbb0TAL1DPl8,13394
34
+ evaluation/impact_model.py,sha256=L0IY6VXom8rZBiN95LGXmwo-KA82r1mUzjsUE5j07BE,2676
35
+ evaluation/kill_switch_replay.py,sha256=GiwT5ZLdsv2PxxrppbR-opdByB5Edz0oZSRpcri0Sco,8579
36
+ evaluation/limit_fill_simulator.py,sha256=RlaG9-_ma5EsFLX71-1yoGD235IVmhfeGuiTMzAScuM,6900
37
+ evaluation/model_predictions.py,sha256=ZVDoihHI0AkqUe4NwpLjg4cwN93zTEc0hB1tThyUywM,9130
38
+ evaluation/monte_carlo.py,sha256=IJuQl-Fom2TZTprEymoRMf6utrJpKmFqT0dZX6J7E_I,5820
39
+ evaluation/public_benchmarks.py,sha256=DjSCAxD0X_M76C4kWYKoksaJ8cNeFg3MNl8VZNlQds0,5218
40
+ evaluation/rank_book_simulator.py,sha256=CqH3Vbm2Q1Wi4inxCoLYvakvkfnHygH_i74f9QGcFHM,23685
41
+ evaluation/rank_ic_core.py,sha256=qaM4RK-_Kx11nduB9k1u8L0HVc1AmKrnPEDRgTIA8bo,9672
42
+ evaluation/rank_signal_calibration.py,sha256=nfNnM1gEXWBM6YEsnUzqKggrrG4QBibjia00RcS1LfU,33365
43
+ evaluation/rolling_ic_gate_calibration.py,sha256=8ctbyk9t3kHKc6qRsaZsDJJBfzN1mE_kS0tPmT4794Q,8821
44
+ evaluation/rolling_ic_gate_replay.py,sha256=U4Sff0h8HxjuwbBhjoIk3sCnz9iNjig-cpdAIPcj_w0,6456
45
+ execution/README.md,sha256=I3NRVLL4sRnuNFFzzLn2V01EN7skKQNzXfYEA0aabsE,15861
46
+ execution/__init__.py,sha256=9P-q2SR19JT8J5zWA9oKD_iDQLNtv2eHFgteX9ngnuQ,2275
47
+ execution/config_cache.py,sha256=7HXGY9mJ-ju6hROaOk6wh74z-AZckOBi20WYuKt24Y4,2097
48
+ execution/cost_model.py,sha256=GJZeevlxqVm_hpqN8Vs_qkQzMUJVR68nHPuJ7K0UdTc,9863
49
+ execution/lean_config_render.py,sha256=0c7auP_P3L4uZEEEUliGLsRGEB0I8tjt19keIqU8cy0,5495
50
+ execution/live_credentials.py,sha256=0DWOWlsL4UN5lXour9aoINzlWWWN2adoHrDP28KyTJY,1733
51
+ execution/live_credentials_io.py,sha256=K7-knq0IlAKRSObEf1uetkYlYNj5GPVqJS-JyEl-Hg8,2240
52
+ execution/order_gate.py,sha256=ESAJC2p4UHsYTGyP3U-c4ZwUzD4O2kwol-zi33jmFhk,18025
53
+ execution/paper_readiness.py,sha256=YyPOqMDv1o696u9i6c9S3sYOvp7C5KE-8brQjWPql4Y,8584
54
+ execution/paper_readiness_io.py,sha256=ZbYMosuoBoDQxNFX4yJwnmzCEYJlX-X5Y1OqKDcBPPg,2134
55
+ execution/paper_readiness_report.py,sha256=Mpd7tFhSnfLsz5SRd0Wmvw0UPWJV_082VfiG_8WKkTA,3774
56
+ execution/paper_readiness_scheduler.py,sha256=DwU4NgYLqj0LqAVLnGJK0IaK6_IBNMVQn4CTyRfliJU,5100
57
+ execution/reconciliation.py,sha256=s9xCjF9SuWA19o05ksfYz7FntaJ8NNxJt7M5K3f96XM,7599
58
+ execution/runtime_config_io.py,sha256=AyipuT6YwiVEJnAX-adbKeiKvKnpuIgaEFsoltgxyaY,1476
59
+ execution/secret_scan.py,sha256=IsfhccXiwmJoAB1wbONA9mzG3bHi7Cf5HmA5DttHFYM,2737
60
+ features/README.md,sha256=JdSLGgX5DHbylSP5v2OvmP4LCT0G2yko14FRYTUiHu4,4801
61
+ features/__init__.py,sha256=7xaVjES03Y6iDhqz-suWramKKtHgbNQS7pUrA8MVv5w,3859
62
+ features/alt_data_features.py,sha256=pISEftVwnSTPsXSMHrnXhGT6erAsxveNFHw39mC7Uz8,8325
63
+ features/bond_features.py,sha256=tYWemoukGOtyhOBX4k4txDDlJpeP6RBitHDPjFmcKt0,13463
64
+ features/cross_asset_sensitivity.py,sha256=JVKv6m8dLy6e6BoRD8bS33FwEjuHlmMS5heChoAcG4A,3747
65
+ features/derivatives_macro_features.py,sha256=6s-6vljtico-BOsadftFDj-11ZJY20KC_QnZcggt3sk,3873
66
+ features/macro_features.py,sha256=K8Y74Xz_aS6YnBMfyL8juwK1LaUSO1C3MZ4pteBRSSg,3917
67
+ features/options_greeks.py,sha256=i007inkdu8DhWh63ke_ECaju1KBpAL1ty81bo4GJBxA,15874
68
+ features/sector_map.py,sha256=8tUCAHfENQSgW_6z1HLAs56jYFfpFtaeLww4XBqkmrs,2507
69
+ features/technical_indicators.py,sha256=Xtc6D5WYlEm6ToDvhf5aJlxQc7i7P5bIis9QOFL0xAA,9323
70
+ inference/README.md,sha256=2vAVLRkDTeGqWOqrxWIR9rVu3ig8I5K7V-XSiiRby_g,5790
71
+ inference/__init__.py,sha256=nw7BY7DOPEfp-eDVrSwwsPKx4PaZV6zaCJAG8MqlJQk,1286
72
+ inference/exported_model.py,sha256=3e2eCUjmtA1elvV9NBh1I1FPPTCCYIjD2Hh2UEIJ6v8,48208
73
+ inference/parallel_inference.py,sha256=XBrgxLndpk5lMP0_qITpXq9aFu6FeCttoMEF4r1ogi0,7566
74
+ inference/strategy_selector_inference.py,sha256=73QesCjEiAQp_swG9BTXkrdRYwcINI2fzr4Zy5DYZac,3969
75
+ portfolio/README.md,sha256=FY3jc82Ke6b0u0rUA7X5GVupMkdTRFNBHgLfcOkJCB8,26616
76
+ portfolio/__init__.py,sha256=RVFHHFq2JOC1akNsK1dvJuVuP8Yj2_SnyN-v_qBAc3Y,1162
77
+ portfolio/book_construction.py,sha256=Biu4I1WkYWOa1RPYEDgHBuiGNtcxPTV5jl3Iuvker-o,41364
78
+ portfolio/book_neutrality.py,sha256=gHWWOzMLAWsMkK0Ry0COGXBaWg7ldQz980PZaFkntKU,8600
79
+ portfolio/hrp_allocation.py,sha256=Nu76G2NLpn85e2txFY3MDpN4XgIj0IgX_mcd1fZAnkg,6160
80
+ portfolio/options_arbitrage_detector.py,sha256=-HfU3tcLrBjO65um5TEt3BQA_qS_A9F3Usanc7GfJjY,11635
81
+ portfolio/options_assignment_risk.py,sha256=D7DvinngJyRwpZPTXxVvV8ZMEPXsOK2XaT04tdOr4BY,5497
82
+ portfolio/options_margin_sizing.py,sha256=rjHDrSa262XZb4EIM2RwL_pvMWHxl47hyJRzU7vOx0U,15507
83
+ portfolio/options_strategy.py,sha256=QxFxnsSwSnaGRC6dhgy8il1TSY682S2N0317XS9TNSc,95610
84
+ portfolio/rank_signal.py,sha256=Iftawy_xb4AiJ5iXFyGsE7L7UizJ2vpikYZvYW43EIo,10856
85
+ portfolio/rolling_ic_gate.py,sha256=lHU8zKzOjReTjvwDjxUaSiaQez9--i7gwPUC-EBjE58,9725
86
+ risk/README.md,sha256=WMTDrM_jQ0clvoQA8RbiK1nDPIYcJjRLJ5orEK71jP0,15803
87
+ risk/__init__.py,sha256=bZWvamumwY-01n8U4IZKYQzAT5qGX99QXvtr-BDeWK0,1084
88
+ risk/asset_class_router.py,sha256=IvmTm25n-_4dqAblT1pirxHIGloWotdwTqliycTcrrk,28707
89
+ risk/forex_risk.py,sha256=dO1r00jF9yjdNQjbhl023nAts5Fez0k4LlG1-DLVYqM,6773
90
+ risk/futures_risk.py,sha256=0I-UdO6-zZqg53p7AlRCtMaEFf-Fox4jxwDvgjBWZQ8,9115
91
+ risk/kill_switch.py,sha256=YHuaiD08EEA_NxxNLESw_bJsy4GuyKZNJJFRymYR0hY,13616
92
+ risk/manual_override.py,sha256=ImaF63IV-H30GIGhWJb5POH2GATjUfT_OzoKrqzLPdo,5157
93
+ risk/position_sizing.py,sha256=3aBzTlQtHTfpBlmYTNaoen43LBevL3yhq2JwqJJd3ug,12983
94
+ risk/rl_sizing.py,sha256=oSnwCApboIZ-pl0WoZLHAnhXR_8wqKYIJUNzvfxu2Gc,9019
95
+ aether_quant-0.0.1.dist-info/METADATA,sha256=qH9e8utjsly0EiOPlREXgDvDBVgIB_o3F1xW_YpevYs,162
96
+ aether_quant-0.0.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
97
+ aether_quant-0.0.1.dist-info/entry_points.txt,sha256=QFFJIvHqEKjBKlVrniDI73HObpCTR3rECR22vsJtvxQ,35
98
+ aether_quant-0.0.1.dist-info/top_level.txt,sha256=7hTNU8cJ7Q1IV7JW2LWYxNTWw1tKBjT0OsPquphd4rQ,155
99
+ aether_quant-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ aq = aq_cli:main
@@ -0,0 +1,133 @@
1
+ Required Notice: Copyright Leon Schwarzkopf (Aether Quant)
2
+
3
+ # PolyForm Noncommercial License 1.0.0
4
+
5
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
6
+
7
+ ## Acceptance
8
+
9
+ In order to get any license under these terms, you must agree
10
+ to them as both strict obligations and conditions to all
11
+ your licenses.
12
+
13
+ ## Copyright License
14
+
15
+ The licensor grants you a copyright license for the
16
+ software to do everything you might do with the software
17
+ that would otherwise infringe the licensor's copyright
18
+ in it for any permitted purpose. However, you may
19
+ only distribute the software according to [Distribution
20
+ License](#distribution-license) and make changes or new works
21
+ based on the software according to [Changes and New Works
22
+ License](#changes-and-new-works-license).
23
+
24
+ ## Distribution License
25
+
26
+ The licensor grants you an additional copyright license
27
+ to distribute copies of the software. Your license
28
+ to distribute covers distributing the software with
29
+ changes and new works permitted by [Changes and New Works
30
+ License](#changes-and-new-works-license).
31
+
32
+ ## Notices
33
+
34
+ You must ensure that anyone who gets a copy of any part of
35
+ the software from you also gets a copy of these terms or the
36
+ URL for them above, as well as copies of any plain-text lines
37
+ beginning with `Required Notice:` that the licensor provided
38
+ with the software. For example:
39
+
40
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
41
+
42
+ ## Changes and New Works License
43
+
44
+ The licensor grants you an additional copyright license to
45
+ make changes and new works based on the software for any
46
+ permitted purpose.
47
+
48
+ ## Patent License
49
+
50
+ The licensor grants you a patent license for the software that
51
+ covers patent claims the licensor can license, or becomes able
52
+ to license, that you would infringe by using the software.
53
+
54
+ ## Noncommercial Purposes
55
+
56
+ Any noncommercial purpose is a permitted purpose.
57
+
58
+ ## Personal Uses
59
+
60
+ Personal use for research, experiment, and testing for
61
+ the benefit of public knowledge, personal study, private
62
+ entertainment, hobby projects, amateur pursuits, or religious
63
+ observance, without any anticipated commercial application,
64
+ is use for a permitted purpose.
65
+
66
+ ## Noncommercial Organizations
67
+
68
+ Use by any charitable organization, educational institution,
69
+ public research organization, public safety or health
70
+ organization, environmental protection organization,
71
+ or government institution is use for a permitted purpose
72
+ regardless of the source of funding or obligations resulting
73
+ from the funding.
74
+
75
+ ## Fair Use
76
+
77
+ You may have "fair use" rights for the software under the
78
+ law. These terms do not limit them.
79
+
80
+ ## No Other Rights
81
+
82
+ These terms do not allow you to sublicense or transfer any of
83
+ your licenses to anyone else, or prevent the licensor from
84
+ granting licenses to anyone else. These terms do not imply
85
+ any other licenses.
86
+
87
+ ## Patent Defense
88
+
89
+ If you make any written claim that the software infringes or
90
+ contributes to infringement of any patent, your patent license
91
+ for the software granted under these terms ends immediately. If
92
+ your company makes such a claim, your patent license ends
93
+ immediately for work on behalf of your company.
94
+
95
+ ## Violations
96
+
97
+ The first time you are notified in writing that you have
98
+ violated any of these terms, or done anything with the software
99
+ not covered by your licenses, your licenses can nonetheless
100
+ continue if you come into full compliance with these terms,
101
+ and take practical steps to correct past violations, within
102
+ 32 days of receiving notice. Otherwise, all your licenses
103
+ end immediately.
104
+
105
+ ## No Liability
106
+
107
+ ***As far as the law allows, the software comes as is, without
108
+ any warranty or condition, and the licensor will not be liable
109
+ to you for any damages arising out of these terms or the use
110
+ or nature of the software, under any kind of legal claim.***
111
+
112
+ ## Definitions
113
+
114
+ The **licensor** is the individual or entity offering these
115
+ terms, and the **software** is the software the licensor makes
116
+ available under these terms.
117
+
118
+ **You** refers to the individual or entity agreeing to these
119
+ terms.
120
+
121
+ **Your company** is any legal entity, sole proprietorship,
122
+ or other kind of organization that you work for, plus all
123
+ organizations that have control over, are under the control of,
124
+ or are under common control with that organization. **Control**
125
+ means ownership of substantially all the assets of an entity,
126
+ or the power to direct its management and policies by vote,
127
+ contract, or otherwise. Control can be direct or indirect.
128
+
129
+ **Your licenses** are all the licenses granted to you for the
130
+ software under these terms.
131
+
132
+ **Use** means anything you do with the software requiring one
133
+ of your licenses.
@@ -0,0 +1,13 @@
1
+ analyzer
2
+ aq_cli
3
+ audit
4
+ data_pipeline
5
+ evaluation
6
+ execution
7
+ features
8
+ generate_backtest_report
9
+ generate_evaluation_report
10
+ inference
11
+ json_safety
12
+ portfolio
13
+ risk
analyzer/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # analyzer
2
+
3
+ Owns the Central Market Analyzer: the final per-asset categorization
4
+ layer that sits after experts, regime detection, topology and the
5
+ risk engine, and before order placement.
6
+
7
+ - `analyzer/market_analyzer.py` combines `moe.gating` output, `regime`
8
+ output, `topology` output and active risk-lock state into one
9
+ categorical action: `observe`, `simulate`, `trade`, `reduce_risk` or
10
+ `retrain_candidate`.
11
+ - Pure function, deterministic, explainable via a `reasons` list. No
12
+ classes or state, matching the rest of the pure-module family.
13
+ - `main.py` only calls `_apply_signal` when `action == "trade"`. All five
14
+ actions are written into the per-asset `signal_payload` for
15
+ dashboard visibility regardless of whether a real order is
16
+ placed.
17
+
18
+ ## Decision tiers (in priority order)
19
+
20
+ 1. **Hard safety overrides (priorities 0–6)** — exit-preservation,
21
+ trade-lock, `risk_off` regime, elevated/isolated topology, liquidity
22
+ block/thin, confidence threshold. Simple categorical gates, deliberately
23
+ never aggregated: an `"elevated"` volatility-pressure node forces
24
+ `reduce_risk`, an `"isolated"` node (no meaningfully correlated peers)
25
+ cannot reach `trade` and is downgraded to `simulate`. Absent/empty
26
+ topology (warmup) fires neither rule (`topology_considered=False`).
27
+ Every directional signal — `buy`, `sell` and the book's `short` —
28
+ passes through the identical tiers, so a book-selected short never
29
+ bypasses a safety check (see `portfolio/README.md` for why book
30
+ construction lives in its own package).
31
+ 2. **Net-edge cost gate (priority 6.5)** — when `execution/cost_model.py`'s
32
+ expected-net-edge decision says an entry's expected edge doesn't clear
33
+ its expected round-trip cost, the decision downgrades to `simulate`
34
+ instead of `trade` — never blocks an **exit**. A disabled or
35
+ uncalibrated cost model (`net_edge=None`) is a no-op, the same fail-open
36
+ contract as every optional overlay here. See `execution/README.md`.
37
+ 3. **Trade gate (priority 7) + simulate-vs-observe split (priority 8)** —
38
+ by default gated on raw `confidence`. When
39
+ `phase_v2.market_analyzer.use_composite_signal_score` is explicitly
40
+ `true`, `compute_signal_quality_score()` — a bounded `[0,1]` weighted
41
+ blend of model confidence (0.45), regime confidence (0.20), topology
42
+ peer-support (0.20) and liquidity friction (0.15) — replaces raw
43
+ confidence in exactly these two tiers. The composite score and its
44
+ per-component breakdown are **always** computed and populated on every
45
+ decision regardless of the flag (dashboard-visible via
46
+ `state.json`); default `false` is byte-identical to plain-confidence
47
+ behavior.
48
+
49
+ ## Deliberately deterministic
50
+
51
+ - The learned topology overlay (`topology/learned_topology.py`'s
52
+ confidence/uncertainty scoring) is consumed by the retrain-trigger and
53
+ position-sizing layers only (`risk/position_sizing.py::
54
+ topology_sizing_multiplier()` — a shrink-only multiplier that changes
55
+ how large an already-approved trade is, never whether one happens).
56
+ This module reads only the deterministic `topology_risk`/`state`, keeping
57
+ the categorization fully deterministic.
58
+ - `retrain_candidate` here is a stateless, instantaneous fallback heuristic
59
+ (zero active experts plus low regime confidence) — the real
60
+ trailing-window retrain signal lives in `performance/triggers.py` and
61
+ `retraining/`, fed by the Redis/PostgreSQL experience pipeline.
62
+ - `predicted_return_magnitude`/`predicted_volatility` fields are threaded
63
+ through as informational payload only (they influence
64
+ `risk/position_sizing.py` when
65
+ `phase_v2.dynamic_risk.use_predicted_volatility` is enabled, never this
66
+ module's categorization). When the sequence encoder blends into gating
67
+ (`phase_v2.gating_network.sequence_weight`), these fields transitively
68
+ reflect it via `gating_payload["final_magnitude"/"final_volatility"]`.
69
+ Always `None` when no multitask model is loaded.
analyzer/__init__.py ADDED
@@ -0,0 +1,17 @@
1
+ """Central market analyzer for Aether Quant V2."""
2
+
3
+ from .market_analyzer import (
4
+ ACTIONS,
5
+ MarketAnalysisDecision,
6
+ build_market_analysis_decision,
7
+ compute_signal_quality_score,
8
+ compute_trade_metric,
9
+ )
10
+
11
+ __all__ = [
12
+ "ACTIONS",
13
+ "MarketAnalysisDecision",
14
+ "build_market_analysis_decision",
15
+ "compute_signal_quality_score",
16
+ "compute_trade_metric",
17
+ ]