akquant 0.3.78__tar.gz → 0.3.80__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 (930) hide show
  1. {akquant-0.3.78 → akquant-0.3.80}/CHANGELOG.md +21 -0
  2. {akquant-0.3.78 → akquant-0.3.80}/Cargo.lock +1 -1
  3. {akquant-0.3.78 → akquant-0.3.80}/Cargo.toml +1 -1
  4. {akquant-0.3.78 → akquant-0.3.80}/PKG-INFO +2 -2
  5. {akquant-0.3.78 → akquant-0.3.80}/README.md +1 -1
  6. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/mcp.md +2 -0
  7. {akquant-0.3.78 → akquant-0.3.80}/docs/en/reference/api.md +22 -1
  8. {akquant-0.3.78 → akquant-0.3.80}/docs/llms.txt +4 -0
  9. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/mcp.md +2 -0
  10. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/reference/api.md +22 -1
  11. {akquant-0.3.78 → akquant-0.3.80}/pyproject.toml +1 -1
  12. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/__init__.py +1 -1
  13. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/akquant.pyi +19 -0
  14. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/backtest/engine.py +43 -7
  15. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/live/_facade.py +31 -0
  16. akquant-0.3.80/python/akquant/live/_paper_execution.py +184 -0
  17. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/live/_runner.py +31 -0
  18. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/server.py +8 -1
  19. {akquant-0.3.78 → akquant-0.3.80}/server.json +3 -3
  20. {akquant-0.3.78 → akquant-0.3.80}/src/engine/python.rs +23 -0
  21. akquant-0.3.80/src/market/fund.rs +156 -0
  22. {akquant-0.3.78 → akquant-0.3.80}/src/market/manager.rs +19 -1
  23. {akquant-0.3.78 → akquant-0.3.80}/tests/mcp_server/test_mcp_server.py +14 -0
  24. akquant-0.3.80/tests/test_backtest_fund_fee_rules.py +164 -0
  25. {akquant-0.3.78 → akquant-0.3.80}/tests/test_instrument_fee_override.py +3 -2
  26. akquant-0.3.80/tests/test_live_paper_execution_params.py +290 -0
  27. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_public_api.py +3 -3
  28. akquant-0.3.78/src/market/fund.rs +0 -84
  29. {akquant-0.3.78 → akquant-0.3.80}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  30. {akquant-0.3.78 → akquant-0.3.80}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  31. {akquant-0.3.78 → akquant-0.3.80}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  32. {akquant-0.3.78 → akquant-0.3.80}/.github/dependabot.yml +0 -0
  33. {akquant-0.3.78 → akquant-0.3.80}/.github/workflows/deploy-docs.yml +0 -0
  34. {akquant-0.3.78 → akquant-0.3.80}/.github/workflows/docs-quality.yml +0 -0
  35. {akquant-0.3.78 → akquant-0.3.80}/.github/workflows/release.yml +0 -0
  36. {akquant-0.3.78 → akquant-0.3.80}/.gitignore +0 -0
  37. {akquant-0.3.78 → akquant-0.3.80}/.pre-commit-config.yaml +0 -0
  38. {akquant-0.3.78 → akquant-0.3.80}/CODE_OF_CONDUCT.md +0 -0
  39. {akquant-0.3.78 → akquant-0.3.80}/CONTRIBUTING.md +0 -0
  40. {akquant-0.3.78 → akquant-0.3.80}/LICENSE +0 -0
  41. {akquant-0.3.78 → akquant-0.3.80}/assets/dashboard_preview.png +0 -0
  42. {akquant-0.3.78 → akquant-0.3.80}/assets/logo.svg +0 -0
  43. {akquant-0.3.78 → akquant-0.3.80}/assets/social_preview.png +0 -0
  44. {akquant-0.3.78 → akquant-0.3.80}/docs/CNAME +0 -0
  45. {akquant-0.3.78 → akquant-0.3.80}/docs/assets/akquant-icon.svg +0 -0
  46. {akquant-0.3.78 → akquant-0.3.80}/docs/assets/akquant-logo.svg +0 -0
  47. {akquant-0.3.78 → akquant-0.3.80}/docs/assets/reports/akquant_report.html +0 -0
  48. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/analyzer_plugin_spec.md +0 -0
  49. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/broker_capability_matrix.md +0 -0
  50. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/custom_broker_production_checklist.md +0 -0
  51. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/custom_broker_registry.md +0 -0
  52. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/custom_strategy_loader.md +0 -0
  53. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/data_feed_adapter_spec.md +0 -0
  54. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/live_functional_quickstart.md +0 -0
  55. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/llm.md +0 -0
  56. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/ml.md +0 -0
  57. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/multi_strategy_guide.md +0 -0
  58. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/multi_timeframe_feed_api.md +0 -0
  59. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/runtime_config.md +0 -0
  60. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/signal_ingestion.md +0 -0
  61. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/strategy_style_decision.md +0 -0
  62. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/tick_size_alignment.md +0 -0
  63. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/timezone.md +0 -0
  64. {akquant-0.3.78 → akquant-0.3.80}/docs/en/advanced/warm_start.md +0 -0
  65. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/analysis.md +0 -0
  66. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/cross_section_checklist.md +0 -0
  67. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/custom_indicator.md +0 -0
  68. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/data.md +0 -0
  69. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/examples.md +0 -0
  70. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/factor.md +0 -0
  71. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/indicator_scenario_quickref.md +0 -0
  72. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/optimization.md +0 -0
  73. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/python_basics.md +0 -0
  74. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/quant_basics.md +0 -0
  75. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/rust_indicator_reference.md +0 -0
  76. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/strategy.md +0 -0
  77. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/talib_indicator_playbook.md +0 -0
  78. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/testing.md +0 -0
  79. {akquant-0.3.78 → akquant-0.3.80}/docs/en/guide/visualization.md +0 -0
  80. {akquant-0.3.78 → akquant-0.3.80}/docs/en/index.md +0 -0
  81. {akquant-0.3.78 → akquant-0.3.80}/docs/en/meta/architecture.md +0 -0
  82. {akquant-0.3.78 → akquant-0.3.80}/docs/en/meta/internals.md +0 -0
  83. {akquant-0.3.78 → akquant-0.3.80}/docs/en/start/first_strategy.md +0 -0
  84. {akquant-0.3.78 → akquant-0.3.80}/docs/en/start/installation.md +0 -0
  85. {akquant-0.3.78 → akquant-0.3.80}/docs/en/start/quickstart.md +0 -0
  86. {akquant-0.3.78 → akquant-0.3.80}/docs/en/start/setup_guide.md +0 -0
  87. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/01_foundations.md +0 -0
  88. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/02_programming.md +0 -0
  89. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/03_data.md +0 -0
  90. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/04_backtest_engine.md +0 -0
  91. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/05_strategy.md +0 -0
  92. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/06_stock_a.md +0 -0
  93. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/07_futures.md +0 -0
  94. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/08_options.md +0 -0
  95. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/09_funds.md +0 -0
  96. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/10_analysis.md +0 -0
  97. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/11_optimization.md +0 -0
  98. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/12_ml.md +0 -0
  99. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/13_visualization.md +0 -0
  100. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/14_factor.md +0 -0
  101. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/15_live_trading.md +0 -0
  102. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/16_rust_indicators.md +0 -0
  103. {akquant-0.3.78 → akquant-0.3.80}/docs/en/textbook/index.md +0 -0
  104. {akquant-0.3.78 → akquant-0.3.80}/docs/javascripts/mathjax.js +0 -0
  105. {akquant-0.3.78 → akquant-0.3.80}/docs/javascripts/search-lang-filter.js +0 -0
  106. {akquant-0.3.78 → akquant-0.3.80}/docs/robots.txt +0 -0
  107. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/adding_a_broker.md +0 -0
  108. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/analyzer_plugin_spec.md +0 -0
  109. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/broker_capability_matrix.md +0 -0
  110. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/custom_broker_production_checklist.md +0 -0
  111. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/custom_broker_registry.md +0 -0
  112. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/custom_strategy_loader.md +0 -0
  113. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/data_feed_adapter_spec.md +0 -0
  114. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/live_functional_quickstart.md +0 -0
  115. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/llm.md +0 -0
  116. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/ml.md +0 -0
  117. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/multi_strategy_guide.md +0 -0
  118. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/multi_timeframe_feed_api.md +0 -0
  119. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/runtime_config.md +0 -0
  120. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/signal_ingestion.md +0 -0
  121. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/strategy_style_decision.md +0 -0
  122. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/tick_size_alignment.md +0 -0
  123. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/timezone.md +0 -0
  124. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/advanced/warm_start.md +0 -0
  125. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/analysis.md +0 -0
  126. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/cross_section_checklist.md +0 -0
  127. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/custom_indicator.md +0 -0
  128. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/data.md +0 -0
  129. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/examples.md +0 -0
  130. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/factor.md +0 -0
  131. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/indicator_scenario_quickref.md +0 -0
  132. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/optimization.md +0 -0
  133. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/python_basics.md +0 -0
  134. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/quant_basics.md +0 -0
  135. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/rust_indicator_reference.md +0 -0
  136. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/strategy.md +0 -0
  137. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/talib_indicator_playbook.md +0 -0
  138. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/testing.md +0 -0
  139. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/guide/visualization.md +0 -0
  140. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/index.md +0 -0
  141. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/meta/architecture.md +0 -0
  142. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/meta/columnar-rfc.md +0 -0
  143. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/meta/internals.md +0 -0
  144. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/start/first_strategy.md +0 -0
  145. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/start/installation.md +0 -0
  146. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/start/quickstart.md +0 -0
  147. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/start/setup_guide.md +0 -0
  148. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/00_glossary.md +0 -0
  149. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/01_foundations.md +0 -0
  150. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/02_programming.md +0 -0
  151. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/03_data.md +0 -0
  152. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/04_backtest_engine.md +0 -0
  153. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/05_strategy.md +0 -0
  154. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/06_stock_a.md +0 -0
  155. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/07_futures.md +0 -0
  156. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/08_options.md +0 -0
  157. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/09_funds.md +0 -0
  158. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/10_analysis.md +0 -0
  159. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/11_optimization.md +0 -0
  160. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/12_ml.md +0 -0
  161. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/13_visualization.md +0 -0
  162. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/14_factor.md +0 -0
  163. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/15_live_trading.md +0 -0
  164. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/16_rust_indicators.md +0 -0
  165. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/ROADMAP.md +0 -0
  166. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/appendix_cite.md +0 -0
  167. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/appendix_pitfalls.md +0 -0
  168. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/appendix_setup.md +0 -0
  169. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/capstone.md +0 -0
  170. {akquant-0.3.78 → akquant-0.3.80}/docs/zh/textbook/index.md +0 -0
  171. {akquant-0.3.78 → akquant-0.3.80}/examples/01_quickstart.py +0 -0
  172. {akquant-0.3.78 → akquant-0.3.80}/examples/02_parameter_optimization.py +0 -0
  173. {akquant-0.3.78 → akquant-0.3.80}/examples/03_parameter_optimization_advanced.py +0 -0
  174. {akquant-0.3.78 → akquant-0.3.80}/examples/04_mixed_assets.py +0 -0
  175. {akquant-0.3.78 → akquant-0.3.80}/examples/05_live_trading_ctp.py +0 -0
  176. {akquant-0.3.78 → akquant-0.3.80}/examples/06_complex_orders.py +0 -0
  177. {akquant-0.3.78 → akquant-0.3.80}/examples/07_option_test.py +0 -0
  178. {akquant-0.3.78 → akquant-0.3.80}/examples/08_event_callbacks.py +0 -0
  179. {akquant-0.3.78 → akquant-0.3.80}/examples/09_ml_framework.py +0 -0
  180. {akquant-0.3.78 → akquant-0.3.80}/examples/10_ml_walk_forward.py +0 -0
  181. {akquant-0.3.78 → akquant-0.3.80}/examples/11_plot_visualization.py +0 -0
  182. {akquant-0.3.78 → akquant-0.3.80}/examples/12_wfo_integrated.py +0 -0
  183. {akquant-0.3.78 → akquant-0.3.80}/examples/13_quantstats_report.py +0 -0
  184. {akquant-0.3.78 → akquant-0.3.80}/examples/14_multi_frequency.py +0 -0
  185. {akquant-0.3.78 → akquant-0.3.80}/examples/15_plot_intraday.py +0 -0
  186. {akquant-0.3.78 → akquant-0.3.80}/examples/16_adj_returns_signal.py +0 -0
  187. {akquant-0.3.78 → akquant-0.3.80}/examples/17_readme_demo.py +0 -0
  188. {akquant-0.3.78 → akquant-0.3.80}/examples/18_benchmark_multisymbol.py +0 -0
  189. {akquant-0.3.78 → akquant-0.3.80}/examples/19_factor_expression.py +0 -0
  190. {akquant-0.3.78 → akquant-0.3.80}/examples/20_risk_management_demo.py +0 -0
  191. {akquant-0.3.78 → akquant-0.3.80}/examples/21_warm_start_demo.py +0 -0
  192. {akquant-0.3.78 → akquant-0.3.80}/examples/22_strategy_runtime_config_demo.py +0 -0
  193. {akquant-0.3.78 → akquant-0.3.80}/examples/23_functional_callbacks_demo.py +0 -0
  194. {akquant-0.3.78 → akquant-0.3.80}/examples/24_functional_tick_simulation_demo.py +0 -0
  195. {akquant-0.3.78 → akquant-0.3.80}/examples/25_streaming_backtest_demo.py +0 -0
  196. {akquant-0.3.78 → akquant-0.3.80}/examples/26_streaming_quickstart.py +0 -0
  197. {akquant-0.3.78 → akquant-0.3.80}/examples/27_streaming_monitoring_console.py +0 -0
  198. {akquant-0.3.78 → akquant-0.3.80}/examples/28_streaming_alerts_and_persist.py +0 -0
  199. {akquant-0.3.78 → akquant-0.3.80}/examples/29_streaming_event_report.py +0 -0
  200. {akquant-0.3.78 → akquant-0.3.80}/examples/30_streaming_report_oneclick.py +0 -0
  201. {akquant-0.3.78 → akquant-0.3.80}/examples/31_streaming_live_console.py +0 -0
  202. {akquant-0.3.78 → akquant-0.3.80}/examples/32_streaming_live_web.py +0 -0
  203. {akquant-0.3.78 → akquant-0.3.80}/examples/33_report_and_analysis_outputs.py +0 -0
  204. {akquant-0.3.78 → akquant-0.3.80}/examples/34_multi_strategy_demo.py +0 -0
  205. {akquant-0.3.78 → akquant-0.3.80}/examples/35_custom_broker_registry_demo.py +0 -0
  206. {akquant-0.3.78 → akquant-0.3.80}/examples/36_trailing_orders.py +0 -0
  207. {akquant-0.3.78 → akquant-0.3.80}/examples/37_feed_replay_alignment_demo.py +0 -0
  208. {akquant-0.3.78 → akquant-0.3.80}/examples/38_live_functional_strategy_demo.py +0 -0
  209. {akquant-0.3.78 → akquant-0.3.80}/examples/39_live_broker_submit_order_demo.py +0 -0
  210. {akquant-0.3.78 → akquant-0.3.80}/examples/39_live_mixed_broker_demo.py +0 -0
  211. {akquant-0.3.78 → akquant-0.3.80}/examples/40_functional_multi_slot_risk_demo.py +0 -0
  212. {akquant-0.3.78 → akquant-0.3.80}/examples/41_live_multi_slot_orchestration_demo.py +0 -0
  213. {akquant-0.3.78 → akquant-0.3.80}/examples/42_live_broker_event_audit_demo.py +0 -0
  214. {akquant-0.3.78 → akquant-0.3.80}/examples/43_target_weights_rebalance.py +0 -0
  215. {akquant-0.3.78 → akquant-0.3.80}/examples/44_strategy_source_loader_demo.py +0 -0
  216. {akquant-0.3.78 → akquant-0.3.80}/examples/45_talib_indicator_playbook_demo.py +0 -0
  217. {akquant-0.3.78 → akquant-0.3.80}/examples/46_broker_profile_demo.py +0 -0
  218. {akquant-0.3.78 → akquant-0.3.80}/examples/47_margin_liquidation_audit_demo.py +0 -0
  219. {akquant-0.3.78 → akquant-0.3.80}/examples/48_margin_liquidation_priority_compare.py +0 -0
  220. {akquant-0.3.78 → akquant-0.3.80}/examples/49_on_expiry_demo.py +0 -0
  221. {akquant-0.3.78 → akquant-0.3.80}/examples/50_framework_hooks_demo.py +0 -0
  222. {akquant-0.3.78 → akquant-0.3.80}/examples/51_class_tick_callbacks_demo.py +0 -0
  223. {akquant-0.3.78 → akquant-0.3.80}/examples/52_pre_open_demo.py +0 -0
  224. {akquant-0.3.78 → akquant-0.3.80}/examples/53_timer_to_pre_open_demo.py +0 -0
  225. {akquant-0.3.78 → akquant-0.3.80}/examples/54_functional_pre_open_demo.py +0 -0
  226. {akquant-0.3.78 → akquant-0.3.80}/examples/55_functional_ml_walk_forward.py +0 -0
  227. {akquant-0.3.78 → akquant-0.3.80}/examples/56_functional_warm_start_demo.py +0 -0
  228. {akquant-0.3.78 → akquant-0.3.80}/examples/57_functional_multi_slot_warm_start_demo.py +0 -0
  229. {akquant-0.3.78 → akquant-0.3.80}/examples/58_incremental_bootstrap_demo.py +0 -0
  230. {akquant-0.3.78 → akquant-0.3.80}/examples/59_akshare_etf_rotation.py +0 -0
  231. {akquant-0.3.78 → akquant-0.3.80}/examples/60_custom_indicator_demo.py +0 -0
  232. {akquant-0.3.78 → akquant-0.3.80}/examples/61_indicator_visualization_export_demo.py +0 -0
  233. {akquant-0.3.78 → akquant-0.3.80}/examples/61_signal_platform_webhook.py +0 -0
  234. {akquant-0.3.78 → akquant-0.3.80}/examples/62_indicator_streaming_demo.py +0 -0
  235. {akquant-0.3.78 → akquant-0.3.80}/examples/63_indicator_ws_bridge_demo.py +0 -0
  236. {akquant-0.3.78 → akquant-0.3.80}/examples/64_indicator_live_web.py +0 -0
  237. {akquant-0.3.78 → akquant-0.3.80}/examples/65_bar_generator.py +0 -0
  238. {akquant-0.3.78 → akquant-0.3.80}/examples/66_logging_audit_demo.py +0 -0
  239. {akquant-0.3.78 → akquant-0.3.80}/examples/67_lwc_trade_review.py +0 -0
  240. {akquant-0.3.78 → akquant-0.3.80}/examples/68_backtest_tick_demo.py +0 -0
  241. {akquant-0.3.78 → akquant-0.3.80}/examples/69_live_runtime_config_dispatch_demo.py +0 -0
  242. {akquant-0.3.78 → akquant-0.3.80}/examples/70_csv_multi_symbol_import_demo.py +0 -0
  243. {akquant-0.3.78 → akquant-0.3.80}/examples/71_native_multi_timeframe_live.py +0 -0
  244. {akquant-0.3.78 → akquant-0.3.80}/examples/72_declarative_indicators.py +0 -0
  245. {akquant-0.3.78 → akquant-0.3.80}/examples/73_lwc_live_indicators.py +0 -0
  246. {akquant-0.3.78 → akquant-0.3.80}/examples/74_indicator_scripts.py +0 -0
  247. {akquant-0.3.78 → akquant-0.3.80}/examples/75_intrabar_indicators.py +0 -0
  248. {akquant-0.3.78 → akquant-0.3.80}/examples/76_tick_intrabar_indicators.py +0 -0
  249. {akquant-0.3.78 → akquant-0.3.80}/examples/77_heikin_ashi_indicator.py +0 -0
  250. {akquant-0.3.78 → akquant-0.3.80}/examples/78_chart_drawings.py +0 -0
  251. {akquant-0.3.78 → akquant-0.3.80}/examples/README.md +0 -0
  252. {akquant-0.3.78 → akquant-0.3.80}/examples/benchmark_utils.py +0 -0
  253. {akquant-0.3.78 → akquant-0.3.80}/examples/pb_mock.py +0 -0
  254. {akquant-0.3.78 → akquant-0.3.80}/examples/strategies/01_stock_dual_moving_average.py +0 -0
  255. {akquant-0.3.78 → akquant-0.3.80}/examples/strategies/02_stock_grid_trading.py +0 -0
  256. {akquant-0.3.78 → akquant-0.3.80}/examples/strategies/03_stock_atr_breakout.py +0 -0
  257. {akquant-0.3.78 → akquant-0.3.80}/examples/strategies/04_stock_momentum_rotation.py +0 -0
  258. {akquant-0.3.78 → akquant-0.3.80}/examples/strategies/05_stock_momentum_rotation_timer.py +0 -0
  259. {akquant-0.3.78 → akquant-0.3.80}/examples/strategies/06_stock_momentum_rotation_bucket.py +0 -0
  260. {akquant-0.3.78 → akquant-0.3.80}/examples/strategies/07_stock_momentum_rotation_on_timer.py +0 -0
  261. {akquant-0.3.78 → akquant-0.3.80}/examples/strategies/08_target_positions_long_short.py +0 -0
  262. {akquant-0.3.78 → akquant-0.3.80}/examples/strategies/09_stock_momentum_rotation_after_bar.py +0 -0
  263. {akquant-0.3.78 → akquant-0.3.80}/examples/strategies/README.md +0 -0
  264. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch01_quickstart.py +0 -0
  265. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch01_quickstart_functional.py +0 -0
  266. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch02_programming.py +0 -0
  267. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch03_data.py +0 -0
  268. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch04_comparison.py +0 -0
  269. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch04_comparison_functional.py +0 -0
  270. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch05_strategy.py +0 -0
  271. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch05_strategy_functional.py +0 -0
  272. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch06_stock_a.py +0 -0
  273. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch06_stock_a_functional.py +0 -0
  274. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch07_futures.py +0 -0
  275. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch07_futures_functional.py +0 -0
  276. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch08_options.py +0 -0
  277. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch08_options_functional.py +0 -0
  278. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch09_funds.py +0 -0
  279. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch09_funds_functional.py +0 -0
  280. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch09_portfolio.py +0 -0
  281. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch09_portfolio_functional.py +0 -0
  282. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch10_analysis.py +0 -0
  283. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch10_analysis_functional.py +0 -0
  284. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch11_optimization.py +0 -0
  285. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch11_optimization_functional.py +0 -0
  286. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch12_ml.py +0 -0
  287. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch12_ml_functional.py +0 -0
  288. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch13_visualization.py +0 -0
  289. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch13_visualization_functional.py +0 -0
  290. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch14_factor.py +0 -0
  291. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch15_live_trading.py +0 -0
  292. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch15_live_trading_functional.py +0 -0
  293. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch15_strategy_loader.py +0 -0
  294. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch15_strategy_loader_functional.py +0 -0
  295. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch16_indicators.py +0 -0
  296. {akquant-0.3.78 → akquant-0.3.80}/examples/textbook/ch16_indicators_functional.py +0 -0
  297. {akquant-0.3.78 → akquant-0.3.80}/mkdocs.yml +0 -0
  298. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/analysis/__init__.py +0 -0
  299. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/analysis/benchmark.py +0 -0
  300. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/analyzer_plugin.py +0 -0
  301. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/backtest/__init__.py +0 -0
  302. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/backtest/__init__.pyi +0 -0
  303. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/backtest/_viz.py +0 -0
  304. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/backtest/fill_mode.py +0 -0
  305. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/backtest/merge.py +0 -0
  306. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/backtest/result.py +0 -0
  307. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/backtest/tick_input.py +0 -0
  308. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/bar_generator.py +0 -0
  309. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/chart/__init__.py +0 -0
  310. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/chart/_drawing.py +0 -0
  311. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/chart/_normalize.py +0 -0
  312. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/chart/d3kline.py +0 -0
  313. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/checkpoint.py +0 -0
  314. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/cli.py +0 -0
  315. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/config.py +0 -0
  316. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/data.py +0 -0
  317. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/execution/__init__.py +0 -0
  318. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/execution/base.py +0 -0
  319. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/execution/sim.py +0 -0
  320. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/factor/__init__.py +0 -0
  321. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/factor/engine.py +0 -0
  322. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/factor/ops.py +0 -0
  323. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/factor/parser.py +0 -0
  324. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/feed_adapter.py +0 -0
  325. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/fund/__init__.py +0 -0
  326. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/futures/__init__.py +0 -0
  327. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/__init__.py +0 -0
  328. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/base.py +0 -0
  329. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/broker_event_adapter.py +0 -0
  330. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/broker_event_bridge.py +0 -0
  331. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/broker_event_mapper.py +0 -0
  332. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/broker_execution.py +0 -0
  333. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/broker_models.py +0 -0
  334. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/broker_recovery.py +0 -0
  335. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/broker_runtime.py +0 -0
  336. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/broker_state_cache.py +0 -0
  337. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/broker_stats.py +0 -0
  338. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/broker_strategy_api.py +0 -0
  339. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/brokers/__init__.py +0 -0
  340. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/brokers/builtins.py +0 -0
  341. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/brokers/ctp/__init__.py +0 -0
  342. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/brokers/ctp/adapter.py +0 -0
  343. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/brokers/ctp/native.py +0 -0
  344. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/brokers/miniqmt/__init__.py +0 -0
  345. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/brokers/miniqmt/stub.py +0 -0
  346. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/brokers/plugins.py +0 -0
  347. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/brokers/ptrade/__init__.py +0 -0
  348. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/brokers/ptrade/stub.py +0 -0
  349. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/brokers/replay/__init__.py +0 -0
  350. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/brokers/replay/gateway.py +0 -0
  351. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/ctp_adapter.py +0 -0
  352. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/ctp_native.py +0 -0
  353. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/factory.py +0 -0
  354. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/local_stop_book.py +0 -0
  355. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/mapper.py +0 -0
  356. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/miniqmt.py +0 -0
  357. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/models.py +0 -0
  358. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/order_audit.py +0 -0
  359. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/order_errors.py +0 -0
  360. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/order_receipt.py +0 -0
  361. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/order_submitter.py +0 -0
  362. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/protocols.py +0 -0
  363. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/ptrade.py +0 -0
  364. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/registry.py +0 -0
  365. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/symbol_match.py +0 -0
  366. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/gateway/trader_base.py +0 -0
  367. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/indicator_declaration.py +0 -0
  368. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/indicator_identity.py +0 -0
  369. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/indicator_recording.py +0 -0
  370. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/indicator_script.py +0 -0
  371. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/indicator_stream.py +0 -0
  372. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/live/__init__.py +0 -0
  373. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/live/_gateway_setup.py +0 -0
  374. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/live/_payload_utils.py +0 -0
  375. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/live/_preload.py +0 -0
  376. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/live/_strategy_maps.py +0 -0
  377. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/live/_stream_sink.py +0 -0
  378. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/log.py +0 -0
  379. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/lwc/__init__.py +0 -0
  380. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/lwc/_drawings.py +0 -0
  381. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/lwc/_indicators.py +0 -0
  382. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/lwc/_payload.py +0 -0
  383. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/lwc/_template.py +0 -0
  384. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/lwc/assets/LICENSE.lightweight-charts +0 -0
  385. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/lwc/assets/NOTICE.md +0 -0
  386. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/lwc/assets/lightweight-charts.standalone.production.js +0 -0
  387. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/lwc/review.py +0 -0
  388. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/__init__.py +0 -0
  389. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/__main__.py +0 -0
  390. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/guides/data-format.md +0 -0
  391. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/guides/indicators.md +0 -0
  392. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/guides/market-rules.md +0 -0
  393. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/guides/orders-and-positions.md +0 -0
  394. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/guides/strategy-skeleton.md +0 -0
  395. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/service/__init__.py +0 -0
  396. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/service/api_index.py +0 -0
  397. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/service/check.py +0 -0
  398. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/service/data.py +0 -0
  399. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/service/errors.py +0 -0
  400. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/service/guides.py +0 -0
  401. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/service/paths.py +0 -0
  402. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/service/records.py +0 -0
  403. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/service/runs.py +0 -0
  404. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/mcp/worker.py +0 -0
  405. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/ml/__init__.py +0 -0
  406. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/ml/model.py +0 -0
  407. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/normalize.py +0 -0
  408. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/optimize.py +0 -0
  409. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/option/__init__.py +0 -0
  410. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/params.py +0 -0
  411. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/params_adapter.py +0 -0
  412. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/plot/__init__.py +0 -0
  413. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/plot/_market_data.py +0 -0
  414. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/plot/analysis.py +0 -0
  415. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/plot/dashboard.py +0 -0
  416. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/plot/indicator.py +0 -0
  417. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/plot/report.py +0 -0
  418. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/plot/strategy.py +0 -0
  419. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/plot/utils.py +0 -0
  420. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/precomputed.py +0 -0
  421. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/py.typed +0 -0
  422. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/risk.py +0 -0
  423. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/schema.py +0 -0
  424. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/sessions_config.py +0 -0
  425. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/signal/__init__.py +0 -0
  426. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/signal/dedup.py +0 -0
  427. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/signal/dispatcher.py +0 -0
  428. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/signal/models.py +0 -0
  429. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/signal/protocols.py +0 -0
  430. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/signal/registry.py +0 -0
  431. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/signal/security.py +0 -0
  432. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/signal/sinks.py +0 -0
  433. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/signal/sources/__init__.py +0 -0
  434. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/signal/sources/http.py +0 -0
  435. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/signal/sources/queue.py +0 -0
  436. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/signal/sources/redis_stream.py +0 -0
  437. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/sizer.py +0 -0
  438. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/stock/__init__.py +0 -0
  439. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy.py +0 -0
  440. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_drawing.py +0 -0
  441. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_events.py +0 -0
  442. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_framework_hooks.py +0 -0
  443. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_history.py +0 -0
  444. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_inspect.py +0 -0
  445. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_loader.py +0 -0
  446. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_logging.py +0 -0
  447. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_ml.py +0 -0
  448. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_order_events.py +0 -0
  449. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_position.py +0 -0
  450. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_preload.py +0 -0
  451. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_runtime_config.py +0 -0
  452. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_scheduler.py +0 -0
  453. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_stats.py +0 -0
  454. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_time.py +0 -0
  455. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_trading_api.py +0 -0
  456. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/strategy_window.py +0 -0
  457. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/stream_schema.py +0 -0
  458. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/talib/__init__.py +0 -0
  459. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/talib/_kernels.py +0 -0
  460. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/talib/backend.py +0 -0
  461. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/talib/core.py +0 -0
  462. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/talib/funcs.py +0 -0
  463. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/talib/lookback.py +0 -0
  464. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/trade_stream.py +0 -0
  465. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/utils/__init__.py +0 -0
  466. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/utils/inspector.py +0 -0
  467. {akquant-0.3.78 → akquant-0.3.80}/python/akquant/utils/price.py +0 -0
  468. {akquant-0.3.78 → akquant-0.3.80}/requirements-dev.txt +0 -0
  469. {akquant-0.3.78 → akquant-0.3.80}/scripts/bench_engine_perbar.py +0 -0
  470. {akquant-0.3.78 → akquant-0.3.80}/scripts/cargo-test.sh +0 -0
  471. {akquant-0.3.78 → akquant-0.3.80}/scripts/check_docs_api_examples.py +0 -0
  472. {akquant-0.3.78 → akquant-0.3.80}/scripts/check_docs_links.py +0 -0
  473. {akquant-0.3.78 → akquant-0.3.80}/scripts/check_release.py +0 -0
  474. {akquant-0.3.78 → akquant-0.3.80}/scripts/dev-check.sh +0 -0
  475. {akquant-0.3.78 → akquant-0.3.80}/scripts/golden_baseline_report.py +0 -0
  476. {akquant-0.3.78 → akquant-0.3.80}/scripts/profile_backtest.py +0 -0
  477. {akquant-0.3.78 → akquant-0.3.80}/scripts/stress_out_of_core.py +0 -0
  478. {akquant-0.3.78 → akquant-0.3.80}/src/account.rs +0 -0
  479. {akquant-0.3.78 → akquant-0.3.80}/src/analysis/live_stats.rs +0 -0
  480. {akquant-0.3.78 → akquant-0.3.80}/src/analysis/mod.rs +0 -0
  481. {akquant-0.3.78 → akquant-0.3.80}/src/analysis/python.rs +0 -0
  482. {akquant-0.3.78 → akquant-0.3.80}/src/analysis/result.rs +0 -0
  483. {akquant-0.3.78 → akquant-0.3.80}/src/analysis/strategy_stats.rs +0 -0
  484. {akquant-0.3.78 → akquant-0.3.80}/src/analysis/tests.rs +0 -0
  485. {akquant-0.3.78 → akquant-0.3.80}/src/analysis/tracker.rs +0 -0
  486. {akquant-0.3.78 → akquant-0.3.80}/src/analysis/types.rs +0 -0
  487. {akquant-0.3.78 → akquant-0.3.80}/src/bin/stub_gen.rs +0 -0
  488. {akquant-0.3.78 → akquant-0.3.80}/src/calendar/clock.rs +0 -0
  489. {akquant-0.3.78 → akquant-0.3.80}/src/calendar/mod.rs +0 -0
  490. {akquant-0.3.78 → akquant-0.3.80}/src/calendar/python.rs +0 -0
  491. {akquant-0.3.78 → akquant-0.3.80}/src/calendar/resolver.rs +0 -0
  492. {akquant-0.3.78 → akquant-0.3.80}/src/calendar/schedule.rs +0 -0
  493. {akquant-0.3.78 → akquant-0.3.80}/src/calendar/trading_calendar.rs +0 -0
  494. {akquant-0.3.78 → akquant-0.3.80}/src/clock.rs +0 -0
  495. {akquant-0.3.78 → akquant-0.3.80}/src/context.rs +0 -0
  496. {akquant-0.3.78 → akquant-0.3.80}/src/data/aggregator.rs +0 -0
  497. {akquant-0.3.78 → akquant-0.3.80}/src/data/batch.rs +0 -0
  498. {akquant-0.3.78 → akquant-0.3.80}/src/data/client.rs +0 -0
  499. {akquant-0.3.78 → akquant-0.3.80}/src/data/columns.rs +0 -0
  500. {akquant-0.3.78 → akquant-0.3.80}/src/data/compute.rs +0 -0
  501. {akquant-0.3.78 → akquant-0.3.80}/src/data/feed.rs +0 -0
  502. {akquant-0.3.78 → akquant-0.3.80}/src/data/mod.rs +0 -0
  503. {akquant-0.3.78 → akquant-0.3.80}/src/data/parquet_stream.rs +0 -0
  504. {akquant-0.3.78 → akquant-0.3.80}/src/data/python_window.rs +0 -0
  505. {akquant-0.3.78 → akquant-0.3.80}/src/data/window.rs +0 -0
  506. {akquant-0.3.78 → akquant-0.3.80}/src/engine/core.rs +0 -0
  507. {akquant-0.3.78 → akquant-0.3.80}/src/engine/mod.rs +0 -0
  508. {akquant-0.3.78 → akquant-0.3.80}/src/engine/state.rs +0 -0
  509. {akquant-0.3.78 → akquant-0.3.80}/src/engine/strategy_handler.rs +0 -0
  510. {akquant-0.3.78 → akquant-0.3.80}/src/error.rs +0 -0
  511. {akquant-0.3.78 → akquant-0.3.80}/src/event.rs +0 -0
  512. {akquant-0.3.78 → akquant-0.3.80}/src/event_manager.rs +0 -0
  513. {akquant-0.3.78 → akquant-0.3.80}/src/execution/common.rs +0 -0
  514. {akquant-0.3.78 → akquant-0.3.80}/src/execution/crypto.rs +0 -0
  515. {akquant-0.3.78 → akquant-0.3.80}/src/execution/forex.rs +0 -0
  516. {akquant-0.3.78 → akquant-0.3.80}/src/execution/futures.rs +0 -0
  517. {akquant-0.3.78 → akquant-0.3.80}/src/execution/matcher.rs +0 -0
  518. {akquant-0.3.78 → akquant-0.3.80}/src/execution/mod.rs +0 -0
  519. {akquant-0.3.78 → akquant-0.3.80}/src/execution/option.rs +0 -0
  520. {akquant-0.3.78 → akquant-0.3.80}/src/execution/python.rs +0 -0
  521. {akquant-0.3.78 → akquant-0.3.80}/src/execution/realtime.rs +0 -0
  522. {akquant-0.3.78 → akquant-0.3.80}/src/execution/simulated.rs +0 -0
  523. {akquant-0.3.78 → akquant-0.3.80}/src/execution/slippage.rs +0 -0
  524. {akquant-0.3.78 → akquant-0.3.80}/src/execution/stock.rs +0 -0
  525. {akquant-0.3.78 → akquant-0.3.80}/src/execution/validation.rs +0 -0
  526. {akquant-0.3.78 → akquant-0.3.80}/src/history.rs +0 -0
  527. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/momentum.rs +0 -0
  528. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/momentum_oscillators.rs +0 -0
  529. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/momentum_rates.rs +0 -0
  530. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/moving_average.rs +0 -0
  531. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/moving_average_compound.rs +0 -0
  532. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/moving_average_core.rs +0 -0
  533. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/moving_average_hilbert.rs +0 -0
  534. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/moving_average_transforms.rs +0 -0
  535. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/moving_average_windowed.rs +0 -0
  536. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/trend.rs +0 -0
  537. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/trend_directional.rs +0 -0
  538. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/trend_oscillators.rs +0 -0
  539. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/trend_regression.rs +0 -0
  540. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/volatility.rs +0 -0
  541. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/volatility_candle.rs +0 -0
  542. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/volatility_price.rs +0 -0
  543. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/volatility_stats.rs +0 -0
  544. {akquant-0.3.78 → akquant-0.3.80}/src/indicators/volume.rs +0 -0
  545. {akquant-0.3.78 → akquant-0.3.80}/src/indicators.rs +0 -0
  546. {akquant-0.3.78 → akquant-0.3.80}/src/lib.rs +0 -0
  547. {akquant-0.3.78 → akquant-0.3.80}/src/log_context.rs +0 -0
  548. {akquant-0.3.78 → akquant-0.3.80}/src/margin/calculator.rs +0 -0
  549. {akquant-0.3.78 → akquant-0.3.80}/src/margin/engine.rs +0 -0
  550. {akquant-0.3.78 → akquant-0.3.80}/src/margin/mod.rs +0 -0
  551. {akquant-0.3.78 → akquant-0.3.80}/src/market/china.rs +0 -0
  552. {akquant-0.3.78 → akquant-0.3.80}/src/market/core.rs +0 -0
  553. {akquant-0.3.78 → akquant-0.3.80}/src/market/corporate_action.rs +0 -0
  554. {akquant-0.3.78 → akquant-0.3.80}/src/market/fee_override.rs +0 -0
  555. {akquant-0.3.78 → akquant-0.3.80}/src/market/futures.rs +0 -0
  556. {akquant-0.3.78 → akquant-0.3.80}/src/market/mod.rs +0 -0
  557. {akquant-0.3.78 → akquant-0.3.80}/src/market/option.rs +0 -0
  558. {akquant-0.3.78 → akquant-0.3.80}/src/market/simple.rs +0 -0
  559. {akquant-0.3.78 → akquant-0.3.80}/src/market/stock.rs +0 -0
  560. {akquant-0.3.78 → akquant-0.3.80}/src/model/corporate_action.rs +0 -0
  561. {akquant-0.3.78 → akquant-0.3.80}/src/model/instrument.rs +0 -0
  562. {akquant-0.3.78 → akquant-0.3.80}/src/model/market_data.rs +0 -0
  563. {akquant-0.3.78 → akquant-0.3.80}/src/model/mod.rs +0 -0
  564. {akquant-0.3.78 → akquant-0.3.80}/src/model/order.rs +0 -0
  565. {akquant-0.3.78 → akquant-0.3.80}/src/model/timer.rs +0 -0
  566. {akquant-0.3.78 → akquant-0.3.80}/src/model/types.rs +0 -0
  567. {akquant-0.3.78 → akquant-0.3.80}/src/order_manager.rs +0 -0
  568. {akquant-0.3.78 → akquant-0.3.80}/src/pipeline/mod.rs +0 -0
  569. {akquant-0.3.78 → akquant-0.3.80}/src/pipeline/processor.rs +0 -0
  570. {akquant-0.3.78 → akquant-0.3.80}/src/pipeline/runner.rs +0 -0
  571. {akquant-0.3.78 → akquant-0.3.80}/src/pipeline/stages/channel.rs +0 -0
  572. {akquant-0.3.78 → akquant-0.3.80}/src/pipeline/stages/cleanup.rs +0 -0
  573. {akquant-0.3.78 → akquant-0.3.80}/src/pipeline/stages/data.rs +0 -0
  574. {akquant-0.3.78 → akquant-0.3.80}/src/pipeline/stages/execution.rs +0 -0
  575. {akquant-0.3.78 → akquant-0.3.80}/src/pipeline/stages/mod.rs +0 -0
  576. {akquant-0.3.78 → akquant-0.3.80}/src/pipeline/stages/shared.rs +0 -0
  577. {akquant-0.3.78 → akquant-0.3.80}/src/pipeline/stages/statistics.rs +0 -0
  578. {akquant-0.3.78 → akquant-0.3.80}/src/pipeline/stages/strategy.rs +0 -0
  579. {akquant-0.3.78 → akquant-0.3.80}/src/portfolio.rs +0 -0
  580. {akquant-0.3.78 → akquant-0.3.80}/src/risk/common.rs +0 -0
  581. {akquant-0.3.78 → akquant-0.3.80}/src/risk/config.rs +0 -0
  582. {akquant-0.3.78 → akquant-0.3.80}/src/risk/futures.rs +0 -0
  583. {akquant-0.3.78 → akquant-0.3.80}/src/risk/manager.rs +0 -0
  584. {akquant-0.3.78 → akquant-0.3.80}/src/risk/mod.rs +0 -0
  585. {akquant-0.3.78 → akquant-0.3.80}/src/risk/option.rs +0 -0
  586. {akquant-0.3.78 → akquant-0.3.80}/src/risk/portfolio.rs +0 -0
  587. {akquant-0.3.78 → akquant-0.3.80}/src/risk/rule.rs +0 -0
  588. {akquant-0.3.78 → akquant-0.3.80}/src/risk/stock.rs +0 -0
  589. {akquant-0.3.78 → akquant-0.3.80}/src/risk/strategy_limits.rs +0 -0
  590. {akquant-0.3.78 → akquant-0.3.80}/src/settlement/expiry.rs +0 -0
  591. {akquant-0.3.78 → akquant-0.3.80}/src/settlement/handler.rs +0 -0
  592. {akquant-0.3.78 → akquant-0.3.80}/src/settlement/manager.rs +0 -0
  593. {akquant-0.3.78 → akquant-0.3.80}/src/settlement/mod.rs +0 -0
  594. {akquant-0.3.78 → akquant-0.3.80}/src/settlement/option.rs +0 -0
  595. {akquant-0.3.78 → akquant-0.3.80}/src/signal_port.rs +0 -0
  596. {akquant-0.3.78 → akquant-0.3.80}/src/statistics/mod.rs +0 -0
  597. {akquant-0.3.78 → akquant-0.3.80}/tests/_checkpoint_0371.py +0 -0
  598. {akquant-0.3.78 → akquant-0.3.80}/tests/_plot_cases.py +0 -0
  599. {akquant-0.3.78 → akquant-0.3.80}/tests/fixtures/checkpoint_0371_minute.pkl +0 -0
  600. {akquant-0.3.78 → akquant-0.3.80}/tests/gateway_contract/test_event_bridge_contract.py +0 -0
  601. {akquant-0.3.78 → akquant-0.3.80}/tests/gateway_contract/test_recovery_contract.py +0 -0
  602. {akquant-0.3.78 → akquant-0.3.80}/tests/gateway_contract/test_submitter_contract.py +0 -0
  603. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/BASELINE_REPORT.md +0 -0
  604. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/futures_margin/equity_curve.parquet +0 -0
  605. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/futures_margin/metrics.json +0 -0
  606. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/futures_margin/orders.parquet +0 -0
  607. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/futures_margin/trading_day_ends.json +0 -0
  608. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/futures_night_weekend/equity_curve.parquet +0 -0
  609. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/futures_night_weekend/metrics.json +0 -0
  610. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/futures_night_weekend/orders.parquet +0 -0
  611. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/futures_night_weekend/trades.parquet +0 -0
  612. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/futures_night_weekend/trading_day_ends.json +0 -0
  613. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/option_basic/equity_curve.parquet +0 -0
  614. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/option_basic/metrics.json +0 -0
  615. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/option_basic/orders.parquet +0 -0
  616. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/option_basic/trading_day_ends.json +0 -0
  617. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/order_cancel/equity_curve.parquet +0 -0
  618. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/order_cancel/metrics.json +0 -0
  619. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/order_cancel/orders.parquet +0 -0
  620. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/order_cancel/trades.parquet +0 -0
  621. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/order_cancel/trading_day_ends.json +0 -0
  622. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/stock_minute_auction/equity_curve.parquet +0 -0
  623. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/stock_minute_auction/metrics.json +0 -0
  624. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/stock_minute_auction/orders.parquet +0 -0
  625. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/stock_minute_auction/trades.parquet +0 -0
  626. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/stock_minute_auction/trading_day_ends.json +0 -0
  627. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/stock_t1/equity_curve.parquet +0 -0
  628. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/stock_t1/metrics.json +0 -0
  629. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/stock_t1/orders.parquet +0 -0
  630. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/stock_t1/trades.parquet +0 -0
  631. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/baselines/stock_t1/trading_day_ends.json +0 -0
  632. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/data/future_margin.parquet +0 -0
  633. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/data/future_margin.parquet.sha256 +0 -0
  634. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/data/futures_night_weekend.parquet +0 -0
  635. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/data/futures_night_weekend.parquet.sha256 +0 -0
  636. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/data/option_basic.parquet +0 -0
  637. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/data/option_basic.parquet.sha256 +0 -0
  638. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/data/order_cancel.parquet +0 -0
  639. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/data/order_cancel.parquet.sha256 +0 -0
  640. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/data/stock_minute_auction.parquet +0 -0
  641. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/data/stock_minute_auction.parquet.sha256 +0 -0
  642. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/data/stock_t1.parquet +0 -0
  643. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/data/stock_t1.parquet.sha256 +0 -0
  644. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/gen_data.py +0 -0
  645. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/runner.py +0 -0
  646. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/strategies/futures_margin.py +0 -0
  647. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/strategies/futures_night_weekend.py +0 -0
  648. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/strategies/option_basic.py +0 -0
  649. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/strategies/order_cancel.py +0 -0
  650. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/strategies/stock_minute_auction.py +0 -0
  651. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/strategies/stock_t1.py +0 -0
  652. {akquant-0.3.78 → akquant-0.3.80}/tests/golden/test_golden.py +0 -0
  653. {akquant-0.3.78 → akquant-0.3.80}/tests/mcp_server/conftest.py +0 -0
  654. {akquant-0.3.78 → akquant-0.3.80}/tests/mcp_server/test_cli.py +0 -0
  655. {akquant-0.3.78 → akquant-0.3.80}/tests/mcp_server/test_mcp_api_index.py +0 -0
  656. {akquant-0.3.78 → akquant-0.3.80}/tests/mcp_server/test_mcp_check.py +0 -0
  657. {akquant-0.3.78 → akquant-0.3.80}/tests/mcp_server/test_mcp_data.py +0 -0
  658. {akquant-0.3.78 → akquant-0.3.80}/tests/mcp_server/test_mcp_errors.py +0 -0
  659. {akquant-0.3.78 → akquant-0.3.80}/tests/mcp_server/test_mcp_guides.py +0 -0
  660. {akquant-0.3.78 → akquant-0.3.80}/tests/mcp_server/test_mcp_main.py +0 -0
  661. {akquant-0.3.78 → akquant-0.3.80}/tests/mcp_server/test_mcp_paths.py +0 -0
  662. {akquant-0.3.78 → akquant-0.3.80}/tests/mcp_server/test_mcp_records.py +0 -0
  663. {akquant-0.3.78 → akquant-0.3.80}/tests/mcp_server/test_mcp_runs.py +0 -0
  664. {akquant-0.3.78 → akquant-0.3.80}/tests/test_account_risk_rules.py +0 -0
  665. {akquant-0.3.78 → akquant-0.3.80}/tests/test_api_rename_cash.py +0 -0
  666. {akquant-0.3.78 → akquant-0.3.80}/tests/test_api_rename_composites.py +0 -0
  667. {akquant-0.3.78 → akquant-0.3.80}/tests/test_api_rename_equity.py +0 -0
  668. {akquant-0.3.78 → akquant-0.3.80}/tests/test_api_rename_holding_bars.py +0 -0
  669. {akquant-0.3.78 → akquant-0.3.80}/tests/test_api_rename_positions.py +0 -0
  670. {akquant-0.3.78 → akquant-0.3.80}/tests/test_api_rename_rebalance.py +0 -0
  671. {akquant-0.3.78 → akquant-0.3.80}/tests/test_api_rename_scheduler.py +0 -0
  672. {akquant-0.3.78 → akquant-0.3.80}/tests/test_backtest_params.py +0 -0
  673. {akquant-0.3.78 → akquant-0.3.80}/tests/test_backtest_symbol_column_aliases.py +0 -0
  674. {akquant-0.3.78 → akquant-0.3.80}/tests/test_backtest_tick_aggregate.py +0 -0
  675. {akquant-0.3.78 → akquant-0.3.80}/tests/test_backtest_tick_entry.py +0 -0
  676. {akquant-0.3.78 → akquant-0.3.80}/tests/test_backtest_tick_history.py +0 -0
  677. {akquant-0.3.78 → akquant-0.3.80}/tests/test_bar_aggregator_live.py +0 -0
  678. {akquant-0.3.78 → akquant-0.3.80}/tests/test_bar_generator.py +0 -0
  679. {akquant-0.3.78 → akquant-0.3.80}/tests/test_bar_hook_bookkeeping_invariants.py +0 -0
  680. {akquant-0.3.78 → akquant-0.3.80}/tests/test_bench_noise_gate.py +0 -0
  681. {akquant-0.3.78 → akquant-0.3.80}/tests/test_boundary_bar_fill.py +0 -0
  682. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_bridge_adapts_events.py +0 -0
  683. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_bridge_drives_order_groups.py +0 -0
  684. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_dropped_counts_periodic_summary.py +0 -0
  685. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_event_adapter.py +0 -0
  686. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_event_adapter_local_id.py +0 -0
  687. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_event_symbol_filter.py +0 -0
  688. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_event_task_isolation.py +0 -0
  689. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_execution_local_stops.py +0 -0
  690. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_execution_read_path_parity.py +0 -0
  691. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_execution_stop_requeue.py +0 -0
  692. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_live_risk_enforcement.py +0 -0
  693. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_order_redelivery_dedup.py +0 -0
  694. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_plugins.py +0 -0
  695. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_position_sync.py +0 -0
  696. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_profile_cn_stock.py +0 -0
  697. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_recovery_cadence.py +0 -0
  698. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_recovery_error_visibility.py +0 -0
  699. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_seed_baseline.py +0 -0
  700. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_trade_redelivery_dedup.py +0 -0
  701. {akquant-0.3.78 → akquant-0.3.80}/tests/test_broker_trade_stats.py +0 -0
  702. {akquant-0.3.78 → akquant-0.3.80}/tests/test_buying_power_new_symbol.py +0 -0
  703. {akquant-0.3.78 → akquant-0.3.80}/tests/test_cancel_request_persistence.py +0 -0
  704. {akquant-0.3.78 → akquant-0.3.80}/tests/test_candle_exporters.py +0 -0
  705. {akquant-0.3.78 → akquant-0.3.80}/tests/test_candle_render_type.py +0 -0
  706. {akquant-0.3.78 → akquant-0.3.80}/tests/test_chart_d3kline.py +0 -0
  707. {akquant-0.3.78 → akquant-0.3.80}/tests/test_chart_drawing_normalize.py +0 -0
  708. {akquant-0.3.78 → akquant-0.3.80}/tests/test_chart_normalize.py +0 -0
  709. {akquant-0.3.78 → akquant-0.3.80}/tests/test_check_release.py +0 -0
  710. {akquant-0.3.78 → akquant-0.3.80}/tests/test_checkpoint_0371_compat.py +0 -0
  711. {akquant-0.3.78 → akquant-0.3.80}/tests/test_checkpoint_option_rules.py +0 -0
  712. {akquant-0.3.78 → akquant-0.3.80}/tests/test_close_position_delegate.py +0 -0
  713. {akquant-0.3.78 → akquant-0.3.80}/tests/test_composed_ctx_not_ready.py +0 -0
  714. {akquant-0.3.78 → akquant-0.3.80}/tests/test_cost_config_consolidation.py +0 -0
  715. {akquant-0.3.78 → akquant-0.3.80}/tests/test_cross_section_day_order_next_open_fill.py +0 -0
  716. {akquant-0.3.78 → akquant-0.3.80}/tests/test_ctp_classify_order_error.py +0 -0
  717. {akquant-0.3.78 → akquant-0.3.80}/tests/test_custom_matcher.py +0 -0
  718. {akquant-0.3.78 → akquant-0.3.80}/tests/test_data_catalog.py +0 -0
  719. {akquant-0.3.78 → akquant-0.3.80}/tests/test_date_only_rewrite_cache.py +0 -0
  720. {akquant-0.3.78 → akquant-0.3.80}/tests/test_day_order_expiry_no_zombie_fill.py +0 -0
  721. {akquant-0.3.78 → akquant-0.3.80}/tests/test_deterministic_order.py +0 -0
  722. {akquant-0.3.78 → akquant-0.3.80}/tests/test_docs_api_examples.py +0 -0
  723. {akquant-0.3.78 → akquant-0.3.80}/tests/test_docs_links.py +0 -0
  724. {akquant-0.3.78 → akquant-0.3.80}/tests/test_drawing_stream.py +0 -0
  725. {akquant-0.3.78 → akquant-0.3.80}/tests/test_dual_stream_freq_inference.py +0 -0
  726. {akquant-0.3.78 → akquant-0.3.80}/tests/test_engine.py +0 -0
  727. {akquant-0.3.78 → akquant-0.3.80}/tests/test_engine_python_crossings.py +0 -0
  728. {akquant-0.3.78 → akquant-0.3.80}/tests/test_event_model_parity.py +0 -0
  729. {akquant-0.3.78 → akquant-0.3.80}/tests/test_examples_regression.py +0 -0
  730. {akquant-0.3.78 → akquant-0.3.80}/tests/test_execution_binding.py +0 -0
  731. {akquant-0.3.78 → akquant-0.3.80}/tests/test_execution_broker.py +0 -0
  732. {akquant-0.3.78 → akquant-0.3.80}/tests/test_execution_broker_reads_routed.py +0 -0
  733. {akquant-0.3.78 → akquant-0.3.80}/tests/test_execution_composed_parity.py +0 -0
  734. {akquant-0.3.78 → akquant-0.3.80}/tests/test_execution_read_delegation.py +0 -0
  735. {akquant-0.3.78 → akquant-0.3.80}/tests/test_execution_sim.py +0 -0
  736. {akquant-0.3.78 → akquant-0.3.80}/tests/test_execution_write_delegation.py +0 -0
  737. {akquant-0.3.78 → akquant-0.3.80}/tests/test_expiry_terminal_dispatch.py +0 -0
  738. {akquant-0.3.78 → akquant-0.3.80}/tests/test_expiry_trade_accounting.py +0 -0
  739. {akquant-0.3.78 → akquant-0.3.80}/tests/test_factor_engine.py +0 -0
  740. {akquant-0.3.78 → akquant-0.3.80}/tests/test_factor_ops.py +0 -0
  741. {akquant-0.3.78 → akquant-0.3.80}/tests/test_feed_adapter.py +0 -0
  742. {akquant-0.3.78 → akquant-0.3.80}/tests/test_fetch_akshare_symbol.py +0 -0
  743. {akquant-0.3.78 → akquant-0.3.80}/tests/test_fill_mode.py +0 -0
  744. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_broker_live_cancel.py +0 -0
  745. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_broker_live_reads.py +0 -0
  746. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_broker_models_ext.py +0 -0
  747. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_broker_state_cache.py +0 -0
  748. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_broker_state_invalidation.py +0 -0
  749. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_broker_submitter_quantity.py +0 -0
  750. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_broker_submitter_readiness.py +0 -0
  751. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_broker_submitter_signature.py +0 -0
  752. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_brokers_paths.py +0 -0
  753. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_builtins_registry.py +0 -0
  754. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_callbacks.py +0 -0
  755. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_cancel_failure.py +0 -0
  756. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_ctp_adapter.py +0 -0
  757. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_ctp_dual_stream.py +0 -0
  758. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_ctp_native.py +0 -0
  759. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_expired_order_status.py +0 -0
  760. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_factory.py +0 -0
  761. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_mapper.py +0 -0
  762. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_mixed_market_trader.py +0 -0
  763. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_optional_market.py +0 -0
  764. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_order_error_classification.py +0 -0
  765. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_order_submitter_extra.py +0 -0
  766. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_order_tick_reject_soft.py +0 -0
  767. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_order_tick_validation.py +0 -0
  768. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_place_order_failure.py +0 -0
  769. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_registry.py +0 -0
  770. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_sim_submit_guard.py +0 -0
  771. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_symbol_match.py +0 -0
  772. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_tif_mapping.py +0 -0
  773. {akquant-0.3.78 → akquant-0.3.80}/tests/test_gateway_trader_base.py +0 -0
  774. {akquant-0.3.78 → akquant-0.3.80}/tests/test_get_order_finalized.py +0 -0
  775. {akquant-0.3.78 → akquant-0.3.80}/tests/test_grid_search_all_failed.py +0 -0
  776. {akquant-0.3.78 → akquant-0.3.80}/tests/test_heikin_ashi.py +0 -0
  777. {akquant-0.3.78 → akquant-0.3.80}/tests/test_hooks_functional_wrapper.py +0 -0
  778. {akquant-0.3.78 → akquant-0.3.80}/tests/test_hooks_inherited_via_base.py +0 -0
  779. {akquant-0.3.78 → akquant-0.3.80}/tests/test_indicator_declaration.py +0 -0
  780. {akquant-0.3.78 → akquant-0.3.80}/tests/test_indicator_declaration_review.py +0 -0
  781. {akquant-0.3.78 → akquant-0.3.80}/tests/test_indicator_dual_stream.py +0 -0
  782. {akquant-0.3.78 → akquant-0.3.80}/tests/test_indicator_duplicate_name.py +0 -0
  783. {akquant-0.3.78 → akquant-0.3.80}/tests/test_indicator_intrabar.py +0 -0
  784. {akquant-0.3.78 → akquant-0.3.80}/tests/test_indicator_live_web_example.py +0 -0
  785. {akquant-0.3.78 → akquant-0.3.80}/tests/test_indicator_non_finite.py +0 -0
  786. {akquant-0.3.78 → akquant-0.3.80}/tests/test_indicator_owner_identity.py +0 -0
  787. {akquant-0.3.78 → akquant-0.3.80}/tests/test_indicator_recording.py +0 -0
  788. {akquant-0.3.78 → akquant-0.3.80}/tests/test_indicator_script.py +0 -0
  789. {akquant-0.3.78 → akquant-0.3.80}/tests/test_inspector.py +0 -0
  790. {akquant-0.3.78 → akquant-0.3.80}/tests/test_instrument_default_tick.py +0 -0
  791. {akquant-0.3.78 → akquant-0.3.80}/tests/test_instrument_slippage.py +0 -0
  792. {akquant-0.3.78 → akquant-0.3.80}/tests/test_instrument_symbol_suffix_normalization.py +0 -0
  793. {akquant-0.3.78 → akquant-0.3.80}/tests/test_instruments_config_symbol_mismatch.py +0 -0
  794. {akquant-0.3.78 → akquant-0.3.80}/tests/test_lifecycle_hooks.py +0 -0
  795. {akquant-0.3.78 → akquant-0.3.80}/tests/test_lifecycle_review_fixes.py +0 -0
  796. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_auto_preload.py +0 -0
  797. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_broker_slot_routing.py +0 -0
  798. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_duration_wallclock.py +0 -0
  799. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_freq_injection.py +0 -0
  800. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_market_config_by_asset_type.py +0 -0
  801. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_mixed_market_broker.py +0 -0
  802. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_multi_slot_windows.py +0 -0
  803. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_preload_normalize.py +0 -0
  804. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_preload_runner.py +0 -0
  805. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runner.py +0 -0
  806. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runner_bounded_session.py +0 -0
  807. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runner_broker_bridge.py +0 -0
  808. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runner_broker_readiness.py +0 -0
  809. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runner_broker_recovery.py +0 -0
  810. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runner_broker_submitter.py +0 -0
  811. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runner_client_order_id.py +0 -0
  812. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runner_instrument_snapshots.py +0 -0
  813. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runner_lifecycle.py +0 -0
  814. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runner_no_market_data_warning.py +0 -0
  815. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runner_order_request_cache.py +0 -0
  816. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runner_sigterm_stop.py +0 -0
  817. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runner_stop_remap.py +0 -0
  818. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_runtime_config_dispatch.py +0 -0
  819. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_subscribe_forwards_to_gateway.py +0 -0
  820. {akquant-0.3.78 → akquant-0.3.80}/tests/test_live_summary_stop_reason.py +0 -0
  821. {akquant-0.3.78 → akquant-0.3.80}/tests/test_local_stop_book.py +0 -0
  822. {akquant-0.3.78 → akquant-0.3.80}/tests/test_local_stop_book_threadsafe.py +0 -0
  823. {akquant-0.3.78 → akquant-0.3.80}/tests/test_local_stop_scenario.py +0 -0
  824. {akquant-0.3.78 → akquant-0.3.80}/tests/test_log_sensitive_filter.py +0 -0
  825. {akquant-0.3.78 → akquant-0.3.80}/tests/test_lwc_drawings.py +0 -0
  826. {akquant-0.3.78 → akquant-0.3.80}/tests/test_lwc_indicators.py +0 -0
  827. {akquant-0.3.78 → akquant-0.3.80}/tests/test_lwc_review.py +0 -0
  828. {akquant-0.3.78 → akquant-0.3.80}/tests/test_merge_results.py +0 -0
  829. {akquant-0.3.78 → akquant-0.3.80}/tests/test_ml_rolling_training_threshold.py +0 -0
  830. {akquant-0.3.78 → akquant-0.3.80}/tests/test_multi_slot_ownership.py +0 -0
  831. {akquant-0.3.78 → akquant-0.3.80}/tests/test_multisymbol_cross_section_consistency.py +0 -0
  832. {akquant-0.3.78 → akquant-0.3.80}/tests/test_naive_timezone.py +0 -0
  833. {akquant-0.3.78 → akquant-0.3.80}/tests/test_normalize.py +0 -0
  834. {akquant-0.3.78 → akquant-0.3.80}/tests/test_oco_bracket_broker_live_scenario.py +0 -0
  835. {akquant-0.3.78 → akquant-0.3.80}/tests/test_on_execution_report_noop.py +0 -0
  836. {akquant-0.3.78 → akquant-0.3.80}/tests/test_on_timer_suspension_deadlock.py +0 -0
  837. {akquant-0.3.78 → akquant-0.3.80}/tests/test_optimize_functional_params.py +0 -0
  838. {akquant-0.3.78 → akquant-0.3.80}/tests/test_optimize_params.py +0 -0
  839. {akquant-0.3.78 → akquant-0.3.80}/tests/test_option_expiry_settlement.py +0 -0
  840. {akquant-0.3.78 → akquant-0.3.80}/tests/test_option_fees.py +0 -0
  841. {akquant-0.3.78 → akquant-0.3.80}/tests/test_option_market_side_effects.py +0 -0
  842. {akquant-0.3.78 → akquant-0.3.80}/tests/test_order_api_return_values.py +0 -0
  843. {akquant-0.3.78 → akquant-0.3.80}/tests/test_order_audit.py +0 -0
  844. {akquant-0.3.78 → akquant-0.3.80}/tests/test_order_callback_dedupe.py +0 -0
  845. {akquant-0.3.78 → akquant-0.3.80}/tests/test_order_receipt.py +0 -0
  846. {akquant-0.3.78 → akquant-0.3.80}/tests/test_order_receipt_backtest.py +0 -0
  847. {akquant-0.3.78 → akquant-0.3.80}/tests/test_order_target_lot_size_alignment.py +0 -0
  848. {akquant-0.3.78 → akquant-0.3.80}/tests/test_orders_df.py +0 -0
  849. {akquant-0.3.78 → akquant-0.3.80}/tests/test_params.py +0 -0
  850. {akquant-0.3.78 → akquant-0.3.80}/tests/test_params_adapter.py +0 -0
  851. {akquant-0.3.78 → akquant-0.3.80}/tests/test_parquet_stream.py +0 -0
  852. {akquant-0.3.78 → akquant-0.3.80}/tests/test_partial_filled_status.py +0 -0
  853. {akquant-0.3.78 → akquant-0.3.80}/tests/test_pickle_model_objects.py +0 -0
  854. {akquant-0.3.78 → akquant-0.3.80}/tests/test_plot_defaults.py +0 -0
  855. {akquant-0.3.78 → akquant-0.3.80}/tests/test_portfolio.py +0 -0
  856. {akquant-0.3.78 → akquant-0.3.80}/tests/test_position_effect_flip.py +0 -0
  857. {akquant-0.3.78 → akquant-0.3.80}/tests/test_pre_open_live_warns.py +0 -0
  858. {akquant-0.3.78 → akquant-0.3.80}/tests/test_product_presets.py +0 -0
  859. {akquant-0.3.78 → akquant-0.3.80}/tests/test_quickstart_stream_consistency.py +0 -0
  860. {akquant-0.3.78 → akquant-0.3.80}/tests/test_reduce_only_sell_affordability.py +0 -0
  861. {akquant-0.3.78 → akquant-0.3.80}/tests/test_removed_wrappers.py +0 -0
  862. {akquant-0.3.78 → akquant-0.3.80}/tests/test_replay_live_end_to_end.py +0 -0
  863. {akquant-0.3.78 → akquant-0.3.80}/tests/test_replay_market_gateway.py +0 -0
  864. {akquant-0.3.78 → akquant-0.3.80}/tests/test_report_helpers.py +0 -0
  865. {akquant-0.3.78 → akquant-0.3.80}/tests/test_report_plot_extensions.py +0 -0
  866. {akquant-0.3.78 → akquant-0.3.80}/tests/test_result_analysis_extensions.py +0 -0
  867. {akquant-0.3.78 → akquant-0.3.80}/tests/test_review_minors_cleanup.py +0 -0
  868. {akquant-0.3.78 → akquant-0.3.80}/tests/test_run_live_indicator_stream.py +0 -0
  869. {akquant-0.3.78 → akquant-0.3.80}/tests/test_session_config.py +0 -0
  870. {akquant-0.3.78 → akquant-0.3.80}/tests/test_session_matching.py +0 -0
  871. {akquant-0.3.78 → akquant-0.3.80}/tests/test_session_resolver.py +0 -0
  872. {akquant-0.3.78 → akquant-0.3.80}/tests/test_signal_module.py +0 -0
  873. {akquant-0.3.78 → akquant-0.3.80}/tests/test_signal_port_injection.py +0 -0
  874. {akquant-0.3.78 → akquant-0.3.80}/tests/test_signal_sources_p3.py +0 -0
  875. {akquant-0.3.78 → akquant-0.3.80}/tests/test_sizer_auto_resize.py +0 -0
  876. {akquant-0.3.78 → akquant-0.3.80}/tests/test_slippage_bare_number.py +0 -0
  877. {akquant-0.3.78 → akquant-0.3.80}/tests/test_sort_determinism.py +0 -0
  878. {akquant-0.3.78 → akquant-0.3.80}/tests/test_source_trading_day.py +0 -0
  879. {akquant-0.3.78 → akquant-0.3.80}/tests/test_stock_tick_validation.py +0 -0
  880. {akquant-0.3.78 → akquant-0.3.80}/tests/test_stop_id_remap_scenario.py +0 -0
  881. {akquant-0.3.78 → akquant-0.3.80}/tests/test_stop_orders.py +0 -0
  882. {akquant-0.3.78 → akquant-0.3.80}/tests/test_stop_retry_client_order_id.py +0 -0
  883. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_custom_init_params.py +0 -0
  884. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_drawing.py +0 -0
  885. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_events_stop_hook.py +0 -0
  886. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_extras.py +0 -0
  887. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_freq_attribute.py +0 -0
  888. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_history_dual_stream.py +0 -0
  889. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_history_missing_symbol_warning.py +0 -0
  890. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_inspect.py +0 -0
  891. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_loader_candidates.py +0 -0
  892. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_loader_exports.py +0 -0
  893. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_loader_pickle.py +0 -0
  894. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_loader_plugins.py +0 -0
  895. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_loader_reload.py +0 -0
  896. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_ml_dual_stream.py +0 -0
  897. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_order_group_lock.py +0 -0
  898. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_params.py +0 -0
  899. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_session_api.py +0 -0
  900. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_sizing_broker_live_guard.py +0 -0
  901. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_stats.py +0 -0
  902. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_stats_parity.py +0 -0
  903. {akquant-0.3.78 → akquant-0.3.80}/tests/test_strategy_timers_indicators.py +0 -0
  904. {akquant-0.3.78 → akquant-0.3.80}/tests/test_stream_series_key.py +0 -0
  905. {akquant-0.3.78 → akquant-0.3.80}/tests/test_subscribe_live_warns.py +0 -0
  906. {akquant-0.3.78 → akquant-0.3.80}/tests/test_suspension_zero_volume_gtc_terminal.py +0 -0
  907. {akquant-0.3.78 → akquant-0.3.80}/tests/test_symbols_filtering.py +0 -0
  908. {akquant-0.3.78 → akquant-0.3.80}/tests/test_symbols_whitelist_rust.py +0 -0
  909. {akquant-0.3.78 → akquant-0.3.80}/tests/test_t_plus_one.py +0 -0
  910. {akquant-0.3.78 → akquant-0.3.80}/tests/test_talib_alignment.py +0 -0
  911. {akquant-0.3.78 → akquant-0.3.80}/tests/test_talib_backend.py +0 -0
  912. {akquant-0.3.78 → akquant-0.3.80}/tests/test_talib_compat.py +0 -0
  913. {akquant-0.3.78 → akquant-0.3.80}/tests/test_target_orders_core.py +0 -0
  914. {akquant-0.3.78 → akquant-0.3.80}/tests/test_tick_indicators.py +0 -0
  915. {akquant-0.3.78 → akquant-0.3.80}/tests/test_tick_input.py +0 -0
  916. {akquant-0.3.78 → akquant-0.3.80}/tests/test_trade_stream_bridge.py +0 -0
  917. {akquant-0.3.78 → akquant-0.3.80}/tests/test_trades_df.py +0 -0
  918. {akquant-0.3.78 → akquant-0.3.80}/tests/test_trading_day_lifecycle.py +0 -0
  919. {akquant-0.3.78 → akquant-0.3.80}/tests/test_utils_price.py +0 -0
  920. {akquant-0.3.78 → akquant-0.3.80}/tests/test_vectorized.py +0 -0
  921. {akquant-0.3.78 → akquant-0.3.80}/tests/test_version.py +0 -0
  922. {akquant-0.3.78 → akquant-0.3.80}/tests/test_viz_namespace.py +0 -0
  923. {akquant-0.3.78 → akquant-0.3.80}/tests/test_volume_limit.py +0 -0
  924. {akquant-0.3.78 → akquant-0.3.80}/tests/test_walk_forward_kwargs.py +0 -0
  925. {akquant-0.3.78 → akquant-0.3.80}/tests/test_warm_start_slippage_inherit.py +0 -0
  926. {akquant-0.3.78 → akquant-0.3.80}/tests/test_warmup_period_per_symbol.py +0 -0
  927. {akquant-0.3.78 → akquant-0.3.80}/tests/test_window_checkpoint.py +0 -0
  928. {akquant-0.3.78 → akquant-0.3.80}/tests/test_window_live_replay.py +0 -0
  929. {akquant-0.3.78 → akquant-0.3.80}/tests/test_window_sessions.py +0 -0
  930. {akquant-0.3.78 → akquant-0.3.80}/tests/test_window_subscriptions.py +0 -0
