akquant 0.3.78__tar.gz → 0.3.81__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 (932) hide show
  1. {akquant-0.3.78 → akquant-0.3.81}/CHANGELOG.md +35 -0
  2. {akquant-0.3.78 → akquant-0.3.81}/Cargo.lock +1 -1
  3. {akquant-0.3.78 → akquant-0.3.81}/Cargo.toml +1 -1
  4. {akquant-0.3.78 → akquant-0.3.81}/PKG-INFO +2 -2
  5. {akquant-0.3.78 → akquant-0.3.81}/README.md +1 -1
  6. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/custom_indicator.md +72 -8
  7. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/mcp.md +2 -0
  8. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/strategy.md +1 -0
  9. {akquant-0.3.78 → akquant-0.3.81}/docs/en/reference/api.md +24 -2
  10. {akquant-0.3.78 → akquant-0.3.81}/docs/llms.txt +4 -0
  11. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/custom_indicator.md +66 -6
  12. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/mcp.md +2 -0
  13. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/strategy.md +1 -0
  14. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/reference/api.md +24 -2
  15. akquant-0.3.81/examples/79_multi_symbol_indicator_timer.py +137 -0
  16. {akquant-0.3.78 → akquant-0.3.81}/examples/README.md +1 -0
  17. {akquant-0.3.78 → akquant-0.3.81}/pyproject.toml +1 -1
  18. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/__init__.py +1 -1
  19. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/akquant.pyi +19 -0
  20. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/backtest/engine.py +43 -7
  21. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/indicator_declaration.py +40 -4
  22. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/live/_facade.py +31 -0
  23. akquant-0.3.81/python/akquant/live/_paper_execution.py +184 -0
  24. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/live/_runner.py +31 -0
  25. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/guides/indicators.md +1 -0
  26. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/server.py +8 -1
  27. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy.py +73 -17
  28. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_framework_hooks.py +19 -0
  29. {akquant-0.3.78 → akquant-0.3.81}/server.json +3 -3
  30. {akquant-0.3.78 → akquant-0.3.81}/src/engine/python.rs +23 -0
  31. akquant-0.3.81/src/market/fund.rs +156 -0
  32. {akquant-0.3.78 → akquant-0.3.81}/src/market/manager.rs +19 -1
  33. {akquant-0.3.78 → akquant-0.3.81}/tests/mcp_server/test_mcp_server.py +14 -0
  34. akquant-0.3.81/tests/test_backtest_fund_fee_rules.py +164 -0
  35. akquant-0.3.81/tests/test_indicator_multi_symbol_access.py +438 -0
  36. {akquant-0.3.78 → akquant-0.3.81}/tests/test_instrument_fee_override.py +3 -2
  37. akquant-0.3.81/tests/test_live_paper_execution_params.py +290 -0
  38. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_public_api.py +3 -3
  39. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_timers_indicators.py +7 -4
  40. akquant-0.3.78/src/market/fund.rs +0 -84
  41. {akquant-0.3.78 → akquant-0.3.81}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  42. {akquant-0.3.78 → akquant-0.3.81}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  43. {akquant-0.3.78 → akquant-0.3.81}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  44. {akquant-0.3.78 → akquant-0.3.81}/.github/dependabot.yml +0 -0
  45. {akquant-0.3.78 → akquant-0.3.81}/.github/workflows/deploy-docs.yml +0 -0
  46. {akquant-0.3.78 → akquant-0.3.81}/.github/workflows/docs-quality.yml +0 -0
  47. {akquant-0.3.78 → akquant-0.3.81}/.github/workflows/release.yml +0 -0
  48. {akquant-0.3.78 → akquant-0.3.81}/.gitignore +0 -0
  49. {akquant-0.3.78 → akquant-0.3.81}/.pre-commit-config.yaml +0 -0
  50. {akquant-0.3.78 → akquant-0.3.81}/CODE_OF_CONDUCT.md +0 -0
  51. {akquant-0.3.78 → akquant-0.3.81}/CONTRIBUTING.md +0 -0
  52. {akquant-0.3.78 → akquant-0.3.81}/LICENSE +0 -0
  53. {akquant-0.3.78 → akquant-0.3.81}/assets/dashboard_preview.png +0 -0
  54. {akquant-0.3.78 → akquant-0.3.81}/assets/logo.svg +0 -0
  55. {akquant-0.3.78 → akquant-0.3.81}/assets/social_preview.png +0 -0
  56. {akquant-0.3.78 → akquant-0.3.81}/docs/CNAME +0 -0
  57. {akquant-0.3.78 → akquant-0.3.81}/docs/assets/akquant-icon.svg +0 -0
  58. {akquant-0.3.78 → akquant-0.3.81}/docs/assets/akquant-logo.svg +0 -0
  59. {akquant-0.3.78 → akquant-0.3.81}/docs/assets/reports/akquant_report.html +0 -0
  60. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/analyzer_plugin_spec.md +0 -0
  61. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/broker_capability_matrix.md +0 -0
  62. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/custom_broker_production_checklist.md +0 -0
  63. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/custom_broker_registry.md +0 -0
  64. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/custom_strategy_loader.md +0 -0
  65. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/data_feed_adapter_spec.md +0 -0
  66. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/live_functional_quickstart.md +0 -0
  67. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/llm.md +0 -0
  68. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/ml.md +0 -0
  69. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/multi_strategy_guide.md +0 -0
  70. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/multi_timeframe_feed_api.md +0 -0
  71. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/runtime_config.md +0 -0
  72. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/signal_ingestion.md +0 -0
  73. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/strategy_style_decision.md +0 -0
  74. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/tick_size_alignment.md +0 -0
  75. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/timezone.md +0 -0
  76. {akquant-0.3.78 → akquant-0.3.81}/docs/en/advanced/warm_start.md +0 -0
  77. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/analysis.md +0 -0
  78. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/cross_section_checklist.md +0 -0
  79. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/data.md +0 -0
  80. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/examples.md +0 -0
  81. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/factor.md +0 -0
  82. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/indicator_scenario_quickref.md +0 -0
  83. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/optimization.md +0 -0
  84. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/python_basics.md +0 -0
  85. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/quant_basics.md +0 -0
  86. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/rust_indicator_reference.md +0 -0
  87. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/talib_indicator_playbook.md +0 -0
  88. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/testing.md +0 -0
  89. {akquant-0.3.78 → akquant-0.3.81}/docs/en/guide/visualization.md +0 -0
  90. {akquant-0.3.78 → akquant-0.3.81}/docs/en/index.md +0 -0
  91. {akquant-0.3.78 → akquant-0.3.81}/docs/en/meta/architecture.md +0 -0
  92. {akquant-0.3.78 → akquant-0.3.81}/docs/en/meta/internals.md +0 -0
  93. {akquant-0.3.78 → akquant-0.3.81}/docs/en/start/first_strategy.md +0 -0
  94. {akquant-0.3.78 → akquant-0.3.81}/docs/en/start/installation.md +0 -0
  95. {akquant-0.3.78 → akquant-0.3.81}/docs/en/start/quickstart.md +0 -0
  96. {akquant-0.3.78 → akquant-0.3.81}/docs/en/start/setup_guide.md +0 -0
  97. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/01_foundations.md +0 -0
  98. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/02_programming.md +0 -0
  99. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/03_data.md +0 -0
  100. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/04_backtest_engine.md +0 -0
  101. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/05_strategy.md +0 -0
  102. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/06_stock_a.md +0 -0
  103. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/07_futures.md +0 -0
  104. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/08_options.md +0 -0
  105. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/09_funds.md +0 -0
  106. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/10_analysis.md +0 -0
  107. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/11_optimization.md +0 -0
  108. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/12_ml.md +0 -0
  109. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/13_visualization.md +0 -0
  110. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/14_factor.md +0 -0
  111. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/15_live_trading.md +0 -0
  112. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/16_rust_indicators.md +0 -0
  113. {akquant-0.3.78 → akquant-0.3.81}/docs/en/textbook/index.md +0 -0
  114. {akquant-0.3.78 → akquant-0.3.81}/docs/javascripts/mathjax.js +0 -0
  115. {akquant-0.3.78 → akquant-0.3.81}/docs/javascripts/search-lang-filter.js +0 -0
  116. {akquant-0.3.78 → akquant-0.3.81}/docs/robots.txt +0 -0
  117. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/adding_a_broker.md +0 -0
  118. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/analyzer_plugin_spec.md +0 -0
  119. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/broker_capability_matrix.md +0 -0
  120. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/custom_broker_production_checklist.md +0 -0
  121. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/custom_broker_registry.md +0 -0
  122. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/custom_strategy_loader.md +0 -0
  123. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/data_feed_adapter_spec.md +0 -0
  124. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/live_functional_quickstart.md +0 -0
  125. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/llm.md +0 -0
  126. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/ml.md +0 -0
  127. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/multi_strategy_guide.md +0 -0
  128. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/multi_timeframe_feed_api.md +0 -0
  129. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/runtime_config.md +0 -0
  130. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/signal_ingestion.md +0 -0
  131. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/strategy_style_decision.md +0 -0
  132. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/tick_size_alignment.md +0 -0
  133. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/timezone.md +0 -0
  134. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/advanced/warm_start.md +0 -0
  135. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/analysis.md +0 -0
  136. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/cross_section_checklist.md +0 -0
  137. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/data.md +0 -0
  138. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/examples.md +0 -0
  139. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/factor.md +0 -0
  140. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/indicator_scenario_quickref.md +0 -0
  141. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/optimization.md +0 -0
  142. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/python_basics.md +0 -0
  143. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/quant_basics.md +0 -0
  144. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/rust_indicator_reference.md +0 -0
  145. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/talib_indicator_playbook.md +0 -0
  146. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/testing.md +0 -0
  147. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/guide/visualization.md +0 -0
  148. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/index.md +0 -0
  149. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/meta/architecture.md +0 -0
  150. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/meta/columnar-rfc.md +0 -0
  151. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/meta/internals.md +0 -0
  152. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/start/first_strategy.md +0 -0
  153. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/start/installation.md +0 -0
  154. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/start/quickstart.md +0 -0
  155. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/start/setup_guide.md +0 -0
  156. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/00_glossary.md +0 -0
  157. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/01_foundations.md +0 -0
  158. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/02_programming.md +0 -0
  159. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/03_data.md +0 -0
  160. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/04_backtest_engine.md +0 -0
  161. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/05_strategy.md +0 -0
  162. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/06_stock_a.md +0 -0
  163. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/07_futures.md +0 -0
  164. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/08_options.md +0 -0
  165. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/09_funds.md +0 -0
  166. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/10_analysis.md +0 -0
  167. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/11_optimization.md +0 -0
  168. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/12_ml.md +0 -0
  169. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/13_visualization.md +0 -0
  170. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/14_factor.md +0 -0
  171. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/15_live_trading.md +0 -0
  172. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/16_rust_indicators.md +0 -0
  173. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/ROADMAP.md +0 -0
  174. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/appendix_cite.md +0 -0
  175. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/appendix_pitfalls.md +0 -0
  176. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/appendix_setup.md +0 -0
  177. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/capstone.md +0 -0
  178. {akquant-0.3.78 → akquant-0.3.81}/docs/zh/textbook/index.md +0 -0
  179. {akquant-0.3.78 → akquant-0.3.81}/examples/01_quickstart.py +0 -0
  180. {akquant-0.3.78 → akquant-0.3.81}/examples/02_parameter_optimization.py +0 -0
  181. {akquant-0.3.78 → akquant-0.3.81}/examples/03_parameter_optimization_advanced.py +0 -0
  182. {akquant-0.3.78 → akquant-0.3.81}/examples/04_mixed_assets.py +0 -0
  183. {akquant-0.3.78 → akquant-0.3.81}/examples/05_live_trading_ctp.py +0 -0
  184. {akquant-0.3.78 → akquant-0.3.81}/examples/06_complex_orders.py +0 -0
  185. {akquant-0.3.78 → akquant-0.3.81}/examples/07_option_test.py +0 -0
  186. {akquant-0.3.78 → akquant-0.3.81}/examples/08_event_callbacks.py +0 -0
  187. {akquant-0.3.78 → akquant-0.3.81}/examples/09_ml_framework.py +0 -0
  188. {akquant-0.3.78 → akquant-0.3.81}/examples/10_ml_walk_forward.py +0 -0
  189. {akquant-0.3.78 → akquant-0.3.81}/examples/11_plot_visualization.py +0 -0
  190. {akquant-0.3.78 → akquant-0.3.81}/examples/12_wfo_integrated.py +0 -0
  191. {akquant-0.3.78 → akquant-0.3.81}/examples/13_quantstats_report.py +0 -0
  192. {akquant-0.3.78 → akquant-0.3.81}/examples/14_multi_frequency.py +0 -0
  193. {akquant-0.3.78 → akquant-0.3.81}/examples/15_plot_intraday.py +0 -0
  194. {akquant-0.3.78 → akquant-0.3.81}/examples/16_adj_returns_signal.py +0 -0
  195. {akquant-0.3.78 → akquant-0.3.81}/examples/17_readme_demo.py +0 -0
  196. {akquant-0.3.78 → akquant-0.3.81}/examples/18_benchmark_multisymbol.py +0 -0
  197. {akquant-0.3.78 → akquant-0.3.81}/examples/19_factor_expression.py +0 -0
  198. {akquant-0.3.78 → akquant-0.3.81}/examples/20_risk_management_demo.py +0 -0
  199. {akquant-0.3.78 → akquant-0.3.81}/examples/21_warm_start_demo.py +0 -0
  200. {akquant-0.3.78 → akquant-0.3.81}/examples/22_strategy_runtime_config_demo.py +0 -0
  201. {akquant-0.3.78 → akquant-0.3.81}/examples/23_functional_callbacks_demo.py +0 -0
  202. {akquant-0.3.78 → akquant-0.3.81}/examples/24_functional_tick_simulation_demo.py +0 -0
  203. {akquant-0.3.78 → akquant-0.3.81}/examples/25_streaming_backtest_demo.py +0 -0
  204. {akquant-0.3.78 → akquant-0.3.81}/examples/26_streaming_quickstart.py +0 -0
  205. {akquant-0.3.78 → akquant-0.3.81}/examples/27_streaming_monitoring_console.py +0 -0
  206. {akquant-0.3.78 → akquant-0.3.81}/examples/28_streaming_alerts_and_persist.py +0 -0
  207. {akquant-0.3.78 → akquant-0.3.81}/examples/29_streaming_event_report.py +0 -0
  208. {akquant-0.3.78 → akquant-0.3.81}/examples/30_streaming_report_oneclick.py +0 -0
  209. {akquant-0.3.78 → akquant-0.3.81}/examples/31_streaming_live_console.py +0 -0
  210. {akquant-0.3.78 → akquant-0.3.81}/examples/32_streaming_live_web.py +0 -0
  211. {akquant-0.3.78 → akquant-0.3.81}/examples/33_report_and_analysis_outputs.py +0 -0
  212. {akquant-0.3.78 → akquant-0.3.81}/examples/34_multi_strategy_demo.py +0 -0
  213. {akquant-0.3.78 → akquant-0.3.81}/examples/35_custom_broker_registry_demo.py +0 -0
  214. {akquant-0.3.78 → akquant-0.3.81}/examples/36_trailing_orders.py +0 -0
  215. {akquant-0.3.78 → akquant-0.3.81}/examples/37_feed_replay_alignment_demo.py +0 -0
  216. {akquant-0.3.78 → akquant-0.3.81}/examples/38_live_functional_strategy_demo.py +0 -0
  217. {akquant-0.3.78 → akquant-0.3.81}/examples/39_live_broker_submit_order_demo.py +0 -0
  218. {akquant-0.3.78 → akquant-0.3.81}/examples/39_live_mixed_broker_demo.py +0 -0
  219. {akquant-0.3.78 → akquant-0.3.81}/examples/40_functional_multi_slot_risk_demo.py +0 -0
  220. {akquant-0.3.78 → akquant-0.3.81}/examples/41_live_multi_slot_orchestration_demo.py +0 -0
  221. {akquant-0.3.78 → akquant-0.3.81}/examples/42_live_broker_event_audit_demo.py +0 -0
  222. {akquant-0.3.78 → akquant-0.3.81}/examples/43_target_weights_rebalance.py +0 -0
  223. {akquant-0.3.78 → akquant-0.3.81}/examples/44_strategy_source_loader_demo.py +0 -0
  224. {akquant-0.3.78 → akquant-0.3.81}/examples/45_talib_indicator_playbook_demo.py +0 -0
  225. {akquant-0.3.78 → akquant-0.3.81}/examples/46_broker_profile_demo.py +0 -0
  226. {akquant-0.3.78 → akquant-0.3.81}/examples/47_margin_liquidation_audit_demo.py +0 -0
  227. {akquant-0.3.78 → akquant-0.3.81}/examples/48_margin_liquidation_priority_compare.py +0 -0
  228. {akquant-0.3.78 → akquant-0.3.81}/examples/49_on_expiry_demo.py +0 -0
  229. {akquant-0.3.78 → akquant-0.3.81}/examples/50_framework_hooks_demo.py +0 -0
  230. {akquant-0.3.78 → akquant-0.3.81}/examples/51_class_tick_callbacks_demo.py +0 -0
  231. {akquant-0.3.78 → akquant-0.3.81}/examples/52_pre_open_demo.py +0 -0
  232. {akquant-0.3.78 → akquant-0.3.81}/examples/53_timer_to_pre_open_demo.py +0 -0
  233. {akquant-0.3.78 → akquant-0.3.81}/examples/54_functional_pre_open_demo.py +0 -0
  234. {akquant-0.3.78 → akquant-0.3.81}/examples/55_functional_ml_walk_forward.py +0 -0
  235. {akquant-0.3.78 → akquant-0.3.81}/examples/56_functional_warm_start_demo.py +0 -0
  236. {akquant-0.3.78 → akquant-0.3.81}/examples/57_functional_multi_slot_warm_start_demo.py +0 -0
  237. {akquant-0.3.78 → akquant-0.3.81}/examples/58_incremental_bootstrap_demo.py +0 -0
  238. {akquant-0.3.78 → akquant-0.3.81}/examples/59_akshare_etf_rotation.py +0 -0
  239. {akquant-0.3.78 → akquant-0.3.81}/examples/60_custom_indicator_demo.py +0 -0
  240. {akquant-0.3.78 → akquant-0.3.81}/examples/61_indicator_visualization_export_demo.py +0 -0
  241. {akquant-0.3.78 → akquant-0.3.81}/examples/61_signal_platform_webhook.py +0 -0
  242. {akquant-0.3.78 → akquant-0.3.81}/examples/62_indicator_streaming_demo.py +0 -0
  243. {akquant-0.3.78 → akquant-0.3.81}/examples/63_indicator_ws_bridge_demo.py +0 -0
  244. {akquant-0.3.78 → akquant-0.3.81}/examples/64_indicator_live_web.py +0 -0
  245. {akquant-0.3.78 → akquant-0.3.81}/examples/65_bar_generator.py +0 -0
  246. {akquant-0.3.78 → akquant-0.3.81}/examples/66_logging_audit_demo.py +0 -0
  247. {akquant-0.3.78 → akquant-0.3.81}/examples/67_lwc_trade_review.py +0 -0
  248. {akquant-0.3.78 → akquant-0.3.81}/examples/68_backtest_tick_demo.py +0 -0
  249. {akquant-0.3.78 → akquant-0.3.81}/examples/69_live_runtime_config_dispatch_demo.py +0 -0
  250. {akquant-0.3.78 → akquant-0.3.81}/examples/70_csv_multi_symbol_import_demo.py +0 -0
  251. {akquant-0.3.78 → akquant-0.3.81}/examples/71_native_multi_timeframe_live.py +0 -0
  252. {akquant-0.3.78 → akquant-0.3.81}/examples/72_declarative_indicators.py +0 -0
  253. {akquant-0.3.78 → akquant-0.3.81}/examples/73_lwc_live_indicators.py +0 -0
  254. {akquant-0.3.78 → akquant-0.3.81}/examples/74_indicator_scripts.py +0 -0
  255. {akquant-0.3.78 → akquant-0.3.81}/examples/75_intrabar_indicators.py +0 -0
  256. {akquant-0.3.78 → akquant-0.3.81}/examples/76_tick_intrabar_indicators.py +0 -0
  257. {akquant-0.3.78 → akquant-0.3.81}/examples/77_heikin_ashi_indicator.py +0 -0
  258. {akquant-0.3.78 → akquant-0.3.81}/examples/78_chart_drawings.py +0 -0
  259. {akquant-0.3.78 → akquant-0.3.81}/examples/benchmark_utils.py +0 -0
  260. {akquant-0.3.78 → akquant-0.3.81}/examples/pb_mock.py +0 -0
  261. {akquant-0.3.78 → akquant-0.3.81}/examples/strategies/01_stock_dual_moving_average.py +0 -0
  262. {akquant-0.3.78 → akquant-0.3.81}/examples/strategies/02_stock_grid_trading.py +0 -0
  263. {akquant-0.3.78 → akquant-0.3.81}/examples/strategies/03_stock_atr_breakout.py +0 -0
  264. {akquant-0.3.78 → akquant-0.3.81}/examples/strategies/04_stock_momentum_rotation.py +0 -0
  265. {akquant-0.3.78 → akquant-0.3.81}/examples/strategies/05_stock_momentum_rotation_timer.py +0 -0
  266. {akquant-0.3.78 → akquant-0.3.81}/examples/strategies/06_stock_momentum_rotation_bucket.py +0 -0
  267. {akquant-0.3.78 → akquant-0.3.81}/examples/strategies/07_stock_momentum_rotation_on_timer.py +0 -0
  268. {akquant-0.3.78 → akquant-0.3.81}/examples/strategies/08_target_positions_long_short.py +0 -0
  269. {akquant-0.3.78 → akquant-0.3.81}/examples/strategies/09_stock_momentum_rotation_after_bar.py +0 -0
  270. {akquant-0.3.78 → akquant-0.3.81}/examples/strategies/README.md +0 -0
  271. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch01_quickstart.py +0 -0
  272. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch01_quickstart_functional.py +0 -0
  273. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch02_programming.py +0 -0
  274. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch03_data.py +0 -0
  275. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch04_comparison.py +0 -0
  276. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch04_comparison_functional.py +0 -0
  277. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch05_strategy.py +0 -0
  278. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch05_strategy_functional.py +0 -0
  279. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch06_stock_a.py +0 -0
  280. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch06_stock_a_functional.py +0 -0
  281. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch07_futures.py +0 -0
  282. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch07_futures_functional.py +0 -0
  283. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch08_options.py +0 -0
  284. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch08_options_functional.py +0 -0
  285. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch09_funds.py +0 -0
  286. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch09_funds_functional.py +0 -0
  287. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch09_portfolio.py +0 -0
  288. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch09_portfolio_functional.py +0 -0
  289. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch10_analysis.py +0 -0
  290. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch10_analysis_functional.py +0 -0
  291. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch11_optimization.py +0 -0
  292. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch11_optimization_functional.py +0 -0
  293. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch12_ml.py +0 -0
  294. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch12_ml_functional.py +0 -0
  295. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch13_visualization.py +0 -0
  296. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch13_visualization_functional.py +0 -0
  297. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch14_factor.py +0 -0
  298. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch15_live_trading.py +0 -0
  299. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch15_live_trading_functional.py +0 -0
  300. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch15_strategy_loader.py +0 -0
  301. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch15_strategy_loader_functional.py +0 -0
  302. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch16_indicators.py +0 -0
  303. {akquant-0.3.78 → akquant-0.3.81}/examples/textbook/ch16_indicators_functional.py +0 -0
  304. {akquant-0.3.78 → akquant-0.3.81}/mkdocs.yml +0 -0
  305. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/analysis/__init__.py +0 -0
  306. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/analysis/benchmark.py +0 -0
  307. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/analyzer_plugin.py +0 -0
  308. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/backtest/__init__.py +0 -0
  309. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/backtest/__init__.pyi +0 -0
  310. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/backtest/_viz.py +0 -0
  311. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/backtest/fill_mode.py +0 -0
  312. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/backtest/merge.py +0 -0
  313. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/backtest/result.py +0 -0
  314. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/backtest/tick_input.py +0 -0
  315. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/bar_generator.py +0 -0
  316. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/chart/__init__.py +0 -0
  317. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/chart/_drawing.py +0 -0
  318. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/chart/_normalize.py +0 -0
  319. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/chart/d3kline.py +0 -0
  320. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/checkpoint.py +0 -0
  321. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/cli.py +0 -0
  322. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/config.py +0 -0
  323. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/data.py +0 -0
  324. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/execution/__init__.py +0 -0
  325. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/execution/base.py +0 -0
  326. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/execution/sim.py +0 -0
  327. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/factor/__init__.py +0 -0
  328. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/factor/engine.py +0 -0
  329. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/factor/ops.py +0 -0
  330. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/factor/parser.py +0 -0
  331. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/feed_adapter.py +0 -0
  332. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/fund/__init__.py +0 -0
  333. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/futures/__init__.py +0 -0
  334. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/__init__.py +0 -0
  335. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/base.py +0 -0
  336. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/broker_event_adapter.py +0 -0
  337. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/broker_event_bridge.py +0 -0
  338. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/broker_event_mapper.py +0 -0
  339. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/broker_execution.py +0 -0
  340. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/broker_models.py +0 -0
  341. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/broker_recovery.py +0 -0
  342. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/broker_runtime.py +0 -0
  343. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/broker_state_cache.py +0 -0
  344. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/broker_stats.py +0 -0
  345. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/broker_strategy_api.py +0 -0
  346. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/brokers/__init__.py +0 -0
  347. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/brokers/builtins.py +0 -0
  348. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/brokers/ctp/__init__.py +0 -0
  349. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/brokers/ctp/adapter.py +0 -0
  350. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/brokers/ctp/native.py +0 -0
  351. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/brokers/miniqmt/__init__.py +0 -0
  352. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/brokers/miniqmt/stub.py +0 -0
  353. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/brokers/plugins.py +0 -0
  354. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/brokers/ptrade/__init__.py +0 -0
  355. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/brokers/ptrade/stub.py +0 -0
  356. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/brokers/replay/__init__.py +0 -0
  357. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/brokers/replay/gateway.py +0 -0
  358. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/ctp_adapter.py +0 -0
  359. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/ctp_native.py +0 -0
  360. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/factory.py +0 -0
  361. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/local_stop_book.py +0 -0
  362. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/mapper.py +0 -0
  363. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/miniqmt.py +0 -0
  364. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/models.py +0 -0
  365. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/order_audit.py +0 -0
  366. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/order_errors.py +0 -0
  367. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/order_receipt.py +0 -0
  368. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/order_submitter.py +0 -0
  369. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/protocols.py +0 -0
  370. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/ptrade.py +0 -0
  371. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/registry.py +0 -0
  372. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/symbol_match.py +0 -0
  373. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/gateway/trader_base.py +0 -0
  374. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/indicator_identity.py +0 -0
  375. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/indicator_recording.py +0 -0
  376. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/indicator_script.py +0 -0
  377. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/indicator_stream.py +0 -0
  378. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/live/__init__.py +0 -0
  379. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/live/_gateway_setup.py +0 -0
  380. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/live/_payload_utils.py +0 -0
  381. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/live/_preload.py +0 -0
  382. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/live/_strategy_maps.py +0 -0
  383. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/live/_stream_sink.py +0 -0
  384. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/log.py +0 -0
  385. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/lwc/__init__.py +0 -0
  386. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/lwc/_drawings.py +0 -0
  387. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/lwc/_indicators.py +0 -0
  388. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/lwc/_payload.py +0 -0
  389. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/lwc/_template.py +0 -0
  390. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/lwc/assets/LICENSE.lightweight-charts +0 -0
  391. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/lwc/assets/NOTICE.md +0 -0
  392. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/lwc/assets/lightweight-charts.standalone.production.js +0 -0
  393. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/lwc/review.py +0 -0
  394. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/__init__.py +0 -0
  395. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/__main__.py +0 -0
  396. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/guides/data-format.md +0 -0
  397. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/guides/market-rules.md +0 -0
  398. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/guides/orders-and-positions.md +0 -0
  399. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/guides/strategy-skeleton.md +0 -0
  400. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/service/__init__.py +0 -0
  401. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/service/api_index.py +0 -0
  402. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/service/check.py +0 -0
  403. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/service/data.py +0 -0
  404. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/service/errors.py +0 -0
  405. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/service/guides.py +0 -0
  406. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/service/paths.py +0 -0
  407. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/service/records.py +0 -0
  408. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/service/runs.py +0 -0
  409. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/mcp/worker.py +0 -0
  410. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/ml/__init__.py +0 -0
  411. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/ml/model.py +0 -0
  412. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/normalize.py +0 -0
  413. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/optimize.py +0 -0
  414. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/option/__init__.py +0 -0
  415. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/params.py +0 -0
  416. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/params_adapter.py +0 -0
  417. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/plot/__init__.py +0 -0
  418. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/plot/_market_data.py +0 -0
  419. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/plot/analysis.py +0 -0
  420. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/plot/dashboard.py +0 -0
  421. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/plot/indicator.py +0 -0
  422. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/plot/report.py +0 -0
  423. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/plot/strategy.py +0 -0
  424. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/plot/utils.py +0 -0
  425. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/precomputed.py +0 -0
  426. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/py.typed +0 -0
  427. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/risk.py +0 -0
  428. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/schema.py +0 -0
  429. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/sessions_config.py +0 -0
  430. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/signal/__init__.py +0 -0
  431. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/signal/dedup.py +0 -0
  432. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/signal/dispatcher.py +0 -0
  433. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/signal/models.py +0 -0
  434. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/signal/protocols.py +0 -0
  435. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/signal/registry.py +0 -0
  436. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/signal/security.py +0 -0
  437. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/signal/sinks.py +0 -0
  438. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/signal/sources/__init__.py +0 -0
  439. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/signal/sources/http.py +0 -0
  440. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/signal/sources/queue.py +0 -0
  441. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/signal/sources/redis_stream.py +0 -0
  442. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/sizer.py +0 -0
  443. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/stock/__init__.py +0 -0
  444. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_drawing.py +0 -0
  445. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_events.py +0 -0
  446. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_history.py +0 -0
  447. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_inspect.py +0 -0
  448. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_loader.py +0 -0
  449. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_logging.py +0 -0
  450. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_ml.py +0 -0
  451. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_order_events.py +0 -0
  452. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_position.py +0 -0
  453. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_preload.py +0 -0
  454. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_runtime_config.py +0 -0
  455. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_scheduler.py +0 -0
  456. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_stats.py +0 -0
  457. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_time.py +0 -0
  458. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_trading_api.py +0 -0
  459. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/strategy_window.py +0 -0
  460. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/stream_schema.py +0 -0
  461. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/talib/__init__.py +0 -0
  462. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/talib/_kernels.py +0 -0
  463. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/talib/backend.py +0 -0
  464. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/talib/core.py +0 -0
  465. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/talib/funcs.py +0 -0
  466. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/talib/lookback.py +0 -0
  467. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/trade_stream.py +0 -0
  468. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/utils/__init__.py +0 -0
  469. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/utils/inspector.py +0 -0
  470. {akquant-0.3.78 → akquant-0.3.81}/python/akquant/utils/price.py +0 -0
  471. {akquant-0.3.78 → akquant-0.3.81}/requirements-dev.txt +0 -0
  472. {akquant-0.3.78 → akquant-0.3.81}/scripts/bench_engine_perbar.py +0 -0
  473. {akquant-0.3.78 → akquant-0.3.81}/scripts/cargo-test.sh +0 -0
  474. {akquant-0.3.78 → akquant-0.3.81}/scripts/check_docs_api_examples.py +0 -0
  475. {akquant-0.3.78 → akquant-0.3.81}/scripts/check_docs_links.py +0 -0
  476. {akquant-0.3.78 → akquant-0.3.81}/scripts/check_release.py +0 -0
  477. {akquant-0.3.78 → akquant-0.3.81}/scripts/dev-check.sh +0 -0
  478. {akquant-0.3.78 → akquant-0.3.81}/scripts/golden_baseline_report.py +0 -0
  479. {akquant-0.3.78 → akquant-0.3.81}/scripts/profile_backtest.py +0 -0
  480. {akquant-0.3.78 → akquant-0.3.81}/scripts/stress_out_of_core.py +0 -0
  481. {akquant-0.3.78 → akquant-0.3.81}/src/account.rs +0 -0
  482. {akquant-0.3.78 → akquant-0.3.81}/src/analysis/live_stats.rs +0 -0
  483. {akquant-0.3.78 → akquant-0.3.81}/src/analysis/mod.rs +0 -0
  484. {akquant-0.3.78 → akquant-0.3.81}/src/analysis/python.rs +0 -0
  485. {akquant-0.3.78 → akquant-0.3.81}/src/analysis/result.rs +0 -0
  486. {akquant-0.3.78 → akquant-0.3.81}/src/analysis/strategy_stats.rs +0 -0
  487. {akquant-0.3.78 → akquant-0.3.81}/src/analysis/tests.rs +0 -0
  488. {akquant-0.3.78 → akquant-0.3.81}/src/analysis/tracker.rs +0 -0
  489. {akquant-0.3.78 → akquant-0.3.81}/src/analysis/types.rs +0 -0
  490. {akquant-0.3.78 → akquant-0.3.81}/src/bin/stub_gen.rs +0 -0
  491. {akquant-0.3.78 → akquant-0.3.81}/src/calendar/clock.rs +0 -0
  492. {akquant-0.3.78 → akquant-0.3.81}/src/calendar/mod.rs +0 -0
  493. {akquant-0.3.78 → akquant-0.3.81}/src/calendar/python.rs +0 -0
  494. {akquant-0.3.78 → akquant-0.3.81}/src/calendar/resolver.rs +0 -0
  495. {akquant-0.3.78 → akquant-0.3.81}/src/calendar/schedule.rs +0 -0
  496. {akquant-0.3.78 → akquant-0.3.81}/src/calendar/trading_calendar.rs +0 -0
  497. {akquant-0.3.78 → akquant-0.3.81}/src/clock.rs +0 -0
  498. {akquant-0.3.78 → akquant-0.3.81}/src/context.rs +0 -0
  499. {akquant-0.3.78 → akquant-0.3.81}/src/data/aggregator.rs +0 -0
  500. {akquant-0.3.78 → akquant-0.3.81}/src/data/batch.rs +0 -0
  501. {akquant-0.3.78 → akquant-0.3.81}/src/data/client.rs +0 -0
  502. {akquant-0.3.78 → akquant-0.3.81}/src/data/columns.rs +0 -0
  503. {akquant-0.3.78 → akquant-0.3.81}/src/data/compute.rs +0 -0
  504. {akquant-0.3.78 → akquant-0.3.81}/src/data/feed.rs +0 -0
  505. {akquant-0.3.78 → akquant-0.3.81}/src/data/mod.rs +0 -0
  506. {akquant-0.3.78 → akquant-0.3.81}/src/data/parquet_stream.rs +0 -0
  507. {akquant-0.3.78 → akquant-0.3.81}/src/data/python_window.rs +0 -0
  508. {akquant-0.3.78 → akquant-0.3.81}/src/data/window.rs +0 -0
  509. {akquant-0.3.78 → akquant-0.3.81}/src/engine/core.rs +0 -0
  510. {akquant-0.3.78 → akquant-0.3.81}/src/engine/mod.rs +0 -0
  511. {akquant-0.3.78 → akquant-0.3.81}/src/engine/state.rs +0 -0
  512. {akquant-0.3.78 → akquant-0.3.81}/src/engine/strategy_handler.rs +0 -0
  513. {akquant-0.3.78 → akquant-0.3.81}/src/error.rs +0 -0
  514. {akquant-0.3.78 → akquant-0.3.81}/src/event.rs +0 -0
  515. {akquant-0.3.78 → akquant-0.3.81}/src/event_manager.rs +0 -0
  516. {akquant-0.3.78 → akquant-0.3.81}/src/execution/common.rs +0 -0
  517. {akquant-0.3.78 → akquant-0.3.81}/src/execution/crypto.rs +0 -0
  518. {akquant-0.3.78 → akquant-0.3.81}/src/execution/forex.rs +0 -0
  519. {akquant-0.3.78 → akquant-0.3.81}/src/execution/futures.rs +0 -0
  520. {akquant-0.3.78 → akquant-0.3.81}/src/execution/matcher.rs +0 -0
  521. {akquant-0.3.78 → akquant-0.3.81}/src/execution/mod.rs +0 -0
  522. {akquant-0.3.78 → akquant-0.3.81}/src/execution/option.rs +0 -0
  523. {akquant-0.3.78 → akquant-0.3.81}/src/execution/python.rs +0 -0
  524. {akquant-0.3.78 → akquant-0.3.81}/src/execution/realtime.rs +0 -0
  525. {akquant-0.3.78 → akquant-0.3.81}/src/execution/simulated.rs +0 -0
  526. {akquant-0.3.78 → akquant-0.3.81}/src/execution/slippage.rs +0 -0
  527. {akquant-0.3.78 → akquant-0.3.81}/src/execution/stock.rs +0 -0
  528. {akquant-0.3.78 → akquant-0.3.81}/src/execution/validation.rs +0 -0
  529. {akquant-0.3.78 → akquant-0.3.81}/src/history.rs +0 -0
  530. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/momentum.rs +0 -0
  531. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/momentum_oscillators.rs +0 -0
  532. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/momentum_rates.rs +0 -0
  533. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/moving_average.rs +0 -0
  534. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/moving_average_compound.rs +0 -0
  535. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/moving_average_core.rs +0 -0
  536. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/moving_average_hilbert.rs +0 -0
  537. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/moving_average_transforms.rs +0 -0
  538. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/moving_average_windowed.rs +0 -0
  539. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/trend.rs +0 -0
  540. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/trend_directional.rs +0 -0
  541. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/trend_oscillators.rs +0 -0
  542. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/trend_regression.rs +0 -0
  543. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/volatility.rs +0 -0
  544. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/volatility_candle.rs +0 -0
  545. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/volatility_price.rs +0 -0
  546. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/volatility_stats.rs +0 -0
  547. {akquant-0.3.78 → akquant-0.3.81}/src/indicators/volume.rs +0 -0
  548. {akquant-0.3.78 → akquant-0.3.81}/src/indicators.rs +0 -0
  549. {akquant-0.3.78 → akquant-0.3.81}/src/lib.rs +0 -0
  550. {akquant-0.3.78 → akquant-0.3.81}/src/log_context.rs +0 -0
  551. {akquant-0.3.78 → akquant-0.3.81}/src/margin/calculator.rs +0 -0
  552. {akquant-0.3.78 → akquant-0.3.81}/src/margin/engine.rs +0 -0
  553. {akquant-0.3.78 → akquant-0.3.81}/src/margin/mod.rs +0 -0
  554. {akquant-0.3.78 → akquant-0.3.81}/src/market/china.rs +0 -0
  555. {akquant-0.3.78 → akquant-0.3.81}/src/market/core.rs +0 -0
  556. {akquant-0.3.78 → akquant-0.3.81}/src/market/corporate_action.rs +0 -0
  557. {akquant-0.3.78 → akquant-0.3.81}/src/market/fee_override.rs +0 -0
  558. {akquant-0.3.78 → akquant-0.3.81}/src/market/futures.rs +0 -0
  559. {akquant-0.3.78 → akquant-0.3.81}/src/market/mod.rs +0 -0
  560. {akquant-0.3.78 → akquant-0.3.81}/src/market/option.rs +0 -0
  561. {akquant-0.3.78 → akquant-0.3.81}/src/market/simple.rs +0 -0
  562. {akquant-0.3.78 → akquant-0.3.81}/src/market/stock.rs +0 -0
  563. {akquant-0.3.78 → akquant-0.3.81}/src/model/corporate_action.rs +0 -0
  564. {akquant-0.3.78 → akquant-0.3.81}/src/model/instrument.rs +0 -0
  565. {akquant-0.3.78 → akquant-0.3.81}/src/model/market_data.rs +0 -0
  566. {akquant-0.3.78 → akquant-0.3.81}/src/model/mod.rs +0 -0
  567. {akquant-0.3.78 → akquant-0.3.81}/src/model/order.rs +0 -0
  568. {akquant-0.3.78 → akquant-0.3.81}/src/model/timer.rs +0 -0
  569. {akquant-0.3.78 → akquant-0.3.81}/src/model/types.rs +0 -0
  570. {akquant-0.3.78 → akquant-0.3.81}/src/order_manager.rs +0 -0
  571. {akquant-0.3.78 → akquant-0.3.81}/src/pipeline/mod.rs +0 -0
  572. {akquant-0.3.78 → akquant-0.3.81}/src/pipeline/processor.rs +0 -0
  573. {akquant-0.3.78 → akquant-0.3.81}/src/pipeline/runner.rs +0 -0
  574. {akquant-0.3.78 → akquant-0.3.81}/src/pipeline/stages/channel.rs +0 -0
  575. {akquant-0.3.78 → akquant-0.3.81}/src/pipeline/stages/cleanup.rs +0 -0
  576. {akquant-0.3.78 → akquant-0.3.81}/src/pipeline/stages/data.rs +0 -0
  577. {akquant-0.3.78 → akquant-0.3.81}/src/pipeline/stages/execution.rs +0 -0
  578. {akquant-0.3.78 → akquant-0.3.81}/src/pipeline/stages/mod.rs +0 -0
  579. {akquant-0.3.78 → akquant-0.3.81}/src/pipeline/stages/shared.rs +0 -0
  580. {akquant-0.3.78 → akquant-0.3.81}/src/pipeline/stages/statistics.rs +0 -0
  581. {akquant-0.3.78 → akquant-0.3.81}/src/pipeline/stages/strategy.rs +0 -0
  582. {akquant-0.3.78 → akquant-0.3.81}/src/portfolio.rs +0 -0
  583. {akquant-0.3.78 → akquant-0.3.81}/src/risk/common.rs +0 -0
  584. {akquant-0.3.78 → akquant-0.3.81}/src/risk/config.rs +0 -0
  585. {akquant-0.3.78 → akquant-0.3.81}/src/risk/futures.rs +0 -0
  586. {akquant-0.3.78 → akquant-0.3.81}/src/risk/manager.rs +0 -0
  587. {akquant-0.3.78 → akquant-0.3.81}/src/risk/mod.rs +0 -0
  588. {akquant-0.3.78 → akquant-0.3.81}/src/risk/option.rs +0 -0
  589. {akquant-0.3.78 → akquant-0.3.81}/src/risk/portfolio.rs +0 -0
  590. {akquant-0.3.78 → akquant-0.3.81}/src/risk/rule.rs +0 -0
  591. {akquant-0.3.78 → akquant-0.3.81}/src/risk/stock.rs +0 -0
  592. {akquant-0.3.78 → akquant-0.3.81}/src/risk/strategy_limits.rs +0 -0
  593. {akquant-0.3.78 → akquant-0.3.81}/src/settlement/expiry.rs +0 -0
  594. {akquant-0.3.78 → akquant-0.3.81}/src/settlement/handler.rs +0 -0
  595. {akquant-0.3.78 → akquant-0.3.81}/src/settlement/manager.rs +0 -0
  596. {akquant-0.3.78 → akquant-0.3.81}/src/settlement/mod.rs +0 -0
  597. {akquant-0.3.78 → akquant-0.3.81}/src/settlement/option.rs +0 -0
  598. {akquant-0.3.78 → akquant-0.3.81}/src/signal_port.rs +0 -0
  599. {akquant-0.3.78 → akquant-0.3.81}/src/statistics/mod.rs +0 -0
  600. {akquant-0.3.78 → akquant-0.3.81}/tests/_checkpoint_0371.py +0 -0
  601. {akquant-0.3.78 → akquant-0.3.81}/tests/_plot_cases.py +0 -0
  602. {akquant-0.3.78 → akquant-0.3.81}/tests/fixtures/checkpoint_0371_minute.pkl +0 -0
  603. {akquant-0.3.78 → akquant-0.3.81}/tests/gateway_contract/test_event_bridge_contract.py +0 -0
  604. {akquant-0.3.78 → akquant-0.3.81}/tests/gateway_contract/test_recovery_contract.py +0 -0
  605. {akquant-0.3.78 → akquant-0.3.81}/tests/gateway_contract/test_submitter_contract.py +0 -0
  606. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/BASELINE_REPORT.md +0 -0
  607. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/futures_margin/equity_curve.parquet +0 -0
  608. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/futures_margin/metrics.json +0 -0
  609. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/futures_margin/orders.parquet +0 -0
  610. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/futures_margin/trading_day_ends.json +0 -0
  611. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/futures_night_weekend/equity_curve.parquet +0 -0
  612. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/futures_night_weekend/metrics.json +0 -0
  613. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/futures_night_weekend/orders.parquet +0 -0
  614. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/futures_night_weekend/trades.parquet +0 -0
  615. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/futures_night_weekend/trading_day_ends.json +0 -0
  616. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/option_basic/equity_curve.parquet +0 -0
  617. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/option_basic/metrics.json +0 -0
  618. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/option_basic/orders.parquet +0 -0
  619. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/option_basic/trading_day_ends.json +0 -0
  620. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/order_cancel/equity_curve.parquet +0 -0
  621. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/order_cancel/metrics.json +0 -0
  622. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/order_cancel/orders.parquet +0 -0
  623. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/order_cancel/trades.parquet +0 -0
  624. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/order_cancel/trading_day_ends.json +0 -0
  625. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/stock_minute_auction/equity_curve.parquet +0 -0
  626. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/stock_minute_auction/metrics.json +0 -0
  627. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/stock_minute_auction/orders.parquet +0 -0
  628. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/stock_minute_auction/trades.parquet +0 -0
  629. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/stock_minute_auction/trading_day_ends.json +0 -0
  630. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/stock_t1/equity_curve.parquet +0 -0
  631. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/stock_t1/metrics.json +0 -0
  632. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/stock_t1/orders.parquet +0 -0
  633. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/stock_t1/trades.parquet +0 -0
  634. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/baselines/stock_t1/trading_day_ends.json +0 -0
  635. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/data/future_margin.parquet +0 -0
  636. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/data/future_margin.parquet.sha256 +0 -0
  637. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/data/futures_night_weekend.parquet +0 -0
  638. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/data/futures_night_weekend.parquet.sha256 +0 -0
  639. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/data/option_basic.parquet +0 -0
  640. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/data/option_basic.parquet.sha256 +0 -0
  641. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/data/order_cancel.parquet +0 -0
  642. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/data/order_cancel.parquet.sha256 +0 -0
  643. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/data/stock_minute_auction.parquet +0 -0
  644. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/data/stock_minute_auction.parquet.sha256 +0 -0
  645. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/data/stock_t1.parquet +0 -0
  646. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/data/stock_t1.parquet.sha256 +0 -0
  647. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/gen_data.py +0 -0
  648. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/runner.py +0 -0
  649. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/strategies/futures_margin.py +0 -0
  650. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/strategies/futures_night_weekend.py +0 -0
  651. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/strategies/option_basic.py +0 -0
  652. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/strategies/order_cancel.py +0 -0
  653. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/strategies/stock_minute_auction.py +0 -0
  654. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/strategies/stock_t1.py +0 -0
  655. {akquant-0.3.78 → akquant-0.3.81}/tests/golden/test_golden.py +0 -0
  656. {akquant-0.3.78 → akquant-0.3.81}/tests/mcp_server/conftest.py +0 -0
  657. {akquant-0.3.78 → akquant-0.3.81}/tests/mcp_server/test_cli.py +0 -0
  658. {akquant-0.3.78 → akquant-0.3.81}/tests/mcp_server/test_mcp_api_index.py +0 -0
  659. {akquant-0.3.78 → akquant-0.3.81}/tests/mcp_server/test_mcp_check.py +0 -0
  660. {akquant-0.3.78 → akquant-0.3.81}/tests/mcp_server/test_mcp_data.py +0 -0
  661. {akquant-0.3.78 → akquant-0.3.81}/tests/mcp_server/test_mcp_errors.py +0 -0
  662. {akquant-0.3.78 → akquant-0.3.81}/tests/mcp_server/test_mcp_guides.py +0 -0
  663. {akquant-0.3.78 → akquant-0.3.81}/tests/mcp_server/test_mcp_main.py +0 -0
  664. {akquant-0.3.78 → akquant-0.3.81}/tests/mcp_server/test_mcp_paths.py +0 -0
  665. {akquant-0.3.78 → akquant-0.3.81}/tests/mcp_server/test_mcp_records.py +0 -0
  666. {akquant-0.3.78 → akquant-0.3.81}/tests/mcp_server/test_mcp_runs.py +0 -0
  667. {akquant-0.3.78 → akquant-0.3.81}/tests/test_account_risk_rules.py +0 -0
  668. {akquant-0.3.78 → akquant-0.3.81}/tests/test_api_rename_cash.py +0 -0
  669. {akquant-0.3.78 → akquant-0.3.81}/tests/test_api_rename_composites.py +0 -0
  670. {akquant-0.3.78 → akquant-0.3.81}/tests/test_api_rename_equity.py +0 -0
  671. {akquant-0.3.78 → akquant-0.3.81}/tests/test_api_rename_holding_bars.py +0 -0
  672. {akquant-0.3.78 → akquant-0.3.81}/tests/test_api_rename_positions.py +0 -0
  673. {akquant-0.3.78 → akquant-0.3.81}/tests/test_api_rename_rebalance.py +0 -0
  674. {akquant-0.3.78 → akquant-0.3.81}/tests/test_api_rename_scheduler.py +0 -0
  675. {akquant-0.3.78 → akquant-0.3.81}/tests/test_backtest_params.py +0 -0
  676. {akquant-0.3.78 → akquant-0.3.81}/tests/test_backtest_symbol_column_aliases.py +0 -0
  677. {akquant-0.3.78 → akquant-0.3.81}/tests/test_backtest_tick_aggregate.py +0 -0
  678. {akquant-0.3.78 → akquant-0.3.81}/tests/test_backtest_tick_entry.py +0 -0
  679. {akquant-0.3.78 → akquant-0.3.81}/tests/test_backtest_tick_history.py +0 -0
  680. {akquant-0.3.78 → akquant-0.3.81}/tests/test_bar_aggregator_live.py +0 -0
  681. {akquant-0.3.78 → akquant-0.3.81}/tests/test_bar_generator.py +0 -0
  682. {akquant-0.3.78 → akquant-0.3.81}/tests/test_bar_hook_bookkeeping_invariants.py +0 -0
  683. {akquant-0.3.78 → akquant-0.3.81}/tests/test_bench_noise_gate.py +0 -0
  684. {akquant-0.3.78 → akquant-0.3.81}/tests/test_boundary_bar_fill.py +0 -0
  685. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_bridge_adapts_events.py +0 -0
  686. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_bridge_drives_order_groups.py +0 -0
  687. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_dropped_counts_periodic_summary.py +0 -0
  688. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_event_adapter.py +0 -0
  689. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_event_adapter_local_id.py +0 -0
  690. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_event_symbol_filter.py +0 -0
  691. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_event_task_isolation.py +0 -0
  692. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_execution_local_stops.py +0 -0
  693. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_execution_read_path_parity.py +0 -0
  694. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_execution_stop_requeue.py +0 -0
  695. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_live_risk_enforcement.py +0 -0
  696. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_order_redelivery_dedup.py +0 -0
  697. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_plugins.py +0 -0
  698. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_position_sync.py +0 -0
  699. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_profile_cn_stock.py +0 -0
  700. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_recovery_cadence.py +0 -0
  701. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_recovery_error_visibility.py +0 -0
  702. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_seed_baseline.py +0 -0
  703. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_trade_redelivery_dedup.py +0 -0
  704. {akquant-0.3.78 → akquant-0.3.81}/tests/test_broker_trade_stats.py +0 -0
  705. {akquant-0.3.78 → akquant-0.3.81}/tests/test_buying_power_new_symbol.py +0 -0
  706. {akquant-0.3.78 → akquant-0.3.81}/tests/test_cancel_request_persistence.py +0 -0
  707. {akquant-0.3.78 → akquant-0.3.81}/tests/test_candle_exporters.py +0 -0
  708. {akquant-0.3.78 → akquant-0.3.81}/tests/test_candle_render_type.py +0 -0
  709. {akquant-0.3.78 → akquant-0.3.81}/tests/test_chart_d3kline.py +0 -0
  710. {akquant-0.3.78 → akquant-0.3.81}/tests/test_chart_drawing_normalize.py +0 -0
  711. {akquant-0.3.78 → akquant-0.3.81}/tests/test_chart_normalize.py +0 -0
  712. {akquant-0.3.78 → akquant-0.3.81}/tests/test_check_release.py +0 -0
  713. {akquant-0.3.78 → akquant-0.3.81}/tests/test_checkpoint_0371_compat.py +0 -0
  714. {akquant-0.3.78 → akquant-0.3.81}/tests/test_checkpoint_option_rules.py +0 -0
  715. {akquant-0.3.78 → akquant-0.3.81}/tests/test_close_position_delegate.py +0 -0
  716. {akquant-0.3.78 → akquant-0.3.81}/tests/test_composed_ctx_not_ready.py +0 -0
  717. {akquant-0.3.78 → akquant-0.3.81}/tests/test_cost_config_consolidation.py +0 -0
  718. {akquant-0.3.78 → akquant-0.3.81}/tests/test_cross_section_day_order_next_open_fill.py +0 -0
  719. {akquant-0.3.78 → akquant-0.3.81}/tests/test_ctp_classify_order_error.py +0 -0
  720. {akquant-0.3.78 → akquant-0.3.81}/tests/test_custom_matcher.py +0 -0
  721. {akquant-0.3.78 → akquant-0.3.81}/tests/test_data_catalog.py +0 -0
  722. {akquant-0.3.78 → akquant-0.3.81}/tests/test_date_only_rewrite_cache.py +0 -0
  723. {akquant-0.3.78 → akquant-0.3.81}/tests/test_day_order_expiry_no_zombie_fill.py +0 -0
  724. {akquant-0.3.78 → akquant-0.3.81}/tests/test_deterministic_order.py +0 -0
  725. {akquant-0.3.78 → akquant-0.3.81}/tests/test_docs_api_examples.py +0 -0
  726. {akquant-0.3.78 → akquant-0.3.81}/tests/test_docs_links.py +0 -0
  727. {akquant-0.3.78 → akquant-0.3.81}/tests/test_drawing_stream.py +0 -0
  728. {akquant-0.3.78 → akquant-0.3.81}/tests/test_dual_stream_freq_inference.py +0 -0
  729. {akquant-0.3.78 → akquant-0.3.81}/tests/test_engine.py +0 -0
  730. {akquant-0.3.78 → akquant-0.3.81}/tests/test_engine_python_crossings.py +0 -0
  731. {akquant-0.3.78 → akquant-0.3.81}/tests/test_event_model_parity.py +0 -0
  732. {akquant-0.3.78 → akquant-0.3.81}/tests/test_examples_regression.py +0 -0
  733. {akquant-0.3.78 → akquant-0.3.81}/tests/test_execution_binding.py +0 -0
  734. {akquant-0.3.78 → akquant-0.3.81}/tests/test_execution_broker.py +0 -0
  735. {akquant-0.3.78 → akquant-0.3.81}/tests/test_execution_broker_reads_routed.py +0 -0
  736. {akquant-0.3.78 → akquant-0.3.81}/tests/test_execution_composed_parity.py +0 -0
  737. {akquant-0.3.78 → akquant-0.3.81}/tests/test_execution_read_delegation.py +0 -0
  738. {akquant-0.3.78 → akquant-0.3.81}/tests/test_execution_sim.py +0 -0
  739. {akquant-0.3.78 → akquant-0.3.81}/tests/test_execution_write_delegation.py +0 -0
  740. {akquant-0.3.78 → akquant-0.3.81}/tests/test_expiry_terminal_dispatch.py +0 -0
  741. {akquant-0.3.78 → akquant-0.3.81}/tests/test_expiry_trade_accounting.py +0 -0
  742. {akquant-0.3.78 → akquant-0.3.81}/tests/test_factor_engine.py +0 -0
  743. {akquant-0.3.78 → akquant-0.3.81}/tests/test_factor_ops.py +0 -0
  744. {akquant-0.3.78 → akquant-0.3.81}/tests/test_feed_adapter.py +0 -0
  745. {akquant-0.3.78 → akquant-0.3.81}/tests/test_fetch_akshare_symbol.py +0 -0
  746. {akquant-0.3.78 → akquant-0.3.81}/tests/test_fill_mode.py +0 -0
  747. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_broker_live_cancel.py +0 -0
  748. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_broker_live_reads.py +0 -0
  749. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_broker_models_ext.py +0 -0
  750. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_broker_state_cache.py +0 -0
  751. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_broker_state_invalidation.py +0 -0
  752. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_broker_submitter_quantity.py +0 -0
  753. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_broker_submitter_readiness.py +0 -0
  754. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_broker_submitter_signature.py +0 -0
  755. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_brokers_paths.py +0 -0
  756. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_builtins_registry.py +0 -0
  757. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_callbacks.py +0 -0
  758. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_cancel_failure.py +0 -0
  759. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_ctp_adapter.py +0 -0
  760. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_ctp_dual_stream.py +0 -0
  761. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_ctp_native.py +0 -0
  762. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_expired_order_status.py +0 -0
  763. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_factory.py +0 -0
  764. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_mapper.py +0 -0
  765. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_mixed_market_trader.py +0 -0
  766. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_optional_market.py +0 -0
  767. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_order_error_classification.py +0 -0
  768. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_order_submitter_extra.py +0 -0
  769. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_order_tick_reject_soft.py +0 -0
  770. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_order_tick_validation.py +0 -0
  771. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_place_order_failure.py +0 -0
  772. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_registry.py +0 -0
  773. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_sim_submit_guard.py +0 -0
  774. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_symbol_match.py +0 -0
  775. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_tif_mapping.py +0 -0
  776. {akquant-0.3.78 → akquant-0.3.81}/tests/test_gateway_trader_base.py +0 -0
  777. {akquant-0.3.78 → akquant-0.3.81}/tests/test_get_order_finalized.py +0 -0
  778. {akquant-0.3.78 → akquant-0.3.81}/tests/test_grid_search_all_failed.py +0 -0
  779. {akquant-0.3.78 → akquant-0.3.81}/tests/test_heikin_ashi.py +0 -0
  780. {akquant-0.3.78 → akquant-0.3.81}/tests/test_hooks_functional_wrapper.py +0 -0
  781. {akquant-0.3.78 → akquant-0.3.81}/tests/test_hooks_inherited_via_base.py +0 -0
  782. {akquant-0.3.78 → akquant-0.3.81}/tests/test_indicator_declaration.py +0 -0
  783. {akquant-0.3.78 → akquant-0.3.81}/tests/test_indicator_declaration_review.py +0 -0
  784. {akquant-0.3.78 → akquant-0.3.81}/tests/test_indicator_dual_stream.py +0 -0
  785. {akquant-0.3.78 → akquant-0.3.81}/tests/test_indicator_duplicate_name.py +0 -0
  786. {akquant-0.3.78 → akquant-0.3.81}/tests/test_indicator_intrabar.py +0 -0
  787. {akquant-0.3.78 → akquant-0.3.81}/tests/test_indicator_live_web_example.py +0 -0
  788. {akquant-0.3.78 → akquant-0.3.81}/tests/test_indicator_non_finite.py +0 -0
  789. {akquant-0.3.78 → akquant-0.3.81}/tests/test_indicator_owner_identity.py +0 -0
  790. {akquant-0.3.78 → akquant-0.3.81}/tests/test_indicator_recording.py +0 -0
  791. {akquant-0.3.78 → akquant-0.3.81}/tests/test_indicator_script.py +0 -0
  792. {akquant-0.3.78 → akquant-0.3.81}/tests/test_inspector.py +0 -0
  793. {akquant-0.3.78 → akquant-0.3.81}/tests/test_instrument_default_tick.py +0 -0
  794. {akquant-0.3.78 → akquant-0.3.81}/tests/test_instrument_slippage.py +0 -0
  795. {akquant-0.3.78 → akquant-0.3.81}/tests/test_instrument_symbol_suffix_normalization.py +0 -0
  796. {akquant-0.3.78 → akquant-0.3.81}/tests/test_instruments_config_symbol_mismatch.py +0 -0
  797. {akquant-0.3.78 → akquant-0.3.81}/tests/test_lifecycle_hooks.py +0 -0
  798. {akquant-0.3.78 → akquant-0.3.81}/tests/test_lifecycle_review_fixes.py +0 -0
  799. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_auto_preload.py +0 -0
  800. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_broker_slot_routing.py +0 -0
  801. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_duration_wallclock.py +0 -0
  802. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_freq_injection.py +0 -0
  803. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_market_config_by_asset_type.py +0 -0
  804. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_mixed_market_broker.py +0 -0
  805. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_multi_slot_windows.py +0 -0
  806. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_preload_normalize.py +0 -0
  807. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_preload_runner.py +0 -0
  808. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runner.py +0 -0
  809. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runner_bounded_session.py +0 -0
  810. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runner_broker_bridge.py +0 -0
  811. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runner_broker_readiness.py +0 -0
  812. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runner_broker_recovery.py +0 -0
  813. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runner_broker_submitter.py +0 -0
  814. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runner_client_order_id.py +0 -0
  815. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runner_instrument_snapshots.py +0 -0
  816. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runner_lifecycle.py +0 -0
  817. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runner_no_market_data_warning.py +0 -0
  818. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runner_order_request_cache.py +0 -0
  819. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runner_sigterm_stop.py +0 -0
  820. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runner_stop_remap.py +0 -0
  821. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_runtime_config_dispatch.py +0 -0
  822. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_subscribe_forwards_to_gateway.py +0 -0
  823. {akquant-0.3.78 → akquant-0.3.81}/tests/test_live_summary_stop_reason.py +0 -0
  824. {akquant-0.3.78 → akquant-0.3.81}/tests/test_local_stop_book.py +0 -0
  825. {akquant-0.3.78 → akquant-0.3.81}/tests/test_local_stop_book_threadsafe.py +0 -0
  826. {akquant-0.3.78 → akquant-0.3.81}/tests/test_local_stop_scenario.py +0 -0
  827. {akquant-0.3.78 → akquant-0.3.81}/tests/test_log_sensitive_filter.py +0 -0
  828. {akquant-0.3.78 → akquant-0.3.81}/tests/test_lwc_drawings.py +0 -0
  829. {akquant-0.3.78 → akquant-0.3.81}/tests/test_lwc_indicators.py +0 -0
  830. {akquant-0.3.78 → akquant-0.3.81}/tests/test_lwc_review.py +0 -0
  831. {akquant-0.3.78 → akquant-0.3.81}/tests/test_merge_results.py +0 -0
  832. {akquant-0.3.78 → akquant-0.3.81}/tests/test_ml_rolling_training_threshold.py +0 -0
  833. {akquant-0.3.78 → akquant-0.3.81}/tests/test_multi_slot_ownership.py +0 -0
  834. {akquant-0.3.78 → akquant-0.3.81}/tests/test_multisymbol_cross_section_consistency.py +0 -0
  835. {akquant-0.3.78 → akquant-0.3.81}/tests/test_naive_timezone.py +0 -0
  836. {akquant-0.3.78 → akquant-0.3.81}/tests/test_normalize.py +0 -0
  837. {akquant-0.3.78 → akquant-0.3.81}/tests/test_oco_bracket_broker_live_scenario.py +0 -0
  838. {akquant-0.3.78 → akquant-0.3.81}/tests/test_on_execution_report_noop.py +0 -0
  839. {akquant-0.3.78 → akquant-0.3.81}/tests/test_on_timer_suspension_deadlock.py +0 -0
  840. {akquant-0.3.78 → akquant-0.3.81}/tests/test_optimize_functional_params.py +0 -0
  841. {akquant-0.3.78 → akquant-0.3.81}/tests/test_optimize_params.py +0 -0
  842. {akquant-0.3.78 → akquant-0.3.81}/tests/test_option_expiry_settlement.py +0 -0
  843. {akquant-0.3.78 → akquant-0.3.81}/tests/test_option_fees.py +0 -0
  844. {akquant-0.3.78 → akquant-0.3.81}/tests/test_option_market_side_effects.py +0 -0
  845. {akquant-0.3.78 → akquant-0.3.81}/tests/test_order_api_return_values.py +0 -0
  846. {akquant-0.3.78 → akquant-0.3.81}/tests/test_order_audit.py +0 -0
  847. {akquant-0.3.78 → akquant-0.3.81}/tests/test_order_callback_dedupe.py +0 -0
  848. {akquant-0.3.78 → akquant-0.3.81}/tests/test_order_receipt.py +0 -0
  849. {akquant-0.3.78 → akquant-0.3.81}/tests/test_order_receipt_backtest.py +0 -0
  850. {akquant-0.3.78 → akquant-0.3.81}/tests/test_order_target_lot_size_alignment.py +0 -0
  851. {akquant-0.3.78 → akquant-0.3.81}/tests/test_orders_df.py +0 -0
  852. {akquant-0.3.78 → akquant-0.3.81}/tests/test_params.py +0 -0
  853. {akquant-0.3.78 → akquant-0.3.81}/tests/test_params_adapter.py +0 -0
  854. {akquant-0.3.78 → akquant-0.3.81}/tests/test_parquet_stream.py +0 -0
  855. {akquant-0.3.78 → akquant-0.3.81}/tests/test_partial_filled_status.py +0 -0
  856. {akquant-0.3.78 → akquant-0.3.81}/tests/test_pickle_model_objects.py +0 -0
  857. {akquant-0.3.78 → akquant-0.3.81}/tests/test_plot_defaults.py +0 -0
  858. {akquant-0.3.78 → akquant-0.3.81}/tests/test_portfolio.py +0 -0
  859. {akquant-0.3.78 → akquant-0.3.81}/tests/test_position_effect_flip.py +0 -0
  860. {akquant-0.3.78 → akquant-0.3.81}/tests/test_pre_open_live_warns.py +0 -0
  861. {akquant-0.3.78 → akquant-0.3.81}/tests/test_product_presets.py +0 -0
  862. {akquant-0.3.78 → akquant-0.3.81}/tests/test_quickstart_stream_consistency.py +0 -0
  863. {akquant-0.3.78 → akquant-0.3.81}/tests/test_reduce_only_sell_affordability.py +0 -0
  864. {akquant-0.3.78 → akquant-0.3.81}/tests/test_removed_wrappers.py +0 -0
  865. {akquant-0.3.78 → akquant-0.3.81}/tests/test_replay_live_end_to_end.py +0 -0
  866. {akquant-0.3.78 → akquant-0.3.81}/tests/test_replay_market_gateway.py +0 -0
  867. {akquant-0.3.78 → akquant-0.3.81}/tests/test_report_helpers.py +0 -0
  868. {akquant-0.3.78 → akquant-0.3.81}/tests/test_report_plot_extensions.py +0 -0
  869. {akquant-0.3.78 → akquant-0.3.81}/tests/test_result_analysis_extensions.py +0 -0
  870. {akquant-0.3.78 → akquant-0.3.81}/tests/test_review_minors_cleanup.py +0 -0
  871. {akquant-0.3.78 → akquant-0.3.81}/tests/test_run_live_indicator_stream.py +0 -0
  872. {akquant-0.3.78 → akquant-0.3.81}/tests/test_session_config.py +0 -0
  873. {akquant-0.3.78 → akquant-0.3.81}/tests/test_session_matching.py +0 -0
  874. {akquant-0.3.78 → akquant-0.3.81}/tests/test_session_resolver.py +0 -0
  875. {akquant-0.3.78 → akquant-0.3.81}/tests/test_signal_module.py +0 -0
  876. {akquant-0.3.78 → akquant-0.3.81}/tests/test_signal_port_injection.py +0 -0
  877. {akquant-0.3.78 → akquant-0.3.81}/tests/test_signal_sources_p3.py +0 -0
  878. {akquant-0.3.78 → akquant-0.3.81}/tests/test_sizer_auto_resize.py +0 -0
  879. {akquant-0.3.78 → akquant-0.3.81}/tests/test_slippage_bare_number.py +0 -0
  880. {akquant-0.3.78 → akquant-0.3.81}/tests/test_sort_determinism.py +0 -0
  881. {akquant-0.3.78 → akquant-0.3.81}/tests/test_source_trading_day.py +0 -0
  882. {akquant-0.3.78 → akquant-0.3.81}/tests/test_stock_tick_validation.py +0 -0
  883. {akquant-0.3.78 → akquant-0.3.81}/tests/test_stop_id_remap_scenario.py +0 -0
  884. {akquant-0.3.78 → akquant-0.3.81}/tests/test_stop_orders.py +0 -0
  885. {akquant-0.3.78 → akquant-0.3.81}/tests/test_stop_retry_client_order_id.py +0 -0
  886. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_custom_init_params.py +0 -0
  887. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_drawing.py +0 -0
  888. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_events_stop_hook.py +0 -0
  889. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_extras.py +0 -0
  890. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_freq_attribute.py +0 -0
  891. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_history_dual_stream.py +0 -0
  892. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_history_missing_symbol_warning.py +0 -0
  893. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_inspect.py +0 -0
  894. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_loader_candidates.py +0 -0
  895. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_loader_exports.py +0 -0
  896. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_loader_pickle.py +0 -0
  897. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_loader_plugins.py +0 -0
  898. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_loader_reload.py +0 -0
  899. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_ml_dual_stream.py +0 -0
  900. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_order_group_lock.py +0 -0
  901. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_params.py +0 -0
  902. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_session_api.py +0 -0
  903. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_sizing_broker_live_guard.py +0 -0
  904. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_stats.py +0 -0
  905. {akquant-0.3.78 → akquant-0.3.81}/tests/test_strategy_stats_parity.py +0 -0
  906. {akquant-0.3.78 → akquant-0.3.81}/tests/test_stream_series_key.py +0 -0
  907. {akquant-0.3.78 → akquant-0.3.81}/tests/test_subscribe_live_warns.py +0 -0
  908. {akquant-0.3.78 → akquant-0.3.81}/tests/test_suspension_zero_volume_gtc_terminal.py +0 -0
  909. {akquant-0.3.78 → akquant-0.3.81}/tests/test_symbols_filtering.py +0 -0
  910. {akquant-0.3.78 → akquant-0.3.81}/tests/test_symbols_whitelist_rust.py +0 -0
  911. {akquant-0.3.78 → akquant-0.3.81}/tests/test_t_plus_one.py +0 -0
  912. {akquant-0.3.78 → akquant-0.3.81}/tests/test_talib_alignment.py +0 -0
  913. {akquant-0.3.78 → akquant-0.3.81}/tests/test_talib_backend.py +0 -0
  914. {akquant-0.3.78 → akquant-0.3.81}/tests/test_talib_compat.py +0 -0
  915. {akquant-0.3.78 → akquant-0.3.81}/tests/test_target_orders_core.py +0 -0
  916. {akquant-0.3.78 → akquant-0.3.81}/tests/test_tick_indicators.py +0 -0
  917. {akquant-0.3.78 → akquant-0.3.81}/tests/test_tick_input.py +0 -0
  918. {akquant-0.3.78 → akquant-0.3.81}/tests/test_trade_stream_bridge.py +0 -0
  919. {akquant-0.3.78 → akquant-0.3.81}/tests/test_trades_df.py +0 -0
  920. {akquant-0.3.78 → akquant-0.3.81}/tests/test_trading_day_lifecycle.py +0 -0
  921. {akquant-0.3.78 → akquant-0.3.81}/tests/test_utils_price.py +0 -0
  922. {akquant-0.3.78 → akquant-0.3.81}/tests/test_vectorized.py +0 -0
  923. {akquant-0.3.78 → akquant-0.3.81}/tests/test_version.py +0 -0
  924. {akquant-0.3.78 → akquant-0.3.81}/tests/test_viz_namespace.py +0 -0
  925. {akquant-0.3.78 → akquant-0.3.81}/tests/test_volume_limit.py +0 -0
  926. {akquant-0.3.78 → akquant-0.3.81}/tests/test_walk_forward_kwargs.py +0 -0
  927. {akquant-0.3.78 → akquant-0.3.81}/tests/test_warm_start_slippage_inherit.py +0 -0
  928. {akquant-0.3.78 → akquant-0.3.81}/tests/test_warmup_period_per_symbol.py +0 -0
  929. {akquant-0.3.78 → akquant-0.3.81}/tests/test_window_checkpoint.py +0 -0
  930. {akquant-0.3.78 → akquant-0.3.81}/tests/test_window_live_replay.py +0 -0
  931. {akquant-0.3.78 → akquant-0.3.81}/tests/test_window_sessions.py +0 -0
  932. {akquant-0.3.78 → akquant-0.3.81}/tests/test_window_subscriptions.py +0 -0
