akquant 0.3.80__tar.gz → 0.3.82__tar.gz

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 (931) hide show
  1. {akquant-0.3.80 → akquant-0.3.82}/CHANGELOG.md +21 -0
  2. {akquant-0.3.80 → akquant-0.3.82}/Cargo.lock +1 -1
  3. {akquant-0.3.80 → akquant-0.3.82}/Cargo.toml +1 -1
  4. {akquant-0.3.80 → akquant-0.3.82}/PKG-INFO +1 -1
  5. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/custom_indicator.md +72 -8
  6. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/strategy.md +1 -0
  7. {akquant-0.3.80 → akquant-0.3.82}/docs/en/reference/api.md +2 -1
  8. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/custom_indicator.md +66 -6
  9. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/strategy.md +1 -0
  10. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/reference/api.md +2 -1
  11. akquant-0.3.82/examples/79_multi_symbol_indicator_timer.py +137 -0
  12. {akquant-0.3.80 → akquant-0.3.82}/examples/README.md +1 -0
  13. {akquant-0.3.80 → akquant-0.3.82}/pyproject.toml +1 -1
  14. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/indicator_declaration.py +40 -4
  15. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/guides/indicators.md +1 -0
  16. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy.py +73 -17
  17. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_framework_hooks.py +19 -0
  18. {akquant-0.3.80 → akquant-0.3.82}/server.json +3 -3
  19. {akquant-0.3.80 → akquant-0.3.82}/src/context.rs +49 -85
  20. {akquant-0.3.80 → akquant-0.3.82}/src/history.rs +401 -88
  21. akquant-0.3.82/tests/test_indicator_multi_symbol_access.py +438 -0
  22. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_timers_indicators.py +7 -4
  23. {akquant-0.3.80 → akquant-0.3.82}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  24. {akquant-0.3.80 → akquant-0.3.82}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  25. {akquant-0.3.80 → akquant-0.3.82}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  26. {akquant-0.3.80 → akquant-0.3.82}/.github/dependabot.yml +0 -0
  27. {akquant-0.3.80 → akquant-0.3.82}/.github/workflows/deploy-docs.yml +0 -0
  28. {akquant-0.3.80 → akquant-0.3.82}/.github/workflows/docs-quality.yml +0 -0
  29. {akquant-0.3.80 → akquant-0.3.82}/.github/workflows/release.yml +0 -0
  30. {akquant-0.3.80 → akquant-0.3.82}/.gitignore +0 -0
  31. {akquant-0.3.80 → akquant-0.3.82}/.pre-commit-config.yaml +0 -0
  32. {akquant-0.3.80 → akquant-0.3.82}/CODE_OF_CONDUCT.md +0 -0
  33. {akquant-0.3.80 → akquant-0.3.82}/CONTRIBUTING.md +0 -0
  34. {akquant-0.3.80 → akquant-0.3.82}/LICENSE +0 -0
  35. {akquant-0.3.80 → akquant-0.3.82}/README.md +0 -0
  36. {akquant-0.3.80 → akquant-0.3.82}/assets/dashboard_preview.png +0 -0
  37. {akquant-0.3.80 → akquant-0.3.82}/assets/logo.svg +0 -0
  38. {akquant-0.3.80 → akquant-0.3.82}/assets/social_preview.png +0 -0
  39. {akquant-0.3.80 → akquant-0.3.82}/docs/CNAME +0 -0
  40. {akquant-0.3.80 → akquant-0.3.82}/docs/assets/akquant-icon.svg +0 -0
  41. {akquant-0.3.80 → akquant-0.3.82}/docs/assets/akquant-logo.svg +0 -0
  42. {akquant-0.3.80 → akquant-0.3.82}/docs/assets/reports/akquant_report.html +0 -0
  43. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/analyzer_plugin_spec.md +0 -0
  44. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/broker_capability_matrix.md +0 -0
  45. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/custom_broker_production_checklist.md +0 -0
  46. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/custom_broker_registry.md +0 -0
  47. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/custom_strategy_loader.md +0 -0
  48. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/data_feed_adapter_spec.md +0 -0
  49. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/live_functional_quickstart.md +0 -0
  50. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/llm.md +0 -0
  51. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/ml.md +0 -0
  52. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/multi_strategy_guide.md +0 -0
  53. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/multi_timeframe_feed_api.md +0 -0
  54. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/runtime_config.md +0 -0
  55. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/signal_ingestion.md +0 -0
  56. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/strategy_style_decision.md +0 -0
  57. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/tick_size_alignment.md +0 -0
  58. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/timezone.md +0 -0
  59. {akquant-0.3.80 → akquant-0.3.82}/docs/en/advanced/warm_start.md +0 -0
  60. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/analysis.md +0 -0
  61. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/cross_section_checklist.md +0 -0
  62. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/data.md +0 -0
  63. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/examples.md +0 -0
  64. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/factor.md +0 -0
  65. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/indicator_scenario_quickref.md +0 -0
  66. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/mcp.md +0 -0
  67. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/optimization.md +0 -0
  68. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/python_basics.md +0 -0
  69. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/quant_basics.md +0 -0
  70. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/rust_indicator_reference.md +0 -0
  71. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/talib_indicator_playbook.md +0 -0
  72. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/testing.md +0 -0
  73. {akquant-0.3.80 → akquant-0.3.82}/docs/en/guide/visualization.md +0 -0
  74. {akquant-0.3.80 → akquant-0.3.82}/docs/en/index.md +0 -0
  75. {akquant-0.3.80 → akquant-0.3.82}/docs/en/meta/architecture.md +0 -0
  76. {akquant-0.3.80 → akquant-0.3.82}/docs/en/meta/internals.md +0 -0
  77. {akquant-0.3.80 → akquant-0.3.82}/docs/en/start/first_strategy.md +0 -0
  78. {akquant-0.3.80 → akquant-0.3.82}/docs/en/start/installation.md +0 -0
  79. {akquant-0.3.80 → akquant-0.3.82}/docs/en/start/quickstart.md +0 -0
  80. {akquant-0.3.80 → akquant-0.3.82}/docs/en/start/setup_guide.md +0 -0
  81. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/01_foundations.md +0 -0
  82. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/02_programming.md +0 -0
  83. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/03_data.md +0 -0
  84. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/04_backtest_engine.md +0 -0
  85. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/05_strategy.md +0 -0
  86. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/06_stock_a.md +0 -0
  87. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/07_futures.md +0 -0
  88. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/08_options.md +0 -0
  89. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/09_funds.md +0 -0
  90. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/10_analysis.md +0 -0
  91. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/11_optimization.md +0 -0
  92. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/12_ml.md +0 -0
  93. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/13_visualization.md +0 -0
  94. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/14_factor.md +0 -0
  95. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/15_live_trading.md +0 -0
  96. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/16_rust_indicators.md +0 -0
  97. {akquant-0.3.80 → akquant-0.3.82}/docs/en/textbook/index.md +0 -0
  98. {akquant-0.3.80 → akquant-0.3.82}/docs/javascripts/mathjax.js +0 -0
  99. {akquant-0.3.80 → akquant-0.3.82}/docs/javascripts/search-lang-filter.js +0 -0
  100. {akquant-0.3.80 → akquant-0.3.82}/docs/llms.txt +0 -0
  101. {akquant-0.3.80 → akquant-0.3.82}/docs/robots.txt +0 -0
  102. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/adding_a_broker.md +0 -0
  103. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/analyzer_plugin_spec.md +0 -0
  104. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/broker_capability_matrix.md +0 -0
  105. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/custom_broker_production_checklist.md +0 -0
  106. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/custom_broker_registry.md +0 -0
  107. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/custom_strategy_loader.md +0 -0
  108. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/data_feed_adapter_spec.md +0 -0
  109. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/live_functional_quickstart.md +0 -0
  110. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/llm.md +0 -0
  111. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/ml.md +0 -0
  112. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/multi_strategy_guide.md +0 -0
  113. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/multi_timeframe_feed_api.md +0 -0
  114. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/runtime_config.md +0 -0
  115. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/signal_ingestion.md +0 -0
  116. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/strategy_style_decision.md +0 -0
  117. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/tick_size_alignment.md +0 -0
  118. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/timezone.md +0 -0
  119. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/advanced/warm_start.md +0 -0
  120. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/analysis.md +0 -0
  121. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/cross_section_checklist.md +0 -0
  122. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/data.md +0 -0
  123. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/examples.md +0 -0
  124. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/factor.md +0 -0
  125. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/indicator_scenario_quickref.md +0 -0
  126. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/mcp.md +0 -0
  127. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/optimization.md +0 -0
  128. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/python_basics.md +0 -0
  129. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/quant_basics.md +0 -0
  130. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/rust_indicator_reference.md +0 -0
  131. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/talib_indicator_playbook.md +0 -0
  132. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/testing.md +0 -0
  133. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/guide/visualization.md +0 -0
  134. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/index.md +0 -0
  135. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/meta/architecture.md +0 -0
  136. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/meta/columnar-rfc.md +0 -0
  137. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/meta/internals.md +0 -0
  138. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/start/first_strategy.md +0 -0
  139. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/start/installation.md +0 -0
  140. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/start/quickstart.md +0 -0
  141. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/start/setup_guide.md +0 -0
  142. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/00_glossary.md +0 -0
  143. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/01_foundations.md +0 -0
  144. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/02_programming.md +0 -0
  145. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/03_data.md +0 -0
  146. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/04_backtest_engine.md +0 -0
  147. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/05_strategy.md +0 -0
  148. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/06_stock_a.md +0 -0
  149. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/07_futures.md +0 -0
  150. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/08_options.md +0 -0
  151. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/09_funds.md +0 -0
  152. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/10_analysis.md +0 -0
  153. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/11_optimization.md +0 -0
  154. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/12_ml.md +0 -0
  155. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/13_visualization.md +0 -0
  156. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/14_factor.md +0 -0
  157. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/15_live_trading.md +0 -0
  158. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/16_rust_indicators.md +0 -0
  159. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/ROADMAP.md +0 -0
  160. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/appendix_cite.md +0 -0
  161. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/appendix_pitfalls.md +0 -0
  162. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/appendix_setup.md +0 -0
  163. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/capstone.md +0 -0
  164. {akquant-0.3.80 → akquant-0.3.82}/docs/zh/textbook/index.md +0 -0
  165. {akquant-0.3.80 → akquant-0.3.82}/examples/01_quickstart.py +0 -0
  166. {akquant-0.3.80 → akquant-0.3.82}/examples/02_parameter_optimization.py +0 -0
  167. {akquant-0.3.80 → akquant-0.3.82}/examples/03_parameter_optimization_advanced.py +0 -0
  168. {akquant-0.3.80 → akquant-0.3.82}/examples/04_mixed_assets.py +0 -0
  169. {akquant-0.3.80 → akquant-0.3.82}/examples/05_live_trading_ctp.py +0 -0
  170. {akquant-0.3.80 → akquant-0.3.82}/examples/06_complex_orders.py +0 -0
  171. {akquant-0.3.80 → akquant-0.3.82}/examples/07_option_test.py +0 -0
  172. {akquant-0.3.80 → akquant-0.3.82}/examples/08_event_callbacks.py +0 -0
  173. {akquant-0.3.80 → akquant-0.3.82}/examples/09_ml_framework.py +0 -0
  174. {akquant-0.3.80 → akquant-0.3.82}/examples/10_ml_walk_forward.py +0 -0
  175. {akquant-0.3.80 → akquant-0.3.82}/examples/11_plot_visualization.py +0 -0
  176. {akquant-0.3.80 → akquant-0.3.82}/examples/12_wfo_integrated.py +0 -0
  177. {akquant-0.3.80 → akquant-0.3.82}/examples/13_quantstats_report.py +0 -0
  178. {akquant-0.3.80 → akquant-0.3.82}/examples/14_multi_frequency.py +0 -0
  179. {akquant-0.3.80 → akquant-0.3.82}/examples/15_plot_intraday.py +0 -0
  180. {akquant-0.3.80 → akquant-0.3.82}/examples/16_adj_returns_signal.py +0 -0
  181. {akquant-0.3.80 → akquant-0.3.82}/examples/17_readme_demo.py +0 -0
  182. {akquant-0.3.80 → akquant-0.3.82}/examples/18_benchmark_multisymbol.py +0 -0
  183. {akquant-0.3.80 → akquant-0.3.82}/examples/19_factor_expression.py +0 -0
  184. {akquant-0.3.80 → akquant-0.3.82}/examples/20_risk_management_demo.py +0 -0
  185. {akquant-0.3.80 → akquant-0.3.82}/examples/21_warm_start_demo.py +0 -0
  186. {akquant-0.3.80 → akquant-0.3.82}/examples/22_strategy_runtime_config_demo.py +0 -0
  187. {akquant-0.3.80 → akquant-0.3.82}/examples/23_functional_callbacks_demo.py +0 -0
  188. {akquant-0.3.80 → akquant-0.3.82}/examples/24_functional_tick_simulation_demo.py +0 -0
  189. {akquant-0.3.80 → akquant-0.3.82}/examples/25_streaming_backtest_demo.py +0 -0
  190. {akquant-0.3.80 → akquant-0.3.82}/examples/26_streaming_quickstart.py +0 -0
  191. {akquant-0.3.80 → akquant-0.3.82}/examples/27_streaming_monitoring_console.py +0 -0
  192. {akquant-0.3.80 → akquant-0.3.82}/examples/28_streaming_alerts_and_persist.py +0 -0
  193. {akquant-0.3.80 → akquant-0.3.82}/examples/29_streaming_event_report.py +0 -0
  194. {akquant-0.3.80 → akquant-0.3.82}/examples/30_streaming_report_oneclick.py +0 -0
  195. {akquant-0.3.80 → akquant-0.3.82}/examples/31_streaming_live_console.py +0 -0
  196. {akquant-0.3.80 → akquant-0.3.82}/examples/32_streaming_live_web.py +0 -0
  197. {akquant-0.3.80 → akquant-0.3.82}/examples/33_report_and_analysis_outputs.py +0 -0
  198. {akquant-0.3.80 → akquant-0.3.82}/examples/34_multi_strategy_demo.py +0 -0
  199. {akquant-0.3.80 → akquant-0.3.82}/examples/35_custom_broker_registry_demo.py +0 -0
  200. {akquant-0.3.80 → akquant-0.3.82}/examples/36_trailing_orders.py +0 -0
  201. {akquant-0.3.80 → akquant-0.3.82}/examples/37_feed_replay_alignment_demo.py +0 -0
  202. {akquant-0.3.80 → akquant-0.3.82}/examples/38_live_functional_strategy_demo.py +0 -0
  203. {akquant-0.3.80 → akquant-0.3.82}/examples/39_live_broker_submit_order_demo.py +0 -0
  204. {akquant-0.3.80 → akquant-0.3.82}/examples/39_live_mixed_broker_demo.py +0 -0
  205. {akquant-0.3.80 → akquant-0.3.82}/examples/40_functional_multi_slot_risk_demo.py +0 -0
  206. {akquant-0.3.80 → akquant-0.3.82}/examples/41_live_multi_slot_orchestration_demo.py +0 -0
  207. {akquant-0.3.80 → akquant-0.3.82}/examples/42_live_broker_event_audit_demo.py +0 -0
  208. {akquant-0.3.80 → akquant-0.3.82}/examples/43_target_weights_rebalance.py +0 -0
  209. {akquant-0.3.80 → akquant-0.3.82}/examples/44_strategy_source_loader_demo.py +0 -0
  210. {akquant-0.3.80 → akquant-0.3.82}/examples/45_talib_indicator_playbook_demo.py +0 -0
  211. {akquant-0.3.80 → akquant-0.3.82}/examples/46_broker_profile_demo.py +0 -0
  212. {akquant-0.3.80 → akquant-0.3.82}/examples/47_margin_liquidation_audit_demo.py +0 -0
  213. {akquant-0.3.80 → akquant-0.3.82}/examples/48_margin_liquidation_priority_compare.py +0 -0
  214. {akquant-0.3.80 → akquant-0.3.82}/examples/49_on_expiry_demo.py +0 -0
  215. {akquant-0.3.80 → akquant-0.3.82}/examples/50_framework_hooks_demo.py +0 -0
  216. {akquant-0.3.80 → akquant-0.3.82}/examples/51_class_tick_callbacks_demo.py +0 -0
  217. {akquant-0.3.80 → akquant-0.3.82}/examples/52_pre_open_demo.py +0 -0
  218. {akquant-0.3.80 → akquant-0.3.82}/examples/53_timer_to_pre_open_demo.py +0 -0
  219. {akquant-0.3.80 → akquant-0.3.82}/examples/54_functional_pre_open_demo.py +0 -0
  220. {akquant-0.3.80 → akquant-0.3.82}/examples/55_functional_ml_walk_forward.py +0 -0
  221. {akquant-0.3.80 → akquant-0.3.82}/examples/56_functional_warm_start_demo.py +0 -0
  222. {akquant-0.3.80 → akquant-0.3.82}/examples/57_functional_multi_slot_warm_start_demo.py +0 -0
  223. {akquant-0.3.80 → akquant-0.3.82}/examples/58_incremental_bootstrap_demo.py +0 -0
  224. {akquant-0.3.80 → akquant-0.3.82}/examples/59_akshare_etf_rotation.py +0 -0
  225. {akquant-0.3.80 → akquant-0.3.82}/examples/60_custom_indicator_demo.py +0 -0
  226. {akquant-0.3.80 → akquant-0.3.82}/examples/61_indicator_visualization_export_demo.py +0 -0
  227. {akquant-0.3.80 → akquant-0.3.82}/examples/61_signal_platform_webhook.py +0 -0
  228. {akquant-0.3.80 → akquant-0.3.82}/examples/62_indicator_streaming_demo.py +0 -0
  229. {akquant-0.3.80 → akquant-0.3.82}/examples/63_indicator_ws_bridge_demo.py +0 -0
  230. {akquant-0.3.80 → akquant-0.3.82}/examples/64_indicator_live_web.py +0 -0
  231. {akquant-0.3.80 → akquant-0.3.82}/examples/65_bar_generator.py +0 -0
  232. {akquant-0.3.80 → akquant-0.3.82}/examples/66_logging_audit_demo.py +0 -0
  233. {akquant-0.3.80 → akquant-0.3.82}/examples/67_lwc_trade_review.py +0 -0
  234. {akquant-0.3.80 → akquant-0.3.82}/examples/68_backtest_tick_demo.py +0 -0
  235. {akquant-0.3.80 → akquant-0.3.82}/examples/69_live_runtime_config_dispatch_demo.py +0 -0
  236. {akquant-0.3.80 → akquant-0.3.82}/examples/70_csv_multi_symbol_import_demo.py +0 -0
  237. {akquant-0.3.80 → akquant-0.3.82}/examples/71_native_multi_timeframe_live.py +0 -0
  238. {akquant-0.3.80 → akquant-0.3.82}/examples/72_declarative_indicators.py +0 -0
  239. {akquant-0.3.80 → akquant-0.3.82}/examples/73_lwc_live_indicators.py +0 -0
  240. {akquant-0.3.80 → akquant-0.3.82}/examples/74_indicator_scripts.py +0 -0
  241. {akquant-0.3.80 → akquant-0.3.82}/examples/75_intrabar_indicators.py +0 -0
  242. {akquant-0.3.80 → akquant-0.3.82}/examples/76_tick_intrabar_indicators.py +0 -0
  243. {akquant-0.3.80 → akquant-0.3.82}/examples/77_heikin_ashi_indicator.py +0 -0
  244. {akquant-0.3.80 → akquant-0.3.82}/examples/78_chart_drawings.py +0 -0
  245. {akquant-0.3.80 → akquant-0.3.82}/examples/benchmark_utils.py +0 -0
  246. {akquant-0.3.80 → akquant-0.3.82}/examples/pb_mock.py +0 -0
  247. {akquant-0.3.80 → akquant-0.3.82}/examples/strategies/01_stock_dual_moving_average.py +0 -0
  248. {akquant-0.3.80 → akquant-0.3.82}/examples/strategies/02_stock_grid_trading.py +0 -0
  249. {akquant-0.3.80 → akquant-0.3.82}/examples/strategies/03_stock_atr_breakout.py +0 -0
  250. {akquant-0.3.80 → akquant-0.3.82}/examples/strategies/04_stock_momentum_rotation.py +0 -0
  251. {akquant-0.3.80 → akquant-0.3.82}/examples/strategies/05_stock_momentum_rotation_timer.py +0 -0
  252. {akquant-0.3.80 → akquant-0.3.82}/examples/strategies/06_stock_momentum_rotation_bucket.py +0 -0
  253. {akquant-0.3.80 → akquant-0.3.82}/examples/strategies/07_stock_momentum_rotation_on_timer.py +0 -0
  254. {akquant-0.3.80 → akquant-0.3.82}/examples/strategies/08_target_positions_long_short.py +0 -0
  255. {akquant-0.3.80 → akquant-0.3.82}/examples/strategies/09_stock_momentum_rotation_after_bar.py +0 -0
  256. {akquant-0.3.80 → akquant-0.3.82}/examples/strategies/README.md +0 -0
  257. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch01_quickstart.py +0 -0
  258. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch01_quickstart_functional.py +0 -0
  259. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch02_programming.py +0 -0
  260. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch03_data.py +0 -0
  261. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch04_comparison.py +0 -0
  262. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch04_comparison_functional.py +0 -0
  263. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch05_strategy.py +0 -0
  264. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch05_strategy_functional.py +0 -0
  265. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch06_stock_a.py +0 -0
  266. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch06_stock_a_functional.py +0 -0
  267. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch07_futures.py +0 -0
  268. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch07_futures_functional.py +0 -0
  269. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch08_options.py +0 -0
  270. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch08_options_functional.py +0 -0
  271. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch09_funds.py +0 -0
  272. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch09_funds_functional.py +0 -0
  273. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch09_portfolio.py +0 -0
  274. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch09_portfolio_functional.py +0 -0
  275. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch10_analysis.py +0 -0
  276. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch10_analysis_functional.py +0 -0
  277. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch11_optimization.py +0 -0
  278. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch11_optimization_functional.py +0 -0
  279. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch12_ml.py +0 -0
  280. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch12_ml_functional.py +0 -0
  281. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch13_visualization.py +0 -0
  282. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch13_visualization_functional.py +0 -0
  283. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch14_factor.py +0 -0
  284. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch15_live_trading.py +0 -0
  285. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch15_live_trading_functional.py +0 -0
  286. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch15_strategy_loader.py +0 -0
  287. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch15_strategy_loader_functional.py +0 -0
  288. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch16_indicators.py +0 -0
  289. {akquant-0.3.80 → akquant-0.3.82}/examples/textbook/ch16_indicators_functional.py +0 -0
  290. {akquant-0.3.80 → akquant-0.3.82}/mkdocs.yml +0 -0
  291. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/__init__.py +0 -0
  292. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/akquant.pyi +0 -0
  293. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/analysis/__init__.py +0 -0
  294. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/analysis/benchmark.py +0 -0
  295. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/analyzer_plugin.py +0 -0
  296. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/backtest/__init__.py +0 -0
  297. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/backtest/__init__.pyi +0 -0
  298. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/backtest/_viz.py +0 -0
  299. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/backtest/engine.py +0 -0
  300. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/backtest/fill_mode.py +0 -0
  301. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/backtest/merge.py +0 -0
  302. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/backtest/result.py +0 -0
  303. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/backtest/tick_input.py +0 -0
  304. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/bar_generator.py +0 -0
  305. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/chart/__init__.py +0 -0
  306. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/chart/_drawing.py +0 -0
  307. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/chart/_normalize.py +0 -0
  308. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/chart/d3kline.py +0 -0
  309. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/checkpoint.py +0 -0
  310. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/cli.py +0 -0
  311. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/config.py +0 -0
  312. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/data.py +0 -0
  313. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/execution/__init__.py +0 -0
  314. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/execution/base.py +0 -0
  315. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/execution/sim.py +0 -0
  316. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/factor/__init__.py +0 -0
  317. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/factor/engine.py +0 -0
  318. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/factor/ops.py +0 -0
  319. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/factor/parser.py +0 -0
  320. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/feed_adapter.py +0 -0
  321. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/fund/__init__.py +0 -0
  322. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/futures/__init__.py +0 -0
  323. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/__init__.py +0 -0
  324. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/base.py +0 -0
  325. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/broker_event_adapter.py +0 -0
  326. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/broker_event_bridge.py +0 -0
  327. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/broker_event_mapper.py +0 -0
  328. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/broker_execution.py +0 -0
  329. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/broker_models.py +0 -0
  330. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/broker_recovery.py +0 -0
  331. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/broker_runtime.py +0 -0
  332. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/broker_state_cache.py +0 -0
  333. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/broker_stats.py +0 -0
  334. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/broker_strategy_api.py +0 -0
  335. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/brokers/__init__.py +0 -0
  336. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/brokers/builtins.py +0 -0
  337. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/brokers/ctp/__init__.py +0 -0
  338. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/brokers/ctp/adapter.py +0 -0
  339. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/brokers/ctp/native.py +0 -0
  340. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/brokers/miniqmt/__init__.py +0 -0
  341. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/brokers/miniqmt/stub.py +0 -0
  342. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/brokers/plugins.py +0 -0
  343. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/brokers/ptrade/__init__.py +0 -0
  344. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/brokers/ptrade/stub.py +0 -0
  345. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/brokers/replay/__init__.py +0 -0
  346. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/brokers/replay/gateway.py +0 -0
  347. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/ctp_adapter.py +0 -0
  348. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/ctp_native.py +0 -0
  349. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/factory.py +0 -0
  350. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/local_stop_book.py +0 -0
  351. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/mapper.py +0 -0
  352. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/miniqmt.py +0 -0
  353. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/models.py +0 -0
  354. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/order_audit.py +0 -0
  355. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/order_errors.py +0 -0
  356. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/order_receipt.py +0 -0
  357. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/order_submitter.py +0 -0
  358. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/protocols.py +0 -0
  359. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/ptrade.py +0 -0
  360. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/registry.py +0 -0
  361. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/symbol_match.py +0 -0
  362. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/gateway/trader_base.py +0 -0
  363. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/indicator_identity.py +0 -0
  364. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/indicator_recording.py +0 -0
  365. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/indicator_script.py +0 -0
  366. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/indicator_stream.py +0 -0
  367. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/live/__init__.py +0 -0
  368. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/live/_facade.py +0 -0
  369. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/live/_gateway_setup.py +0 -0
  370. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/live/_paper_execution.py +0 -0
  371. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/live/_payload_utils.py +0 -0
  372. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/live/_preload.py +0 -0
  373. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/live/_runner.py +0 -0
  374. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/live/_strategy_maps.py +0 -0
  375. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/live/_stream_sink.py +0 -0
  376. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/log.py +0 -0
  377. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/lwc/__init__.py +0 -0
  378. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/lwc/_drawings.py +0 -0
  379. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/lwc/_indicators.py +0 -0
  380. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/lwc/_payload.py +0 -0
  381. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/lwc/_template.py +0 -0
  382. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/lwc/assets/LICENSE.lightweight-charts +0 -0
  383. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/lwc/assets/NOTICE.md +0 -0
  384. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/lwc/assets/lightweight-charts.standalone.production.js +0 -0
  385. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/lwc/review.py +0 -0
  386. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/__init__.py +0 -0
  387. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/__main__.py +0 -0
  388. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/guides/data-format.md +0 -0
  389. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/guides/market-rules.md +0 -0
  390. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/guides/orders-and-positions.md +0 -0
  391. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/guides/strategy-skeleton.md +0 -0
  392. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/server.py +0 -0
  393. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/service/__init__.py +0 -0
  394. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/service/api_index.py +0 -0
  395. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/service/check.py +0 -0
  396. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/service/data.py +0 -0
  397. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/service/errors.py +0 -0
  398. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/service/guides.py +0 -0
  399. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/service/paths.py +0 -0
  400. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/service/records.py +0 -0
  401. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/service/runs.py +0 -0
  402. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/mcp/worker.py +0 -0
  403. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/ml/__init__.py +0 -0
  404. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/ml/model.py +0 -0
  405. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/normalize.py +0 -0
  406. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/optimize.py +0 -0
  407. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/option/__init__.py +0 -0
  408. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/params.py +0 -0
  409. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/params_adapter.py +0 -0
  410. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/plot/__init__.py +0 -0
  411. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/plot/_market_data.py +0 -0
  412. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/plot/analysis.py +0 -0
  413. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/plot/dashboard.py +0 -0
  414. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/plot/indicator.py +0 -0
  415. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/plot/report.py +0 -0
  416. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/plot/strategy.py +0 -0
  417. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/plot/utils.py +0 -0
  418. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/precomputed.py +0 -0
  419. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/py.typed +0 -0
  420. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/risk.py +0 -0
  421. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/schema.py +0 -0
  422. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/sessions_config.py +0 -0
  423. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/signal/__init__.py +0 -0
  424. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/signal/dedup.py +0 -0
  425. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/signal/dispatcher.py +0 -0
  426. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/signal/models.py +0 -0
  427. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/signal/protocols.py +0 -0
  428. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/signal/registry.py +0 -0
  429. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/signal/security.py +0 -0
  430. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/signal/sinks.py +0 -0
  431. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/signal/sources/__init__.py +0 -0
  432. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/signal/sources/http.py +0 -0
  433. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/signal/sources/queue.py +0 -0
  434. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/signal/sources/redis_stream.py +0 -0
  435. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/sizer.py +0 -0
  436. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/stock/__init__.py +0 -0
  437. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_drawing.py +0 -0
  438. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_events.py +0 -0
  439. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_history.py +0 -0
  440. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_inspect.py +0 -0
  441. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_loader.py +0 -0
  442. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_logging.py +0 -0
  443. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_ml.py +0 -0
  444. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_order_events.py +0 -0
  445. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_position.py +0 -0
  446. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_preload.py +0 -0
  447. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_runtime_config.py +0 -0
  448. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_scheduler.py +0 -0
  449. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_stats.py +0 -0
  450. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_time.py +0 -0
  451. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_trading_api.py +0 -0
  452. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/strategy_window.py +0 -0
  453. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/stream_schema.py +0 -0
  454. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/talib/__init__.py +0 -0
  455. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/talib/_kernels.py +0 -0
  456. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/talib/backend.py +0 -0
  457. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/talib/core.py +0 -0
  458. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/talib/funcs.py +0 -0
  459. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/talib/lookback.py +0 -0
  460. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/trade_stream.py +0 -0
  461. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/utils/__init__.py +0 -0
  462. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/utils/inspector.py +0 -0
  463. {akquant-0.3.80 → akquant-0.3.82}/python/akquant/utils/price.py +0 -0
  464. {akquant-0.3.80 → akquant-0.3.82}/requirements-dev.txt +0 -0
  465. {akquant-0.3.80 → akquant-0.3.82}/scripts/bench_engine_perbar.py +0 -0
  466. {akquant-0.3.80 → akquant-0.3.82}/scripts/cargo-test.sh +0 -0
  467. {akquant-0.3.80 → akquant-0.3.82}/scripts/check_docs_api_examples.py +0 -0
  468. {akquant-0.3.80 → akquant-0.3.82}/scripts/check_docs_links.py +0 -0
  469. {akquant-0.3.80 → akquant-0.3.82}/scripts/check_release.py +0 -0
  470. {akquant-0.3.80 → akquant-0.3.82}/scripts/dev-check.sh +0 -0
  471. {akquant-0.3.80 → akquant-0.3.82}/scripts/golden_baseline_report.py +0 -0
  472. {akquant-0.3.80 → akquant-0.3.82}/scripts/profile_backtest.py +0 -0
  473. {akquant-0.3.80 → akquant-0.3.82}/scripts/stress_out_of_core.py +0 -0
  474. {akquant-0.3.80 → akquant-0.3.82}/src/account.rs +0 -0
  475. {akquant-0.3.80 → akquant-0.3.82}/src/analysis/live_stats.rs +0 -0
  476. {akquant-0.3.80 → akquant-0.3.82}/src/analysis/mod.rs +0 -0
  477. {akquant-0.3.80 → akquant-0.3.82}/src/analysis/python.rs +0 -0
  478. {akquant-0.3.80 → akquant-0.3.82}/src/analysis/result.rs +0 -0
  479. {akquant-0.3.80 → akquant-0.3.82}/src/analysis/strategy_stats.rs +0 -0
  480. {akquant-0.3.80 → akquant-0.3.82}/src/analysis/tests.rs +0 -0
  481. {akquant-0.3.80 → akquant-0.3.82}/src/analysis/tracker.rs +0 -0
  482. {akquant-0.3.80 → akquant-0.3.82}/src/analysis/types.rs +0 -0
  483. {akquant-0.3.80 → akquant-0.3.82}/src/bin/stub_gen.rs +0 -0
  484. {akquant-0.3.80 → akquant-0.3.82}/src/calendar/clock.rs +0 -0
  485. {akquant-0.3.80 → akquant-0.3.82}/src/calendar/mod.rs +0 -0
  486. {akquant-0.3.80 → akquant-0.3.82}/src/calendar/python.rs +0 -0
  487. {akquant-0.3.80 → akquant-0.3.82}/src/calendar/resolver.rs +0 -0
  488. {akquant-0.3.80 → akquant-0.3.82}/src/calendar/schedule.rs +0 -0
  489. {akquant-0.3.80 → akquant-0.3.82}/src/calendar/trading_calendar.rs +0 -0
  490. {akquant-0.3.80 → akquant-0.3.82}/src/clock.rs +0 -0
  491. {akquant-0.3.80 → akquant-0.3.82}/src/data/aggregator.rs +0 -0
  492. {akquant-0.3.80 → akquant-0.3.82}/src/data/batch.rs +0 -0
  493. {akquant-0.3.80 → akquant-0.3.82}/src/data/client.rs +0 -0
  494. {akquant-0.3.80 → akquant-0.3.82}/src/data/columns.rs +0 -0
  495. {akquant-0.3.80 → akquant-0.3.82}/src/data/compute.rs +0 -0
  496. {akquant-0.3.80 → akquant-0.3.82}/src/data/feed.rs +0 -0
  497. {akquant-0.3.80 → akquant-0.3.82}/src/data/mod.rs +0 -0
  498. {akquant-0.3.80 → akquant-0.3.82}/src/data/parquet_stream.rs +0 -0
  499. {akquant-0.3.80 → akquant-0.3.82}/src/data/python_window.rs +0 -0
  500. {akquant-0.3.80 → akquant-0.3.82}/src/data/window.rs +0 -0
  501. {akquant-0.3.80 → akquant-0.3.82}/src/engine/core.rs +0 -0
  502. {akquant-0.3.80 → akquant-0.3.82}/src/engine/mod.rs +0 -0
  503. {akquant-0.3.80 → akquant-0.3.82}/src/engine/python.rs +0 -0
  504. {akquant-0.3.80 → akquant-0.3.82}/src/engine/state.rs +0 -0
  505. {akquant-0.3.80 → akquant-0.3.82}/src/engine/strategy_handler.rs +0 -0
  506. {akquant-0.3.80 → akquant-0.3.82}/src/error.rs +0 -0
  507. {akquant-0.3.80 → akquant-0.3.82}/src/event.rs +0 -0
  508. {akquant-0.3.80 → akquant-0.3.82}/src/event_manager.rs +0 -0
  509. {akquant-0.3.80 → akquant-0.3.82}/src/execution/common.rs +0 -0
  510. {akquant-0.3.80 → akquant-0.3.82}/src/execution/crypto.rs +0 -0
  511. {akquant-0.3.80 → akquant-0.3.82}/src/execution/forex.rs +0 -0
  512. {akquant-0.3.80 → akquant-0.3.82}/src/execution/futures.rs +0 -0
  513. {akquant-0.3.80 → akquant-0.3.82}/src/execution/matcher.rs +0 -0
  514. {akquant-0.3.80 → akquant-0.3.82}/src/execution/mod.rs +0 -0
  515. {akquant-0.3.80 → akquant-0.3.82}/src/execution/option.rs +0 -0
  516. {akquant-0.3.80 → akquant-0.3.82}/src/execution/python.rs +0 -0
  517. {akquant-0.3.80 → akquant-0.3.82}/src/execution/realtime.rs +0 -0
  518. {akquant-0.3.80 → akquant-0.3.82}/src/execution/simulated.rs +0 -0
  519. {akquant-0.3.80 → akquant-0.3.82}/src/execution/slippage.rs +0 -0
  520. {akquant-0.3.80 → akquant-0.3.82}/src/execution/stock.rs +0 -0
  521. {akquant-0.3.80 → akquant-0.3.82}/src/execution/validation.rs +0 -0
  522. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/momentum.rs +0 -0
  523. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/momentum_oscillators.rs +0 -0
  524. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/momentum_rates.rs +0 -0
  525. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/moving_average.rs +0 -0
  526. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/moving_average_compound.rs +0 -0
  527. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/moving_average_core.rs +0 -0
  528. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/moving_average_hilbert.rs +0 -0
  529. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/moving_average_transforms.rs +0 -0
  530. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/moving_average_windowed.rs +0 -0
  531. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/trend.rs +0 -0
  532. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/trend_directional.rs +0 -0
  533. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/trend_oscillators.rs +0 -0
  534. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/trend_regression.rs +0 -0
  535. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/volatility.rs +0 -0
  536. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/volatility_candle.rs +0 -0
  537. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/volatility_price.rs +0 -0
  538. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/volatility_stats.rs +0 -0
  539. {akquant-0.3.80 → akquant-0.3.82}/src/indicators/volume.rs +0 -0
  540. {akquant-0.3.80 → akquant-0.3.82}/src/indicators.rs +0 -0
  541. {akquant-0.3.80 → akquant-0.3.82}/src/lib.rs +0 -0
  542. {akquant-0.3.80 → akquant-0.3.82}/src/log_context.rs +0 -0
  543. {akquant-0.3.80 → akquant-0.3.82}/src/margin/calculator.rs +0 -0
  544. {akquant-0.3.80 → akquant-0.3.82}/src/margin/engine.rs +0 -0
  545. {akquant-0.3.80 → akquant-0.3.82}/src/margin/mod.rs +0 -0
  546. {akquant-0.3.80 → akquant-0.3.82}/src/market/china.rs +0 -0
  547. {akquant-0.3.80 → akquant-0.3.82}/src/market/core.rs +0 -0
  548. {akquant-0.3.80 → akquant-0.3.82}/src/market/corporate_action.rs +0 -0
  549. {akquant-0.3.80 → akquant-0.3.82}/src/market/fee_override.rs +0 -0
  550. {akquant-0.3.80 → akquant-0.3.82}/src/market/fund.rs +0 -0
  551. {akquant-0.3.80 → akquant-0.3.82}/src/market/futures.rs +0 -0
  552. {akquant-0.3.80 → akquant-0.3.82}/src/market/manager.rs +0 -0
  553. {akquant-0.3.80 → akquant-0.3.82}/src/market/mod.rs +0 -0
  554. {akquant-0.3.80 → akquant-0.3.82}/src/market/option.rs +0 -0
  555. {akquant-0.3.80 → akquant-0.3.82}/src/market/simple.rs +0 -0
  556. {akquant-0.3.80 → akquant-0.3.82}/src/market/stock.rs +0 -0
  557. {akquant-0.3.80 → akquant-0.3.82}/src/model/corporate_action.rs +0 -0
  558. {akquant-0.3.80 → akquant-0.3.82}/src/model/instrument.rs +0 -0
  559. {akquant-0.3.80 → akquant-0.3.82}/src/model/market_data.rs +0 -0
  560. {akquant-0.3.80 → akquant-0.3.82}/src/model/mod.rs +0 -0
  561. {akquant-0.3.80 → akquant-0.3.82}/src/model/order.rs +0 -0
  562. {akquant-0.3.80 → akquant-0.3.82}/src/model/timer.rs +0 -0
  563. {akquant-0.3.80 → akquant-0.3.82}/src/model/types.rs +0 -0
  564. {akquant-0.3.80 → akquant-0.3.82}/src/order_manager.rs +0 -0
  565. {akquant-0.3.80 → akquant-0.3.82}/src/pipeline/mod.rs +0 -0
  566. {akquant-0.3.80 → akquant-0.3.82}/src/pipeline/processor.rs +0 -0
  567. {akquant-0.3.80 → akquant-0.3.82}/src/pipeline/runner.rs +0 -0
  568. {akquant-0.3.80 → akquant-0.3.82}/src/pipeline/stages/channel.rs +0 -0
  569. {akquant-0.3.80 → akquant-0.3.82}/src/pipeline/stages/cleanup.rs +0 -0
  570. {akquant-0.3.80 → akquant-0.3.82}/src/pipeline/stages/data.rs +0 -0
  571. {akquant-0.3.80 → akquant-0.3.82}/src/pipeline/stages/execution.rs +0 -0
  572. {akquant-0.3.80 → akquant-0.3.82}/src/pipeline/stages/mod.rs +0 -0
  573. {akquant-0.3.80 → akquant-0.3.82}/src/pipeline/stages/shared.rs +0 -0
  574. {akquant-0.3.80 → akquant-0.3.82}/src/pipeline/stages/statistics.rs +0 -0
  575. {akquant-0.3.80 → akquant-0.3.82}/src/pipeline/stages/strategy.rs +0 -0
  576. {akquant-0.3.80 → akquant-0.3.82}/src/portfolio.rs +0 -0
  577. {akquant-0.3.80 → akquant-0.3.82}/src/risk/common.rs +0 -0
  578. {akquant-0.3.80 → akquant-0.3.82}/src/risk/config.rs +0 -0
  579. {akquant-0.3.80 → akquant-0.3.82}/src/risk/futures.rs +0 -0
  580. {akquant-0.3.80 → akquant-0.3.82}/src/risk/manager.rs +0 -0
  581. {akquant-0.3.80 → akquant-0.3.82}/src/risk/mod.rs +0 -0
  582. {akquant-0.3.80 → akquant-0.3.82}/src/risk/option.rs +0 -0
  583. {akquant-0.3.80 → akquant-0.3.82}/src/risk/portfolio.rs +0 -0
  584. {akquant-0.3.80 → akquant-0.3.82}/src/risk/rule.rs +0 -0
  585. {akquant-0.3.80 → akquant-0.3.82}/src/risk/stock.rs +0 -0
  586. {akquant-0.3.80 → akquant-0.3.82}/src/risk/strategy_limits.rs +0 -0
  587. {akquant-0.3.80 → akquant-0.3.82}/src/settlement/expiry.rs +0 -0
  588. {akquant-0.3.80 → akquant-0.3.82}/src/settlement/handler.rs +0 -0
  589. {akquant-0.3.80 → akquant-0.3.82}/src/settlement/manager.rs +0 -0
  590. {akquant-0.3.80 → akquant-0.3.82}/src/settlement/mod.rs +0 -0
  591. {akquant-0.3.80 → akquant-0.3.82}/src/settlement/option.rs +0 -0
  592. {akquant-0.3.80 → akquant-0.3.82}/src/signal_port.rs +0 -0
  593. {akquant-0.3.80 → akquant-0.3.82}/src/statistics/mod.rs +0 -0
  594. {akquant-0.3.80 → akquant-0.3.82}/tests/_checkpoint_0371.py +0 -0
  595. {akquant-0.3.80 → akquant-0.3.82}/tests/_plot_cases.py +0 -0
  596. {akquant-0.3.80 → akquant-0.3.82}/tests/fixtures/checkpoint_0371_minute.pkl +0 -0
  597. {akquant-0.3.80 → akquant-0.3.82}/tests/gateway_contract/test_event_bridge_contract.py +0 -0
  598. {akquant-0.3.80 → akquant-0.3.82}/tests/gateway_contract/test_recovery_contract.py +0 -0
  599. {akquant-0.3.80 → akquant-0.3.82}/tests/gateway_contract/test_submitter_contract.py +0 -0
  600. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/BASELINE_REPORT.md +0 -0
  601. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/futures_margin/equity_curve.parquet +0 -0
  602. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/futures_margin/metrics.json +0 -0
  603. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/futures_margin/orders.parquet +0 -0
  604. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/futures_margin/trading_day_ends.json +0 -0
  605. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/futures_night_weekend/equity_curve.parquet +0 -0
  606. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/futures_night_weekend/metrics.json +0 -0
  607. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/futures_night_weekend/orders.parquet +0 -0
  608. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/futures_night_weekend/trades.parquet +0 -0
  609. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/futures_night_weekend/trading_day_ends.json +0 -0
  610. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/option_basic/equity_curve.parquet +0 -0
  611. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/option_basic/metrics.json +0 -0
  612. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/option_basic/orders.parquet +0 -0
  613. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/option_basic/trading_day_ends.json +0 -0
  614. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/order_cancel/equity_curve.parquet +0 -0
  615. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/order_cancel/metrics.json +0 -0
  616. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/order_cancel/orders.parquet +0 -0
  617. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/order_cancel/trades.parquet +0 -0
  618. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/order_cancel/trading_day_ends.json +0 -0
  619. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/stock_minute_auction/equity_curve.parquet +0 -0
  620. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/stock_minute_auction/metrics.json +0 -0
  621. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/stock_minute_auction/orders.parquet +0 -0
  622. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/stock_minute_auction/trades.parquet +0 -0
  623. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/stock_minute_auction/trading_day_ends.json +0 -0
  624. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/stock_t1/equity_curve.parquet +0 -0
  625. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/stock_t1/metrics.json +0 -0
  626. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/stock_t1/orders.parquet +0 -0
  627. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/stock_t1/trades.parquet +0 -0
  628. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/baselines/stock_t1/trading_day_ends.json +0 -0
  629. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/data/future_margin.parquet +0 -0
  630. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/data/future_margin.parquet.sha256 +0 -0
  631. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/data/futures_night_weekend.parquet +0 -0
  632. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/data/futures_night_weekend.parquet.sha256 +0 -0
  633. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/data/option_basic.parquet +0 -0
  634. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/data/option_basic.parquet.sha256 +0 -0
  635. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/data/order_cancel.parquet +0 -0
  636. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/data/order_cancel.parquet.sha256 +0 -0
  637. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/data/stock_minute_auction.parquet +0 -0
  638. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/data/stock_minute_auction.parquet.sha256 +0 -0
  639. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/data/stock_t1.parquet +0 -0
  640. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/data/stock_t1.parquet.sha256 +0 -0
  641. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/gen_data.py +0 -0
  642. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/runner.py +0 -0
  643. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/strategies/futures_margin.py +0 -0
  644. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/strategies/futures_night_weekend.py +0 -0
  645. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/strategies/option_basic.py +0 -0
  646. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/strategies/order_cancel.py +0 -0
  647. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/strategies/stock_minute_auction.py +0 -0
  648. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/strategies/stock_t1.py +0 -0
  649. {akquant-0.3.80 → akquant-0.3.82}/tests/golden/test_golden.py +0 -0
  650. {akquant-0.3.80 → akquant-0.3.82}/tests/mcp_server/conftest.py +0 -0
  651. {akquant-0.3.80 → akquant-0.3.82}/tests/mcp_server/test_cli.py +0 -0
  652. {akquant-0.3.80 → akquant-0.3.82}/tests/mcp_server/test_mcp_api_index.py +0 -0
  653. {akquant-0.3.80 → akquant-0.3.82}/tests/mcp_server/test_mcp_check.py +0 -0
  654. {akquant-0.3.80 → akquant-0.3.82}/tests/mcp_server/test_mcp_data.py +0 -0
  655. {akquant-0.3.80 → akquant-0.3.82}/tests/mcp_server/test_mcp_errors.py +0 -0
  656. {akquant-0.3.80 → akquant-0.3.82}/tests/mcp_server/test_mcp_guides.py +0 -0
  657. {akquant-0.3.80 → akquant-0.3.82}/tests/mcp_server/test_mcp_main.py +0 -0
  658. {akquant-0.3.80 → akquant-0.3.82}/tests/mcp_server/test_mcp_paths.py +0 -0
  659. {akquant-0.3.80 → akquant-0.3.82}/tests/mcp_server/test_mcp_records.py +0 -0
  660. {akquant-0.3.80 → akquant-0.3.82}/tests/mcp_server/test_mcp_runs.py +0 -0
  661. {akquant-0.3.80 → akquant-0.3.82}/tests/mcp_server/test_mcp_server.py +0 -0
  662. {akquant-0.3.80 → akquant-0.3.82}/tests/test_account_risk_rules.py +0 -0
  663. {akquant-0.3.80 → akquant-0.3.82}/tests/test_api_rename_cash.py +0 -0
  664. {akquant-0.3.80 → akquant-0.3.82}/tests/test_api_rename_composites.py +0 -0
  665. {akquant-0.3.80 → akquant-0.3.82}/tests/test_api_rename_equity.py +0 -0
  666. {akquant-0.3.80 → akquant-0.3.82}/tests/test_api_rename_holding_bars.py +0 -0
  667. {akquant-0.3.80 → akquant-0.3.82}/tests/test_api_rename_positions.py +0 -0
  668. {akquant-0.3.80 → akquant-0.3.82}/tests/test_api_rename_rebalance.py +0 -0
  669. {akquant-0.3.80 → akquant-0.3.82}/tests/test_api_rename_scheduler.py +0 -0
  670. {akquant-0.3.80 → akquant-0.3.82}/tests/test_backtest_fund_fee_rules.py +0 -0
  671. {akquant-0.3.80 → akquant-0.3.82}/tests/test_backtest_params.py +0 -0
  672. {akquant-0.3.80 → akquant-0.3.82}/tests/test_backtest_symbol_column_aliases.py +0 -0
  673. {akquant-0.3.80 → akquant-0.3.82}/tests/test_backtest_tick_aggregate.py +0 -0
  674. {akquant-0.3.80 → akquant-0.3.82}/tests/test_backtest_tick_entry.py +0 -0
  675. {akquant-0.3.80 → akquant-0.3.82}/tests/test_backtest_tick_history.py +0 -0
  676. {akquant-0.3.80 → akquant-0.3.82}/tests/test_bar_aggregator_live.py +0 -0
  677. {akquant-0.3.80 → akquant-0.3.82}/tests/test_bar_generator.py +0 -0
  678. {akquant-0.3.80 → akquant-0.3.82}/tests/test_bar_hook_bookkeeping_invariants.py +0 -0
  679. {akquant-0.3.80 → akquant-0.3.82}/tests/test_bench_noise_gate.py +0 -0
  680. {akquant-0.3.80 → akquant-0.3.82}/tests/test_boundary_bar_fill.py +0 -0
  681. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_bridge_adapts_events.py +0 -0
  682. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_bridge_drives_order_groups.py +0 -0
  683. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_dropped_counts_periodic_summary.py +0 -0
  684. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_event_adapter.py +0 -0
  685. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_event_adapter_local_id.py +0 -0
  686. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_event_symbol_filter.py +0 -0
  687. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_event_task_isolation.py +0 -0
  688. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_execution_local_stops.py +0 -0
  689. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_execution_read_path_parity.py +0 -0
  690. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_execution_stop_requeue.py +0 -0
  691. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_live_risk_enforcement.py +0 -0
  692. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_order_redelivery_dedup.py +0 -0
  693. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_plugins.py +0 -0
  694. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_position_sync.py +0 -0
  695. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_profile_cn_stock.py +0 -0
  696. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_recovery_cadence.py +0 -0
  697. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_recovery_error_visibility.py +0 -0
  698. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_seed_baseline.py +0 -0
  699. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_trade_redelivery_dedup.py +0 -0
  700. {akquant-0.3.80 → akquant-0.3.82}/tests/test_broker_trade_stats.py +0 -0
  701. {akquant-0.3.80 → akquant-0.3.82}/tests/test_buying_power_new_symbol.py +0 -0
  702. {akquant-0.3.80 → akquant-0.3.82}/tests/test_cancel_request_persistence.py +0 -0
  703. {akquant-0.3.80 → akquant-0.3.82}/tests/test_candle_exporters.py +0 -0
  704. {akquant-0.3.80 → akquant-0.3.82}/tests/test_candle_render_type.py +0 -0
  705. {akquant-0.3.80 → akquant-0.3.82}/tests/test_chart_d3kline.py +0 -0
  706. {akquant-0.3.80 → akquant-0.3.82}/tests/test_chart_drawing_normalize.py +0 -0
  707. {akquant-0.3.80 → akquant-0.3.82}/tests/test_chart_normalize.py +0 -0
  708. {akquant-0.3.80 → akquant-0.3.82}/tests/test_check_release.py +0 -0
  709. {akquant-0.3.80 → akquant-0.3.82}/tests/test_checkpoint_0371_compat.py +0 -0
  710. {akquant-0.3.80 → akquant-0.3.82}/tests/test_checkpoint_option_rules.py +0 -0
  711. {akquant-0.3.80 → akquant-0.3.82}/tests/test_close_position_delegate.py +0 -0
  712. {akquant-0.3.80 → akquant-0.3.82}/tests/test_composed_ctx_not_ready.py +0 -0
  713. {akquant-0.3.80 → akquant-0.3.82}/tests/test_cost_config_consolidation.py +0 -0
  714. {akquant-0.3.80 → akquant-0.3.82}/tests/test_cross_section_day_order_next_open_fill.py +0 -0
  715. {akquant-0.3.80 → akquant-0.3.82}/tests/test_ctp_classify_order_error.py +0 -0
  716. {akquant-0.3.80 → akquant-0.3.82}/tests/test_custom_matcher.py +0 -0
  717. {akquant-0.3.80 → akquant-0.3.82}/tests/test_data_catalog.py +0 -0
  718. {akquant-0.3.80 → akquant-0.3.82}/tests/test_date_only_rewrite_cache.py +0 -0
  719. {akquant-0.3.80 → akquant-0.3.82}/tests/test_day_order_expiry_no_zombie_fill.py +0 -0
  720. {akquant-0.3.80 → akquant-0.3.82}/tests/test_deterministic_order.py +0 -0
  721. {akquant-0.3.80 → akquant-0.3.82}/tests/test_docs_api_examples.py +0 -0
  722. {akquant-0.3.80 → akquant-0.3.82}/tests/test_docs_links.py +0 -0
  723. {akquant-0.3.80 → akquant-0.3.82}/tests/test_drawing_stream.py +0 -0
  724. {akquant-0.3.80 → akquant-0.3.82}/tests/test_dual_stream_freq_inference.py +0 -0
  725. {akquant-0.3.80 → akquant-0.3.82}/tests/test_engine.py +0 -0
  726. {akquant-0.3.80 → akquant-0.3.82}/tests/test_engine_python_crossings.py +0 -0
  727. {akquant-0.3.80 → akquant-0.3.82}/tests/test_event_model_parity.py +0 -0
  728. {akquant-0.3.80 → akquant-0.3.82}/tests/test_examples_regression.py +0 -0
  729. {akquant-0.3.80 → akquant-0.3.82}/tests/test_execution_binding.py +0 -0
  730. {akquant-0.3.80 → akquant-0.3.82}/tests/test_execution_broker.py +0 -0
  731. {akquant-0.3.80 → akquant-0.3.82}/tests/test_execution_broker_reads_routed.py +0 -0
  732. {akquant-0.3.80 → akquant-0.3.82}/tests/test_execution_composed_parity.py +0 -0
  733. {akquant-0.3.80 → akquant-0.3.82}/tests/test_execution_read_delegation.py +0 -0
  734. {akquant-0.3.80 → akquant-0.3.82}/tests/test_execution_sim.py +0 -0
  735. {akquant-0.3.80 → akquant-0.3.82}/tests/test_execution_write_delegation.py +0 -0
  736. {akquant-0.3.80 → akquant-0.3.82}/tests/test_expiry_terminal_dispatch.py +0 -0
  737. {akquant-0.3.80 → akquant-0.3.82}/tests/test_expiry_trade_accounting.py +0 -0
  738. {akquant-0.3.80 → akquant-0.3.82}/tests/test_factor_engine.py +0 -0
  739. {akquant-0.3.80 → akquant-0.3.82}/tests/test_factor_ops.py +0 -0
  740. {akquant-0.3.80 → akquant-0.3.82}/tests/test_feed_adapter.py +0 -0
  741. {akquant-0.3.80 → akquant-0.3.82}/tests/test_fetch_akshare_symbol.py +0 -0
  742. {akquant-0.3.80 → akquant-0.3.82}/tests/test_fill_mode.py +0 -0
  743. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_broker_live_cancel.py +0 -0
  744. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_broker_live_reads.py +0 -0
  745. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_broker_models_ext.py +0 -0
  746. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_broker_state_cache.py +0 -0
  747. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_broker_state_invalidation.py +0 -0
  748. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_broker_submitter_quantity.py +0 -0
  749. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_broker_submitter_readiness.py +0 -0
  750. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_broker_submitter_signature.py +0 -0
  751. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_brokers_paths.py +0 -0
  752. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_builtins_registry.py +0 -0
  753. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_callbacks.py +0 -0
  754. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_cancel_failure.py +0 -0
  755. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_ctp_adapter.py +0 -0
  756. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_ctp_dual_stream.py +0 -0
  757. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_ctp_native.py +0 -0
  758. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_expired_order_status.py +0 -0
  759. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_factory.py +0 -0
  760. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_mapper.py +0 -0
  761. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_mixed_market_trader.py +0 -0
  762. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_optional_market.py +0 -0
  763. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_order_error_classification.py +0 -0
  764. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_order_submitter_extra.py +0 -0
  765. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_order_tick_reject_soft.py +0 -0
  766. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_order_tick_validation.py +0 -0
  767. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_place_order_failure.py +0 -0
  768. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_registry.py +0 -0
  769. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_sim_submit_guard.py +0 -0
  770. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_symbol_match.py +0 -0
  771. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_tif_mapping.py +0 -0
  772. {akquant-0.3.80 → akquant-0.3.82}/tests/test_gateway_trader_base.py +0 -0
  773. {akquant-0.3.80 → akquant-0.3.82}/tests/test_get_order_finalized.py +0 -0
  774. {akquant-0.3.80 → akquant-0.3.82}/tests/test_grid_search_all_failed.py +0 -0
  775. {akquant-0.3.80 → akquant-0.3.82}/tests/test_heikin_ashi.py +0 -0
  776. {akquant-0.3.80 → akquant-0.3.82}/tests/test_hooks_functional_wrapper.py +0 -0
  777. {akquant-0.3.80 → akquant-0.3.82}/tests/test_hooks_inherited_via_base.py +0 -0
  778. {akquant-0.3.80 → akquant-0.3.82}/tests/test_indicator_declaration.py +0 -0
  779. {akquant-0.3.80 → akquant-0.3.82}/tests/test_indicator_declaration_review.py +0 -0
  780. {akquant-0.3.80 → akquant-0.3.82}/tests/test_indicator_dual_stream.py +0 -0
  781. {akquant-0.3.80 → akquant-0.3.82}/tests/test_indicator_duplicate_name.py +0 -0
  782. {akquant-0.3.80 → akquant-0.3.82}/tests/test_indicator_intrabar.py +0 -0
  783. {akquant-0.3.80 → akquant-0.3.82}/tests/test_indicator_live_web_example.py +0 -0
  784. {akquant-0.3.80 → akquant-0.3.82}/tests/test_indicator_non_finite.py +0 -0
  785. {akquant-0.3.80 → akquant-0.3.82}/tests/test_indicator_owner_identity.py +0 -0
  786. {akquant-0.3.80 → akquant-0.3.82}/tests/test_indicator_recording.py +0 -0
  787. {akquant-0.3.80 → akquant-0.3.82}/tests/test_indicator_script.py +0 -0
  788. {akquant-0.3.80 → akquant-0.3.82}/tests/test_inspector.py +0 -0
  789. {akquant-0.3.80 → akquant-0.3.82}/tests/test_instrument_default_tick.py +0 -0
  790. {akquant-0.3.80 → akquant-0.3.82}/tests/test_instrument_fee_override.py +0 -0
  791. {akquant-0.3.80 → akquant-0.3.82}/tests/test_instrument_slippage.py +0 -0
  792. {akquant-0.3.80 → akquant-0.3.82}/tests/test_instrument_symbol_suffix_normalization.py +0 -0
  793. {akquant-0.3.80 → akquant-0.3.82}/tests/test_instruments_config_symbol_mismatch.py +0 -0
  794. {akquant-0.3.80 → akquant-0.3.82}/tests/test_lifecycle_hooks.py +0 -0
  795. {akquant-0.3.80 → akquant-0.3.82}/tests/test_lifecycle_review_fixes.py +0 -0
  796. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_auto_preload.py +0 -0
  797. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_broker_slot_routing.py +0 -0
  798. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_duration_wallclock.py +0 -0
  799. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_freq_injection.py +0 -0
  800. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_market_config_by_asset_type.py +0 -0
  801. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_mixed_market_broker.py +0 -0
  802. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_multi_slot_windows.py +0 -0
  803. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_paper_execution_params.py +0 -0
  804. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_preload_normalize.py +0 -0
  805. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_preload_runner.py +0 -0
  806. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_public_api.py +0 -0
  807. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runner.py +0 -0
  808. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runner_bounded_session.py +0 -0
  809. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runner_broker_bridge.py +0 -0
  810. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runner_broker_readiness.py +0 -0
  811. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runner_broker_recovery.py +0 -0
  812. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runner_broker_submitter.py +0 -0
  813. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runner_client_order_id.py +0 -0
  814. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runner_instrument_snapshots.py +0 -0
  815. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runner_lifecycle.py +0 -0
  816. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runner_no_market_data_warning.py +0 -0
  817. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runner_order_request_cache.py +0 -0
  818. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runner_sigterm_stop.py +0 -0
  819. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runner_stop_remap.py +0 -0
  820. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_runtime_config_dispatch.py +0 -0
  821. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_subscribe_forwards_to_gateway.py +0 -0
  822. {akquant-0.3.80 → akquant-0.3.82}/tests/test_live_summary_stop_reason.py +0 -0
  823. {akquant-0.3.80 → akquant-0.3.82}/tests/test_local_stop_book.py +0 -0
  824. {akquant-0.3.80 → akquant-0.3.82}/tests/test_local_stop_book_threadsafe.py +0 -0
  825. {akquant-0.3.80 → akquant-0.3.82}/tests/test_local_stop_scenario.py +0 -0
  826. {akquant-0.3.80 → akquant-0.3.82}/tests/test_log_sensitive_filter.py +0 -0
  827. {akquant-0.3.80 → akquant-0.3.82}/tests/test_lwc_drawings.py +0 -0
  828. {akquant-0.3.80 → akquant-0.3.82}/tests/test_lwc_indicators.py +0 -0
  829. {akquant-0.3.80 → akquant-0.3.82}/tests/test_lwc_review.py +0 -0
  830. {akquant-0.3.80 → akquant-0.3.82}/tests/test_merge_results.py +0 -0
  831. {akquant-0.3.80 → akquant-0.3.82}/tests/test_ml_rolling_training_threshold.py +0 -0
  832. {akquant-0.3.80 → akquant-0.3.82}/tests/test_multi_slot_ownership.py +0 -0
  833. {akquant-0.3.80 → akquant-0.3.82}/tests/test_multisymbol_cross_section_consistency.py +0 -0
  834. {akquant-0.3.80 → akquant-0.3.82}/tests/test_naive_timezone.py +0 -0
  835. {akquant-0.3.80 → akquant-0.3.82}/tests/test_normalize.py +0 -0
  836. {akquant-0.3.80 → akquant-0.3.82}/tests/test_oco_bracket_broker_live_scenario.py +0 -0
  837. {akquant-0.3.80 → akquant-0.3.82}/tests/test_on_execution_report_noop.py +0 -0
  838. {akquant-0.3.80 → akquant-0.3.82}/tests/test_on_timer_suspension_deadlock.py +0 -0
  839. {akquant-0.3.80 → akquant-0.3.82}/tests/test_optimize_functional_params.py +0 -0
  840. {akquant-0.3.80 → akquant-0.3.82}/tests/test_optimize_params.py +0 -0
  841. {akquant-0.3.80 → akquant-0.3.82}/tests/test_option_expiry_settlement.py +0 -0
  842. {akquant-0.3.80 → akquant-0.3.82}/tests/test_option_fees.py +0 -0
  843. {akquant-0.3.80 → akquant-0.3.82}/tests/test_option_market_side_effects.py +0 -0
  844. {akquant-0.3.80 → akquant-0.3.82}/tests/test_order_api_return_values.py +0 -0
  845. {akquant-0.3.80 → akquant-0.3.82}/tests/test_order_audit.py +0 -0
  846. {akquant-0.3.80 → akquant-0.3.82}/tests/test_order_callback_dedupe.py +0 -0
  847. {akquant-0.3.80 → akquant-0.3.82}/tests/test_order_receipt.py +0 -0
  848. {akquant-0.3.80 → akquant-0.3.82}/tests/test_order_receipt_backtest.py +0 -0
  849. {akquant-0.3.80 → akquant-0.3.82}/tests/test_order_target_lot_size_alignment.py +0 -0
  850. {akquant-0.3.80 → akquant-0.3.82}/tests/test_orders_df.py +0 -0
  851. {akquant-0.3.80 → akquant-0.3.82}/tests/test_params.py +0 -0
  852. {akquant-0.3.80 → akquant-0.3.82}/tests/test_params_adapter.py +0 -0
  853. {akquant-0.3.80 → akquant-0.3.82}/tests/test_parquet_stream.py +0 -0
  854. {akquant-0.3.80 → akquant-0.3.82}/tests/test_partial_filled_status.py +0 -0
  855. {akquant-0.3.80 → akquant-0.3.82}/tests/test_pickle_model_objects.py +0 -0
  856. {akquant-0.3.80 → akquant-0.3.82}/tests/test_plot_defaults.py +0 -0
  857. {akquant-0.3.80 → akquant-0.3.82}/tests/test_portfolio.py +0 -0
  858. {akquant-0.3.80 → akquant-0.3.82}/tests/test_position_effect_flip.py +0 -0
  859. {akquant-0.3.80 → akquant-0.3.82}/tests/test_pre_open_live_warns.py +0 -0
  860. {akquant-0.3.80 → akquant-0.3.82}/tests/test_product_presets.py +0 -0
  861. {akquant-0.3.80 → akquant-0.3.82}/tests/test_quickstart_stream_consistency.py +0 -0
  862. {akquant-0.3.80 → akquant-0.3.82}/tests/test_reduce_only_sell_affordability.py +0 -0
  863. {akquant-0.3.80 → akquant-0.3.82}/tests/test_removed_wrappers.py +0 -0
  864. {akquant-0.3.80 → akquant-0.3.82}/tests/test_replay_live_end_to_end.py +0 -0
  865. {akquant-0.3.80 → akquant-0.3.82}/tests/test_replay_market_gateway.py +0 -0
  866. {akquant-0.3.80 → akquant-0.3.82}/tests/test_report_helpers.py +0 -0
  867. {akquant-0.3.80 → akquant-0.3.82}/tests/test_report_plot_extensions.py +0 -0
  868. {akquant-0.3.80 → akquant-0.3.82}/tests/test_result_analysis_extensions.py +0 -0
  869. {akquant-0.3.80 → akquant-0.3.82}/tests/test_review_minors_cleanup.py +0 -0
  870. {akquant-0.3.80 → akquant-0.3.82}/tests/test_run_live_indicator_stream.py +0 -0
  871. {akquant-0.3.80 → akquant-0.3.82}/tests/test_session_config.py +0 -0
  872. {akquant-0.3.80 → akquant-0.3.82}/tests/test_session_matching.py +0 -0
  873. {akquant-0.3.80 → akquant-0.3.82}/tests/test_session_resolver.py +0 -0
  874. {akquant-0.3.80 → akquant-0.3.82}/tests/test_signal_module.py +0 -0
  875. {akquant-0.3.80 → akquant-0.3.82}/tests/test_signal_port_injection.py +0 -0
  876. {akquant-0.3.80 → akquant-0.3.82}/tests/test_signal_sources_p3.py +0 -0
  877. {akquant-0.3.80 → akquant-0.3.82}/tests/test_sizer_auto_resize.py +0 -0
  878. {akquant-0.3.80 → akquant-0.3.82}/tests/test_slippage_bare_number.py +0 -0
  879. {akquant-0.3.80 → akquant-0.3.82}/tests/test_sort_determinism.py +0 -0
  880. {akquant-0.3.80 → akquant-0.3.82}/tests/test_source_trading_day.py +0 -0
  881. {akquant-0.3.80 → akquant-0.3.82}/tests/test_stock_tick_validation.py +0 -0
  882. {akquant-0.3.80 → akquant-0.3.82}/tests/test_stop_id_remap_scenario.py +0 -0
  883. {akquant-0.3.80 → akquant-0.3.82}/tests/test_stop_orders.py +0 -0
  884. {akquant-0.3.80 → akquant-0.3.82}/tests/test_stop_retry_client_order_id.py +0 -0
  885. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_custom_init_params.py +0 -0
  886. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_drawing.py +0 -0
  887. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_events_stop_hook.py +0 -0
  888. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_extras.py +0 -0
  889. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_freq_attribute.py +0 -0
  890. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_history_dual_stream.py +0 -0
  891. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_history_missing_symbol_warning.py +0 -0
  892. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_inspect.py +0 -0
  893. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_loader_candidates.py +0 -0
  894. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_loader_exports.py +0 -0
  895. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_loader_pickle.py +0 -0
  896. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_loader_plugins.py +0 -0
  897. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_loader_reload.py +0 -0
  898. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_ml_dual_stream.py +0 -0
  899. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_order_group_lock.py +0 -0
  900. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_params.py +0 -0
  901. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_session_api.py +0 -0
  902. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_sizing_broker_live_guard.py +0 -0
  903. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_stats.py +0 -0
  904. {akquant-0.3.80 → akquant-0.3.82}/tests/test_strategy_stats_parity.py +0 -0
  905. {akquant-0.3.80 → akquant-0.3.82}/tests/test_stream_series_key.py +0 -0
  906. {akquant-0.3.80 → akquant-0.3.82}/tests/test_subscribe_live_warns.py +0 -0
  907. {akquant-0.3.80 → akquant-0.3.82}/tests/test_suspension_zero_volume_gtc_terminal.py +0 -0
  908. {akquant-0.3.80 → akquant-0.3.82}/tests/test_symbols_filtering.py +0 -0
  909. {akquant-0.3.80 → akquant-0.3.82}/tests/test_symbols_whitelist_rust.py +0 -0
  910. {akquant-0.3.80 → akquant-0.3.82}/tests/test_t_plus_one.py +0 -0
  911. {akquant-0.3.80 → akquant-0.3.82}/tests/test_talib_alignment.py +0 -0
  912. {akquant-0.3.80 → akquant-0.3.82}/tests/test_talib_backend.py +0 -0
  913. {akquant-0.3.80 → akquant-0.3.82}/tests/test_talib_compat.py +0 -0
  914. {akquant-0.3.80 → akquant-0.3.82}/tests/test_target_orders_core.py +0 -0
  915. {akquant-0.3.80 → akquant-0.3.82}/tests/test_tick_indicators.py +0 -0
  916. {akquant-0.3.80 → akquant-0.3.82}/tests/test_tick_input.py +0 -0
  917. {akquant-0.3.80 → akquant-0.3.82}/tests/test_trade_stream_bridge.py +0 -0
  918. {akquant-0.3.80 → akquant-0.3.82}/tests/test_trades_df.py +0 -0
  919. {akquant-0.3.80 → akquant-0.3.82}/tests/test_trading_day_lifecycle.py +0 -0
  920. {akquant-0.3.80 → akquant-0.3.82}/tests/test_utils_price.py +0 -0
  921. {akquant-0.3.80 → akquant-0.3.82}/tests/test_vectorized.py +0 -0
  922. {akquant-0.3.80 → akquant-0.3.82}/tests/test_version.py +0 -0
  923. {akquant-0.3.80 → akquant-0.3.82}/tests/test_viz_namespace.py +0 -0
  924. {akquant-0.3.80 → akquant-0.3.82}/tests/test_volume_limit.py +0 -0
  925. {akquant-0.3.80 → akquant-0.3.82}/tests/test_walk_forward_kwargs.py +0 -0
  926. {akquant-0.3.80 → akquant-0.3.82}/tests/test_warm_start_slippage_inherit.py +0 -0
  927. {akquant-0.3.80 → akquant-0.3.82}/tests/test_warmup_period_per_symbol.py +0 -0
  928. {akquant-0.3.80 → akquant-0.3.82}/tests/test_window_checkpoint.py +0 -0
  929. {akquant-0.3.80 → akquant-0.3.82}/tests/test_window_live_replay.py +0 -0
  930. {akquant-0.3.80 → akquant-0.3.82}/tests/test_window_sessions.py +0 -0
  931. {akquant-0.3.80 → akquant-0.3.82}/tests/test_window_subscriptions.py +0 -0