@@ -7,6 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.80] - 2026-11-07
11
+
12
+ > **规则版本 2.2.0**:含基金(ETF)标的、且走中国市场规则(`t_plus_one=True`、含期货或期权、或有标的设置了 `sellable_after_days`)的回测,基金手续费会变化——此前按引擎默认费率收取,现在按传入的全局费率收取(不传时与股票一样为 0);其余回测不变。paper 会话不传新参数时行为与此前一致。
13
+
14
+ ### Added
15
+ - **`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`。
16
+
17
+ ### Fixed
18
+ - **回测的全局费率不作用于基金(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`。
19
+ - **API 参考把提交时验资被拒的情形写反了**(#410):`NextOpen` 下按开盘价算好数量的满仓市价买单,在次日**低开**(开盘价低于前收盘)乃至平开时会被提交时验资拒绝(参考价是前收盘、可用资金还要扣安全垫),文档原写成“跳空高开”。中英文同步更正。
20
+
21
+ ## [0.3.79] - 2026-11-06
22
+
23
+ > **规则版本不变(2.1.3)**:只改了 MCP 服务的握手信息与文档,回测数值不变。
24
+
25
+ ### Fixed
26
+ - **MCP 握手不报版本**:`akquant-mcp` 的初始化响应里 `serverInfo.version` 是空字符串,客户端看不出连上的是哪个版本。现在报告本机安装的 AKQuant 版本,并带上文档地址 `websiteUrl`。
27
+
28
+ ### Changed
29
+ - README、MCP 文档(中英文)与 `llms.txt` 注明 AKQuant 已上架 MCP 官方注册表(`io.github.akfamily/akquant`,自 0.3.78 起)。
30
+
10
31
  ## [0.3.78] - 2026-11-06
11
32
 
12
33
  > **规则版本不变(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.80"
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.80"
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.80
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
 
@@ -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"
@@ -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:
@@ -1186,6 +1187,26 @@ run_live(
1186
1187
  * 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
1188
  * `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
1189
 
1190
+ ### `akquant.run_live(commission_rate=..., slippage=..., volume_limit_pct=...)` (paper execution parameters) {: #live-paper-execution }
1191
+
1192
+ ```python
1193
+ run_live(
1194
+ ...,
1195
+ trading_mode="paper",
1196
+ commission_rate=0.0001,
1197
+ stamp_tax_rate=0.0005,
1198
+ min_commission=5.0,
1199
+ slippage={"type": "percent", "value": 0.0005},
1200
+ volume_limit_pct=0.25,
1201
+ )
1202
+ ```
1203
+
1204
+ * **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`.
1205
+ * `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.
1206
+ * `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.
1207
+ * `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).
1208
+ * Values must be finite and non-negative; invalid values raise before any gateway connects.
1209
+
1189
1210
  ## 3. Core Engine