@@ -7,6 +7,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.81] - 2026-11-07
11
+
12
+ > **规则版本不变(2.2.0)**:回测数值不变。**不兼容变更**:多标的指标在 `on_bar` / `on_tick` / 窗口回调之外不写标的取值,由静默返回别的标的的值改为抛 `ValueError`,见下方 Changed。
13
+
14
+ ### Added
15
+ - **指标绑定对象新增 `.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` 里按标的读动量与均线)。
16
+
17
+ ### Fixed
18
+ - **`self.I(factory=lambda: PrecomputedIndicator(...))` 第一根 bar 就抛 `NotImplementedError`**(#434):`factory=` 一律按增量指标处理、每根 bar 调 `update()`。现在声明时调用一次 factory 识别类型:产物是没有自己实现 `update()` 的 `PrecomputedIndicator` 时按预计算处理(它本身按标的缓存结果,天然多标的);继承它又实现了 `update()` 的类仍按增量处理(`examples/60` 的写法不变)。增量指标的这个探测实例交给第一个标的,factory 的调用次数不变。
19
+
20
+ ### Changed
21
+ - **在 `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]`。
22
+ - 文档:《自定义指标指南》新增“多标的:按标的取值 `.of(symbol)`”一节;自定义增量指标示例不再继承 `PrecomputedIndicator`(任何有 `update()` 的对象即可);常见误区与选择建议注明 `factory=` 只为增量指标而设、预计算指标直接传实例。策略手册、API 参考与 MCP 指标指南同步(中英文)。
23
+
24
+ ## [0.3.80] - 2026-11-07
25
+
26
+ > **规则版本 2.2.0**:含基金(ETF)标的、且走中国市场规则(`t_plus_one=True`、含期货或期权、或有标的设置了 `sellable_after_days`)的回测,基金手续费会变化——此前按引擎默认费率收取,现在按传入的全局费率收取(不传时与股票一样为 0);其余回测不变。paper 会话不传新参数时行为与此前一致。
27
+
28
+ ### Added
29
+ - **`run_live` 新增 paper 撮合参数 `commission_rate` / `stamp_tax_rate` / `transfer_fee_rate` / `min_commission` / `slippage` / `volume_limit_pct`**(#409):paper 会话由 AKQuant 自己撮合,与回测是同一个撮合器,但此前费率固定为默认值(佣金万分之三、印花税万分之五、过户费十万分之一、最低佣金 5 元)、没有滑点、不限成交量,模拟盘只能绕道引擎内部接口才能与回测按同一口径成交。现在这六个参数与 `run_backtest` 同名同义:费率作用于股票与基金(ETF),印花税只在股票卖出时收取,不传的项沿用上述默认值;期货、期权沿用默认费率,会话里只有期货/期权标的却传了费率参数时报错;`slippage` 与回测同格式(`ticks` 按标的 `tick_size` 换算);`volume_limit_pct` 截断量按手数取整。`trading_mode="broker_live"` 由柜台撮合,传了任一参数即抛 `ValueError`。
30
+
31
+ ### Fixed
32
+ - **回测的全局费率不作用于基金(ETF)**:走中国市场规则时,`commission_rate` / `commission_policy` / `transfer_fee_rate` / `min_commission` 只写进股票的费率配置,基金一直按引擎默认费率收取(佣金万分之三、过户费十万分之一、最低 5 元),传了费率也不生效——例如 `commission_rate=0.0001` 下 100 万元成交额的基金买单收 310 元而不是 100 元;不开 T+1 时所有资产共用一份费率,反而正常。现在这四项同样作用于基金,基金也支持 `commission_policy` 的 `fixed` / `per_unit` 口径;印花税仍不作用于基金(场内基金不收)。单独给基金设费率的 `fund_commission` / `fund_transfer_fee` / `fund_min_commission` 仍优先,且 `run_from_checkpoint` 续跑段现在也会重新下发它们(此前续跑段丢失)。按品种的 `InstrumentConfig` 费率覆盖不受影响。新增 `Engine.set_fund_fee_policy`。
33
+ - **API 参考把提交时验资被拒的情形写反了**(#410):`NextOpen` 下按开盘价算好数量的满仓市价买单,在次日**低开**(开盘价低于前收盘)乃至平开时会被提交时验资拒绝(参考价是前收盘、可用资金还要扣安全垫),文档原写成“跳空高开”。中英文同步更正。
34
+
35
+ ## [0.3.79] - 2026-11-06
36
+
37
+ > **规则版本不变(2.1.3)**:只改了 MCP 服务的握手信息与文档,回测数值不变。
38
+
39
+ ### Fixed
40
+ - **MCP 握手不报版本**:`akquant-mcp` 的初始化响应里 `serverInfo.version` 是空字符串,客户端看不出连上的是哪个版本。现在报告本机安装的 AKQuant 版本,并带上文档地址 `websiteUrl`。
41
+
42
+ ### Changed
43
+ - README、MCP 文档(中英文)与 `llms.txt` 注明 AKQuant 已上架 MCP 官方注册表(`io.github.akfamily/akquant`,自 0.3.78 起)。
44
+
10
45
  ## [0.3.78] - 2026-11-06
11
46
 
12
47
  > **规则版本不变(2.1.3)**:本版没有改变回测数值的引擎行为。引擎策略派发改经 `StrategyHandler` trait 是内部重构,golden 基线不变;Analyzer 插件的异常隔离只影响插件收到的回调与 `result.analyzer_outputs`。
@@ -30,7 +30,7 @@ dependencies = [
30
30
 
31
31
  [[package]]
32
32
  name = "akquant"
33
- version = "0.3.78"
33
+ version = "0.3.81"
34
34
  dependencies = [
35
35
  "anyhow",
36
36
  "chrono",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "akquant"
3
- version = "0.3.78"
3
+ version = "0.3.81"
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.78
3
+ Version: 0.3.81
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -96,7 +96,7 @@ Project-URL: Repository, https://github.com/akfamily/akquant
96
96
  * **因子表达式引擎**:内置 **Polars** 驱动的高性能因子计算引擎,支持 `Rank(Ts_Mean(Close, 5))` 等 Alpha101 风格公式,自动处理并行计算与数据对齐。
97
97
  * **参数优化**:内置多进程网格搜索(Grid Search)框架,支持策略参数的高效并行优化。
98
98
  * **专业级风控**:内置完善的订单流管理与即时风控模块,支持多资产组合回测。
99
- * **AI 助手(MCP)**:自带 MCP 服务,在 WorkBuddy、DeepSeek Harness、Codex、Cursor、Claude 等 AI 助手中用自然语言写策略、跑回测,助手能读到结构化的结果和报错。
99
+ * **AI 助手(MCP)**:自带 MCP 服务,在 WorkBuddy、DeepSeek Harness、Codex、Cursor、Claude 等 AI 助手中用自然语言写策略、跑回测,助手能读到结构化的结果和报错;已上架 [MCP 官方注册表](https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.akfamily/akquant)(`io.github.akfamily/akquant`)。
100
100
 
101
101
  👉 **[阅读完整文档](https://akquant.akfamily.xyz/)** | **[English Documentation](https://akquant.akfamily.xyz/en/)**
102
102
 
@@ -32,7 +32,7 @@
32
32
  * **因子表达式引擎**:内置 **Polars** 驱动的高性能因子计算引擎,支持 `Rank(Ts_Mean(Close, 5))` 等 Alpha101 风格公式,自动处理并行计算与数据对齐。
33
33
  * **参数优化**:内置多进程网格搜索(Grid Search)框架,支持策略参数的高效并行优化。
34
34
  * **专业级风控**:内置完善的订单流管理与即时风控模块,支持多资产组合回测。
35
- * **AI 助手(MCP)**:自带 MCP 服务,在 WorkBuddy、DeepSeek Harness、Codex、Cursor、Claude 等 AI 助手中用自然语言写策略、跑回测,助手能读到结构化的结果和报错。
35
+ * **AI 助手(MCP)**:自带 MCP 服务,在 WorkBuddy、DeepSeek Harness、Codex、Cursor、Claude 等 AI 助手中用自然语言写策略、跑回测,助手能读到结构化的结果和报错;已上架 [MCP 官方注册表](https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.akfamily/akquant)(`io.github.akfamily/akquant`)。
36
36
 
37
37
  👉 **[阅读完整文档](https://akquant.akfamily.xyz/)** | **[English Documentation](https://akquant.akfamily.xyz/en/)**
38
38
 
@@ -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]` |
@@ -2,6 +2,8 @@
2
2
 
3
3
  AKQuant ships a local MCP (Model Context Protocol) server. Once connected to WorkBuddy, DeepSeek Harness, Codex, Cursor, Claude or another AI assistant, the assistant can look up the API of the AKQuant version installed on your machine, statically check strategies, prepare data, run backtests, and read structured results and errors — closing the write–run–fix loop.
4
4
 
5
+ AKQuant is listed in the [official MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.akfamily/akquant) as `io.github.akfamily/akquant`; clients that install from the registry can search for it and add it directly.
6
+
5
7
  ## What you can ask {: #examples }
6
8
 
7
9
  - "Using Ping An Bank (000001) daily bars for the last three years, run a 5/20-day moving-average crossover and report return, max drawdown and trade count"
@@ -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).
@@ -110,6 +110,7 @@ def run_backtest(
110
110
  * `{"type": "fixed", "value": 3.0}`: a fixed amount charged on each fill.
111
111
  * `{"type": "per_unit", "value": 0.01}`: charged linearly by filled quantity, i.e. `fill_quantity * 0.01`.
112
112
  * When explicitly provided, it takes precedence over `commission_rate`; `commission_rate` remains as a backward-compatible shorthand for percent mode.
113
+ * **Fee scope**: `commission_policy` / `commission_rate` / `transfer_fee_rate` / `min_commission` apply to both stocks and funds (ETFs). With `t_plus_one=True`, futures/options present, or any instrument setting `sellable_after_days` (China market rules), `stamp_tax_rate` is charged on stock sells only and funds pay no stamp tax; otherwise all assets share one fee schedule. Futures and options fees are configured separately (`china_futures` / `china_options`). Use `InstrumentConfig.commission_rate` and related fields for per-instrument fees.
113
114
  * Legacy price-basis parameter: Removed.
114
115
  * Legacy timer-temporal parameter: Removed.
115
116
  * `fill_policy`: A `FillMode` object expressing unified fill semantics. One of five named modes:
@@ -1039,6 +1040,7 @@ Notes:
1039
1040
 
1040
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`).
1041
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).
1042
1044
 
1043
1045
  ### `akquant.Indicator` {: #akquant-indicator }
1044
1046
 
@@ -1059,7 +1061,7 @@ class DualMA(aq.Indicator, title="Dual MA", overlay=True, id="dual_ma"):
1059
1061
 
1060
1062
  ### `akquant.PrecomputedIndicator`
1061
1063
 
1062
- 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=`.
1063
1065
 
1064
1066
  ### `akquant.HeikinAshi`
1065
1067
 
@@ -1186,6 +1188,26 @@ run_live(
1186
1188
  * Known limitations: when a checkpoint is taken during the grace window and resumed, that day's settlement price is the latest price at checkpoint time; if a symbol has no tick before the close and only grace-window ticks, its settlement price equals the grace price; a closing bar that arrives after settlement is still dispatched to `on_bar`; with dual streams the symbol's grace ticks are pushed before the closing bar, so timestamps step back once; with several session tables the grace window follows the session-level close (the latest one), so data for an earlier-closing symbol between its own close and the session close is not grace data: it counts toward the day and its settlement price as usual and triggers a one-time "closed session" warning.
1187
1189
  * `akquant.live.StreamingIndicatorSink(on_event, *, run_id="live")`: Streaming indicator recorder for live sessions; each indicator point is sent to `on_event` immediately and nothing accumulates in memory. `run_live` uses it by default when `on_event` is passed without `indicator_recorder`; import it from `akquant.live` to compose your own.
1188
1190
 
1191
+ ### `akquant.run_live(commission_rate=..., slippage=..., volume_limit_pct=...)` (paper execution parameters) {: #live-paper-execution }
1192
+
1193
+ ```python
1194
+ run_live(
1195
+ ...,
1196
+ trading_mode="paper",
1197
+ commission_rate=0.0001,
1198
+ stamp_tax_rate=0.0005,
1199
+ min_commission=5.0,
1200
+ slippage={"type": "percent", "value": 0.0005},
1201
+ volume_limit_pct=0.25,
1202
+ )
1203
+ ```
1204
+
1205
+ * **Only for `trading_mode="paper"`**: paper sessions are matched by AKQuant itself, with the same matcher as backtests, and these six parameters have the same names and meaning as in `run_backtest`, so a paper session can fill on the same terms as the backtest. Under `broker_live` the broker does the matching and reports fill price, quantity and fees, so passing any of them raises `ValueError`.
1206
+ * `commission_rate` / `transfer_fee_rate` / `min_commission` apply to stocks and funds (ETFs); `stamp_tax_rate` is charged on stock sells only. Omitted items keep the paper defaults: 0.03% commission, 0.05% stamp tax, 0.001% transfer fee, minimum commission 5; passing none of them keeps the previous behavior exactly. Futures and options keep their default fees; passing fee parameters to a session with only futures/options instruments raises `ValueError`, and a mixed session logs a warning once.
1207
+ * `slippage`: same format as `run_backtest(slippage=)`, `{"type": "percent" | "fixed" | "ticks" | "zero", "value": ...}`; bare numbers are rejected, and `ticks` requires all instruments to share one `tick_size`. Omitted means no slippage.
1208
+ * `volume_limit_pct`: a bar fills at most this fraction of its volume, the capped quantity is rounded down to whole lots and the rest carries over to later bars; omitted or `0` means no limit. The data source's volume unit must match the order quantity unit (some AKShare endpoints report volume in lots).
1209
+ * Values must be finite and non-negative; invalid values raise before any gateway connects.
1210
+
1189
1211
  ## 3. Core Engine
1190
1212
 
1191
1213
  ### `akquant.Engine`
@@ -1398,7 +1420,7 @@ Funds-check fields:
1398
1420
 
1399
1421
  * `check_cash`: enable cash/margin checks (default `True`). It controls both the submission gate and the execution gate; `False` lets the account overdraw.
1400
1422
  * `safety_margin`: buffer for the submission gate (default `0.0001`), applied as `available × (1 − safety_margin)`. The execution gate uses no buffer.
1401
- * The submission gate prices the order at a **reference price**: the limit price for limit orders, the last price for market orders. Under `fill_policy=NextOpen()` the last price is the previous bar's close while the real fill is the next bar's open, so on gap-up days a full-size market buy sized at the open can be rejected at submission (`Insufficient margin`, with `Required = quantity × reference price + commission` and `Available = available funds × (1 − safety_margin)`). The execution gate checks again at the real fill price. Workarounds: use a limit order priced at the highest price you accept; call `buy(symbol, quantity=None)` so the sizer computes the quantity and the engine shrinks it to whole lots it can afford when funds are short (at both gates; buys with an explicit `quantity` are never resized); or size with `reference price × (1 + headroom)` yourself.
1423
+ * The submission gate prices the order at a **reference price**: the limit price for limit orders, the last price for market orders. Under `fill_policy=NextOpen()` the last price is the previous bar's close while the real fill is the next bar's open, so when the next bar opens below the previous close (or even flat), a full-size market buy sized at the open is rejected at submission, because the reference price is above the fill price and available funds are also reduced by the safety margin (`Insufficient margin`, with `Required = quantity × reference price + commission` and `Available = available funds × (1 − safety_margin)`). The execution gate checks again at the real fill price. Workarounds: use a limit order priced at the highest price you accept; call `buy(symbol, quantity=None)` so the sizer computes the quantity and the engine shrinks it to whole lots it can afford when funds are short (at both gates; buys with an explicit `quantity` are never resized); or size with `reference price × (1 + headroom)` yourself.
1402
1424
 
1403
1425
  Rejection reasons are available in `orders_df.reject_reason`. Execution-time rejections carry an `at execution` marker. If the order was already partially filled (e.g. across several bars under `volume_limit_pct`), only the remainder is rejected: the status becomes `cancelled`, `filled_quantity` and `avg_price` keep the filled part, and the reason is still in `reject_reason`.
1404
1426
 
@@ -29,6 +29,10 @@ aktools-mcp`); add both. Ask for or create a project directory for
29
29
  `--root`, use the `UV_INDEX_URL` mirror for users in mainland China, and
30
30
  tell the user to reload MCP or restart if the tools don't appear.
31
31
 
32
+ Registered in the official MCP Registry as `io.github.akfamily/akquant`
33
+ (the registry entry starts it as `uvx --with akquant[mcp]==X.Y.Z akquant mcp
34
+ --root=<dir>`).
35
+
32
36
  stdio only; the client launches it itself. It needs uv, no prior
33
37
  `pip install` and no running server. `--root` is the project directory:
34
38
  strategy and data files must be inside it, results go to
@@ -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]` 序列回溯 |
@@ -2,6 +2,8 @@
2
2
 
3
3
  AKQuant 自带一个本地 MCP(Model Context Protocol,模型上下文协议)服务。接入 WorkBuddy、Codex、Cursor、Claude 等 AI 助手后,助手可以查询与本机安装版本一致的 API、静态检查策略、准备数据、运行回测,并读到结构化的结果和报错,形成“写—跑—改”的闭环。
4
4
 
5
+ AKQuant 已上架 [MCP 官方注册表](https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.akfamily/akquant),名称为 `io.github.akfamily/akquant`,支持从注册表安装的客户端可以直接搜索添加。
6
+
5
7
  ## 可以问什么 {: #examples }
6
8
 
7
9
  - “用平安银行(000001)近三年的日线,跑一个 5 日与 20 日均线交叉的策略,报告收益、最大回撤和交易次数”
@@ -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)。
@@ -218,6 +218,7 @@ def run_from_checkpoint(
218
218
  * `{"type": "fixed", "value": 3.0}`: 每次成交固定收取 3 元。
219
219
  * `{"type": "per_unit", "value": 0.01}`: 按成交数量线性收费,即 `fill_quantity * 0.01`。
220
220
  * 若显式提供,优先级高于 `commission_rate`;`commission_rate` 仍保留为兼容入口。
221
+ * **费率作用范围**:`commission_policy` / `commission_rate` / `transfer_fee_rate` / `min_commission` 同时作用于股票与基金(ETF);`t_plus_one=True`、含期货或期权、或有标的设置了 `sellable_after_days`(走中国市场规则)时,`stamp_tax_rate` 只在股票卖出时收取,基金不收印花税;其余情况所有资产共用一份费率。期货、期权的费率另有配置(`china_futures` / `china_options`)。按品种不同费率用 `InstrumentConfig.commission_rate` 等字段覆盖。
221
222
  * legacy 价格基准参数:已移除。
222
223
  * legacy 时序参数:已移除。
223
224
  * `fill_policy`: 运行级默认成交语义,接受一个 `FillMode` 对象(从 `akquant` 顶层导入)。五个命名模式:
@@ -1106,6 +1107,7 @@ def on_pre_open(self, event: Dict[str, Any]) -> None:
1106
1107
 
1107
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`)。
1108
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)。
1109
1111
 