@@ -7,6 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.82] - 2026-11-07
11
+
12
+ > **规则版本不变(2.2.0)**:回测数值不变,只是更快。
13
+
14
+ ### Changed
15
+ - **回测提速约一倍:历史缓冲区不再每根 bar 整段复制**:引擎的历史缓冲区默认容量是 10000(用于平仓时计算 MAE/MFE,`history_depth` 不设时也是这个值),而每写入一根 bar,都会把该标的的整段序列(6 列 × 1 万个数值,约 480KB)复制一份,只为在盘前钩子 `on_pre_open` / `on_before_trading` 里带截止时刻取历史时,能拿到“最近一次写入之前”的序列。这一项占了空策略回测一半以上的时间。现在只记下写入时被挤出的最老一行和本次新建的 extra 列,需要时现拼出同样的序列,逐值与原来的整份复制一致(有随机化的等价性测试锁定)。20 万根 A 股分钟 bar 的空策略回测从约 6.6 秒降到约 3.1 秒、简单买卖策略从约 7.7 秒降到约 3.6 秒(成交与权益逐值相同);多标的回测时历史缓冲区的内存占用也减少一半。对外接口、存档格式与回测数值都不变。
16
+
17
+ ## [0.3.81] - 2026-11-07
18
+
19
+ > **规则版本不变(2.2.0)**:回测数值不变。**不兼容变更**:多标的指标在 `on_bar` / `on_tick` / 窗口回调之外不写标的取值,由静默返回别的标的的值改为抛 `ValueError`,见下方 Changed。
20
+
21
+ ### Added
22
+ - **指标绑定对象新增 `.of(symbol)`,在任何回调里按标的取值**(#434):`self.ma.of("510300")[0]` 返回固定到该标的的视图,支持 `[n]` 回溯、`len()`、多值分量(`self.macd.of(s).dif[0]` / `self.macd.dif.of(s)[0]`)与 `is_ready` 等属性,增量指标与预计算指标写法相同;标的不在声明的 `symbols=` 之内时抛 `ValueError`。热启动存档会连同固定的标的一起恢复。新增示例 `examples/79_multi_symbol_indicator_timer.py`(ETF 轮动,`on_timer` 里按标的读动量与均线)。
23
+
24
+ ### Fixed
25
+ - **`self.I(factory=lambda: PrecomputedIndicator(...))` 第一根 bar 就抛 `NotImplementedError`**(#434):`factory=` 一律按增量指标处理、每根 bar 调 `update()`。现在声明时调用一次 factory 识别类型:产物是没有自己实现 `update()` 的 `PrecomputedIndicator` 时按预计算处理(它本身按标的缓存结果,天然多标的);继承它又实现了 `update()` 的类仍按增量处理(`examples/60` 的写法不变)。增量指标的这个探测实例交给第一个标的,factory 的调用次数不变。
26
+
27
+ ### Changed
28
+ - **在 `on_bar` / `on_tick` / 窗口回调之外,多标的指标不写标的取值改为报错**(#434):原先按 `self.current_bar` 解析标的,而它在 `on_timer` 里停在最后处理的那根 bar 上、在 `on_cross_section` 里是 `None`,于是 `on_timer` 里 `self.ma[0]` 静默返回别的标的的值,`on_cross_section` 里恒为 `None`,按它下单的轮动策略拿到的是错值。现在不写标的时:`on_bar` / `on_tick` / `subscribe_bars` 窗口回调里取该回调的标的(嵌在其中同步触发的 `on_order` 等沿用);其他回调里指标只跟踪一个标的(只跑一个标的、`symbols=` 只声明一个、或共享实例)时取它,跟踪多个标的时抛 `ValueError` 并提示改用 `.of(symbol)`。单标的策略与只在 `on_bar` 里读指标的策略不受影响。迁移:把 `on_timer` / `on_cross_section` / `on_order` / `on_trade` 里的 `self.ind[0]` 改成 `self.ind.of(symbol)[0]`。
29
+ - 文档:《自定义指标指南》新增“多标的:按标的取值 `.of(symbol)`”一节;自定义增量指标示例不再继承 `PrecomputedIndicator`(任何有 `update()` 的对象即可);常见误区与选择建议注明 `factory=` 只为增量指标而设、预计算指标直接传实例。策略手册、API 参考与 MCP 指标指南同步(中英文)。
30
+
10
31
  ## [0.3.80] - 2026-11-07
11
32
 
12
33
  > **规则版本 2.2.0**:含基金(ETF)标的、且走中国市场规则(`t_plus_one=True`、含期货或期权、或有标的设置了 `sellable_after_days`)的回测,基金手续费会变化——此前按引擎默认费率收取,现在按传入的全局费率收取(不传时与股票一样为 0);其余回测不变。paper 会话不传新参数时行为与此前一致。
@@ -30,7 +30,7 @@ dependencies = [
30
30
 
31
31
  [[package]]
32
32
  name = "akquant"
33
- version = "0.3.80"
33
+ version = "0.3.82"
34
34
  dependencies = [
35
35
  "anyhow",
36
36
  "chrono",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "akquant"
3
- version = "0.3.80"
3
+ version = "0.3.82"
4
4
  edition = "2024"
5
5
  description = "High-performance quantitative trading framework based on Rust and Python"
6
6
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: akquant
3
- Version: 0.3.80
3
+ Version: 0.3.82
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -87,6 +87,59 @@ A not-ready value is always `None` (both a native indicator with an unfilled win
87
87
  precomputed indicator whose asof lookup misses are normalized to `None`), so a single
88
88
  `if value is None` check is enough — no separate `NaN` handling.
89
89
 
90
+ ### Multiple symbols: per-symbol access with `.of(symbol)` {: #indicator-of-symbol }
91
+
92
+ In a multi-symbol strategy one indicator declaration holds one series per symbol. Which
93
+ one `ind[0]` reads without a symbol depends on the callback you read it in:
94
+
95
+ | Where you read | Symbol `ind[0]` resolves to |
96
+ | :--- | :--- |
97
+ | `on_bar` / `on_tick` / a `subscribe_bars` window callback | the symbol of that callback |
98
+ | `on_timer`, `on_cross_section`, `on_order`, `on_trade` and other callbacks | the only symbol if the indicator tracks one; **raises if it tracks several**, pointing to `.of()` |
99
+
100
+ `ind.of(symbol)` returns a view pinned to one symbol that works in any callback, with
101
+ `[n]` lookback, `len()`, components (`self.macd.of(s).dif[0]` or `self.macd.dif.of(s)[0]`)
102
+ and attributes such as `is_ready`. It works the same for incremental and precomputed
103
+ indicators.
104
+
105
+ ```python
106
+ from akquant import SMA, PrecomputedIndicator, Strategy
107
+
108
+ ETFS = ["510300", "510500", "159915"]
109
+
110
+
111
+ class Rotation(Strategy):
112
+ def on_start(self):
113
+ self.mom = self.I(
114
+ PrecomputedIndicator("mom20", lambda df: df["close"].pct_change(20)),
115
+ name="mom",
116
+ )
117
+ self.ma = self.I(factory=lambda: SMA(20), name="ma")
118
+ self.schedule_weekly("14:50:00", "rebalance")
119
+
120
+ def on_timer(self, payload):
121
+ scores = {}
122
+ for symbol in ETFS:
123
+ mom, ma_now, ma_before = (
124
+ self.mom.of(symbol)[0],
125
+ self.ma.of(symbol)[0],
126
+ self.ma.of(symbol)[5],
127
+ )
128
+ if None not in (mom, ma_now, ma_before) and ma_now > ma_before:
129
+ scores[symbol] = mom
130
+ ... # rebalance by scores
131
+ ```
132
+
133
+ - `self.current_bar` cannot identify the symbol: in `on_timer` it still points at the last
134
+ processed bar, and in `on_cross_section` it is `None`. Up to 0.3.80 reads resolved
135
+ through it and silently returned another symbol's value (always `None` in
136
+ `on_cross_section`); they now raise instead.
137
+ - When the timer fires before the day's bar closes (e.g. 14:50 on daily bars), you read the
138
+ last closed bar, so there is no look-ahead.
139
+ - `ind.of(symbol)` raises `ValueError` if the symbol is outside the declared `symbols=`
140
+ (most likely a typo).
141
+ - Full example: [79_multi_symbol_indicator_timer.py](https://github.com/akfamily/akquant/blob/main/examples/79_multi_symbol_indicator_timer.py).
142
+
90
143
  ## Path 1: Incremental Indicators
91
144
 
92
145
  Passing any object that exposes `update()` selects the incremental path. AKQuant ships
@@ -100,12 +153,13 @@ Pine's `ta.*` and work out of the box.
100
153
  from collections import deque
101
154
 
102
155
  import pandas as pd
103
- from akquant import PrecomputedIndicator, Strategy
156
+ from akquant import Strategy
104
157
 
105
158
 
106
- class MyMomentum(PrecomputedIndicator):
159
+ class MyMomentum:
160
+ """Any object with update() is an incremental indicator; no base class needed."""
161
+
107
162
  def __init__(self, period: int = 10):
108
- super().__init__("my_momentum", lambda df: df["close"] - df["close"].shift(period))
109
163
  self.period = period
110
164
  self.buffer: deque[float] = deque(maxlen=period)
111
165
  self._current_value = float("nan")
@@ -146,7 +200,12 @@ class IncrementalMomentumStrategy(Strategy):
146
200
  In a multi-symbol strategy, incremental indicators usually carry internal state. Sharing
147
201
  one instance across symbols would cross the wires, so passing an *instance* (rather than a
148
202
  `factory`) and then using it across multiple symbols raises an error immediately — state is
149
- never silently shared.
203
+ never silently shared. The `factory` is called once at declaration to detect the indicator
204
+ type, and that instance goes to the first symbol, so no extra instance is created.
205
+
206
+ `factory` exists for incremental indicators. A precomputed `PrecomputedIndicator` caches its
207
+ results per symbol and is multi-symbol by nature, so pass the instance directly; written as
208
+ `factory=` it is detected and treated as precomputed as well.
150
209
 
151
210
  Recommended:
152
211
 
@@ -292,7 +351,7 @@ class PrecomputeMomentumStrategy(Strategy):
292
351
  - **Tick input raises**: precompute needs full OHLC, while a tick only carries a trade price;
293
352
  - **`freq=` is not supported**: use an incremental indicator for windowed frequencies.
294
353
  - **No `warmup_bars=`**: there is no incremental state to warm up - the whole series is computed up front.
295
- - **Multi-symbol out of the box**: `PrecomputedIndicator` caches its full series per symbol, so no `factory=` is needed.
354
+ - **Multi-symbol out of the box**: `PrecomputedIndicator` caches its full series per symbol, so no `factory=` is needed (it is treated as precomputed if you write one); to read a given symbol in `on_timer` and similar callbacks see [per-symbol access](#indicator-of-symbol).
296
355
 
297
356
  ## Automatic Plotting
298
357
 
@@ -1275,8 +1334,9 @@ In short, AKQuant should act as the indicator producer, not the full enterprise
1275
1334
  an `update()` works for the incremental case. `aq.Indicator` is the base class of
1276
1335
  draw-only indicator scripts, which is a different thing from writing a custom indicator.
1277
1336
  - Pitfall 2: one incremental instance can be shared safely across symbols
1278
- - It cannot. Passing an instance and using it across symbols raises; production
1279
- multi-symbol strategies use `factory=`.
1337
+ - It cannot. Passing an instance and using it across symbols raises; use `factory=` for
1338
+ incremental indicators. Precomputed indicators are multi-symbol by nature: pass the
1339
+ instance.
1280
1340
  - Pitfall 3: `warmup_bars=20` double-consumes the first active bar
1281
1341
  - It does not. Warmup only uses history before the active start boundary.
1282
1342
  - Pitfall 4: custom indicators automatically work with warm start
@@ -1287,6 +1347,9 @@ In short, AKQuant should act as the indicator producer, not the full enterprise
1287
1347
  - Not inside an `aq.Strategy`: write `plot=True` (`pane=` / `color=` alone is not enough),
1288
1348
  matching Pine where `ta.*` computes and `plot()` draws. Inside an indicator script
1289
1349
  `aq.Indicator` it is drawn by default; `plot=False` turns it off.
1350
+ - Pitfall 7: `ind[0]` in `on_timer` / `on_cross_section` reads "the current symbol"
1351
+ - These callbacks do not belong to a symbol. A multi-symbol indicator needs
1352
+ `ind.of(symbol)[0]`; a bare read raises, see [per-symbol access](#indicator-of-symbol).
1290
1353
 
1291
1354
  ## Recommendation Matrix
1292
1355
 
@@ -1294,7 +1357,8 @@ In short, AKQuant should act as the indicator producer, not the full enterprise
1294
1357
  | :--- | :--- |
1295
1358
  | Validate an idea quickly | `self.I(PrecomputedIndicator(name, fn))` |
1296
1359
  | Single-symbol bar-by-bar state | `self.I(aq.EMA(20))` |
1297
- | Multi-symbol production strategy | `self.I(factory=...)` |
1360
+ | Multi-symbol production strategy | `self.I(factory=...)` for incremental indicators; pass precomputed ones directly |
1361
+ | Read each symbol's indicator in a timer / cross-section callback | `ind.of(symbol)[0]` |
1298
1362
  | Need valid values on the first active bar | `self.I(..., warmup_bars=N)` |
1299
1363
  | Need it drawn on the chart | `plot=True` in a strategy, or write an `aq.Indicator` script |
1300
1364
  | Detect a golden/death cross | serial lookback via `ind[0]` / `ind[1]` |
@@ -996,6 +996,7 @@ Notes:
996
996
 
997
997
  * `ind[0]` is the current bar's value (`.value` is an alias) and `ind[1]` is the previous bar. Out-of-range lookback returns `None` instead of raising, so a single `if val is None` check covers the warmup period.
998
998
  * If one shared instance is reused across multiple symbols, AKQuant raises an explicit error and points users to `factory=`.
999
+ * In `on_bar` / `on_tick`, `ind[0]` reads the current symbol; in callbacks that do not belong to a symbol (`on_timer`, `on_cross_section`, ...) read a multi-symbol indicator with `ind.of(symbol)[0]` — a bare read raises. See the [Custom Indicator Guide](./custom_indicator.md#indicator-of-symbol).
999
1000
  * `warmup_bars` only consumes history before the active start boundary and does not double-consume the first active bar.
1000
1001
  * Inside a strategy, plot points are reported automatically only with `plot=True`; nothing is reported by default, and plotting arguments (`pane` / `color` / `label`, ...) no longer imply `plot=True`. A draw-only unit can be written as an `aq.Indicator` script, which plots by default.
1001
1002
  * If you need to build private indicators instead of only using built-ins such as `SMA` or `EMA`, continue with the [Custom Indicator Guide](./custom_indicator.md).
@@ -1040,6 +1040,7 @@ Notes:
1040
1040
 
1041
1041
  * `class MyStrategy(aq.Strategy, title="Trend", id="trend")`: `title` is a display name (defaults to the class name); `id` is the machine id. When `id` is given it is the `strategy_id`; a different `run_backtest/run_live(strategy_id=...)` raises `ValueError`. Without `id`, `strategy_id` still defaults to `"_default"`. Strategies do not accept `overlay=` (`TypeError`).
1042
1042
  * `self.I(...)` does **not** plot by default inside a strategy; pass `plot=True` to draw. Chart arguments such as `pane` / `color` / `label` no longer imply `plot=True`.
1043
+ * The binding returned by `self.I(...)`: `ind[0]` / `ind[n]` read the callback's symbol inside `on_bar` / `on_tick` / window callbacks; `ind.of(symbol)` returns a view pinned to one symbol that works in any callback (with `[n]`, `len()`, components and `is_ready`) and raises `ValueError` for a symbol outside the declared `symbols=`. In other callbacks a bare read of a multi-symbol indicator raises `ValueError`. A `factory=` is called once at declaration to detect the type. See the [Custom Indicator Guide](../guide/custom_indicator.md#indicator-of-symbol).
1043
1044
 
1044
1045
  ### `akquant.Indicator` {: #akquant-indicator }
1045
1046
 
@@ -1060,7 +1061,7 @@ class DualMA(aq.Indicator, title="Dual MA", overlay=True, id="dual_ma"):
1060
1061
 
1061
1062
  ### `akquant.PrecomputedIndicator`
1062
1063
 
1063
- Vectorized precomputed indicator: `PrecomputedIndicator(name, fn)`, where `fn(df) -> pd.Series` computes over one symbol's full `DataFrame` at once; declare it with `self.I(PrecomputedIndicator(...))`. Backtest only; it does not support tick input, `freq=` or `warmup_bars=`.
1064
+ Vectorized precomputed indicator: `PrecomputedIndicator(name, fn)`, where `fn(df) -> pd.Series` computes over one symbol's full `DataFrame` at once; declare it with `self.I(PrecomputedIndicator(...))` (multi-symbol by nature: no `factory=` needed, and one is treated as precomputed). Backtest only; it does not support tick input, `freq=` or `warmup_bars=`.
1064
1065
 
1065
1066
  ### `akquant.HeikinAshi`
1066
1067
 
@@ -81,6 +81,56 @@ class MaCross(Strategy):
81
81
  未就绪时取值为 `None`(原生指标未满窗、预计算指标 asof 落空都归一成 `None`),
82
82
  因此判空统一写 `if value is None`,不必再区分 `NaN`。
83
83
 
84
+ ### 多标的:按标的取值 `.of(symbol)` {: #indicator-of-symbol }
85
+
86
+ 多标的策略里一条指标声明对应每个标的各一份数据。`ind[0]` 不写标的时取哪一份,
87
+ 取决于在哪个回调里读:
88
+
89
+ | 在哪里读 | `ind[0]` 取哪个标的 |
90
+ | :--- | :--- |
91
+ | `on_bar` / `on_tick` / `subscribe_bars` 的窗口回调 | 该回调所属的标的 |
92
+ | `on_timer`、`on_cross_section`、`on_order`、`on_trade` 等其他回调 | 指标只跟踪一个标的时取它;**跟踪多个标的时报错**,提示改用 `.of()` |
93
+
94
+ `ind.of(symbol)` 返回固定到某个标的的视图,在任何回调里都可用,`[n]` 回溯、
95
+ `len()`、多值分量(`self.macd.of(s).dif[0]` 或 `self.macd.dif.of(s)[0]`)与
96
+ `is_ready` 等属性照常。增量指标与预计算指标写法相同。
97
+
98
+ ```python
99
+ from akquant import SMA, PrecomputedIndicator, Strategy
100
+
101
+ ETFS = ["510300", "510500", "159915"]
102
+
103
+
104
+ class Rotation(Strategy):
105
+ def on_start(self):
106
+ self.mom = self.I(
107
+ PrecomputedIndicator("mom20", lambda df: df["close"].pct_change(20)),
108
+ name="mom",
109
+ )
110
+ self.ma = self.I(factory=lambda: SMA(20), name="ma")
111
+ self.schedule_weekly("14:50:00", "rebalance")
112
+
113
+ def on_timer(self, payload):
114
+ scores = {}
115
+ for symbol in ETFS:
116
+ mom, ma_now, ma_before = (
117
+ self.mom.of(symbol)[0],
118
+ self.ma.of(symbol)[0],
119
+ self.ma.of(symbol)[5],
120
+ )
121
+ if None not in (mom, ma_now, ma_before) and ma_now > ma_before:
122
+ scores[symbol] = mom
123
+ ... # 按 scores 调仓
124
+ ```
125
+
126
+ - 不能用 `self.current_bar` 推断标的:它在 `on_timer` 里停在最后处理的那根 bar 上,
127
+ 在 `on_cross_section` 里是 `None`。0.3.80 及以前按它解析,会静默取到别的标的的值
128
+ (`on_cross_section` 里恒为 `None`),现在改为直接报错。
129
+ - 定时器时刻早于当日 bar 收盘时(如 14:50 读日线),读到的是上一根已收盘 bar 的值,
130
+ 没有未来函数。
131
+ - `ind.of(symbol)` 的标的不在声明的 `symbols=` 之内时报 `ValueError`(多半是代码写错)。
132
+ - 完整示例:[79_multi_symbol_indicator_timer.py](https://github.com/akfamily/akquant/blob/main/examples/79_multi_symbol_indicator_timer.py)。
133
+
84
134
  ## 路径一:增量指标
85
135
 
86
136
  传入任何有 `update()` 的对象即走增量路径。AKQuant 内置了 100+ 个 Rust 实现的
@@ -93,12 +143,13 @@ class MaCross(Strategy):
93
143
  from collections import deque
94
144
 
95
145
  import pandas as pd
96
- from akquant import PrecomputedIndicator, Strategy
146
+ from akquant import Strategy
97
147
 
98
148
 
99
- class MyMomentum(PrecomputedIndicator):
149
+ class MyMomentum:
150
+ """任何有 update() 的对象都是增量指标, 不需要继承基类."""
151
+
100
152
  def __init__(self, period: int = 10):
101
- super().__init__("my_momentum", lambda df: df["close"] - df["close"].shift(period))
102
153
  self.period = period
103
154
  self.buffer: deque[float] = deque(maxlen=period)
104
155
  self._current_value = float("nan")
@@ -138,6 +189,10 @@ class IncrementalMomentumStrategy(Strategy):
138
189
 
139
190
  多标的策略里,增量指标通常都有内部状态。多个 `symbol` 共用同一个实例会串线,
140
191
  因此传实例(而非 `factory`)时跨多标的使用会直接报错,不会静默共享状态。
192
+ `factory` 会在声明时先调用一次识别类型,造出的实例留给第一个标的,不会多造。
193
+
194
+ `factory` 只为增量指标而设。预计算指标 `PrecomputedIndicator` 自己按标的缓存结果,
195
+ 天然多标的,直接传实例即可;写成 `factory=` 也会被识别、按预计算处理。
141
196
 
142
197
  推荐写法:
143
198
 
@@ -272,7 +327,7 @@ class PrecomputeMomentumStrategy(Strategy):
272
327
  - **含 Tick 的输入会报错**:预计算需要完整 OHLC,tick 只有成交价;
273
328
  - **不支持 `freq=`**:窗口周期请改用增量指标。
274
329
  - **不支持 `warmup_bars=`**:它没有增量状态可预热,整段本来就算好了;
275
- - **多标的天然可用**:`PrecomputedIndicator` 自己按 symbol 缓存整段结果,不需要 `factory=`。
330
+ - **多标的天然可用**:`PrecomputedIndicator` 自己按 symbol 缓存整段结果,不需要 `factory=`(写了也按预计算处理);在 `on_timer` 等回调里按标的取值见[按标的取值](#indicator-of-symbol)。
276
331
 
277
332
  ## 自动绘图
278
333
 
@@ -1136,7 +1191,8 @@ panes = to_raw_panes(defs, points_by_identity) # 保留 akquant 原生语义,
1136
1191
  - 不是。预计算场景可以直接用 `PrecomputedIndicator(name, fn)`;增量场景传任何有 `update()` 的对象都行。
1137
1192
  `aq.Indicator` 是“只画图不交易”的指标脚本基类,与“写一个自定义指标”是两回事。
1138
1193
  - 误区 2:多标的一定可以共用一个增量实例
1139
- - 不行。传实例跨多标的会直接报错,正式策略请用 `factory=`。
1194
+ - 不行。传实例跨多标的会直接报错,增量指标请用 `factory=`;预计算指标天然多标的,
1195
+ 直接传实例。
1140
1196
  - 误区 3:`warmup_bars=20` 会重复消费第一根正式 Bar
1141
1197
  - 不会。预热只使用正式开始前的历史数据。
1142
1198
  - 误区 4:自定义指标自然支持热启动
@@ -1146,6 +1202,9 @@ panes = to_raw_panes(defs, points_by_identity) # 保留 akquant 原生语义,
1146
1202
  - 误区 6:声明了指标就会自动画出来
1147
1203
  - 在 `aq.Strategy` 里不会,要写 `plot=True`(只写 `pane=` / `color=` 不够),与 Pine 的 `ta.*`
1148
1204
  不画、`plot()` 才画一致;在指标脚本 `aq.Indicator` 里默认画,`plot=False` 关闭。
1205
+ - 误区 7:在 `on_timer` / `on_cross_section` 里 `ind[0]` 会取“当前标的”
1206
+ - 这些回调不属于某个标的。多标的指标要写 `ind.of(symbol)[0]`,不写会报错,
1207
+ 见[按标的取值](#indicator-of-symbol)。
1149
1208
 
1150
1209
  ## 选择建议
1151
1210
 
@@ -1153,7 +1212,8 @@ panes = to_raw_panes(defs, points_by_identity) # 保留 akquant 原生语义,
1153
1212
  | :--- | :--- |
1154
1213
  | 先快速验证一个想法 | `self.I(PrecomputedIndicator(name, fn))` |
1155
1214
  | 单标的逐 Bar 更新 | `self.I(aq.EMA(20))` |
1156
- | 多标的正式策略 | `self.I(factory=...)` |
1215
+ | 多标的正式策略 | 增量指标 `self.I(factory=...)`,预计算指标直接传实例 |
1216
+ | 定时器 / 横截面回调里读各标的的指标 | `ind.of(symbol)[0]` |
1157
1217
  | 首根有效 Bar 就要有值 | `self.I(..., warmup_bars=N)` |
1158
1218
  | 要在图上画出来 | 策略里写 `plot=True`,或改写成指标脚本 `aq.Indicator` |
1159
1219
  | 判断金叉死叉 | `ind[0]` / `ind[1]` 序列回溯 |
@@ -1342,6 +1342,7 @@ class MultiSymbolIncrementalStrategy(Strategy):
1342
1342
 
1343
1343
  * `ind[0]` 是当前 Bar 的值(`.value` 是它的别名),`ind[1]` 是上一根,越界返回 `None` 而不抛异常,因此判空统一写 `if val is None`。
1344
1344
  * 如果一个共享实例被多个 `symbol` 复用,框架会显式报错,提示改为 `factory=`。
1345
+ * `on_bar` / `on_tick` 里 `ind[0]` 取当前标的;在 `on_timer`、`on_cross_section` 等不属于某个标的的回调里,多标的指标用 `ind.of(symbol)[0]` 取值,不写标的会报错,见[自定义指标指南](./custom_indicator.md#indicator-of-symbol)。
1345
1346
  * `warmup_bars` 只会消费正式开始时间之前的历史数据,不会重复消费第一根有效 Bar。
1346
1347
  * 策略里写了 `plot=True` 才会自动上报绘图点,默认不上报;`pane` / `color` / `label` 等绘图参数不再隐含 `plot=True`。只画图不交易的单元可写成指标脚本 `aq.Indicator`,那里默认画。
1347
1348
  * 如果你需要编写自己的私有指标,而不仅仅是使用内置 `SMA/EMA`,请继续阅读:[自定义指标指南](./custom_indicator.md)。
@@ -1107,6 +1107,7 @@ def on_pre_open(self, event: Dict[str, Any]) -> None:
1107
1107
 
1108
1108
  * `class MyStrategy(aq.Strategy, title="趋势", id="trend")`:`title` 为显示名(省略为类名),`id` 为机器标识。写了 `id` 时它就是 `strategy_id`,与 `run_backtest/run_live(strategy_id=...)` 不一致报 `ValueError`;不写 `id` 时 `strategy_id` 仍默认 `"_default"`。策略不接受 `overlay=`(报 `TypeError`)。
1109
1109
  * `self.I(...)` 在策略里**默认不画图**,要画写 `plot=True`;`pane` / `color` / `label` 等绘图参数不再隐含 `plot=True`。
1110
+ * `self.I(...)` 返回的绑定对象:`ind[0]` / `ind[n]` 在 `on_bar` / `on_tick` / 窗口回调里取该回调的标的;`ind.of(symbol)` 返回固定到某个标的的视图,任何回调里都可用(支持 `[n]`、`len()`、多值分量与 `is_ready`),标的不在声明的 `symbols=` 之内时抛 `ValueError`。其他回调里多标的指标不写标的取值抛 `ValueError`。`factory=` 在声明时调用一次识别类型。见[自定义指标指南](../guide/custom_indicator.md#indicator-of-symbol)。
1110
1111
 
1111
1112
  ### `akquant.Indicator` {: #akquant-indicator }
1112
1113
 
@@ -1127,7 +1128,7 @@ class DualMA(aq.Indicator, title="双均线", overlay=True, id="dual_ma"):
1127
1128
 
1128
1129
  ### `akquant.PrecomputedIndicator`
1129
1130
 
1130
- 向量化预计算指标:`PrecomputedIndicator(name, fn)`,`fn(df) -> pd.Series` 对单个标的的完整 `DataFrame` 一次性计算,经 `self.I(PrecomputedIndicator(...))` 声明。只用于回测;不支持含 Tick 的输入、`freq=` 与 `warmup_bars=`。
1131
+ 向量化预计算指标:`PrecomputedIndicator(name, fn)`,`fn(df) -> pd.Series` 对单个标的的完整 `DataFrame` 一次性计算,经 `self.I(PrecomputedIndicator(...))` 声明(天然多标的,不需要 `factory=`,写了也按预计算处理)。只用于回测;不支持含 Tick 的输入、`freq=` 与 `warmup_bars=`。
1131
1132
 
1132
1133
  ### `akquant.HeikinAshi`
1133
1134
 
@@ -0,0 +1,137 @@
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+ """
4
+ 多标的指标在定时器与横截面回调里按标的取值:``self.ind.of(symbol)``.
5
+
6
+ 一个 ETF 轮动策略,给三个标的各算两个指标:
7
+
8
+ - ``mom``:20 日动量,用 ``PrecomputedIndicator`` 对整段数据向量化计算
9
+ (第三方 pandas-ta、自写的 numpy 函数都可以这样接入)。预计算指标自己按标的
10
+ 缓存结果,直接传实例即可,不需要 ``factory=``;
11
+ - ``ma``:20 日均线,增量指标,多标的用 ``factory=`` 给每个标的各造一个实例。
12
+
13
+ 每周一 14:50 的定时器里用 ``.of(symbol)[0]`` 读各标的的值(``.of(symbol)[5]`` 是
14
+ 5 根之前的值,回溯照常可用),持有动量为正、均线向上的标的里动量最高的那一只。
15
+
16
+ ``on_bar`` / ``on_tick`` / 窗口回调里 ``self.ma[0]`` 取的是该回调的标的;在
17
+ ``on_timer``、``on_cross_section`` 这类不属于某个标的的回调里,多标的指标必须用
18
+ ``.of(symbol)`` 指定标的,不指定会直接报错(而不是静默取到别的标的的值)。
19
+ 14:50 的定时器早于当日 15:00 收盘的日线,读到的是上一交易日收盘后的值,没有未来函数。
20
+
21
+ 数据是本地合成的,不需要联网。
22
+
23
+ 运行方式::
24
+
25
+ python examples/79_multi_symbol_indicator_timer.py
26
+
27
+ 输出:每次调仓的持仓变化与最终收益。
28
+ """
29
+
30
+ from __future__ import annotations
31
+
32
+ import math
33
+ from typing import Any, Dict, Optional
34
+
35
+ import numpy as np
36
+ import pandas as pd
37
+ from akquant import SMA, PrecomputedIndicator, Strategy, run_backtest
38
+
39
+ SYMBOLS = {"510300": "沪深300ETF", "510500": "中证500ETF", "159915": "创业板ETF"}
40
+
41
+
42
+ def make_data(days: int = 250) -> Dict[str, pd.DataFrame]:
43
+ """三条走势不同的合成日线(收盘时刻 15:00,上海时区)."""
44
+ index = pd.date_range(
45
+ "2024-01-02 15:00", periods=days, freq="B", tz="Asia/Shanghai"
46
+ )
47
+ data = {}
48
+ for k, symbol in enumerate(SYMBOLS):
49
+ t = np.arange(days, dtype=float)
50
+ # 三个标的的强弱交替出现,轮动才有意义
51
+ close = 3.0 + 0.4 * np.sin(t / 25.0 + k * 2.1) + 0.002 * t * (k - 1)
52
+ data[symbol] = pd.DataFrame(
53
+ {
54
+ "date": index,
55
+ "open": close,
56
+ "high": close * 1.01,
57
+ "low": close * 0.99,
58
+ "close": close,
59
+ "volume": 1e8,
60
+ "symbol": symbol,
61
+ }
62
+ )
63
+ return data
64
+
65
+
66
+ def momentum_20(df: pd.DataFrame) -> pd.Series:
67
+ """20 日动量(收益率),整段一次算完."""
68
+ return df["close"] / df["close"].shift(20) - 1.0
69
+
70
+
71
+ class EtfRotation(Strategy):
72
+ """每周一按动量轮动,只持有一只."""
73
+
74
+ def on_start(self) -> None:
75
+ """声明指标与定时器."""
76
+ self.mom = self.I(PrecomputedIndicator("mom20", momentum_20), name="mom")
77
+ self.ma = self.I(factory=lambda: SMA(20), name="ma")
78
+ self.schedule_weekly("14:50:00", "rebalance")
79
+ self.holding: Optional[str] = None
80
+ self.pending_buy: Optional[str] = None
81
+ self.switches = 0
82
+
83
+ def on_timer(self, payload: str) -> None:
84
+ """按标的读指标、排序、调仓."""
85
+ scores: Dict[str, float] = {}
86
+ for symbol in SYMBOLS:
87
+ mom = self.mom.of(symbol)[0]
88
+ ma_now = self.ma.of(symbol)[0]
89
+ ma_before = self.ma.of(symbol)[5]
90
+ if mom is None or ma_now is None or ma_before is None or math.isnan(mom):
91
+ continue # 预热期还没有值
92
+ if mom > 0 and ma_now > ma_before:
93
+ scores[symbol] = mom
94
+ target = max(scores, key=lambda s: scores[s]) if scores else None
95
+ if target == self.holding:
96
+ return
97
+ if self.holding is not None:
98
+ # 先卖后买: 两笔同时提交时买单可能先撮合, 卖出的钱还没回来就被拒
99
+ self.order_target_percent(self.holding, 0.0)
100
+ self.pending_buy = target
101
+ elif target is not None:
102
+ self.order_target_percent(target, 0.95)
103
+ print(
104
+ f"{self.now:%Y-%m-%d} 调仓: {self.holding} -> {target} "
105
+ f"scores={_fmt(scores)}"
106
+ )
107
+ self.holding = target
108
+ self.switches += 1
109
+
110
+ def on_trade(self, trade: Any) -> None:
111
+ """卖单成交、资金回笼后再买新标的."""
112
+ if self.pending_buy is not None and str(trade.side).endswith("Sell"):
113
+ target, self.pending_buy = self.pending_buy, None
114
+ self.order_target_percent(target, 0.95)
115
+
116
+
117
+ def _fmt(scores: Dict[str, float]) -> Dict[str, Any]:
118
+ return {s: round(v, 4) for s, v in scores.items()}
119
+
120
+
121
+ if __name__ == "__main__":
122
+ strategy = EtfRotation()
123
+ result = run_backtest(
124
+ data=make_data(),
125
+ strategy=strategy,
126
+ initial_cash=1_000_000,
127
+ commission_rate=0.0001,
128
+ min_commission=0.0,
129
+ lot_size=100,
130
+ show_progress=False,
131
+ )
132
+ rejected = [o for o in result.orders if "Rejected" in str(o.status)]
133
+ print(
134
+ f"调仓次数: {strategy.switches},成交 {len(result.executions)} 笔,"
135
+ f"拒单 {len(rejected)} 笔"
136
+ )
137
+ print(f"总收益率: {result.metrics.total_return_pct:.2f}%")
@@ -72,6 +72,7 @@
72
72
  - [76_tick_intrabar_indicators.py](./76_tick_intrabar_indicators.py): 基础周期指标在 **tick** 上的实时值:`self.I(aq.SMA(3), intrabar=True)` 后 tick 只试算不提交、bar 闭合才推进状态,框架从 tick 累出形成中 bar(含真实 H/L,ATR 可用);临时点时间戳按区间末打戳公式预测并与闭合 bar 自校验。`run_backtest(data=[Tick,...], freq="1min")`。
73
73
  - [77_heikin_ashi_indicator.py](./77_heikin_ashi_indicator.py): K 线形态指标(对标 Pine `plotcandle`):内置 `aq.HeikinAshi()` 经 `self.I(..., input_mode="ohlc", outputs=("open","high","low","close"), render_type="candle")` 声明成一组,定义带 `group`/`role`;`viz.review` 画成一条空心/实心单色 Candlestick,d3kline 降级为 close 一条线;类定义行 `replaces_price=True` 给前端提示,`aq.inspect_strategy` 静态读出。
74
74
  - [78_chart_drawings.py](./78_chart_drawings.py): 策略绘图与统计表:双均线策略用 `self.draw` 画金叉/死叉标注(`label`)、近 20 根区间(`box`)、趋势线(`line(extend="right")`)、斐波那契回撤(`fib`)、最近 5 根收盘连线(`polyline`),并用 `self.stats.as_rows()` 做全局统计表(`table(symbol="*")`)和带单元格底色的标的表;回测结束读 `result.drawings`,`viz.review` 复盘页渲染(HTML 写到临时目录,路径会打印)。
75
+ - [79_multi_symbol_indicator_timer.py](./79_multi_symbol_indicator_timer.py): 多标的指标在定时器里按标的取值:ETF 轮动策略用 `PrecomputedIndicator` 算 20 日动量(直接传实例,天然多标的)、`factory=` 声明 20 日均线,每周一 14:50 的 `on_timer` 里用 `self.mom.of(symbol)[0]` / `self.ma.of(symbol)[5]` 读各标的、排序调仓;先卖后买(`on_trade` 里等卖单成交再买)。合成数据,不联网。
75
76
  - [71_native_multi_timeframe_live.py](./71_native_multi_timeframe_live.py): 实盘(`broker="replay"`)多周期示例,行情网关声明 `metadata["freq"]` 后 `subscribe_bars("5min")` 零延迟闭合,`on_window_bar` 与 `run_backtest` 同一份策略代码不改一行。
76
77
 
77
78
  ## 流式回测与实时报告
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "akquant"
7
- version = "0.3.80"
7
+ version = "0.3.82"
8
8
  description = "High-performance quantitative trading framework based on Rust and Python"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT License"}
@@ -218,6 +218,9 @@ class IndicatorDeclaration:
218
218
  # 说明该 symbol 全程只有 tick、从未有 bar, 需要报错而非静默不推进。
219
219
  bar_seen_symbols: set[str] = field(default_factory=set)
220
220
  tick_only_symbols: set[str] = field(default_factory=set)
221
+ #: ``factory=`` 声明时探测类型造出的那个实例, 交给第一个出现的标的用,
222
+ #: 这样 factory 不会因为探测而多调用一次。
223
+ spare_instance: Any = None
221
224
  #: 曾在 tick 上做过 intrabar 试算的 symbol。会话结束时与 bar_seen_symbols
222
225
  #: 做差: 从未收到 bar 的 symbol 永远只试算不确认, 是配置错误(纯 tick 会话
223
226
  #: 开了 intrabar), 要报错而非静默。
@@ -353,16 +356,43 @@ class IndicatorBinding:
353
356
 
354
357
  未知属性一律代理到底层指标实例, 所以 ``aq.SMA`` 之类的原生属性
355
358
  (``is_ready`` 等)照常可用。
359
+
360
+ 不指定标的时, 在 ``on_bar`` / ``on_tick`` / 窗口回调里取该回调的标的; 在其他
361
+ 回调(``on_timer``、``on_cross_section`` 等)里, 指标跟踪多个标的时报错, 用
362
+ :meth:`of` 指定标的。
356
363
  """
357
364
 
358
- def __init__(self, strategy: Any, name: str) -> None:
359
- """绑定策略实例与指标名, 延迟解析当前 symbol 对应的真实指标."""
365
+ def __init__(self, strategy: Any, name: str, symbol: Optional[str] = None) -> None:
366
+ """绑定策略实例与指标名; ``symbol`` 非空时固定到该标的(见 :meth:`of`)."""
360
367
  self._strategy = strategy
361
368
  self._name = name
369
+ self._symbol = symbol
370
+
371
+ def of(self, symbol: str) -> "IndicatorBinding":
372
+ """固定到某个标的的视图: ``self.ma.of("510300")[0]``.
373
+
374
+ 在任何回调里都按该标的取值, 支持 ``[n]`` 回溯、``len()``、多值分量
375
+ (``self.macd.of(s).dif[0]``)与 ``is_ready`` 等属性。声明时给了
376
+ ``symbols=`` 而该标的不在其中时报错(多半是代码写错)。
377
+
378
+ :raises ValueError: 标的为空, 或不在声明的 ``symbols`` 之内
379
+ """
380
+ text = "" if symbol is None else str(symbol).strip()
381
+ if not text:
382
+ raise ValueError(f"指标 {self._name!r} 的 .of() 需要一个非空的标的代码")
383
+ declared = self._declaration().symbols
384
+ if declared is not None and text not in declared:
385
+ raise ValueError(
386
+ f"指标 {self._name!r} 只声明给了 {sorted(declared)!r}, "
387
+ f"没有标的 {text!r}; 检查标的代码, 或把它加进 I(symbols=...)"
388
+ )
389
+ return IndicatorBinding(self._strategy, self._name, text)
362
390
 
363
391
  def get_instance(self, symbol: Optional[str] = None) -> Any:
364
392
  """返回指定 symbol 对应的底层指标实例."""
365
- return self._strategy._get_incremental_indicator_instance(self._name, symbol)
393
+ return self._strategy._get_incremental_indicator_instance(
394
+ self._name, symbol if symbol is not None else self._symbol
395
+ )
366
396
 
367
397
  def _declaration(self) -> IndicatorDeclaration:
368
398
  declaration = self._strategy._get_incremental_registration(self._name)
@@ -371,7 +401,7 @@ class IndicatorBinding:
371
401
  def _resolved_symbol(self, symbol: Optional[str] = None) -> str:
372
402
  declaration = self._declaration()
373
403
  resolved = self._strategy._resolve_incremental_indicator_symbol(
374
- declaration, symbol
404
+ declaration, symbol if symbol is not None else self._symbol, self._name
375
405
  )
376
406
  return str(resolved)
377
407
 
@@ -428,6 +458,12 @@ class IndicatorComponentBinding:
428
458
  self._name = name
429
459
  self._index = index
430
460
 
461
+ def of(self, symbol: str) -> "IndicatorComponentBinding":
462
+ """固定到某个标的的分量视图: ``self.macd.dif.of("510300")[0]``."""
463
+ return IndicatorComponentBinding(
464
+ self._parent.of(symbol), self._name, self._index
465
+ )
466
+
431
467
  def __getitem__(self, offset: int) -> Any:
432
468
  """``comp[0]`` 当前值, ``comp[n]`` 前 n 根; 未就绪/越界返回 ``None``."""
433
469
  whole = self._parent[offset]
@@ -7,6 +7,7 @@
7
7
  - **在 `on_start` 里声明**,不要放进 `on_bar`。`check_strategy` 遇到 `on_start`/`__init__` 以外的 `self.I` 调用会报 `i-call-outside-init`。参数化的指标(比如周期来自 `self.params`)在 `__init__` 里也能读到参数,但推荐写在 `on_start` 里:热启动恢复会重跑 `on_start` 而不重跑 `__init__`,引擎上下文也在 `on_start` 才就绪。
8
8
  - **用 `name=` 命名**。同一个策略里有多个同类指标时,名字不能重复,重复声明会直接报错。
9
9
  - **取值**:`ind[0]` 是当前 bar 的值(`ind.value` 是它的别名),`ind[n]` 是前 n 根的值。预热期或越界时返回 `None`,不抛异常,所以判空统一写 `if value is None`。
10
+ - **多标的**:`on_bar` / `on_tick` 里 `ind[0]` 取当前标的。在 `on_timer`、`on_cross_section` 等不属于某个标的的回调里,必须写 `ind.of(symbol)[0]`(支持 `[n]` 与多值分量),不写标的会报错。增量指标多标的用 `self.I(factory=lambda: EMA(20), name=...)`;`PrecomputedIndicator` 天然多标的,直接传实例。
10
11
  - **内置指标**:`EMA`、`SMA`、`RSI`、`MACD`、`ATR`、`BollingerBands` 等 100 多个,都是 Rust 实现的增量指标。用 `search_api("EMA")` 查构造参数。
11
12
  - **自定义向量化指标**:`self.I(PrecomputedIndicator("名", lambda df: ...), name="名")`,函数接收整段行情 DataFrame。
12
13
  - 回溯深度由 `lookback` 决定,默认 128。