1190
1211
 
1191
1212
  ### `akquant.Engine`
@@ -1398,7 +1419,7 @@ Funds-check fields:
1398
1419
 
1399
1420
  * `check_cash`: enable cash/margin checks (default `True`). It controls both the submission gate and the execution gate; `False` lets the account overdraw.
1400
1421
  * `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.
1422
+ * 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
1423
 
1403
1424
  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
1425
 
@@ -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
@@ -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 日均线交叉的策略,报告收益、最大回撤和交易次数”
@@ -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` 顶层导入)。五个命名模式:
@@ -1253,6 +1254,26 @@ run_live(
1253
1254
  * 已知限制:宽限期内存档后续跑,当日结算价按存档时的最新价;某品种收盘前没有 tick、只有宽限期 tick 时,结算价等于宽限价;结算之后才到的收盘 bar 仍派发给 `on_bar`;双流下同品种的宽限 tick 先于收盘 bar 推出,时间戳会倒退一次;多张时段表时宽限按会话级收盘(取最晚)判,早收盘品种在其自身收盘后、会话收盘前的行情不属宽限,照常计入当日与结算价,并报一次“闭市时段”告警。
1254
1255
  * `akquant.live.StreamingIndicatorSink(on_event, *, run_id="live")`:实盘用的流式指标录制器,每个指标点即时发给 `on_event`、不在内存累积。`run_live` 传了 `on_event` 而未传 `indicator_recorder` 时默认使用它;需要自行组合时可从 `akquant.live` 导入。
1255
1256
 
1257
+ ### `akquant.run_live(commission_rate=..., slippage=..., volume_limit_pct=...)`(paper 撮合参数) {: #live-paper-execution }
1258
+
1259
+ ```python
1260
+ run_live(
1261
+ ...,
1262
+ trading_mode="paper",
1263
+ commission_rate=0.0001,
1264
+ stamp_tax_rate=0.0005,
1265
+ min_commission=5.0,
1266
+ slippage={"type": "percent", "value": 0.0005},
1267
+ volume_limit_pct=0.25,
1268
+ )
1269
+ ```
1270
+
1271
+ * **只作用于 `trading_mode="paper"`**:paper 会话由 AKQuant 自己撮合,与回测是同一个撮合器,这六个参数与 `run_backtest` 同名同义,用来让模拟盘与回测按同一口径成交。`broker_live` 由柜台撮合,成交价、成交量与手续费都以柜台回报为准,传了任一参数即抛 `ValueError`。
1272
+ * `commission_rate` / `transfer_fee_rate` / `min_commission`:作用于股票与基金(ETF);`stamp_tax_rate` 只在股票卖出时收取。不传的项沿用 paper 默认值:佣金万分之三、印花税万分之五、过户费十万分之一、最低佣金 5 元;一个都不传时行为与此前完全一致。期货、期权沿用默认费率;会话里只有期货/期权标的却传了费率参数时抛 `ValueError`,混有股票/基金时告警一次。
1273
+ * `slippage`:与 `run_backtest(slippage=)` 同格式,`{"type": "percent" | "fixed" | "ticks" | "zero", "value": ...}`,不接受裸数字;`ticks` 要求所有标的的 `tick_size` 相同。不传则无滑点。
1274
+ * `volume_limit_pct`:单根 bar 最多成交该 bar 成交量的这一比例,截断量按手数取整,未成交部分留到后续 bar;不传或 `0` 表示不限制。行情源的成交量单位要与下单数量一致(AKShare 部分接口的成交量单位是“手”)。
1275
+ * 取值须为有限的非负数,非法值在连接网关之前报错。
1276
+
1256
1277
  ## 3. 核心引擎 (Core)
1257
1278
 
1258
1279
  ### `akquant.Engine`
@@ -1542,7 +1563,7 @@ class RiskConfig:
1542
1563
  * **减仓/平仓**会释放保证金,变化量为负,先抵掉自己的费用——因此**卖单不需要预先持有现金**,与 A 股"卖出费用从成交款净额扣除"的规则一致。满仓后只剩几十元现金时,全量卖单照常成交。
1543
1564
  * 仅当卖出所得连费用都盖不住时(如持 100 股 0.01 元的股票),该值仍为正并照常验资;放过它等于让现金透支,而透支只有 `check_cash=False` 才允许。
1544
1565
  * `safety_margin`: 提交时闸门的安全垫(默认 `0.0001`),按 `(1 - safety_margin)` 折减可用资金,用于吸收"提交时用预估价、成交时用真实价"的偏差。成交时闸门不留安全垫。
1545
- * 提交时闸门用**参考价**估算:限价单用限价,市价单用最新价。`fill_policy=NextOpen()` 时最新价就是上一根的收盘价,而真实成交价是下一根的开盘价,所以跳空高开的日子里,按开盘价算好的满仓市价买单可能在提交时就被拒(拒单原因 `Insufficient margin`,其中 `Required = 数量 × 参考价 + 佣金`,`Available = 可用资金 × (1 − safety_margin)`)。成交时闸门再按真实成交价校验一次,不留安全垫。规避办法:用限价单,限价按你能接受的最高价给;或 `buy(symbol, quantity=None)` 交给仓位管理器按可用资金计算数量,资金不足时引擎会自动缩到买得起的整手数(提交时与成交时都会缩;显式给 `quantity` 的买单不缩量);或者按 `参考价 × (1 + 预留比例)` 自己计算数量。
1566
+ * 提交时闸门用**参考价**估算:限价单用限价,市价单用最新价。`fill_policy=NextOpen()` 时最新价就是上一根的收盘价,而真实成交价是下一根的开盘价,所以次日低开(开盘价低于前收盘)乃至平开时,按开盘价算好的满仓市价买单会在提交时被拒——参考价高于成交价,可用资金还要扣掉安全垫(拒单原因 `Insufficient margin`,其中 `Required = 数量 × 参考价 + 佣金`,`Available = 可用资金 × (1 − safety_margin)`)。成交时闸门再按真实成交价校验一次,不留安全垫。规避办法:用限价单,限价按你能接受的最高价给;或 `buy(symbol, quantity=None)` 交给仓位管理器按可用资金计算数量,资金不足时引擎会自动缩到买得起的整手数(提交时与成交时都会缩;显式给 `quantity` 的买单不缩量);或者按 `参考价 × (1 + 预留比例)` 自己计算数量。
1546
1567
 
1547
1568
  这些拒单原因会体现在 `orders_df.reject_reason` 字段中。成交时闸门产生的拒单,原因里会带 `at execution` 标记。订单此前已部分成交(如开了 `volume_limit_pct` 跨多根 bar 成交)时,成交时被拒的只是剩余部分:状态为 `cancelled`,`filled_quantity` 与 `avg_price` 保留已成交部分,原因仍写在 `reject_reason`。
1548
1569
 
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "akquant"
7
- version = "0.3.78"
7
+ version = "0.3.80"
8
8
  description = "High-performance quantitative trading framework based on Rust and Python"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT License"}
@@ -8,7 +8,7 @@ try:
8
8
  except metadata.PackageNotFoundError:
9
9
  __version__ = "0.0.0+unknown"
10
10
 
11
- __engine_rule_version__ = "2.1.3" # Increment on behavior-changing updates
11
+ __engine_rule_version__ = "2.2.0" # Increment on behavior-changing updates
12
12
 
13
13
  from . import akquant as _akquant
14
14
  from . import log as _log
@@ -1161,6 +1161,25 @@ class Engine:
1161
1161
  """
1162
1162
  ...
1163
1163
 
1164
+ def set_fund_fee_policy(
1165
+ self,
1166
+ commission_type: str,
1167
+ commission_value: float,
1168
+ transfer_fee: float,
1169
+ min_commission: float,
1170
+ ) -> None:
1171
+ r"""
1172
+ 设置基金费率策略(佣金口径同 ``set_stock_fee_policy``).
1173
+
1174
+ 只作用于中国市场配置; 简单市场下所有资产共用一份费率。基金印花税不变。
1175
+
1176
+ :param commission_type: 佣金口径: "percent"(按成交额) / "fixed"(每笔) / "per_unit"(按数量)
1177
+ :param commission_value: 佣金数值
1178
+ :param transfer_fee: 过户费率
1179
+ :param min_commission: 最低佣金
1180
+ """
1181
+ ...
1182
+
1164
1183
  def set_instrument_fee_override(
1165
1184
  self,
1166
1185
  symbol: str,
@@ -2313,6 +2313,35 @@ def _build_instrument_slippage_map(
2313
2313
  return result or None
2314
2314
 
2315
2315
 
2316
+ def _apply_fund_fee_rules(
2317
+ engine: Any,
2318
+ *,
2319
+ commission_policy: CommissionPolicy,
2320
+ transfer_fee_rate: float,
2321
+ min_commission: float,
2322
+ kwargs: Dict[str, Any],
2323
+ ) -> None:
2324
+ """全局费率同样作用于基金; ``fund_commission`` 系列参数单独给基金设置时优先.
2325
+
2326
+ 只影响 ChinaMarket(SimpleMarket 所有资产共用一份费率, 引擎侧对其不做处理)。
2327
+ 印花税不作用于基金: 场内基金不收印花税, 基金配置的印花税保持 0。
2328
+ 此前基金一直按引擎默认(万三 + 过户费 + 最低 5 元)收费, 全局费率参数不生效。
2329
+ """
2330
+ if hasattr(engine, "set_fund_fee_policy"):
2331
+ engine.set_fund_fee_policy(
2332
+ commission_policy["type"],
2333
+ float(commission_policy["value"]),
2334
+ float(transfer_fee_rate),
2335
+ float(min_commission),
2336
+ )
2337
+ if "fund_commission" in kwargs:
2338
+ engine.set_fund_fee_rules(
2339
+ kwargs["fund_commission"],
2340
+ kwargs.get("fund_transfer_fee", 0.0),
2341
+ kwargs.get("fund_min_commission", 0.0),
2342
+ )
2343
+
2344
+
2316
2345
  def _apply_option_market_rules(
2317
2346
  engine: Any,
2318
2347
  *,
@@ -4993,13 +5022,13 @@ def run_backtest(
4993
5022
  f"Volume limit {volume_limit_pct} set but not supported by Engine."
4994
5023
  )
4995
5024
 
4996
- # Configure other asset fees if provided
4997
- if "fund_commission" in kwargs:
4998
- engine.set_fund_fee_rules(
4999
- kwargs["fund_commission"],
5000
- kwargs.get("fund_transfer_fee", 0.0),
5001
- kwargs.get("fund_min_commission", 0.0),
5002
- )
5025
+ _apply_fund_fee_rules(
5026
+ engine,
5027
+ commission_policy=commission_policy,
5028
+ transfer_fee_rate=transfer_fee_rate,
5029
+ min_commission=min_commission,
5030
+ kwargs=kwargs,
5031
+ )
5003
5032
 
5004
5033
  if has_options_instruments:
5005
5034
  # 全局期权费率 + 前缀规则(前缀规则原在下方 sessions 块内, 其间只有期货
@@ -7169,6 +7198,13 @@ def run_from_checkpoint(
7169
7198
  )
7170
7199
  engine.set_stock_fee_rules(commission, stamp_tax, transfer_fee, min_commission)
7171
7200
  logger.info(f"Re-configured market fees: comm={commission}, stamp={stamp_tax}")
7201
+ _apply_fund_fee_rules(
7202
+ engine,
7203
+ commission_policy=resolved_commission_policy,
7204
+ transfer_fee_rate=transfer_fee,
7205
+ min_commission=min_commission,
7206
+ kwargs=kwargs,
7207
+ )
7172
7208
 
7173
7209
  if has_options_instruments:
7174
7210
  _apply_option_fee_rules(engine, china_options_config, logger)
@@ -107,6 +107,12 @@ def run_live(
107
107
  trading_calendar: Optional[Iterable[Any]] = None,
108
108
  timezone: Optional[str] = "Asia/Shanghai",
109
109
  day_close_delay: float = 60.0,
110
+ commission_rate: Optional[float] = None,
111
+ stamp_tax_rate: Optional[float] = None,
112
+ transfer_fee_rate: Optional[float] = None,
113
+ min_commission: Optional[float] = None,
114
+ slippage: Optional[Dict[str, Any]] = None,
115
+ volume_limit_pct: Optional[float] = None,
110
116
  ) -> None:
111
117
  """Run a live/paper trading session, symmetric with ``run_backtest``.
112
118
 
@@ -302,6 +308,25 @@ def run_live(
302
308
  当日没有任何行情也会结算。取值 0~86400(0 即收盘后
303
309
  立即结算),越界或非有限值抛 ``ValueError``,非数字抛
304
310
  ``TypeError``。回测不受影响
311
+ :param commission_rate: paper 撮合的佣金率,作用于股票与基金(ETF)。
312
+ :param stamp_tax_rate: paper 撮合的印花税率,只在股票卖出时收取。
313
+ :param transfer_fee_rate: paper 撮合的过户费率,作用于股票与基金。
314
+ :param min_commission: paper 撮合的最低佣金,作用于股票与基金。
315
+
316
+ 四个费率参数与 ``run_backtest`` 同名同义。不传的项沿用
317
+ paper 默认值(佣金万分之三、印花税万分之五、过户费
318
+ 十万分之一、最低佣金 5 元);期货/期权沿用默认费率,
319
+ 会话里只有期货/期权标的却传了费率参数时抛 ``ValueError``
320
+ :param slippage: paper 撮合的滑点,与 ``run_backtest`` 同格式:
321
+ ``{"type": "percent"|"fixed"|"ticks"|"zero", "value": ...}``;
322
+ ``ticks`` 要求所有标的 ``tick_size`` 相同。不传则无滑点
323
+ :param volume_limit_pct: paper 撮合的成交量限制:单根 bar 最多成交该 bar
324
+ 成交量的这一比例,截断量按手数取整,与
325
+ ``run_backtest`` 同义;不传或 0 表示不限制。
326
+
327
+ 以上六个参数只作用于 ``trading_mode="paper"``(由
328
+ akquant 撮合);``broker_live`` 由柜台撮合,传了任一
329
+ 参数即抛 ``ValueError``
305
330
  """
306
331
  if instruments is None:
307
332
  raise ValueError("run_live requires instruments")
@@ -373,6 +398,12 @@ def run_live(
373
398
  trading_calendar=trading_calendar,
374
399
  timezone=timezone,
375
400
  day_close_delay=day_close_delay,
401
+ commission_rate=commission_rate,
402
+ stamp_tax_rate=stamp_tax_rate,
403
+ transfer_fee_rate=transfer_fee_rate,
404
+ min_commission=min_commission,
405
+ slippage=slippage,
406
+ volume_limit_pct=volume_limit_pct,
376
407
  )
377
408
  runner.set_indicator_stream(
378
409
  indicator_recorder=indicator_recorder, on_event=on_event
@@ -0,0 +1,184 @@
1
+ """paper 会话的撮合参数: 费率、滑点、成交量限制.
2
+
3
+ paper 会话由 akquant 自己撮合, 与回测是同一个撮合器(``SimulatedExecutionClient``),
4
+ 所以这些参数与 ``run_backtest`` 同名同义; ``broker_live`` 由柜台撮合, 成交价、成交量、
5
+ 手续费都来自柜台回报, 传这些参数没有意义, 直接报错。
6
+
7
+ 费率只作用于股票与基金(ETF): 未传的项沿用 paper 原有默认值(``use_china_market()``
8
+ 的股票/基金默认费率, 见 ``src/market/stock.rs``/``fund.rs``), 不传任何费率参数时
9
+ 完全不下发, 行为与此前一致。期货/期权沿用默认费率。
10
+ """
11
+
12
+ from __future__ import annotations
13
+
14
+ import logging
15
+ import math
16
+ from dataclasses import dataclass
17
+ from typing import Any, Dict, Iterable, Optional
18
+
19
+ logger = logging.getLogger(__name__)
20
+
21
+ # 与 Rust 默认值一致(``StockConfig::default`` / ``FundConfig::default``);
22
+ # tests/test_live_paper_execution_params.py 按成交手续费钉住这几个数。
23
+ PAPER_DEFAULT_COMMISSION_RATE = 0.0003
24
+ PAPER_DEFAULT_STOCK_STAMP_TAX_RATE = 0.0005
25
+ PAPER_DEFAULT_TRANSFER_FEE_RATE = 0.00001
26
+ PAPER_DEFAULT_MIN_COMMISSION = 5.0
27
+
28
+ _FEE_PARAM_NAMES = (
29
+ "commission_rate",
30
+ "stamp_tax_rate",
31
+ "transfer_fee_rate",
32
+ "min_commission",
33
+ )
34
+
35
+
36
+ @dataclass(frozen=True)
37
+ class PaperExecutionParams:
38
+ """归一后的 paper 撮合参数; ``None`` 表示不覆盖."""
39
+
40
+ commission_rate: Optional[float] = None
41
+ stamp_tax_rate: Optional[float] = None
42
+ transfer_fee_rate: Optional[float] = None
43
+ min_commission: Optional[float] = None
44
+ slippage: Optional[Dict[str, Any]] = None
45
+ volume_limit_pct: Optional[float] = None
46
+
47
+ @property
48
+ def has_fees(self) -> bool:
49
+ """是否传了任一费率参数."""
50
+ return any(getattr(self, name) is not None for name in _FEE_PARAM_NAMES)
51
+
52
+
53
+ def _non_negative_float(name: str, value: Any) -> Optional[float]:
54
+ if value is None:
55
+ return None
56
+ if isinstance(value, bool) or not isinstance(value, (int, float)):
57
+ raise TypeError(f"run_live({name}=) 须为数字, 收到 {value!r}")
58
+ number = float(value)
59
+ if not math.isfinite(number) or number < 0:
60
+ raise ValueError(f"run_live({name}=) 须为有限的非负数, 收到 {value!r}")
61
+ return number
62
+
63
+
64
+ def _asset_name(instrument: Any) -> str:
65
+ from ..backtest.engine import _asset_type_to_upper_name
66
+
67
+ return str(_asset_type_to_upper_name(instrument.asset_type))
68
+
69
+
70
+ def _resolve_slippage(
71
+ slippage: Any, instruments: Iterable[Any]
72
+ ) -> Optional[Dict[str, Any]]:
73
+ """与回测同一套规则归一滑点; ``ticks`` 按标的的 tick_size 换算成固定价差."""
74
+ if slippage is None:
75
+ return None
76
+ from ..backtest.engine import _normalize_slippage_policy
77
+
78
+ normalized = _normalize_slippage_policy(slippage, resolve_ticks=False)
79
+ policy: Dict[str, Any] = {
80
+ "type": str(normalized["type"]),
81
+ "value": float(normalized["value"]),
82
+ }
83
+ if policy["type"] != "ticks":
84
+ return policy
85
+ tick_sizes = {
86
+ float(tick)
87
+ for inst in instruments
88
+ if (tick := getattr(inst, "tick_size", None)) is not None
89
+ }
90
+ if not tick_sizes:
91
+ raise ValueError("run_live(slippage={'type': 'ticks'}) 需要标的带 tick_size")
92
+ if len(tick_sizes) != 1:
93
+ raise ValueError(
94
+ "run_live(slippage={'type': 'ticks'}) 要求所有标的的 tick_size 相同, "
95
+ f"收到 {sorted(tick_sizes)}; 请改用 'fixed' 或 'percent'"
96
+ )
97
+ return {"type": "fixed", "value": float(policy["value"]) * tick_sizes.pop()}
98
+
99
+
100
+ def resolve_paper_execution_params(
101
+ *,
102
+ trading_mode: str,
103
+ instruments: Iterable[Any],
104
+ commission_rate: Any = None,
105
+ stamp_tax_rate: Any = None,
106
+ transfer_fee_rate: Any = None,
107
+ min_commission: Any = None,
108
+ slippage: Any = None,
109
+ volume_limit_pct: Any = None,
110
+ ) -> PaperExecutionParams:
111
+ """校验并归一 paper 撮合参数(连网关之前调用).
112
+
113
+ :raises ValueError: ``broker_live`` 下传了任一参数; 取值越界; 只有期货/期权
114
+ 标的却传了费率参数; ``ticks`` 滑点无法换算
115
+ :raises TypeError: 数值参数类型错; 滑点给了裸数字
116
+ """
117
+ raw = {
118
+ "commission_rate": commission_rate,
119
+ "stamp_tax_rate": stamp_tax_rate,
120
+ "transfer_fee_rate": transfer_fee_rate,
121
+ "min_commission": min_commission,
122
+ "slippage": slippage,
123
+ "volume_limit_pct": volume_limit_pct,
124
+ }
125
+ given = [name for name, value in raw.items() if value is not None]
126
+ if trading_mode == "broker_live":
127
+ if given:
128
+ raise ValueError(
129
+ f"run_live({', '.join(given)}=) 只作用于 trading_mode='paper': "
130
+ "broker_live 由柜台撮合, 成交价、成交量与手续费都以柜台回报为准"
131
+ )
132
+ return PaperExecutionParams()
133
+
134
+ instrument_list = list(instruments or [])
135
+ params = PaperExecutionParams(
136
+ commission_rate=_non_negative_float("commission_rate", commission_rate),
137
+ stamp_tax_rate=_non_negative_float("stamp_tax_rate", stamp_tax_rate),
138
+ transfer_fee_rate=_non_negative_float("transfer_fee_rate", transfer_fee_rate),
139
+ min_commission=_non_negative_float("min_commission", min_commission),
140
+ slippage=_resolve_slippage(slippage, instrument_list),
141
+ volume_limit_pct=_non_negative_float("volume_limit_pct", volume_limit_pct),
142
+ )
143
+ if params.has_fees and instrument_list:
144
+ asset_names = {_asset_name(inst) for inst in instrument_list}
145
+ if not asset_names & {"STOCK", "FUND"}:
146
+ raise ValueError(
147
+ "run_live 的费率参数只作用于股票与基金标的, 本次会话没有这类标的; "
148
+ "期货/期权 paper 会话沿用默认费率"
149
+ )
150
+ others = sorted(asset_names - {"STOCK", "FUND"})
151
+ if others:
152
+ logger.warning(
153
+ "run_live 的费率参数只作用于股票与基金标的, %s 标的沿用默认费率",
154
+ "/".join(others),
155
+ )
156
+ return params
157
+
158
+
159
+ def apply_paper_execution_params(engine: Any, params: PaperExecutionParams) -> None:
160
+ """把参数下发给引擎.
161
+
162
+ 须在 ``use_simulated_execution()`` 与 ``use_china_market()`` /
163
+ ``use_china_futures_market()`` 之后调用: 后者会重建市场配置, 先下发会被冲掉。
164
+ """
165
+ if params.has_fees:
166
+ commission = _or(params.commission_rate, PAPER_DEFAULT_COMMISSION_RATE)
167
+ transfer = _or(params.transfer_fee_rate, PAPER_DEFAULT_TRANSFER_FEE_RATE)
168
+ minimum = _or(params.min_commission, PAPER_DEFAULT_MIN_COMMISSION)
169
+ engine.set_stock_fee_rules(
170
+ commission,
171
+ _or(params.stamp_tax_rate, PAPER_DEFAULT_STOCK_STAMP_TAX_RATE),
172
+ transfer,
173
+ minimum,
174
+ )
175
+ # 基金不收印花税(``FundConfig::default`` 为 0), stamp_tax_rate 不作用于基金
176
+ engine.set_fund_fee_rules(commission, transfer, minimum)
177
+ if params.slippage is not None:
178
+ engine.set_slippage(params.slippage["type"], float(params.slippage["value"]))
179
+ if params.volume_limit_pct is not None:
180
+ engine.set_volume_limit(params.volume_limit_pct)
181
+
182
+
183
+ def _or(value: Optional[float], default: float) -> float:
184
+ return default if value is None else value
@@ -67,6 +67,10 @@ from ._gateway_setup import (
67
67
  normalize_gateway_options,
68
68
  start_gateway_thread,
69
69
  )
70
+ from ._paper_execution import (
71
+ apply_paper_execution_params,
72
+ resolve_paper_execution_params,
73
+ )
70
74
  from ._payload_utils import (
71
75
  is_terminal_status,
72
76
  normalize_broker_recovery_mode,
@@ -468,6 +472,12 @@ class LiveRunner:
468
472
  trading_calendar: Optional[Iterable[Any]] = None,
469
473
  timezone: Optional[str] = DEFAULT_INPUT_TIMEZONE,
470
474
  day_close_delay: float = 60.0,
475
+ commission_rate: Optional[float] = None,
476
+ stamp_tax_rate: Optional[float] = None,
477
+ transfer_fee_rate: Optional[float] = None,
478
+ min_commission: Optional[float] = None,
479
+ slippage: Optional[Dict[str, Any]] = None,
480
+ volume_limit_pct: Optional[float] = None,
471
481
  ):
472
482
  """
473
483
  Initialize the LiveRunner.
@@ -545,6 +555,12 @@ class LiveRunner:
545
555
  :param day_close_delay: 实盘日终结算相对会话收盘的宽限秒数(默认 60.0,
546
556
  取值 0~86400)。收盘后该时长内到达的行情仍归当日(不撮合、
547
557
  不产生权益点),结算在“收盘 + day_close_delay”。见 ``run_live``
558
+ :param commission_rate: paper 撮合的佣金率(股票与基金)。见 ``run_live``
559
+ :param stamp_tax_rate: paper 撮合的印花税率(股票卖出)。见 ``run_live``
560
+ :param transfer_fee_rate: paper 撮合的过户费率(股票与基金)。见 ``run_live``
561
+ :param min_commission: paper 撮合的最低佣金(股票与基金)。见 ``run_live``
562
+ :param slippage: paper 撮合的滑点,与 ``run_backtest`` 同格式。见 ``run_live``
563
+ :param volume_limit_pct: paper 撮合的成交量限制,0 表示不限制。见 ``run_live``
548
564
  """
549
565
  self.strategy_cls = strategy_cls
550
566
  self.strategy_source = strategy_source
@@ -647,6 +663,18 @@ class LiveRunner:
647
663
  self.sessions: Optional[SessionsMap] = normalize_sessions(sessions)
648
664
  self.trading_calendar = normalize_trading_calendar(trading_calendar)
649
665
  self.day_close_delay_ns = _validate_day_close_delay(day_close_delay)
666
+ # paper 撮合参数: 构造时校验(broker_live 下传了即报错), run() 里在市场
667
+ # 配置之后下发, 见 _paper_execution。
668
+ self._paper_execution = resolve_paper_execution_params(
669
+ trading_mode=self.trading_mode,
670
+ instruments=self.instruments or [],
671
+ commission_rate=commission_rate,
672
+ stamp_tax_rate=stamp_tax_rate,
673
+ transfer_fee_rate=transfer_fee_rate,
674
+ min_commission=min_commission,
675
+ slippage=slippage,
676
+ volume_limit_pct=volume_limit_pct,
677
+ )
650
678
  self._preload_result: Optional[PreloadResult] = None
651
679
  self._signal_dispatcher: Any = None
652
680
  # Indicator streaming wiring (set via set_indicator_stream / run_live).
@@ -745,6 +773,9 @@ class LiveRunner:
745
773
  self.engine.use_china_futures_market()
746
774
  else:
747
775
  self.engine.use_china_market()
776
+ # paper 撮合参数(费率/滑点/量限)须在市场配置之后: use_china_market() 会
777
+ # 重建市场配置, 先下发会被冲掉。
778
+ apply_paper_execution_params(self.engine, self._paper_execution)
748
779
  # 交易日划分与日终结算时刻(按上面下发的引擎时区)
749
780
  self.engine.configure_sessions(self.sessions, self.trading_calendar)
750
781
  # 实盘日终结算宽限(收盘 + day_close_delay 秒), 运行参数不入存档, 每次下发