1110
1112
  ### `akquant.Indicator` {: #akquant-indicator }
1111
1113
 
@@ -1126,7 +1128,7 @@ class DualMA(aq.Indicator, title="双均线", overlay=True, id="dual_ma"):
1126
1128
 
1127
1129
  ### `akquant.PrecomputedIndicator`
1128
1130
 
1129
- 向量化预计算指标:`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=`。
1130
1132
 
1131
1133
  ### `akquant.HeikinAshi`
1132
1134
 
@@ -1253,6 +1255,26 @@ run_live(
1253
1255
  * 已知限制:宽限期内存档后续跑,当日结算价按存档时的最新价;某品种收盘前没有 tick、只有宽限期 tick 时,结算价等于宽限价;结算之后才到的收盘 bar 仍派发给 `on_bar`;双流下同品种的宽限 tick 先于收盘 bar 推出,时间戳会倒退一次;多张时段表时宽限按会话级收盘(取最晚)判,早收盘品种在其自身收盘后、会话收盘前的行情不属宽限,照常计入当日与结算价,并报一次“闭市时段”告警。
1254
1256
  * `akquant.live.StreamingIndicatorSink(on_event, *, run_id="live")`:实盘用的流式指标录制器,每个指标点即时发给 `on_event`、不在内存累积。`run_live` 传了 `on_event` 而未传 `indicator_recorder` 时默认使用它;需要自行组合时可从 `akquant.live` 导入。
1255
1257
 
1258
+ ### `akquant.run_live(commission_rate=..., slippage=..., volume_limit_pct=...)`(paper 撮合参数) {: #live-paper-execution }
1259
+
1260
+ ```python
1261
+ run_live(
1262
+ ...,
1263
+ trading_mode="paper",
1264
+ commission_rate=0.0001,
1265
+ stamp_tax_rate=0.0005,
1266
+ min_commission=5.0,
1267
+ slippage={"type": "percent", "value": 0.0005},
1268
+ volume_limit_pct=0.25,
1269
+ )
1270
+ ```
1271
+
1272
+ * **只作用于 `trading_mode="paper"`**:paper 会话由 AKQuant 自己撮合,与回测是同一个撮合器,这六个参数与 `run_backtest` 同名同义,用来让模拟盘与回测按同一口径成交。`broker_live` 由柜台撮合,成交价、成交量与手续费都以柜台回报为准,传了任一参数即抛 `ValueError`。
1273
+ * `commission_rate` / `transfer_fee_rate` / `min_commission`:作用于股票与基金(ETF);`stamp_tax_rate` 只在股票卖出时收取。不传的项沿用 paper 默认值:佣金万分之三、印花税万分之五、过户费十万分之一、最低佣金 5 元;一个都不传时行为与此前完全一致。期货、期权沿用默认费率;会话里只有期货/期权标的却传了费率参数时抛 `ValueError`,混有股票/基金时告警一次。
1274
+ * `slippage`:与 `run_backtest(slippage=)` 同格式,`{"type": "percent" | "fixed" | "ticks" | "zero", "value": ...}`,不接受裸数字;`ticks` 要求所有标的的 `tick_size` 相同。不传则无滑点。
1275
+ * `volume_limit_pct`:单根 bar 最多成交该 bar 成交量的这一比例,截断量按手数取整,未成交部分留到后续 bar;不传或 `0` 表示不限制。行情源的成交量单位要与下单数量一致(AKShare 部分接口的成交量单位是“手”)。
1276
+ * 取值须为有限的非负数,非法值在连接网关之前报错。
1277
+
1256
1278
  ## 3. 核心引擎 (Core)
1257
1279
 
1258
1280
  ### `akquant.Engine`
@@ -1542,7 +1564,7 @@ class RiskConfig:
1542
1564
  * **减仓/平仓**会释放保证金,变化量为负,先抵掉自己的费用——因此**卖单不需要预先持有现金**,与 A 股"卖出费用从成交款净额扣除"的规则一致。满仓后只剩几十元现金时,全量卖单照常成交。
1543
1565
  * 仅当卖出所得连费用都盖不住时(如持 100 股 0.01 元的股票),该值仍为正并照常验资;放过它等于让现金透支,而透支只有 `check_cash=False` 才允许。
1544
1566
  * `safety_margin`: 提交时闸门的安全垫(默认 `0.0001`),按 `(1 - safety_margin)` 折减可用资金,用于吸收"提交时用预估价、成交时用真实价"的偏差。成交时闸门不留安全垫。
1545
- * 提交时闸门用**参考价**估算:限价单用限价,市价单用最新价。`fill_policy=NextOpen()` 时最新价就是上一根的收盘价,而真实成交价是下一根的开盘价,所以跳空高开的日子里,按开盘价算好的满仓市价买单可能在提交时就被拒(拒单原因 `Insufficient margin`,其中 `Required = 数量 × 参考价 + 佣金`,`Available = 可用资金 × (1 − safety_margin)`)。成交时闸门再按真实成交价校验一次,不留安全垫。规避办法:用限价单,限价按你能接受的最高价给;或 `buy(symbol, quantity=None)` 交给仓位管理器按可用资金计算数量,资金不足时引擎会自动缩到买得起的整手数(提交时与成交时都会缩;显式给 `quantity` 的买单不缩量);或者按 `参考价 × (1 + 预留比例)` 自己计算数量。
1567
+ * 提交时闸门用**参考价**估算:限价单用限价,市价单用最新价。`fill_policy=NextOpen()` 时最新价就是上一根的收盘价,而真实成交价是下一根的开盘价,所以次日低开(开盘价低于前收盘)乃至平开时,按开盘价算好的满仓市价买单会在提交时被拒——参考价高于成交价,可用资金还要扣掉安全垫(拒单原因 `Insufficient margin`,其中 `Required = 数量 × 参考价 + 佣金`,`Available = 可用资金 × (1 − safety_margin)`)。成交时闸门再按真实成交价校验一次,不留安全垫。规避办法:用限价单,限价按你能接受的最高价给;或 `buy(symbol, quantity=None)` 交给仓位管理器按可用资金计算数量,资金不足时引擎会自动缩到买得起的整手数(提交时与成交时都会缩;显式给 `quantity` 的买单不缩量);或者按 `参考价 × (1 + 预留比例)` 自己计算数量。
1546
1568
 
1547
1569
  这些拒单原因会体现在 `orders_df.reject_reason` 字段中。成交时闸门产生的拒单,原因里会带 `at execution` 标记。订单此前已部分成交(如开了 `volume_limit_pct` 跨多根 bar 成交)时,成交时被拒的只是剩余部分:状态为 `cancelled`,`filled_quantity` 与 `avg_price` 保留已成交部分,原因仍写在 `reject_reason`。
1548
1570