akquant 0.3.82__tar.gz → 0.3.84__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 (943) hide show
  1. {akquant-0.3.82 → akquant-0.3.84}/CHANGELOG.md +23 -0
  2. {akquant-0.3.82 → akquant-0.3.84}/Cargo.lock +1 -1
  3. {akquant-0.3.82 → akquant-0.3.84}/Cargo.toml +1 -1
  4. {akquant-0.3.82 → akquant-0.3.84}/PKG-INFO +1 -1
  5. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/warm_start.md +1 -0
  6. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/custom_indicator.md +6 -0
  7. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/strategy.md +7 -1
  8. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/adding_a_broker.md +1 -1
  9. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/warm_start.md +1 -0
  10. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/custom_indicator.md +3 -0
  11. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/strategy.md +4 -1
  12. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/meta/columnar-rfc.md +1 -1
  13. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch04_comparison.py +4 -4
  14. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch04_comparison_functional.py +3 -2
  15. {akquant-0.3.82 → akquant-0.3.84}/pyproject.toml +1 -1
  16. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/__init__.py +1 -1
  17. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/akquant.pyi +31 -0
  18. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/backtest/engine.py +0 -9
  19. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/broker_event_bridge.py +2 -1
  20. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/order_submitter.py +3 -2
  21. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/indicator_declaration.py +76 -2
  22. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/live/_payload_utils.py +1 -1
  23. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/live/_runner.py +2 -6
  24. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy.py +6 -69
  25. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_framework_hooks.py +0 -7
  26. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_history.py +100 -1
  27. akquant-0.3.84/python/akquant/strategy_order_events.py +176 -0
  28. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_trading_api.py +22 -42
  29. {akquant-0.3.82 → akquant-0.3.84}/server.json +3 -3
  30. akquant-0.3.84/src/analysis/excursion_tests.rs +386 -0
  31. {akquant-0.3.82 → akquant-0.3.84}/src/analysis/mod.rs +2 -0
  32. {akquant-0.3.82 → akquant-0.3.84}/src/analysis/tracker.rs +238 -204
  33. {akquant-0.3.82 → akquant-0.3.84}/src/context.rs +118 -1
  34. {akquant-0.3.82 → akquant-0.3.84}/src/engine/core.rs +117 -15
  35. {akquant-0.3.82 → akquant-0.3.84}/src/engine/mod.rs +39 -0
  36. {akquant-0.3.82 → akquant-0.3.84}/src/engine/python.rs +66 -2
  37. {akquant-0.3.82 → akquant-0.3.84}/src/engine/state.rs +3 -0
  38. {akquant-0.3.82 → akquant-0.3.84}/src/history.rs +74 -5
  39. {akquant-0.3.82 → akquant-0.3.84}/src/lib.rs +1 -0
  40. akquant-0.3.84/src/order_ledger.rs +988 -0
  41. {akquant-0.3.82 → akquant-0.3.84}/src/order_manager.rs +5 -4
  42. {akquant-0.3.82 → akquant-0.3.84}/src/pipeline/stages/channel.rs +149 -1
  43. {akquant-0.3.82 → akquant-0.3.84}/src/pipeline/stages/data.rs +41 -5
  44. {akquant-0.3.82 → akquant-0.3.84}/src/pipeline/stages/mod.rs +2 -0
  45. {akquant-0.3.82 → akquant-0.3.84}/src/pipeline/stages/strategy.rs +6 -10
  46. akquant-0.3.84/tests/_mock_ctx.py +27 -0
  47. akquant-0.3.84/tests/_order_event_scenarios.py +327 -0
  48. akquant-0.3.84/tests/fixtures/order_event_traces.json +6287 -0
  49. {akquant-0.3.82 → akquant-0.3.84}/tests/test_api_rename_scheduler.py +3 -3
  50. {akquant-0.3.82 → akquant-0.3.84}/tests/test_cancel_request_persistence.py +4 -0
  51. akquant-0.3.84/tests/test_cancel_same_cycle.py +354 -0
  52. {akquant-0.3.82 → akquant-0.3.84}/tests/test_execution_sim.py +0 -1
  53. {akquant-0.3.82 → akquant-0.3.84}/tests/test_get_order_finalized.py +9 -6
  54. akquant-0.3.84/tests/test_history_depth_after_start.py +325 -0
  55. akquant-0.3.84/tests/test_history_lookback_autogrow.py +299 -0
  56. {akquant-0.3.82 → akquant-0.3.84}/tests/test_lifecycle_hooks.py +3 -8
  57. {akquant-0.3.82 → akquant-0.3.84}/tests/test_lifecycle_review_fixes.py +2 -4
  58. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_public_api.py +3 -3
  59. {akquant-0.3.82 → akquant-0.3.84}/tests/test_multi_slot_ownership.py +5 -76
  60. {akquant-0.3.82 → akquant-0.3.84}/tests/test_multisymbol_cross_section_consistency.py +2 -2
  61. {akquant-0.3.82 → akquant-0.3.84}/tests/test_order_callback_dedupe.py +8 -5
  62. akquant-0.3.84/tests/test_order_event_timing.py +251 -0
  63. akquant-0.3.84/tests/test_order_event_traces.py +38 -0
  64. akquant-0.3.84/tests/test_order_ledger_binding.py +125 -0
  65. {akquant-0.3.82 → akquant-0.3.84}/tests/test_pickle_model_objects.py +4 -2
  66. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_extras.py +143 -131
  67. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_timers_indicators.py +2 -3
  68. {akquant-0.3.82 → akquant-0.3.84}/tests/test_trading_day_lifecycle.py +1 -1
  69. akquant-0.3.82/python/akquant/strategy_order_events.py +0 -452
  70. {akquant-0.3.82 → akquant-0.3.84}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  71. {akquant-0.3.82 → akquant-0.3.84}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  72. {akquant-0.3.82 → akquant-0.3.84}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  73. {akquant-0.3.82 → akquant-0.3.84}/.github/dependabot.yml +0 -0
  74. {akquant-0.3.82 → akquant-0.3.84}/.github/workflows/deploy-docs.yml +0 -0
  75. {akquant-0.3.82 → akquant-0.3.84}/.github/workflows/docs-quality.yml +0 -0
  76. {akquant-0.3.82 → akquant-0.3.84}/.github/workflows/release.yml +0 -0
  77. {akquant-0.3.82 → akquant-0.3.84}/.gitignore +0 -0
  78. {akquant-0.3.82 → akquant-0.3.84}/.pre-commit-config.yaml +0 -0
  79. {akquant-0.3.82 → akquant-0.3.84}/CODE_OF_CONDUCT.md +0 -0
  80. {akquant-0.3.82 → akquant-0.3.84}/CONTRIBUTING.md +0 -0
  81. {akquant-0.3.82 → akquant-0.3.84}/LICENSE +0 -0
  82. {akquant-0.3.82 → akquant-0.3.84}/README.md +0 -0
  83. {akquant-0.3.82 → akquant-0.3.84}/assets/dashboard_preview.png +0 -0
  84. {akquant-0.3.82 → akquant-0.3.84}/assets/logo.svg +0 -0
  85. {akquant-0.3.82 → akquant-0.3.84}/assets/social_preview.png +0 -0
  86. {akquant-0.3.82 → akquant-0.3.84}/docs/CNAME +0 -0
  87. {akquant-0.3.82 → akquant-0.3.84}/docs/assets/akquant-icon.svg +0 -0
  88. {akquant-0.3.82 → akquant-0.3.84}/docs/assets/akquant-logo.svg +0 -0
  89. {akquant-0.3.82 → akquant-0.3.84}/docs/assets/reports/akquant_report.html +0 -0
  90. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/analyzer_plugin_spec.md +0 -0
  91. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/broker_capability_matrix.md +0 -0
  92. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/custom_broker_production_checklist.md +0 -0
  93. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/custom_broker_registry.md +0 -0
  94. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/custom_strategy_loader.md +0 -0
  95. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/data_feed_adapter_spec.md +0 -0
  96. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/live_functional_quickstart.md +0 -0
  97. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/llm.md +0 -0
  98. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/ml.md +0 -0
  99. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/multi_strategy_guide.md +0 -0
  100. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/multi_timeframe_feed_api.md +0 -0
  101. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/runtime_config.md +0 -0
  102. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/signal_ingestion.md +0 -0
  103. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/strategy_style_decision.md +0 -0
  104. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/tick_size_alignment.md +0 -0
  105. {akquant-0.3.82 → akquant-0.3.84}/docs/en/advanced/timezone.md +0 -0
  106. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/analysis.md +0 -0
  107. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/cross_section_checklist.md +0 -0
  108. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/data.md +0 -0
  109. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/examples.md +0 -0
  110. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/factor.md +0 -0
  111. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/indicator_scenario_quickref.md +0 -0
  112. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/mcp.md +0 -0
  113. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/optimization.md +0 -0
  114. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/python_basics.md +0 -0
  115. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/quant_basics.md +0 -0
  116. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/rust_indicator_reference.md +0 -0
  117. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/talib_indicator_playbook.md +0 -0
  118. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/testing.md +0 -0
  119. {akquant-0.3.82 → akquant-0.3.84}/docs/en/guide/visualization.md +0 -0
  120. {akquant-0.3.82 → akquant-0.3.84}/docs/en/index.md +0 -0
  121. {akquant-0.3.82 → akquant-0.3.84}/docs/en/meta/architecture.md +0 -0
  122. {akquant-0.3.82 → akquant-0.3.84}/docs/en/meta/internals.md +0 -0
  123. {akquant-0.3.82 → akquant-0.3.84}/docs/en/reference/api.md +0 -0
  124. {akquant-0.3.82 → akquant-0.3.84}/docs/en/start/first_strategy.md +0 -0
  125. {akquant-0.3.82 → akquant-0.3.84}/docs/en/start/installation.md +0 -0
  126. {akquant-0.3.82 → akquant-0.3.84}/docs/en/start/quickstart.md +0 -0
  127. {akquant-0.3.82 → akquant-0.3.84}/docs/en/start/setup_guide.md +0 -0
  128. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/01_foundations.md +0 -0
  129. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/02_programming.md +0 -0
  130. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/03_data.md +0 -0
  131. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/04_backtest_engine.md +0 -0
  132. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/05_strategy.md +0 -0
  133. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/06_stock_a.md +0 -0
  134. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/07_futures.md +0 -0
  135. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/08_options.md +0 -0
  136. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/09_funds.md +0 -0
  137. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/10_analysis.md +0 -0
  138. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/11_optimization.md +0 -0
  139. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/12_ml.md +0 -0
  140. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/13_visualization.md +0 -0
  141. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/14_factor.md +0 -0
  142. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/15_live_trading.md +0 -0
  143. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/16_rust_indicators.md +0 -0
  144. {akquant-0.3.82 → akquant-0.3.84}/docs/en/textbook/index.md +0 -0
  145. {akquant-0.3.82 → akquant-0.3.84}/docs/javascripts/mathjax.js +0 -0
  146. {akquant-0.3.82 → akquant-0.3.84}/docs/javascripts/search-lang-filter.js +0 -0
  147. {akquant-0.3.82 → akquant-0.3.84}/docs/llms.txt +0 -0
  148. {akquant-0.3.82 → akquant-0.3.84}/docs/robots.txt +0 -0
  149. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/analyzer_plugin_spec.md +0 -0
  150. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/broker_capability_matrix.md +0 -0
  151. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/custom_broker_production_checklist.md +0 -0
  152. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/custom_broker_registry.md +0 -0
  153. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/custom_strategy_loader.md +0 -0
  154. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/data_feed_adapter_spec.md +0 -0
  155. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/live_functional_quickstart.md +0 -0
  156. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/llm.md +0 -0
  157. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/ml.md +0 -0
  158. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/multi_strategy_guide.md +0 -0
  159. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/multi_timeframe_feed_api.md +0 -0
  160. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/runtime_config.md +0 -0
  161. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/signal_ingestion.md +0 -0
  162. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/strategy_style_decision.md +0 -0
  163. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/tick_size_alignment.md +0 -0
  164. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/advanced/timezone.md +0 -0
  165. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/analysis.md +0 -0
  166. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/cross_section_checklist.md +0 -0
  167. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/data.md +0 -0
  168. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/examples.md +0 -0
  169. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/factor.md +0 -0
  170. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/indicator_scenario_quickref.md +0 -0
  171. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/mcp.md +0 -0
  172. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/optimization.md +0 -0
  173. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/python_basics.md +0 -0
  174. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/quant_basics.md +0 -0
  175. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/rust_indicator_reference.md +0 -0
  176. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/talib_indicator_playbook.md +0 -0
  177. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/testing.md +0 -0
  178. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/guide/visualization.md +0 -0
  179. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/index.md +0 -0
  180. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/meta/architecture.md +0 -0
  181. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/meta/internals.md +0 -0
  182. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/reference/api.md +0 -0
  183. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/start/first_strategy.md +0 -0
  184. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/start/installation.md +0 -0
  185. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/start/quickstart.md +0 -0
  186. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/start/setup_guide.md +0 -0
  187. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/00_glossary.md +0 -0
  188. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/01_foundations.md +0 -0
  189. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/02_programming.md +0 -0
  190. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/03_data.md +0 -0
  191. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/04_backtest_engine.md +0 -0
  192. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/05_strategy.md +0 -0
  193. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/06_stock_a.md +0 -0
  194. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/07_futures.md +0 -0
  195. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/08_options.md +0 -0
  196. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/09_funds.md +0 -0
  197. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/10_analysis.md +0 -0
  198. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/11_optimization.md +0 -0
  199. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/12_ml.md +0 -0
  200. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/13_visualization.md +0 -0
  201. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/14_factor.md +0 -0
  202. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/15_live_trading.md +0 -0
  203. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/16_rust_indicators.md +0 -0
  204. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/ROADMAP.md +0 -0
  205. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/appendix_cite.md +0 -0
  206. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/appendix_pitfalls.md +0 -0
  207. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/appendix_setup.md +0 -0
  208. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/capstone.md +0 -0
  209. {akquant-0.3.82 → akquant-0.3.84}/docs/zh/textbook/index.md +0 -0
  210. {akquant-0.3.82 → akquant-0.3.84}/examples/01_quickstart.py +0 -0
  211. {akquant-0.3.82 → akquant-0.3.84}/examples/02_parameter_optimization.py +0 -0
  212. {akquant-0.3.82 → akquant-0.3.84}/examples/03_parameter_optimization_advanced.py +0 -0
  213. {akquant-0.3.82 → akquant-0.3.84}/examples/04_mixed_assets.py +0 -0
  214. {akquant-0.3.82 → akquant-0.3.84}/examples/05_live_trading_ctp.py +0 -0
  215. {akquant-0.3.82 → akquant-0.3.84}/examples/06_complex_orders.py +0 -0
  216. {akquant-0.3.82 → akquant-0.3.84}/examples/07_option_test.py +0 -0
  217. {akquant-0.3.82 → akquant-0.3.84}/examples/08_event_callbacks.py +0 -0
  218. {akquant-0.3.82 → akquant-0.3.84}/examples/09_ml_framework.py +0 -0
  219. {akquant-0.3.82 → akquant-0.3.84}/examples/10_ml_walk_forward.py +0 -0
  220. {akquant-0.3.82 → akquant-0.3.84}/examples/11_plot_visualization.py +0 -0
  221. {akquant-0.3.82 → akquant-0.3.84}/examples/12_wfo_integrated.py +0 -0
  222. {akquant-0.3.82 → akquant-0.3.84}/examples/13_quantstats_report.py +0 -0
  223. {akquant-0.3.82 → akquant-0.3.84}/examples/14_multi_frequency.py +0 -0
  224. {akquant-0.3.82 → akquant-0.3.84}/examples/15_plot_intraday.py +0 -0
  225. {akquant-0.3.82 → akquant-0.3.84}/examples/16_adj_returns_signal.py +0 -0
  226. {akquant-0.3.82 → akquant-0.3.84}/examples/17_readme_demo.py +0 -0
  227. {akquant-0.3.82 → akquant-0.3.84}/examples/18_benchmark_multisymbol.py +0 -0
  228. {akquant-0.3.82 → akquant-0.3.84}/examples/19_factor_expression.py +0 -0
  229. {akquant-0.3.82 → akquant-0.3.84}/examples/20_risk_management_demo.py +0 -0
  230. {akquant-0.3.82 → akquant-0.3.84}/examples/21_warm_start_demo.py +0 -0
  231. {akquant-0.3.82 → akquant-0.3.84}/examples/22_strategy_runtime_config_demo.py +0 -0
  232. {akquant-0.3.82 → akquant-0.3.84}/examples/23_functional_callbacks_demo.py +0 -0
  233. {akquant-0.3.82 → akquant-0.3.84}/examples/24_functional_tick_simulation_demo.py +0 -0
  234. {akquant-0.3.82 → akquant-0.3.84}/examples/25_streaming_backtest_demo.py +0 -0
  235. {akquant-0.3.82 → akquant-0.3.84}/examples/26_streaming_quickstart.py +0 -0
  236. {akquant-0.3.82 → akquant-0.3.84}/examples/27_streaming_monitoring_console.py +0 -0
  237. {akquant-0.3.82 → akquant-0.3.84}/examples/28_streaming_alerts_and_persist.py +0 -0
  238. {akquant-0.3.82 → akquant-0.3.84}/examples/29_streaming_event_report.py +0 -0
  239. {akquant-0.3.82 → akquant-0.3.84}/examples/30_streaming_report_oneclick.py +0 -0
  240. {akquant-0.3.82 → akquant-0.3.84}/examples/31_streaming_live_console.py +0 -0
  241. {akquant-0.3.82 → akquant-0.3.84}/examples/32_streaming_live_web.py +0 -0
  242. {akquant-0.3.82 → akquant-0.3.84}/examples/33_report_and_analysis_outputs.py +0 -0
  243. {akquant-0.3.82 → akquant-0.3.84}/examples/34_multi_strategy_demo.py +0 -0
  244. {akquant-0.3.82 → akquant-0.3.84}/examples/35_custom_broker_registry_demo.py +0 -0
  245. {akquant-0.3.82 → akquant-0.3.84}/examples/36_trailing_orders.py +0 -0
  246. {akquant-0.3.82 → akquant-0.3.84}/examples/37_feed_replay_alignment_demo.py +0 -0
  247. {akquant-0.3.82 → akquant-0.3.84}/examples/38_live_functional_strategy_demo.py +0 -0
  248. {akquant-0.3.82 → akquant-0.3.84}/examples/39_live_broker_submit_order_demo.py +0 -0
  249. {akquant-0.3.82 → akquant-0.3.84}/examples/39_live_mixed_broker_demo.py +0 -0
  250. {akquant-0.3.82 → akquant-0.3.84}/examples/40_functional_multi_slot_risk_demo.py +0 -0
  251. {akquant-0.3.82 → akquant-0.3.84}/examples/41_live_multi_slot_orchestration_demo.py +0 -0
  252. {akquant-0.3.82 → akquant-0.3.84}/examples/42_live_broker_event_audit_demo.py +0 -0
  253. {akquant-0.3.82 → akquant-0.3.84}/examples/43_target_weights_rebalance.py +0 -0
  254. {akquant-0.3.82 → akquant-0.3.84}/examples/44_strategy_source_loader_demo.py +0 -0
  255. {akquant-0.3.82 → akquant-0.3.84}/examples/45_talib_indicator_playbook_demo.py +0 -0
  256. {akquant-0.3.82 → akquant-0.3.84}/examples/46_broker_profile_demo.py +0 -0
  257. {akquant-0.3.82 → akquant-0.3.84}/examples/47_margin_liquidation_audit_demo.py +0 -0
  258. {akquant-0.3.82 → akquant-0.3.84}/examples/48_margin_liquidation_priority_compare.py +0 -0
  259. {akquant-0.3.82 → akquant-0.3.84}/examples/49_on_expiry_demo.py +0 -0
  260. {akquant-0.3.82 → akquant-0.3.84}/examples/50_framework_hooks_demo.py +0 -0
  261. {akquant-0.3.82 → akquant-0.3.84}/examples/51_class_tick_callbacks_demo.py +0 -0
  262. {akquant-0.3.82 → akquant-0.3.84}/examples/52_pre_open_demo.py +0 -0
  263. {akquant-0.3.82 → akquant-0.3.84}/examples/53_timer_to_pre_open_demo.py +0 -0
  264. {akquant-0.3.82 → akquant-0.3.84}/examples/54_functional_pre_open_demo.py +0 -0
  265. {akquant-0.3.82 → akquant-0.3.84}/examples/55_functional_ml_walk_forward.py +0 -0
  266. {akquant-0.3.82 → akquant-0.3.84}/examples/56_functional_warm_start_demo.py +0 -0
  267. {akquant-0.3.82 → akquant-0.3.84}/examples/57_functional_multi_slot_warm_start_demo.py +0 -0
  268. {akquant-0.3.82 → akquant-0.3.84}/examples/58_incremental_bootstrap_demo.py +0 -0
  269. {akquant-0.3.82 → akquant-0.3.84}/examples/59_akshare_etf_rotation.py +0 -0
  270. {akquant-0.3.82 → akquant-0.3.84}/examples/60_custom_indicator_demo.py +0 -0
  271. {akquant-0.3.82 → akquant-0.3.84}/examples/61_indicator_visualization_export_demo.py +0 -0
  272. {akquant-0.3.82 → akquant-0.3.84}/examples/61_signal_platform_webhook.py +0 -0
  273. {akquant-0.3.82 → akquant-0.3.84}/examples/62_indicator_streaming_demo.py +0 -0
  274. {akquant-0.3.82 → akquant-0.3.84}/examples/63_indicator_ws_bridge_demo.py +0 -0
  275. {akquant-0.3.82 → akquant-0.3.84}/examples/64_indicator_live_web.py +0 -0
  276. {akquant-0.3.82 → akquant-0.3.84}/examples/65_bar_generator.py +0 -0
  277. {akquant-0.3.82 → akquant-0.3.84}/examples/66_logging_audit_demo.py +0 -0
  278. {akquant-0.3.82 → akquant-0.3.84}/examples/67_lwc_trade_review.py +0 -0
  279. {akquant-0.3.82 → akquant-0.3.84}/examples/68_backtest_tick_demo.py +0 -0
  280. {akquant-0.3.82 → akquant-0.3.84}/examples/69_live_runtime_config_dispatch_demo.py +0 -0
  281. {akquant-0.3.82 → akquant-0.3.84}/examples/70_csv_multi_symbol_import_demo.py +0 -0
  282. {akquant-0.3.82 → akquant-0.3.84}/examples/71_native_multi_timeframe_live.py +0 -0
  283. {akquant-0.3.82 → akquant-0.3.84}/examples/72_declarative_indicators.py +0 -0
  284. {akquant-0.3.82 → akquant-0.3.84}/examples/73_lwc_live_indicators.py +0 -0
  285. {akquant-0.3.82 → akquant-0.3.84}/examples/74_indicator_scripts.py +0 -0
  286. {akquant-0.3.82 → akquant-0.3.84}/examples/75_intrabar_indicators.py +0 -0
  287. {akquant-0.3.82 → akquant-0.3.84}/examples/76_tick_intrabar_indicators.py +0 -0
  288. {akquant-0.3.82 → akquant-0.3.84}/examples/77_heikin_ashi_indicator.py +0 -0
  289. {akquant-0.3.82 → akquant-0.3.84}/examples/78_chart_drawings.py +0 -0
  290. {akquant-0.3.82 → akquant-0.3.84}/examples/79_multi_symbol_indicator_timer.py +0 -0
  291. {akquant-0.3.82 → akquant-0.3.84}/examples/README.md +0 -0
  292. {akquant-0.3.82 → akquant-0.3.84}/examples/benchmark_utils.py +0 -0
  293. {akquant-0.3.82 → akquant-0.3.84}/examples/pb_mock.py +0 -0
  294. {akquant-0.3.82 → akquant-0.3.84}/examples/strategies/01_stock_dual_moving_average.py +0 -0
  295. {akquant-0.3.82 → akquant-0.3.84}/examples/strategies/02_stock_grid_trading.py +0 -0
  296. {akquant-0.3.82 → akquant-0.3.84}/examples/strategies/03_stock_atr_breakout.py +0 -0
  297. {akquant-0.3.82 → akquant-0.3.84}/examples/strategies/04_stock_momentum_rotation.py +0 -0
  298. {akquant-0.3.82 → akquant-0.3.84}/examples/strategies/05_stock_momentum_rotation_timer.py +0 -0
  299. {akquant-0.3.82 → akquant-0.3.84}/examples/strategies/06_stock_momentum_rotation_bucket.py +0 -0
  300. {akquant-0.3.82 → akquant-0.3.84}/examples/strategies/07_stock_momentum_rotation_on_timer.py +0 -0
  301. {akquant-0.3.82 → akquant-0.3.84}/examples/strategies/08_target_positions_long_short.py +0 -0
  302. {akquant-0.3.82 → akquant-0.3.84}/examples/strategies/09_stock_momentum_rotation_after_bar.py +0 -0
  303. {akquant-0.3.82 → akquant-0.3.84}/examples/strategies/README.md +0 -0
  304. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch01_quickstart.py +0 -0
  305. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch01_quickstart_functional.py +0 -0
  306. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch02_programming.py +0 -0
  307. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch03_data.py +0 -0
  308. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch05_strategy.py +0 -0
  309. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch05_strategy_functional.py +0 -0
  310. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch06_stock_a.py +0 -0
  311. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch06_stock_a_functional.py +0 -0
  312. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch07_futures.py +0 -0
  313. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch07_futures_functional.py +0 -0
  314. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch08_options.py +0 -0
  315. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch08_options_functional.py +0 -0
  316. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch09_funds.py +0 -0
  317. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch09_funds_functional.py +0 -0
  318. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch09_portfolio.py +0 -0
  319. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch09_portfolio_functional.py +0 -0
  320. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch10_analysis.py +0 -0
  321. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch10_analysis_functional.py +0 -0
  322. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch11_optimization.py +0 -0
  323. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch11_optimization_functional.py +0 -0
  324. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch12_ml.py +0 -0
  325. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch12_ml_functional.py +0 -0
  326. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch13_visualization.py +0 -0
  327. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch13_visualization_functional.py +0 -0
  328. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch14_factor.py +0 -0
  329. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch15_live_trading.py +0 -0
  330. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch15_live_trading_functional.py +0 -0
  331. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch15_strategy_loader.py +0 -0
  332. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch15_strategy_loader_functional.py +0 -0
  333. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch16_indicators.py +0 -0
  334. {akquant-0.3.82 → akquant-0.3.84}/examples/textbook/ch16_indicators_functional.py +0 -0
  335. {akquant-0.3.82 → akquant-0.3.84}/mkdocs.yml +0 -0
  336. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/analysis/__init__.py +0 -0
  337. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/analysis/benchmark.py +0 -0
  338. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/analyzer_plugin.py +0 -0
  339. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/backtest/__init__.py +0 -0
  340. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/backtest/__init__.pyi +0 -0
  341. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/backtest/_viz.py +0 -0
  342. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/backtest/fill_mode.py +0 -0
  343. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/backtest/merge.py +0 -0
  344. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/backtest/result.py +0 -0
  345. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/backtest/tick_input.py +0 -0
  346. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/bar_generator.py +0 -0
  347. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/chart/__init__.py +0 -0
  348. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/chart/_drawing.py +0 -0
  349. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/chart/_normalize.py +0 -0
  350. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/chart/d3kline.py +0 -0
  351. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/checkpoint.py +0 -0
  352. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/cli.py +0 -0
  353. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/config.py +0 -0
  354. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/data.py +0 -0
  355. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/execution/__init__.py +0 -0
  356. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/execution/base.py +0 -0
  357. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/execution/sim.py +0 -0
  358. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/factor/__init__.py +0 -0
  359. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/factor/engine.py +0 -0
  360. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/factor/ops.py +0 -0
  361. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/factor/parser.py +0 -0
  362. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/feed_adapter.py +0 -0
  363. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/fund/__init__.py +0 -0
  364. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/futures/__init__.py +0 -0
  365. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/__init__.py +0 -0
  366. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/base.py +0 -0
  367. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/broker_event_adapter.py +0 -0
  368. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/broker_event_mapper.py +0 -0
  369. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/broker_execution.py +0 -0
  370. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/broker_models.py +0 -0
  371. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/broker_recovery.py +0 -0
  372. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/broker_runtime.py +0 -0
  373. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/broker_state_cache.py +0 -0
  374. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/broker_stats.py +0 -0
  375. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/broker_strategy_api.py +0 -0
  376. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/brokers/__init__.py +0 -0
  377. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/brokers/builtins.py +0 -0
  378. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/brokers/ctp/__init__.py +0 -0
  379. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/brokers/ctp/adapter.py +0 -0
  380. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/brokers/ctp/native.py +0 -0
  381. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/brokers/miniqmt/__init__.py +0 -0
  382. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/brokers/miniqmt/stub.py +0 -0
  383. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/brokers/plugins.py +0 -0
  384. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/brokers/ptrade/__init__.py +0 -0
  385. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/brokers/ptrade/stub.py +0 -0
  386. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/brokers/replay/__init__.py +0 -0
  387. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/brokers/replay/gateway.py +0 -0
  388. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/ctp_adapter.py +0 -0
  389. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/ctp_native.py +0 -0
  390. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/factory.py +0 -0
  391. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/local_stop_book.py +0 -0
  392. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/mapper.py +0 -0
  393. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/miniqmt.py +0 -0
  394. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/models.py +0 -0
  395. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/order_audit.py +0 -0
  396. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/order_errors.py +0 -0
  397. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/order_receipt.py +0 -0
  398. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/protocols.py +0 -0
  399. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/ptrade.py +0 -0
  400. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/registry.py +0 -0
  401. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/symbol_match.py +0 -0
  402. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/gateway/trader_base.py +0 -0
  403. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/indicator_identity.py +0 -0
  404. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/indicator_recording.py +0 -0
  405. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/indicator_script.py +0 -0
  406. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/indicator_stream.py +0 -0
  407. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/live/__init__.py +0 -0
  408. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/live/_facade.py +0 -0
  409. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/live/_gateway_setup.py +0 -0
  410. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/live/_paper_execution.py +0 -0
  411. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/live/_preload.py +0 -0
  412. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/live/_strategy_maps.py +0 -0
  413. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/live/_stream_sink.py +0 -0
  414. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/log.py +0 -0
  415. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/lwc/__init__.py +0 -0
  416. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/lwc/_drawings.py +0 -0
  417. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/lwc/_indicators.py +0 -0
  418. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/lwc/_payload.py +0 -0
  419. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/lwc/_template.py +0 -0
  420. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/lwc/assets/LICENSE.lightweight-charts +0 -0
  421. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/lwc/assets/NOTICE.md +0 -0
  422. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/lwc/assets/lightweight-charts.standalone.production.js +0 -0
  423. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/lwc/review.py +0 -0
  424. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/__init__.py +0 -0
  425. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/__main__.py +0 -0
  426. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/guides/data-format.md +0 -0
  427. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/guides/indicators.md +0 -0
  428. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/guides/market-rules.md +0 -0
  429. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/guides/orders-and-positions.md +0 -0
  430. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/guides/strategy-skeleton.md +0 -0
  431. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/server.py +0 -0
  432. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/service/__init__.py +0 -0
  433. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/service/api_index.py +0 -0
  434. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/service/check.py +0 -0
  435. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/service/data.py +0 -0
  436. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/service/errors.py +0 -0
  437. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/service/guides.py +0 -0
  438. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/service/paths.py +0 -0
  439. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/service/records.py +0 -0
  440. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/service/runs.py +0 -0
  441. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/mcp/worker.py +0 -0
  442. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/ml/__init__.py +0 -0
  443. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/ml/model.py +0 -0
  444. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/normalize.py +0 -0
  445. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/optimize.py +0 -0
  446. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/option/__init__.py +0 -0
  447. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/params.py +0 -0
  448. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/params_adapter.py +0 -0
  449. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/plot/__init__.py +0 -0
  450. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/plot/_market_data.py +0 -0
  451. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/plot/analysis.py +0 -0
  452. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/plot/dashboard.py +0 -0
  453. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/plot/indicator.py +0 -0
  454. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/plot/report.py +0 -0
  455. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/plot/strategy.py +0 -0
  456. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/plot/utils.py +0 -0
  457. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/precomputed.py +0 -0
  458. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/py.typed +0 -0
  459. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/risk.py +0 -0
  460. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/schema.py +0 -0
  461. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/sessions_config.py +0 -0
  462. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/signal/__init__.py +0 -0
  463. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/signal/dedup.py +0 -0
  464. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/signal/dispatcher.py +0 -0
  465. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/signal/models.py +0 -0
  466. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/signal/protocols.py +0 -0
  467. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/signal/registry.py +0 -0
  468. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/signal/security.py +0 -0
  469. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/signal/sinks.py +0 -0
  470. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/signal/sources/__init__.py +0 -0
  471. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/signal/sources/http.py +0 -0
  472. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/signal/sources/queue.py +0 -0
  473. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/signal/sources/redis_stream.py +0 -0
  474. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/sizer.py +0 -0
  475. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/stock/__init__.py +0 -0
  476. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_drawing.py +0 -0
  477. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_events.py +0 -0
  478. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_inspect.py +0 -0
  479. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_loader.py +0 -0
  480. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_logging.py +0 -0
  481. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_ml.py +0 -0
  482. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_position.py +0 -0
  483. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_preload.py +0 -0
  484. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_runtime_config.py +0 -0
  485. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_scheduler.py +0 -0
  486. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_stats.py +0 -0
  487. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_time.py +0 -0
  488. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/strategy_window.py +0 -0
  489. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/stream_schema.py +0 -0
  490. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/talib/__init__.py +0 -0
  491. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/talib/_kernels.py +0 -0
  492. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/talib/backend.py +0 -0
  493. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/talib/core.py +0 -0
  494. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/talib/funcs.py +0 -0
  495. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/talib/lookback.py +0 -0
  496. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/trade_stream.py +0 -0
  497. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/utils/__init__.py +0 -0
  498. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/utils/inspector.py +0 -0
  499. {akquant-0.3.82 → akquant-0.3.84}/python/akquant/utils/price.py +0 -0
  500. {akquant-0.3.82 → akquant-0.3.84}/requirements-dev.txt +0 -0
  501. {akquant-0.3.82 → akquant-0.3.84}/scripts/bench_engine_perbar.py +0 -0
  502. {akquant-0.3.82 → akquant-0.3.84}/scripts/cargo-test.sh +0 -0
  503. {akquant-0.3.82 → akquant-0.3.84}/scripts/check_docs_api_examples.py +0 -0
  504. {akquant-0.3.82 → akquant-0.3.84}/scripts/check_docs_links.py +0 -0
  505. {akquant-0.3.82 → akquant-0.3.84}/scripts/check_release.py +0 -0
  506. {akquant-0.3.82 → akquant-0.3.84}/scripts/dev-check.sh +0 -0
  507. {akquant-0.3.82 → akquant-0.3.84}/scripts/golden_baseline_report.py +0 -0
  508. {akquant-0.3.82 → akquant-0.3.84}/scripts/profile_backtest.py +0 -0
  509. {akquant-0.3.82 → akquant-0.3.84}/scripts/stress_out_of_core.py +0 -0
  510. {akquant-0.3.82 → akquant-0.3.84}/src/account.rs +0 -0
  511. {akquant-0.3.82 → akquant-0.3.84}/src/analysis/live_stats.rs +0 -0
  512. {akquant-0.3.82 → akquant-0.3.84}/src/analysis/python.rs +0 -0
  513. {akquant-0.3.82 → akquant-0.3.84}/src/analysis/result.rs +0 -0
  514. {akquant-0.3.82 → akquant-0.3.84}/src/analysis/strategy_stats.rs +0 -0
  515. {akquant-0.3.82 → akquant-0.3.84}/src/analysis/tests.rs +0 -0
  516. {akquant-0.3.82 → akquant-0.3.84}/src/analysis/types.rs +0 -0
  517. {akquant-0.3.82 → akquant-0.3.84}/src/bin/stub_gen.rs +0 -0
  518. {akquant-0.3.82 → akquant-0.3.84}/src/calendar/clock.rs +0 -0
  519. {akquant-0.3.82 → akquant-0.3.84}/src/calendar/mod.rs +0 -0
  520. {akquant-0.3.82 → akquant-0.3.84}/src/calendar/python.rs +0 -0
  521. {akquant-0.3.82 → akquant-0.3.84}/src/calendar/resolver.rs +0 -0
  522. {akquant-0.3.82 → akquant-0.3.84}/src/calendar/schedule.rs +0 -0
  523. {akquant-0.3.82 → akquant-0.3.84}/src/calendar/trading_calendar.rs +0 -0
  524. {akquant-0.3.82 → akquant-0.3.84}/src/clock.rs +0 -0
  525. {akquant-0.3.82 → akquant-0.3.84}/src/data/aggregator.rs +0 -0
  526. {akquant-0.3.82 → akquant-0.3.84}/src/data/batch.rs +0 -0
  527. {akquant-0.3.82 → akquant-0.3.84}/src/data/client.rs +0 -0
  528. {akquant-0.3.82 → akquant-0.3.84}/src/data/columns.rs +0 -0
  529. {akquant-0.3.82 → akquant-0.3.84}/src/data/compute.rs +0 -0
  530. {akquant-0.3.82 → akquant-0.3.84}/src/data/feed.rs +0 -0
  531. {akquant-0.3.82 → akquant-0.3.84}/src/data/mod.rs +0 -0
  532. {akquant-0.3.82 → akquant-0.3.84}/src/data/parquet_stream.rs +0 -0
  533. {akquant-0.3.82 → akquant-0.3.84}/src/data/python_window.rs +0 -0
  534. {akquant-0.3.82 → akquant-0.3.84}/src/data/window.rs +0 -0
  535. {akquant-0.3.82 → akquant-0.3.84}/src/engine/strategy_handler.rs +0 -0
  536. {akquant-0.3.82 → akquant-0.3.84}/src/error.rs +0 -0
  537. {akquant-0.3.82 → akquant-0.3.84}/src/event.rs +0 -0
  538. {akquant-0.3.82 → akquant-0.3.84}/src/event_manager.rs +0 -0
  539. {akquant-0.3.82 → akquant-0.3.84}/src/execution/common.rs +0 -0
  540. {akquant-0.3.82 → akquant-0.3.84}/src/execution/crypto.rs +0 -0
  541. {akquant-0.3.82 → akquant-0.3.84}/src/execution/forex.rs +0 -0
  542. {akquant-0.3.82 → akquant-0.3.84}/src/execution/futures.rs +0 -0
  543. {akquant-0.3.82 → akquant-0.3.84}/src/execution/matcher.rs +0 -0
  544. {akquant-0.3.82 → akquant-0.3.84}/src/execution/mod.rs +0 -0
  545. {akquant-0.3.82 → akquant-0.3.84}/src/execution/option.rs +0 -0
  546. {akquant-0.3.82 → akquant-0.3.84}/src/execution/python.rs +0 -0
  547. {akquant-0.3.82 → akquant-0.3.84}/src/execution/realtime.rs +0 -0
  548. {akquant-0.3.82 → akquant-0.3.84}/src/execution/simulated.rs +0 -0
  549. {akquant-0.3.82 → akquant-0.3.84}/src/execution/slippage.rs +0 -0
  550. {akquant-0.3.82 → akquant-0.3.84}/src/execution/stock.rs +0 -0
  551. {akquant-0.3.82 → akquant-0.3.84}/src/execution/validation.rs +0 -0
  552. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/momentum.rs +0 -0
  553. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/momentum_oscillators.rs +0 -0
  554. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/momentum_rates.rs +0 -0
  555. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/moving_average.rs +0 -0
  556. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/moving_average_compound.rs +0 -0
  557. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/moving_average_core.rs +0 -0
  558. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/moving_average_hilbert.rs +0 -0
  559. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/moving_average_transforms.rs +0 -0
  560. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/moving_average_windowed.rs +0 -0
  561. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/trend.rs +0 -0
  562. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/trend_directional.rs +0 -0
  563. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/trend_oscillators.rs +0 -0
  564. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/trend_regression.rs +0 -0
  565. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/volatility.rs +0 -0
  566. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/volatility_candle.rs +0 -0
  567. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/volatility_price.rs +0 -0
  568. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/volatility_stats.rs +0 -0
  569. {akquant-0.3.82 → akquant-0.3.84}/src/indicators/volume.rs +0 -0
  570. {akquant-0.3.82 → akquant-0.3.84}/src/indicators.rs +0 -0
  571. {akquant-0.3.82 → akquant-0.3.84}/src/log_context.rs +0 -0
  572. {akquant-0.3.82 → akquant-0.3.84}/src/margin/calculator.rs +0 -0
  573. {akquant-0.3.82 → akquant-0.3.84}/src/margin/engine.rs +0 -0
  574. {akquant-0.3.82 → akquant-0.3.84}/src/margin/mod.rs +0 -0
  575. {akquant-0.3.82 → akquant-0.3.84}/src/market/china.rs +0 -0
  576. {akquant-0.3.82 → akquant-0.3.84}/src/market/core.rs +0 -0
  577. {akquant-0.3.82 → akquant-0.3.84}/src/market/corporate_action.rs +0 -0
  578. {akquant-0.3.82 → akquant-0.3.84}/src/market/fee_override.rs +0 -0
  579. {akquant-0.3.82 → akquant-0.3.84}/src/market/fund.rs +0 -0
  580. {akquant-0.3.82 → akquant-0.3.84}/src/market/futures.rs +0 -0
  581. {akquant-0.3.82 → akquant-0.3.84}/src/market/manager.rs +0 -0
  582. {akquant-0.3.82 → akquant-0.3.84}/src/market/mod.rs +0 -0
  583. {akquant-0.3.82 → akquant-0.3.84}/src/market/option.rs +0 -0
  584. {akquant-0.3.82 → akquant-0.3.84}/src/market/simple.rs +0 -0
  585. {akquant-0.3.82 → akquant-0.3.84}/src/market/stock.rs +0 -0
  586. {akquant-0.3.82 → akquant-0.3.84}/src/model/corporate_action.rs +0 -0
  587. {akquant-0.3.82 → akquant-0.3.84}/src/model/instrument.rs +0 -0
  588. {akquant-0.3.82 → akquant-0.3.84}/src/model/market_data.rs +0 -0
  589. {akquant-0.3.82 → akquant-0.3.84}/src/model/mod.rs +0 -0
  590. {akquant-0.3.82 → akquant-0.3.84}/src/model/order.rs +0 -0
  591. {akquant-0.3.82 → akquant-0.3.84}/src/model/timer.rs +0 -0
  592. {akquant-0.3.82 → akquant-0.3.84}/src/model/types.rs +0 -0
  593. {akquant-0.3.82 → akquant-0.3.84}/src/pipeline/mod.rs +0 -0
  594. {akquant-0.3.82 → akquant-0.3.84}/src/pipeline/processor.rs +0 -0
  595. {akquant-0.3.82 → akquant-0.3.84}/src/pipeline/runner.rs +0 -0
  596. {akquant-0.3.82 → akquant-0.3.84}/src/pipeline/stages/cleanup.rs +0 -0
  597. {akquant-0.3.82 → akquant-0.3.84}/src/pipeline/stages/execution.rs +0 -0
  598. {akquant-0.3.82 → akquant-0.3.84}/src/pipeline/stages/shared.rs +0 -0
  599. {akquant-0.3.82 → akquant-0.3.84}/src/pipeline/stages/statistics.rs +0 -0
  600. {akquant-0.3.82 → akquant-0.3.84}/src/portfolio.rs +0 -0
  601. {akquant-0.3.82 → akquant-0.3.84}/src/risk/common.rs +0 -0
  602. {akquant-0.3.82 → akquant-0.3.84}/src/risk/config.rs +0 -0
  603. {akquant-0.3.82 → akquant-0.3.84}/src/risk/futures.rs +0 -0
  604. {akquant-0.3.82 → akquant-0.3.84}/src/risk/manager.rs +0 -0
  605. {akquant-0.3.82 → akquant-0.3.84}/src/risk/mod.rs +0 -0
  606. {akquant-0.3.82 → akquant-0.3.84}/src/risk/option.rs +0 -0
  607. {akquant-0.3.82 → akquant-0.3.84}/src/risk/portfolio.rs +0 -0
  608. {akquant-0.3.82 → akquant-0.3.84}/src/risk/rule.rs +0 -0
  609. {akquant-0.3.82 → akquant-0.3.84}/src/risk/stock.rs +0 -0
  610. {akquant-0.3.82 → akquant-0.3.84}/src/risk/strategy_limits.rs +0 -0
  611. {akquant-0.3.82 → akquant-0.3.84}/src/settlement/expiry.rs +0 -0
  612. {akquant-0.3.82 → akquant-0.3.84}/src/settlement/handler.rs +0 -0
  613. {akquant-0.3.82 → akquant-0.3.84}/src/settlement/manager.rs +0 -0
  614. {akquant-0.3.82 → akquant-0.3.84}/src/settlement/mod.rs +0 -0
  615. {akquant-0.3.82 → akquant-0.3.84}/src/settlement/option.rs +0 -0
  616. {akquant-0.3.82 → akquant-0.3.84}/src/signal_port.rs +0 -0
  617. {akquant-0.3.82 → akquant-0.3.84}/src/statistics/mod.rs +0 -0
  618. {akquant-0.3.82 → akquant-0.3.84}/tests/_checkpoint_0371.py +0 -0
  619. {akquant-0.3.82 → akquant-0.3.84}/tests/_plot_cases.py +0 -0
  620. {akquant-0.3.82 → akquant-0.3.84}/tests/fixtures/checkpoint_0371_minute.pkl +0 -0
  621. {akquant-0.3.82 → akquant-0.3.84}/tests/gateway_contract/test_event_bridge_contract.py +0 -0
  622. {akquant-0.3.82 → akquant-0.3.84}/tests/gateway_contract/test_recovery_contract.py +0 -0
  623. {akquant-0.3.82 → akquant-0.3.84}/tests/gateway_contract/test_submitter_contract.py +0 -0
  624. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/BASELINE_REPORT.md +0 -0
  625. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/futures_margin/equity_curve.parquet +0 -0
  626. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/futures_margin/metrics.json +0 -0
  627. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/futures_margin/orders.parquet +0 -0
  628. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/futures_margin/trading_day_ends.json +0 -0
  629. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/futures_night_weekend/equity_curve.parquet +0 -0
  630. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/futures_night_weekend/metrics.json +0 -0
  631. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/futures_night_weekend/orders.parquet +0 -0
  632. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/futures_night_weekend/trades.parquet +0 -0
  633. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/futures_night_weekend/trading_day_ends.json +0 -0
  634. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/option_basic/equity_curve.parquet +0 -0
  635. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/option_basic/metrics.json +0 -0
  636. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/option_basic/orders.parquet +0 -0
  637. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/option_basic/trading_day_ends.json +0 -0
  638. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/order_cancel/equity_curve.parquet +0 -0
  639. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/order_cancel/metrics.json +0 -0
  640. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/order_cancel/orders.parquet +0 -0
  641. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/order_cancel/trades.parquet +0 -0
  642. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/order_cancel/trading_day_ends.json +0 -0
  643. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/stock_minute_auction/equity_curve.parquet +0 -0
  644. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/stock_minute_auction/metrics.json +0 -0
  645. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/stock_minute_auction/orders.parquet +0 -0
  646. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/stock_minute_auction/trades.parquet +0 -0
  647. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/stock_minute_auction/trading_day_ends.json +0 -0
  648. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/stock_t1/equity_curve.parquet +0 -0
  649. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/stock_t1/metrics.json +0 -0
  650. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/stock_t1/orders.parquet +0 -0
  651. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/stock_t1/trades.parquet +0 -0
  652. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/baselines/stock_t1/trading_day_ends.json +0 -0
  653. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/data/future_margin.parquet +0 -0
  654. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/data/future_margin.parquet.sha256 +0 -0
  655. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/data/futures_night_weekend.parquet +0 -0
  656. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/data/futures_night_weekend.parquet.sha256 +0 -0
  657. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/data/option_basic.parquet +0 -0
  658. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/data/option_basic.parquet.sha256 +0 -0
  659. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/data/order_cancel.parquet +0 -0
  660. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/data/order_cancel.parquet.sha256 +0 -0
  661. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/data/stock_minute_auction.parquet +0 -0
  662. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/data/stock_minute_auction.parquet.sha256 +0 -0
  663. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/data/stock_t1.parquet +0 -0
  664. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/data/stock_t1.parquet.sha256 +0 -0
  665. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/gen_data.py +0 -0
  666. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/runner.py +0 -0
  667. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/strategies/futures_margin.py +0 -0
  668. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/strategies/futures_night_weekend.py +0 -0
  669. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/strategies/option_basic.py +0 -0
  670. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/strategies/order_cancel.py +0 -0
  671. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/strategies/stock_minute_auction.py +0 -0
  672. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/strategies/stock_t1.py +0 -0
  673. {akquant-0.3.82 → akquant-0.3.84}/tests/golden/test_golden.py +0 -0
  674. {akquant-0.3.82 → akquant-0.3.84}/tests/mcp_server/conftest.py +0 -0
  675. {akquant-0.3.82 → akquant-0.3.84}/tests/mcp_server/test_cli.py +0 -0
  676. {akquant-0.3.82 → akquant-0.3.84}/tests/mcp_server/test_mcp_api_index.py +0 -0
  677. {akquant-0.3.82 → akquant-0.3.84}/tests/mcp_server/test_mcp_check.py +0 -0
  678. {akquant-0.3.82 → akquant-0.3.84}/tests/mcp_server/test_mcp_data.py +0 -0
  679. {akquant-0.3.82 → akquant-0.3.84}/tests/mcp_server/test_mcp_errors.py +0 -0
  680. {akquant-0.3.82 → akquant-0.3.84}/tests/mcp_server/test_mcp_guides.py +0 -0
  681. {akquant-0.3.82 → akquant-0.3.84}/tests/mcp_server/test_mcp_main.py +0 -0
  682. {akquant-0.3.82 → akquant-0.3.84}/tests/mcp_server/test_mcp_paths.py +0 -0
  683. {akquant-0.3.82 → akquant-0.3.84}/tests/mcp_server/test_mcp_records.py +0 -0
  684. {akquant-0.3.82 → akquant-0.3.84}/tests/mcp_server/test_mcp_runs.py +0 -0
  685. {akquant-0.3.82 → akquant-0.3.84}/tests/mcp_server/test_mcp_server.py +0 -0
  686. {akquant-0.3.82 → akquant-0.3.84}/tests/test_account_risk_rules.py +0 -0
  687. {akquant-0.3.82 → akquant-0.3.84}/tests/test_api_rename_cash.py +0 -0
  688. {akquant-0.3.82 → akquant-0.3.84}/tests/test_api_rename_composites.py +0 -0
  689. {akquant-0.3.82 → akquant-0.3.84}/tests/test_api_rename_equity.py +0 -0
  690. {akquant-0.3.82 → akquant-0.3.84}/tests/test_api_rename_holding_bars.py +0 -0
  691. {akquant-0.3.82 → akquant-0.3.84}/tests/test_api_rename_positions.py +0 -0
  692. {akquant-0.3.82 → akquant-0.3.84}/tests/test_api_rename_rebalance.py +0 -0
  693. {akquant-0.3.82 → akquant-0.3.84}/tests/test_backtest_fund_fee_rules.py +0 -0
  694. {akquant-0.3.82 → akquant-0.3.84}/tests/test_backtest_params.py +0 -0
  695. {akquant-0.3.82 → akquant-0.3.84}/tests/test_backtest_symbol_column_aliases.py +0 -0
  696. {akquant-0.3.82 → akquant-0.3.84}/tests/test_backtest_tick_aggregate.py +0 -0
  697. {akquant-0.3.82 → akquant-0.3.84}/tests/test_backtest_tick_entry.py +0 -0
  698. {akquant-0.3.82 → akquant-0.3.84}/tests/test_backtest_tick_history.py +0 -0
  699. {akquant-0.3.82 → akquant-0.3.84}/tests/test_bar_aggregator_live.py +0 -0
  700. {akquant-0.3.82 → akquant-0.3.84}/tests/test_bar_generator.py +0 -0
  701. {akquant-0.3.82 → akquant-0.3.84}/tests/test_bar_hook_bookkeeping_invariants.py +0 -0
  702. {akquant-0.3.82 → akquant-0.3.84}/tests/test_bench_noise_gate.py +0 -0
  703. {akquant-0.3.82 → akquant-0.3.84}/tests/test_boundary_bar_fill.py +0 -0
  704. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_bridge_adapts_events.py +0 -0
  705. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_bridge_drives_order_groups.py +0 -0
  706. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_dropped_counts_periodic_summary.py +0 -0
  707. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_event_adapter.py +0 -0
  708. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_event_adapter_local_id.py +0 -0
  709. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_event_symbol_filter.py +0 -0
  710. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_event_task_isolation.py +0 -0
  711. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_execution_local_stops.py +0 -0
  712. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_execution_read_path_parity.py +0 -0
  713. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_execution_stop_requeue.py +0 -0
  714. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_live_risk_enforcement.py +0 -0
  715. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_order_redelivery_dedup.py +0 -0
  716. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_plugins.py +0 -0
  717. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_position_sync.py +0 -0
  718. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_profile_cn_stock.py +0 -0
  719. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_recovery_cadence.py +0 -0
  720. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_recovery_error_visibility.py +0 -0
  721. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_seed_baseline.py +0 -0
  722. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_trade_redelivery_dedup.py +0 -0
  723. {akquant-0.3.82 → akquant-0.3.84}/tests/test_broker_trade_stats.py +0 -0
  724. {akquant-0.3.82 → akquant-0.3.84}/tests/test_buying_power_new_symbol.py +0 -0
  725. {akquant-0.3.82 → akquant-0.3.84}/tests/test_candle_exporters.py +0 -0
  726. {akquant-0.3.82 → akquant-0.3.84}/tests/test_candle_render_type.py +0 -0
  727. {akquant-0.3.82 → akquant-0.3.84}/tests/test_chart_d3kline.py +0 -0
  728. {akquant-0.3.82 → akquant-0.3.84}/tests/test_chart_drawing_normalize.py +0 -0
  729. {akquant-0.3.82 → akquant-0.3.84}/tests/test_chart_normalize.py +0 -0
  730. {akquant-0.3.82 → akquant-0.3.84}/tests/test_check_release.py +0 -0
  731. {akquant-0.3.82 → akquant-0.3.84}/tests/test_checkpoint_0371_compat.py +0 -0
  732. {akquant-0.3.82 → akquant-0.3.84}/tests/test_checkpoint_option_rules.py +0 -0
  733. {akquant-0.3.82 → akquant-0.3.84}/tests/test_close_position_delegate.py +0 -0
  734. {akquant-0.3.82 → akquant-0.3.84}/tests/test_composed_ctx_not_ready.py +0 -0
  735. {akquant-0.3.82 → akquant-0.3.84}/tests/test_cost_config_consolidation.py +0 -0
  736. {akquant-0.3.82 → akquant-0.3.84}/tests/test_cross_section_day_order_next_open_fill.py +0 -0
  737. {akquant-0.3.82 → akquant-0.3.84}/tests/test_ctp_classify_order_error.py +0 -0
  738. {akquant-0.3.82 → akquant-0.3.84}/tests/test_custom_matcher.py +0 -0
  739. {akquant-0.3.82 → akquant-0.3.84}/tests/test_data_catalog.py +0 -0
  740. {akquant-0.3.82 → akquant-0.3.84}/tests/test_date_only_rewrite_cache.py +0 -0
  741. {akquant-0.3.82 → akquant-0.3.84}/tests/test_day_order_expiry_no_zombie_fill.py +0 -0
  742. {akquant-0.3.82 → akquant-0.3.84}/tests/test_deterministic_order.py +0 -0
  743. {akquant-0.3.82 → akquant-0.3.84}/tests/test_docs_api_examples.py +0 -0
  744. {akquant-0.3.82 → akquant-0.3.84}/tests/test_docs_links.py +0 -0
  745. {akquant-0.3.82 → akquant-0.3.84}/tests/test_drawing_stream.py +0 -0
  746. {akquant-0.3.82 → akquant-0.3.84}/tests/test_dual_stream_freq_inference.py +0 -0
  747. {akquant-0.3.82 → akquant-0.3.84}/tests/test_engine.py +0 -0
  748. {akquant-0.3.82 → akquant-0.3.84}/tests/test_engine_python_crossings.py +0 -0
  749. {akquant-0.3.82 → akquant-0.3.84}/tests/test_event_model_parity.py +0 -0
  750. {akquant-0.3.82 → akquant-0.3.84}/tests/test_examples_regression.py +0 -0
  751. {akquant-0.3.82 → akquant-0.3.84}/tests/test_execution_binding.py +0 -0
  752. {akquant-0.3.82 → akquant-0.3.84}/tests/test_execution_broker.py +0 -0
  753. {akquant-0.3.82 → akquant-0.3.84}/tests/test_execution_broker_reads_routed.py +0 -0
  754. {akquant-0.3.82 → akquant-0.3.84}/tests/test_execution_composed_parity.py +0 -0
  755. {akquant-0.3.82 → akquant-0.3.84}/tests/test_execution_read_delegation.py +0 -0
  756. {akquant-0.3.82 → akquant-0.3.84}/tests/test_execution_write_delegation.py +0 -0
  757. {akquant-0.3.82 → akquant-0.3.84}/tests/test_expiry_terminal_dispatch.py +0 -0
  758. {akquant-0.3.82 → akquant-0.3.84}/tests/test_expiry_trade_accounting.py +0 -0
  759. {akquant-0.3.82 → akquant-0.3.84}/tests/test_factor_engine.py +0 -0
  760. {akquant-0.3.82 → akquant-0.3.84}/tests/test_factor_ops.py +0 -0
  761. {akquant-0.3.82 → akquant-0.3.84}/tests/test_feed_adapter.py +0 -0
  762. {akquant-0.3.82 → akquant-0.3.84}/tests/test_fetch_akshare_symbol.py +0 -0
  763. {akquant-0.3.82 → akquant-0.3.84}/tests/test_fill_mode.py +0 -0
  764. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_broker_live_cancel.py +0 -0
  765. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_broker_live_reads.py +0 -0
  766. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_broker_models_ext.py +0 -0
  767. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_broker_state_cache.py +0 -0
  768. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_broker_state_invalidation.py +0 -0
  769. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_broker_submitter_quantity.py +0 -0
  770. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_broker_submitter_readiness.py +0 -0
  771. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_broker_submitter_signature.py +0 -0
  772. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_brokers_paths.py +0 -0
  773. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_builtins_registry.py +0 -0
  774. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_callbacks.py +0 -0
  775. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_cancel_failure.py +0 -0
  776. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_ctp_adapter.py +0 -0
  777. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_ctp_dual_stream.py +0 -0
  778. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_ctp_native.py +0 -0
  779. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_expired_order_status.py +0 -0
  780. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_factory.py +0 -0
  781. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_mapper.py +0 -0
  782. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_mixed_market_trader.py +0 -0
  783. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_optional_market.py +0 -0
  784. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_order_error_classification.py +0 -0
  785. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_order_submitter_extra.py +0 -0
  786. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_order_tick_reject_soft.py +0 -0
  787. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_order_tick_validation.py +0 -0
  788. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_place_order_failure.py +0 -0
  789. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_registry.py +0 -0
  790. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_sim_submit_guard.py +0 -0
  791. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_symbol_match.py +0 -0
  792. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_tif_mapping.py +0 -0
  793. {akquant-0.3.82 → akquant-0.3.84}/tests/test_gateway_trader_base.py +0 -0
  794. {akquant-0.3.82 → akquant-0.3.84}/tests/test_grid_search_all_failed.py +0 -0
  795. {akquant-0.3.82 → akquant-0.3.84}/tests/test_heikin_ashi.py +0 -0
  796. {akquant-0.3.82 → akquant-0.3.84}/tests/test_hooks_functional_wrapper.py +0 -0
  797. {akquant-0.3.82 → akquant-0.3.84}/tests/test_hooks_inherited_via_base.py +0 -0
  798. {akquant-0.3.82 → akquant-0.3.84}/tests/test_indicator_declaration.py +0 -0
  799. {akquant-0.3.82 → akquant-0.3.84}/tests/test_indicator_declaration_review.py +0 -0
  800. {akquant-0.3.82 → akquant-0.3.84}/tests/test_indicator_dual_stream.py +0 -0
  801. {akquant-0.3.82 → akquant-0.3.84}/tests/test_indicator_duplicate_name.py +0 -0
  802. {akquant-0.3.82 → akquant-0.3.84}/tests/test_indicator_intrabar.py +0 -0
  803. {akquant-0.3.82 → akquant-0.3.84}/tests/test_indicator_live_web_example.py +0 -0
  804. {akquant-0.3.82 → akquant-0.3.84}/tests/test_indicator_multi_symbol_access.py +0 -0
  805. {akquant-0.3.82 → akquant-0.3.84}/tests/test_indicator_non_finite.py +0 -0
  806. {akquant-0.3.82 → akquant-0.3.84}/tests/test_indicator_owner_identity.py +0 -0
  807. {akquant-0.3.82 → akquant-0.3.84}/tests/test_indicator_recording.py +0 -0
  808. {akquant-0.3.82 → akquant-0.3.84}/tests/test_indicator_script.py +0 -0
  809. {akquant-0.3.82 → akquant-0.3.84}/tests/test_inspector.py +0 -0
  810. {akquant-0.3.82 → akquant-0.3.84}/tests/test_instrument_default_tick.py +0 -0
  811. {akquant-0.3.82 → akquant-0.3.84}/tests/test_instrument_fee_override.py +0 -0
  812. {akquant-0.3.82 → akquant-0.3.84}/tests/test_instrument_slippage.py +0 -0
  813. {akquant-0.3.82 → akquant-0.3.84}/tests/test_instrument_symbol_suffix_normalization.py +0 -0
  814. {akquant-0.3.82 → akquant-0.3.84}/tests/test_instruments_config_symbol_mismatch.py +0 -0
  815. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_auto_preload.py +0 -0
  816. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_broker_slot_routing.py +0 -0
  817. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_duration_wallclock.py +0 -0
  818. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_freq_injection.py +0 -0
  819. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_market_config_by_asset_type.py +0 -0
  820. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_mixed_market_broker.py +0 -0
  821. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_multi_slot_windows.py +0 -0
  822. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_paper_execution_params.py +0 -0
  823. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_preload_normalize.py +0 -0
  824. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_preload_runner.py +0 -0
  825. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runner.py +0 -0
  826. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runner_bounded_session.py +0 -0
  827. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runner_broker_bridge.py +0 -0
  828. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runner_broker_readiness.py +0 -0
  829. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runner_broker_recovery.py +0 -0
  830. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runner_broker_submitter.py +0 -0
  831. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runner_client_order_id.py +0 -0
  832. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runner_instrument_snapshots.py +0 -0
  833. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runner_lifecycle.py +0 -0
  834. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runner_no_market_data_warning.py +0 -0
  835. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runner_order_request_cache.py +0 -0
  836. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runner_sigterm_stop.py +0 -0
  837. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runner_stop_remap.py +0 -0
  838. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_runtime_config_dispatch.py +0 -0
  839. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_subscribe_forwards_to_gateway.py +0 -0
  840. {akquant-0.3.82 → akquant-0.3.84}/tests/test_live_summary_stop_reason.py +0 -0
  841. {akquant-0.3.82 → akquant-0.3.84}/tests/test_local_stop_book.py +0 -0
  842. {akquant-0.3.82 → akquant-0.3.84}/tests/test_local_stop_book_threadsafe.py +0 -0
  843. {akquant-0.3.82 → akquant-0.3.84}/tests/test_local_stop_scenario.py +0 -0
  844. {akquant-0.3.82 → akquant-0.3.84}/tests/test_log_sensitive_filter.py +0 -0
  845. {akquant-0.3.82 → akquant-0.3.84}/tests/test_lwc_drawings.py +0 -0
  846. {akquant-0.3.82 → akquant-0.3.84}/tests/test_lwc_indicators.py +0 -0
  847. {akquant-0.3.82 → akquant-0.3.84}/tests/test_lwc_review.py +0 -0
  848. {akquant-0.3.82 → akquant-0.3.84}/tests/test_merge_results.py +0 -0
  849. {akquant-0.3.82 → akquant-0.3.84}/tests/test_ml_rolling_training_threshold.py +0 -0
  850. {akquant-0.3.82 → akquant-0.3.84}/tests/test_naive_timezone.py +0 -0
  851. {akquant-0.3.82 → akquant-0.3.84}/tests/test_normalize.py +0 -0
  852. {akquant-0.3.82 → akquant-0.3.84}/tests/test_oco_bracket_broker_live_scenario.py +0 -0
  853. {akquant-0.3.82 → akquant-0.3.84}/tests/test_on_execution_report_noop.py +0 -0
  854. {akquant-0.3.82 → akquant-0.3.84}/tests/test_on_timer_suspension_deadlock.py +0 -0
  855. {akquant-0.3.82 → akquant-0.3.84}/tests/test_optimize_functional_params.py +0 -0
  856. {akquant-0.3.82 → akquant-0.3.84}/tests/test_optimize_params.py +0 -0
  857. {akquant-0.3.82 → akquant-0.3.84}/tests/test_option_expiry_settlement.py +0 -0
  858. {akquant-0.3.82 → akquant-0.3.84}/tests/test_option_fees.py +0 -0
  859. {akquant-0.3.82 → akquant-0.3.84}/tests/test_option_market_side_effects.py +0 -0
  860. {akquant-0.3.82 → akquant-0.3.84}/tests/test_order_api_return_values.py +0 -0
  861. {akquant-0.3.82 → akquant-0.3.84}/tests/test_order_audit.py +0 -0
  862. {akquant-0.3.82 → akquant-0.3.84}/tests/test_order_receipt.py +0 -0
  863. {akquant-0.3.82 → akquant-0.3.84}/tests/test_order_receipt_backtest.py +0 -0
  864. {akquant-0.3.82 → akquant-0.3.84}/tests/test_order_target_lot_size_alignment.py +0 -0
  865. {akquant-0.3.82 → akquant-0.3.84}/tests/test_orders_df.py +0 -0
  866. {akquant-0.3.82 → akquant-0.3.84}/tests/test_params.py +0 -0
  867. {akquant-0.3.82 → akquant-0.3.84}/tests/test_params_adapter.py +0 -0
  868. {akquant-0.3.82 → akquant-0.3.84}/tests/test_parquet_stream.py +0 -0
  869. {akquant-0.3.82 → akquant-0.3.84}/tests/test_partial_filled_status.py +0 -0
  870. {akquant-0.3.82 → akquant-0.3.84}/tests/test_plot_defaults.py +0 -0
  871. {akquant-0.3.82 → akquant-0.3.84}/tests/test_portfolio.py +0 -0
  872. {akquant-0.3.82 → akquant-0.3.84}/tests/test_position_effect_flip.py +0 -0
  873. {akquant-0.3.82 → akquant-0.3.84}/tests/test_pre_open_live_warns.py +0 -0
  874. {akquant-0.3.82 → akquant-0.3.84}/tests/test_product_presets.py +0 -0
  875. {akquant-0.3.82 → akquant-0.3.84}/tests/test_quickstart_stream_consistency.py +0 -0
  876. {akquant-0.3.82 → akquant-0.3.84}/tests/test_reduce_only_sell_affordability.py +0 -0
  877. {akquant-0.3.82 → akquant-0.3.84}/tests/test_removed_wrappers.py +0 -0
  878. {akquant-0.3.82 → akquant-0.3.84}/tests/test_replay_live_end_to_end.py +0 -0
  879. {akquant-0.3.82 → akquant-0.3.84}/tests/test_replay_market_gateway.py +0 -0
  880. {akquant-0.3.82 → akquant-0.3.84}/tests/test_report_helpers.py +0 -0
  881. {akquant-0.3.82 → akquant-0.3.84}/tests/test_report_plot_extensions.py +0 -0
  882. {akquant-0.3.82 → akquant-0.3.84}/tests/test_result_analysis_extensions.py +0 -0
  883. {akquant-0.3.82 → akquant-0.3.84}/tests/test_review_minors_cleanup.py +0 -0
  884. {akquant-0.3.82 → akquant-0.3.84}/tests/test_run_live_indicator_stream.py +0 -0
  885. {akquant-0.3.82 → akquant-0.3.84}/tests/test_session_config.py +0 -0
  886. {akquant-0.3.82 → akquant-0.3.84}/tests/test_session_matching.py +0 -0
  887. {akquant-0.3.82 → akquant-0.3.84}/tests/test_session_resolver.py +0 -0
  888. {akquant-0.3.82 → akquant-0.3.84}/tests/test_signal_module.py +0 -0
  889. {akquant-0.3.82 → akquant-0.3.84}/tests/test_signal_port_injection.py +0 -0
  890. {akquant-0.3.82 → akquant-0.3.84}/tests/test_signal_sources_p3.py +0 -0
  891. {akquant-0.3.82 → akquant-0.3.84}/tests/test_sizer_auto_resize.py +0 -0
  892. {akquant-0.3.82 → akquant-0.3.84}/tests/test_slippage_bare_number.py +0 -0
  893. {akquant-0.3.82 → akquant-0.3.84}/tests/test_sort_determinism.py +0 -0
  894. {akquant-0.3.82 → akquant-0.3.84}/tests/test_source_trading_day.py +0 -0
  895. {akquant-0.3.82 → akquant-0.3.84}/tests/test_stock_tick_validation.py +0 -0
  896. {akquant-0.3.82 → akquant-0.3.84}/tests/test_stop_id_remap_scenario.py +0 -0
  897. {akquant-0.3.82 → akquant-0.3.84}/tests/test_stop_orders.py +0 -0
  898. {akquant-0.3.82 → akquant-0.3.84}/tests/test_stop_retry_client_order_id.py +0 -0
  899. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_custom_init_params.py +0 -0
  900. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_drawing.py +0 -0
  901. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_events_stop_hook.py +0 -0
  902. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_freq_attribute.py +0 -0
  903. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_history_dual_stream.py +0 -0
  904. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_history_missing_symbol_warning.py +0 -0
  905. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_inspect.py +0 -0
  906. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_loader_candidates.py +0 -0
  907. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_loader_exports.py +0 -0
  908. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_loader_pickle.py +0 -0
  909. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_loader_plugins.py +0 -0
  910. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_loader_reload.py +0 -0
  911. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_ml_dual_stream.py +0 -0
  912. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_order_group_lock.py +0 -0
  913. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_params.py +0 -0
  914. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_session_api.py +0 -0
  915. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_sizing_broker_live_guard.py +0 -0
  916. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_stats.py +0 -0
  917. {akquant-0.3.82 → akquant-0.3.84}/tests/test_strategy_stats_parity.py +0 -0
  918. {akquant-0.3.82 → akquant-0.3.84}/tests/test_stream_series_key.py +0 -0
  919. {akquant-0.3.82 → akquant-0.3.84}/tests/test_subscribe_live_warns.py +0 -0
  920. {akquant-0.3.82 → akquant-0.3.84}/tests/test_suspension_zero_volume_gtc_terminal.py +0 -0
  921. {akquant-0.3.82 → akquant-0.3.84}/tests/test_symbols_filtering.py +0 -0
  922. {akquant-0.3.82 → akquant-0.3.84}/tests/test_symbols_whitelist_rust.py +0 -0
  923. {akquant-0.3.82 → akquant-0.3.84}/tests/test_t_plus_one.py +0 -0
  924. {akquant-0.3.82 → akquant-0.3.84}/tests/test_talib_alignment.py +0 -0
  925. {akquant-0.3.82 → akquant-0.3.84}/tests/test_talib_backend.py +0 -0
  926. {akquant-0.3.82 → akquant-0.3.84}/tests/test_talib_compat.py +0 -0
  927. {akquant-0.3.82 → akquant-0.3.84}/tests/test_target_orders_core.py +0 -0
  928. {akquant-0.3.82 → akquant-0.3.84}/tests/test_tick_indicators.py +0 -0
  929. {akquant-0.3.82 → akquant-0.3.84}/tests/test_tick_input.py +0 -0
  930. {akquant-0.3.82 → akquant-0.3.84}/tests/test_trade_stream_bridge.py +0 -0
  931. {akquant-0.3.82 → akquant-0.3.84}/tests/test_trades_df.py +0 -0
  932. {akquant-0.3.82 → akquant-0.3.84}/tests/test_utils_price.py +0 -0
  933. {akquant-0.3.82 → akquant-0.3.84}/tests/test_vectorized.py +0 -0
  934. {akquant-0.3.82 → akquant-0.3.84}/tests/test_version.py +0 -0
  935. {akquant-0.3.82 → akquant-0.3.84}/tests/test_viz_namespace.py +0 -0
  936. {akquant-0.3.82 → akquant-0.3.84}/tests/test_volume_limit.py +0 -0
  937. {akquant-0.3.82 → akquant-0.3.84}/tests/test_walk_forward_kwargs.py +0 -0
  938. {akquant-0.3.82 → akquant-0.3.84}/tests/test_warm_start_slippage_inherit.py +0 -0
  939. {akquant-0.3.82 → akquant-0.3.84}/tests/test_warmup_period_per_symbol.py +0 -0
  940. {akquant-0.3.82 → akquant-0.3.84}/tests/test_window_checkpoint.py +0 -0
  941. {akquant-0.3.82 → akquant-0.3.84}/tests/test_window_live_replay.py +0 -0
  942. {akquant-0.3.82 → akquant-0.3.84}/tests/test_window_sessions.py +0 -0
  943. {akquant-0.3.82 → akquant-0.3.84}/tests/test_window_subscriptions.py +0 -0
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.84] - 2026-11-09
11
+
12
+ > **规则版本 2.3.1**:同一次回调里下单后又撤掉这张单的策略,回测结果会变(此前撤单被忽略、订单照常成交);带在途订单存档续跑的策略,续跑段的订单回调不再重复。
13
+
14
+ ### Fixed
15
+ - **同一次回调里撤掉刚下的单,撤单被忽略、订单照常成交**(#440):在下单的同一次回调里撤这张单——包括在该单的 `on_order(New)` 回调里撤、或在同一个 `on_bar` / `on_timer` / 窗口 bar 回调里下单后立即 `cancel_order`——此前引擎还没登记这张单,撤单被当成未知订单忽略(日志里一条 `Ignored cancel request for unknown order`),订单之后照常成交;而 `get_order` 一直显示 Cancelled(成交后也是)、`get_open_orders` 也不再列出它,账面与实际不符。现在这类撤单会在订单进入引擎时立即执行(撮合之前,含当根收盘成交的设置),策略收到 `on_order(Cancelled)`,订单不会成交;被风控拒掉的单不再多出那条告警;撤一个根本不存在的订单号仍照旧告警。实盘 paper / replay 同样修复,经柜台的实盘不受影响。另外,`get_order` 不再把已成交、已拒等已结束的单显示为已撤。
16
+ - **存档续跑后,订单在终态之后又收到一次旧状态的 `on_order`**:带在途订单存档、续跑时,续跑段里状态有变化的订单可能在终态之后又收到一次旧状态的 `on_order`(如 Cancelled 之后又来一次 New)。现在存档会保存已通知过的订单状态(以及已触发过 `on_reject` 的订单),续跑后不再重复通知。0.3.83 的存档照常可读。
17
+
18
+ ## [0.3.83] - 2026-11-08
19
+
20
+ > **规则版本 2.3.0**:持仓超过历史深度的交易,`trades_df` 里的 `mae`、`mfe`、`max_drawdown_pct` 会变成正确值(此前被截断,常见结果是 0),成交、盈亏、权益与各项收益指标不变;取历史 `count` 超过保留长度、或指标回看超出 `lookback` 的策略,此前拿到的是残缺数据,现在自动加长后结果会变。
21
+
22
+ ### Fixed
23
+ - **持仓较久的交易,MAE / MFE / 持仓内最大回撤被悄悄算错**:这三个数是平仓时回头扫描历史缓冲区算出的,而缓冲区只保留 `history_depth` 根(设了 `warmup_period` 或用了会自动推断预热期的指标时通常只有几十根;什么都不设时为 10000 根)。持仓更久时,开仓后那段行情已被淘汰,结果只反映平仓前最后几根 bar——实测 `history_depth=30`、持仓 500 根、真实 MAE 为 -40% 的交易记成了 0;不设历史深度时持仓超过 10000 根同样记成 0。现在每笔未平持仓从开仓起自己累计持仓期间的最高价、最低价和回撤,平仓时直接用,不再依赖历史长度。算法与原扫描逐位相同(初值取开仓价、含开仓那根 bar、含平仓价、按路径算回撤;有 bar 序列按 bar 算,否则按 tick),持仓不超过历史深度时结果完全不变(随机化等价性测试对照原扫描算法锁定);唯一的例外是跨拆股的持仓:现在按拆股比例换算已累计的极值,原扫描算法用的是未复权的历史行,这一处是修正。累计状态随存档保存,恢复后接着累计。到期结算与强制平仓的成交仍记 0,与此前一致。
24
+
25
+ - **策略要的历史比框架保留的多时,悄悄拿到残缺数据**:`get_history(count=N)` / `get_history_multi` 的 `N` 超过保留长度(`history_depth` / `warmup_period`)时,此前前面永远补 NaN 且没有任何提示,按它算的均值等会一直是 NaN 或偏差;`self.I(..., lookback=L)` 之后取 `ind[n]`(`n >= L`)此前永远返回 `None`,与预热期还没有值分不开。现在第一次超出时自动加长到够用并告警一次(给出该设的值),加长之前已丢掉的数据补不回来,此后满 `N` 根 bar 起拿到完整数据。只是预热期数据还不够时不告警。多个策略共用一份历史缓冲区,别的策略已加长过时不告警。自动加长有上限:取 10000(0.3.82 的默认容量)与策略显式声明的 `history_depth` / `warmup_period`(指标为声明时的 `lookback`)中的较大值;需要的长度超过上限时不再加长,单独告警一次,照旧返回残缺数据,以免 `get_history(self.bars_held)` 这类随时间增长的 `count` 让实盘里的缓冲区无限增长(加长是对全部标的、bar / tick / 窗口序列一起加长)。`StrategyContext` 新增 `ensure_history_capacity(capacity)`。
26
+
27
+ ### Changed
28
+ - **订单事件改由 Rust 订单账本产出,回测更快**:每次策略回调前后都要做的订单事件检查(比对在途、撤单、拒单、过期与成交,决定触发哪些 `on_order` / `on_reject` / `on_trade`),原先每次都在 Python 里把上下文的订单列表与一份影子账本逐一比对,即使没有任何订单也照跑。现在比对、去重、终态留档都在 Rust 侧的“订单账本”里完成(每个策略槽一本,随存档保存),Python 只按顺序调用回调;回调种类、顺序、时机与参数数值不变(由回调轨迹基线测试锁定)。20 万根 A 股分钟 bar 的空策略回测从约 2.8 秒降到约 2.5 秒(简单策略约 3.4 秒降到约 2.9 秒),折合每根 bar 空策略省约 1.8µs(约 13%)、简单策略省约 2.6µs(约 15%)。几处细微差别:回调收到的订单对象每次新建(数值相同),框架不再改写策略自己存下的旧订单对象的状态;一次订单事件检查分两段派发(先主动撤单、拒单与过期,再新单、在途变化与成交),在后一段的回调里用 `get_order` 查本次检查中稍后才通知变化的单(新单、部分成交、撤单、成交),查到的已是变化后的状态(此前是变化前的状态);从存档续跑时,`on_resume` / `on_start` 里用 `get_order` 查存档前的在途单返回 `None`(第一根 bar 起恢复可查,与同一时刻 `get_open_orders()` 返回空列表一致);直接用底层 `Engine.set_strategy_slots` 配多个槽位(不经 `run_backtest` / `run_live`)时,成交只派给所属槽位,不再广播给其他槽位。`StrategyContext` 新增 `order_events` 与 `find_order`(框架内部使用)。
29
+ - **历史缓冲区默认容量从 10000 降到 1,多标的回测内存大幅下降**:此前为了让 MAE / MFE 有历史可扫,即使策略不取历史,也给每个标的预留 10000 行。MAE / MFE 改为边走边算后不再需要它;策略要取历史时,容量按各策略设的 `history_depth` 设置(回测还会计入 `warmup_period` 与指标推断的预热期):在 `__init__` 或 `on_start` 里调用 `set_history_depth` 都生效,实盘、槽位策略与直接调用 `Engine.run` 时同样如此;运行中再调用会立即加长。2000 个标的、250 个交易日的日线回测,回测期间新增的内存从约 1130MB 降到约 260MB。
30
+ - 存档格式变化:未平持仓记录新增累计极值字段,旧存档恢复后这些字段为空(只按开仓价与平仓价计);订单账本改随引擎存档,用 0.3.82 及更早的存档续跑时,存档时的在途单会再收到一次 `on_order(New)`。不再保证与旧版本存档兼容。
31
+ - 教材第 4 章示例(`examples/textbook/ch04_comparison.py` 及函数式版)取历史的长度改为与预热期一致,运行时不再触发自动加长告警,回测数值不变。
32
+
10
33
  ## [0.3.82] - 2026-11-07
11
34
 
12
35
  > **规则版本不变(2.2.0)**:回测数值不变,只是更快。
@@ -30,7 +30,7 @@ dependencies = [
30
30
 
31
31
  [[package]]
32
32
  name = "akquant"
33
- version = "0.3.82"
33
+ version = "0.3.84"
34
34
  dependencies = [
35
35
  "anyhow",
36
36
  "chrono",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "akquant"
3
- version = "0.3.82"
3
+ version = "0.3.84"
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.82
3
+ Version: 0.3.84
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -135,6 +135,7 @@ Built-in indicators (`SMA`, `EMA`, etc.) support pickle serialization. For custo
135
135
  7. **Strategy-level risk state continuity**: Strategy limits, strategy cashflow, daily-loss baseline, drawdown peak, and reduce-only activation state are persisted and restored.
136
136
  8. **Default timezone**: If `timezone` is not explicitly provided to `run_from_checkpoint`, default is `Asia/Shanghai`.
137
137
  9. **`self.I(factory=...)` factories must be picklable**: the snapshot serializes the strategy instance, and a local `lambda` cannot be pickled. Use a module-level function plus `functools.partial`.
138
+ 10. **`get_order` cannot see pre-checkpoint open orders until the first bar**: in `on_resume` / `on_start`, `get_order` for an order that was still open at checkpoint time returns `None` (just as `get_open_orders()` returns an empty list at that moment); it becomes queryable again from the first bar. Do not treat that `None` as "the order is gone" and submit it again.
138
139
 
139
140
  ## 5. Full Example
140
141
 
@@ -82,6 +82,12 @@ that the requested frequency was actually subscribed.
82
82
  out of range by nature, and raising would force every strategy to wrap reads in `try`
83
83
  - Lookback depth is bounded by `lookback` (default `128`) over a ring buffer: a live
84
84
  session is an unbounded stream, and an unbounded buffer would leak
85
+ - If `ind[n]` asks for `n` beyond `lookback`, the buffer grows automatically and a
86
+ warning is logged once; values dropped before the growth cannot be recovered, so
87
+ `ind[n]` has a value from `n+1` bars later. Declare `self.I(..., lookback=n+1)` as the
88
+ warning suggests. Automatic growth is capped at the larger of 10000 and the declared
89
+ `lookback`; beyond the cap it no longer grows, warns once on its own, and keeps
90
+ returning `None`
85
91
 
86
92
  A not-ready value is always `None` (both a native indicator with an unfilled window and a
87
93
  precomputed indicator whose asof lookup misses are normalized to `None`), so a single
@@ -609,6 +609,12 @@ class MyStrategy(Strategy):
609
609
  self.sell(symbol=bar.symbol, quantity=100)
610
610
  ```
611
611
 
612
+ **Retained length (how many bars of history the framework keeps per symbol)**: in a backtest it is the largest of `history_depth`, `warmup_period` and the warmup inferred from your indicators. In a live session (`run_live`) it follows `history_depth`; `warmup_period` does not set the history depth directly. With auto-preload on (the feed offers a `history_provider`, as klinedata does by default), it only feeds into the preload count (the largest of 3 × the inferred warmup, 500, `warmup_period` and `history_depth`, capped), and once the preload is done history is enabled at the number of bars actually preloaded. Without a preload, `get_history` raises "History tracking is not enabled" until `set_history_depth` is called. Live strategies that read history should call `self.set_history_depth(N)` explicitly.
613
+
614
+ **Set the history depth in `__init__` / `on_start`**: if `set_history_depth(N)` is first called mid-run (after the session has started), the bars before the call are not backfilled; the window becomes complete only after another N bars.
615
+
616
+ **When `count` exceeds the retained length, the history grows automatically and warns once**: the first time `get_history` / `get_history_df` asks for a larger `count`, the framework grows the retained length to `count` and logs a warning with the value to set; data dropped before the growth cannot be recovered, so the window is complete only from `count` bars later. Call `self.set_history_depth(N)` in `on_start` as the warning suggests (this takes effect in both backtests and live sessions). NaN padding during warmup (not enough data yet) is normal and does not warn. Automatic growth is capped at the larger of 10000 and the `history_depth` / `warmup_period` you declared explicitly: beyond the cap it no longer grows, warns once on its own, and pads with NaN as before, so a `count` that keeps increasing (such as `get_history(self.bars_held)`) cannot grow the buffer without bound in a live session.
617
+
612
618
  ## 5. Orders & Execution
613
619
 
614
620
  ### 4.1 Order Lifecycle
@@ -994,7 +1000,7 @@ class MultiSymbolIncrementalStrategy(Strategy):
994
1000
 
995
1001
  Notes:
996
1002
 
997
- * `ind[0]` is the current bar's value (`.value` is an alias) and `ind[1]` is the previous bar. Out-of-range lookback returns `None` instead of raising, so a single `if val is None` check covers the warmup period.
1003
+ * `ind[0]` is the current bar's value (`.value` is an alias) and `ind[1]` is the previous bar. Out-of-range lookback returns `None` instead of raising, so a single `if val is None` check covers the warmup period. Asking for `ind[n]` with `n` beyond `lookback` (default 128) grows the buffer automatically and logs a warning once; size `lookback` as the warning suggests.
998
1004
  * If one shared instance is reused across multiple symbols, AKQuant raises an explicit error and points users to `factory=`.
999
1005
  * In `on_bar` / `on_tick`, `ind[0]` reads the current symbol; in callbacks that do not belong to a symbol (`on_timer`, `on_cross_section`, ...) read a multi-symbol indicator with `ind.of(symbol)[0]` — a bare read raises. See the [Custom Indicator Guide](./custom_indicator.md#indicator-of-symbol).
1000
1006
  * `warmup_bars` only consumes history before the active start boundary and does not double-consume the first active bar.
@@ -177,7 +177,7 @@ return GatewayBundle(
177
177
 
178
178
  终态集在核心侧的落点是 `python/akquant/live/_payload_utils.py`
179
179
  的 `_TERMINAL_STATUSES`,三个内置 broker 的 `_is_terminal_status()` 与之同口径;
180
- 回测侧对应 `strategy_order_events._TERMINAL_ORDER_STATUSES`。`Expired` 是
180
+ 回测侧对应 `src/order_ledger.rs` 的 `is_terminal`。`Expired` 是
181
181
  日内单收盘作废、柜台把单判废这类场景,**别漏**:漏掉它等于把终态单当活单。
182
182
 
183
183
  三条容易踩的坑:
@@ -141,6 +141,7 @@ AKQuant 内置的指标(如 `SMA`, `EMA`)已经支持 Pickle 序列化。如
141
141
  7. **策略级风控状态可恢复**:策略限额、策略现金流、日损基线、回撤峰值、仅平仓激活态等会随快照保存并恢复,便于断点续跑后保持风控行为连续。
142
142
  8. **默认时区**:`run_from_checkpoint` 未显式传入 `timezone` 时,默认使用 `Asia/Shanghai`。
143
143
  9. **`self.I(factory=...)` 的工厂必须可 `pickle`**:快照会序列化策略实例,局部的 `lambda` 无法 `pickle`。请改用模块级函数 + `functools.partial`。
144
+ 10. **续跑开始时 `get_order` 查不到存档前的在途单**:`on_resume` / `on_start` 里用 `get_order` 查存档时仍在途的订单返回 `None`(同一时刻 `get_open_orders()` 也返回空列表),从第一根 bar 起恢复可查。不要把这里的 `None` 当成“单已经没了”而重复下单。
144
145
 
145
146
  ## 5. 完整示例
146
147
 
@@ -77,6 +77,9 @@ class MaCross(Strategy):
77
77
  - **越界返回 `None`,不抛异常**——预热期天然越界,抛错会逼每个策略都写 `try`
78
78
  - 回溯深度由 `lookback` 界定(默认 128),底层是有界环形缓冲:实盘是无限流,
79
79
  无界缓冲必然泄漏
80
+ - `ind[n]` 的 `n` 超出 `lookback` 时自动加长并告警一次:加长之前的值补不回来,此后满
81
+ `n+1` 根 bar 起才有值。请按告警在声明时写 `self.I(..., lookback=n+1)`。自动加长的上限是
82
+ 10000 与声明的 `lookback` 中的较大值,超过上限不再加长,单独告警一次,照旧返回 `None`
80
83
 
81
84
  未就绪时取值为 `None`(原生指标未满窗、预计算指标 asof 落空都归一成 `None`),
82
85
  因此判空统一写 `if value is None`,不必再区分 `NaN`。
@@ -766,6 +766,9 @@ AKQuant 提供了两种风格的策略开发接口:
766
766
 
767
767
  * **`self.get_history(count, ...)`**: 返回 `numpy.ndarray`,性能最高,适合计算指标。
768
768
  * **`self.get_history_df(count, ...)`**: 返回 `pandas.DataFrame`,包含 OHLCV,适合复杂分析。
769
+ * **保留长度(框架为每个标的保留多少根历史)**:回测里取 `history_depth`、`warmup_period` 与指标推断预热期中的最大值。实盘(`run_live`)按 `history_depth` 设置,`warmup_period` 不直接设定历史深度:开启自动预加载时(行情源提供 `history_provider`,如 klinedata,默认开启),它只参与计算预加载根数(取 3 倍推断预热期、500、`warmup_period` 与 `history_depth` 中的最大值,有上限),预加载完成后历史按实际预加载的根数开启;没有预加载时,在调用 `set_history_depth` 之前 `get_history` 会报 “History tracking is not enabled”。需要历史的实盘策略请显式调用 `self.set_history_depth(N)`。
770
+ * **请在 `__init__` / `on_start` 里设置历史深度**:运行中(开跑后)才第一次调用 `set_history_depth(N)` 时,调用之前的行情不会补回,需再积累 N 根 bar 才完整。
771
+ * **`count` 超过保留长度时会自动加长并告警一次**:`count` 更大时,框架第一次遇到就把保留长度加到 `count`,并打一条告警给出该设的值;加长之前已丢掉的数据补不回来,此后满 `count` 根 bar 起才是完整数据。请按告警在 `on_start` 里调用 `self.set_history_depth(N)` 提前设置(回测与实盘都生效)。预热期数据还不够(前面补 NaN)是正常情况,不会告警。自动加长有上限:取 10000 与显式声明的 `history_depth` / `warmup_period` 中的较大值;`count` 超过上限时不再加长,单独告警一次,照旧前面补 NaN,以免 `get_history(self.bars_held)` 这类随时间增长的 `count` 让实盘里的缓冲区无限增长。
769
772
 
770
773
  **`freq` 参数(tick/bar 双流下按需选择粒度)**
771
774
 
@@ -1340,7 +1343,7 @@ class MultiSymbolIncrementalStrategy(Strategy):
1340
1343
 
1341
1344
  说明:
1342
1345
 
1343
- * `ind[0]` 是当前 Bar 的值(`.value` 是它的别名),`ind[1]` 是上一根,越界返回 `None` 而不抛异常,因此判空统一写 `if val is None`。
1346
+ * `ind[0]` 是当前 Bar 的值(`.value` 是它的别名),`ind[1]` 是上一根,越界返回 `None` 而不抛异常,因此判空统一写 `if val is None`。`ind[n]` 的 `n` 超出 `lookback`(默认 128)时会自动加长并告警一次,此后满 `n+1` 根 bar 起才有值;请按告警在 `self.I(..., lookback=...)` 里设够。
1344
1347
  * 如果一个共享实例被多个 `symbol` 复用,框架会显式报错,提示改为 `factory=`。
1345
1348
  * `on_bar` / `on_tick` 里 `ind[0]` 取当前标的;在 `on_timer`、`on_cross_section` 等不属于某个标的的回调里,多标的指标用 `ind.of(symbol)[0]` 取值,不写标的会报错,见[自定义指标指南](./custom_indicator.md#indicator-of-symbol)。
1346
1349
  * `warmup_bars` 只会消费正式开始时间之前的历史数据,不会重复消费第一根有效 Bar。
@@ -114,7 +114,7 @@ trait Clock { fn now(&self) -> i64; fn timers(); } // 随事件推
114
114
 
115
115
  1. **定规矩**:新增核心逻辑不出现 PyO3,PyO3 只放在各模块的 `python.rs`(`engine/`、`execution/`、`analysis/`、`calendar/` 已是这个结构)。
116
116
  2. **策略派发 trait 化**(✅ 2026-11-06):引擎只经 `src/engine/strategy_handler.rs` 的 `StrategyHandler` 调用策略,Python 策略是实现之一(`PyStrategy`);`Engine::run_with_strategy` 可以直接运行 Rust 原生策略,`StrategyContext::submit_order` 是纯 Rust 下单入口;有原生策略跑完整会话的单测。
117
- 3. **按热点把策略语义下沉到 Rust**:Python 策略层约 1.1 万行(订单事件、OCO/括号单、`I()`、sizer、warmup、调度、本地止损……)。先下沉订单事件检查和框架钩子。
117
+ 3. **按热点把策略语义下沉到 Rust**:Python 策略层约 1.1 万行(订单事件、OCO/括号单、`I()`、sizer、warmup、调度、本地止损……)。先下沉订单事件检查和框架钩子。订单事件检查已下沉(2026-11-08,`src/order_ledger.rs`);下一块是 `on_bar_event` 的簿记(持仓 bar 计数、warmup 计数)。
118
118
  4. **出现 Rust 使用方时**,再决定是否单独发布核心 crate、Rust 策略如何加载(Rust 没有稳定 ABI,跨 `.so` 传 trait 对象不安全)。
119
119
 
120
120
  ### 6.3 现状与下一步
@@ -155,10 +155,10 @@ def run_akquant_backtest(df: pd.DataFrame) -> None:
155
155
 
156
156
  def on_bar(self, bar: Bar) -> None:
157
157
  symbol = bar.symbol
158
- closes = self.get_history(
159
- count=self.ma_long + 1, symbol=symbol, field="close"
160
- )
161
- if len(closes) < self.ma_long + 1:
158
+ # 两条均线最长只用到最近 ma_long 根收盘价,取 ma_long 根即可,
159
+ # 与 warmup_period 一致
160
+ closes = self.get_history(count=self.ma_long, symbol=symbol, field="close")
161
+ if len(closes) < self.ma_long:
162
162
  return
163
163
 
164
164
  # 为了避免未来函数,我们使用 [:-1] 切片,仅使用截止到昨天的数据
@@ -180,8 +180,9 @@ def initialize(ctx: Any) -> None:
180
180
  def on_bar(ctx: Any, bar: Bar) -> None:
181
181
  """核心交易逻辑,等价于类风格的 on_bar;self 全部换成 ctx."""
182
182
  symbol = bar.symbol
183
- closes = ctx.get_history(count=ctx.ma_long + 1, symbol=symbol, field="close")
184
- if len(closes) < ctx.ma_long + 1:
183
+ # 两条均线最长只用到最近 ma_long 根收盘价,取 ma_long 根即可,与 warmup_period 一致
184
+ closes = ctx.get_history(count=ctx.ma_long, symbol=symbol, field="close")
185
+ if len(closes) < ctx.ma_long:
185
186
  return
186
187
 
187
188
  # 为了避免未来函数,我们使用 [:-1] 切片,仅使用截止到昨天的数据
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "akquant"
7
- version = "0.3.82"
7
+ version = "0.3.84"
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.2.0" # Increment on behavior-changing updates
11
+ __engine_rule_version__ = "2.3.1" # Increment on behavior-changing updates
12
12
 
13
13
  from . import akquant as _akquant
14
14
  from . import log as _log
@@ -3096,6 +3096,37 @@ class StrategyContext:
3096
3096
  r"""运行时绩效统计(口径同 result.metrics)."""
3097
3097
  ...
3098
3098
 
3099
+ def order_events(
3100
+ self, stage: int, finalized_limit: int, trade_limit: int
3101
+ ) -> typing.Optional[tuple[list[tuple[Order, bool]], list[Trade], bool]]:
3102
+ r"""
3103
+ 本次订单事件检查要通知策略的回调(框架内部使用).
3104
+
3105
+ :param stage: 0 或 1
3106
+ :param finalized_limit: 终态留档上限
3107
+ :param trade_limit: 成交去重上限
3108
+ :return: None(无事件) 或 ([(order, fire_reject), ...], [trade, ...], done)
3109
+ """
3110
+ ...
3111
+
3112
+ def find_order(self, order_id: str) -> typing.Optional[Order]:
3113
+ r"""
3114
+ 按订单号查订单(本槽账本在途 → 上下文在途 → 终态留档).
3115
+
3116
+ :param order_id: 订单号
3117
+ :return: 订单快照, 查不到为 None
3118
+ """
3119
+ ...
3120
+
3121
+ def ensure_history_capacity(self, capacity: int) -> bool:
3122
+ r"""
3123
+ 把历史缓冲区的保留长度加到至少 ``capacity``(只增不减, 已有数据保留).
3124
+
3125
+ :param capacity: 需要保留的行数
3126
+ :return: 是否真的加长了(此前保留的不够)
3127
+ """
3128
+ ...
3129
+
3099
3130
  def history(
3100
3131
  self,
3101
3132
  symbol: str,
@@ -97,7 +97,6 @@ from ..strategy_framework_hooks import (
97
97
  normalize_dual_stream_declaration,
98
98
  )
99
99
  from ..strategy_loader import resolve_strategy_input
100
- from ..strategy_order_events import assign_slot_ownership
101
100
  from ..strategy_runtime_config import apply_strategy_runtime_config
102
101
  from ..strategy_window import (
103
102
  configure_engine_window_subscriptions,
@@ -3689,10 +3688,6 @@ def run_backtest(
3689
3688
  setattr(strategy_instance, "_owner_strategy_id", effective_strategy_id)
3690
3689
  for slot_key, slot_strategy in slot_strategy_instances.items():
3691
3690
  setattr(slot_strategy, "_owner_strategy_id", slot_key)
3692
- assign_slot_ownership(
3693
- {effective_strategy_id: strategy_instance, **slot_strategy_instances},
3694
- effective_strategy_id,
3695
- )
3696
3691
  # 数据周期注入 self.freq(只读)。freq 此前只用于 tick→bar 聚合、用完即弃,
3697
3692
  # 策略没有任何途径知道自己跑在什么周期上。纯 bar 数据不传 freq 时保持 None
3698
3693
  # (不从相邻 bar 时间戳差推断: 停牌/跨日/午休会让它给出错误答案)。
@@ -6333,10 +6328,6 @@ def run_from_checkpoint(
6333
6328
  setattr(strategy_instance, "_owner_strategy_id", effective_strategy_id)
6334
6329
  for slot_key, slot_strategy in slot_strategy_instances.items():
6335
6330
  setattr(slot_strategy, "_owner_strategy_id", slot_key)
6336
- assign_slot_ownership(
6337
- {effective_strategy_id: strategy_instance, **slot_strategy_instances},
6338
- effective_strategy_id,
6339
- )
6340
6331
  indicator_recorder = _attach_indicator_recorder(
6341
6332
  stream_emitter=indicator_stream_emitter,
6342
6333
  strategy_instance=strategy_instance,
@@ -127,7 +127,8 @@ class BrokerEventBridge:
127
127
  def _order_state_fingerprint(self, payload: Any) -> str:
128
128
  """委托状态指纹: 状态+已成交量+均价+拒单原因, **刻意不含时间戳**.
129
129
 
130
- 口径对齐回测侧 ``strategy_order_events.order_event_key``: 含时间戳的键
130
+ 口径对齐回测侧订单账本的状态指纹
131
+ (``src/order_ledger.rs::order_event_key``): 含时间戳的键
131
132
  每次重推都会变、去重完全失效(这类缺陷最常见的写法); 只按订单号去重又会
132
133
  把 ``New -> PartiallyFilled -> Filled`` 这些真实的状态推进整批吞掉。
133
134
 
@@ -508,7 +508,8 @@ class BrokerOrderSubmitter:
508
508
  """把前置风控拒单以 `Rejected` 委托事件回吐给策略.
509
509
 
510
510
  走 `on_order` + `on_reject` 而非错误回调: 与回测同口径——回测的风控拒单
511
- 经 `Event::ExecutionReport(Rejected)` 落到 `_emit_order_callback`, 策略靠
511
+ 经 `Event::ExecutionReport(Rejected)` 由 Rust 订单账本产出 on_order +
512
+ on_reject(`src/order_ledger.rs`), 策略靠
512
513
  `on_reject` 感知。实盘若改用 `on_error`, 同一份策略代码就得写两套感知逻辑。
513
514
  """
514
515
  self._risk_reject_seq += 1
@@ -532,7 +533,7 @@ class BrokerOrderSubmitter:
532
533
  """把一笔 Rejected 委托派发给 on_order + on_reject.
533
534
 
534
535
  broker_live 的事件桥直调 `on_order`(broker_event_bridge.py), 不走回测那套
535
- `_emit_order_callback` 的 Rejected→on_reject 级联, 故这里显式派发两者。
536
+ 订单账本的 Rejected→on_reject 级联, 故这里显式派发两者。
536
537
  """
537
538
  for callback_name in ("on_order", "on_reject"):
538
539
  callback = getattr(self._strategy, callback_name, None)
@@ -18,6 +18,8 @@ from dataclasses import dataclass, field
18
18
  from typing import Any, Callable, Deque, Dict, NamedTuple, Optional, Tuple, cast
19
19
 
20
20
  from .akquant import clone_indicator as _clone_rust_indicator
21
+ from .log import get_logger
22
+ from .strategy_history import AUTO_GROW_LIMIT
21
23
 
22
24
  #: 标签未知(基础周期不可解析)时 ``set_provisional`` 记的占位标签; 不发流事件。
23
25
  UNKNOWN_LABEL = -1
@@ -25,6 +27,8 @@ UNKNOWN_LABEL = -1
25
27
  #: 回溯缓冲默认深度。足够绝大多数形态判断(交叉、背离、N 根新高)。
26
28
  DEFAULT_LOOKBACK = 128
27
29
 
30
+ _logger = get_logger("strategy")
31
+
28
32
 
29
33
  def _normalize_value(value: Any) -> Any:
30
34
  """NaN 归一成 None: 两条路的"未就绪"对用户必须长一个样."""
@@ -179,6 +183,10 @@ class IndicatorDeclaration:
179
183
 
180
184
  # --- 序列回溯 ---
181
185
  lookback: int = DEFAULT_LOOKBACK
186
+ #: 回看超出 lookback 自动加长时是否已告警过(只告警一次)
187
+ lookback_grown_warned: bool = False
188
+ #: 回看超出自动加长上限时是否已告警过(只告警一次)
189
+ lookback_limit_warned: bool = False
182
190
  #: symbol -> 最近 lookback 个**已确认**取值(含未就绪时的 None)
183
191
  history: Dict[str, Deque[Any]] = field(default_factory=dict)
184
192
 
@@ -239,6 +247,62 @@ class IndicatorDeclaration:
239
247
  self.history[symbol] = buffer
240
248
  buffer.append(value)
241
249
 
250
+ def ensure_lookback(self, symbol: str, offset: int, name: str) -> None:
251
+ """``offset`` 超出 ``lookback`` 时把所有 symbol 的回溯缓冲加长到够用.
252
+
253
+ 有临时值时 ``[n]`` 取的是已确认序列的第 n-1 个(见 :meth:`value_at`)。
254
+ 加长前已淘汰的值补不回来。第一次加长时告警一次。
255
+
256
+ 门槛直接比 ``lookback``: 它就是回溯缓冲(``deque``)的实际长度, 不存在
257
+ "声明了而缓冲没跟上"的情况。
258
+
259
+ 需要的长度超过自动加长上限 ``max(AUTO_GROW_LIMIT, 声明的 lookback)`` 时
260
+ 不加长、单独告警一次, 照旧返回 ``None``: 防止 ``ind[self.bars_held]`` 这类
261
+ 随时间增长的下标让缓冲在实盘里无界增长。自动加长只会加到这个上限以内,
262
+ 所以拿当前 ``lookback`` 算出的上限与拿声明值算的相同。
263
+
264
+ :param name: 指标名, 只用于告警文案
265
+ """
266
+ index = int(offset)
267
+ if index < 0:
268
+ return
269
+ if symbol in self.provisional and index > 0:
270
+ index -= 1
271
+ needed = index + 1
272
+ previous = int(self.lookback)
273
+ if needed <= previous:
274
+ return
275
+ limit = max(AUTO_GROW_LIMIT, previous)
276
+ if needed > limit:
277
+ if not self.lookback_limit_warned:
278
+ self.lookback_limit_warned = True
279
+ _logger.warning(
280
+ "指标 %s 回看 [%d] 超过自动加长上限 %d: 不再自动加长, 照旧返回 "
281
+ "None。确实需要回看这么远, 请在声明时写 self.I(..., lookback=%d)",
282
+ name,
283
+ int(offset),
284
+ limit,
285
+ needed,
286
+ )
287
+ return
288
+ self.lookback = needed
289
+ for key, buffer in list(self.history.items()):
290
+ self.history[key] = deque(buffer, maxlen=needed)
291
+ if self.lookback_grown_warned:
292
+ return
293
+ self.lookback_grown_warned = True
294
+ _logger.warning(
295
+ "指标 %s 回看 [%d] 超出 lookback=%d: 已自动加长到 %d。加长之前的值"
296
+ "补不回来, 此后满 %d 根 bar 起才有值; 请在声明时写 "
297
+ "self.I(..., lookback=%d)",
298
+ name,
299
+ int(offset),
300
+ previous,
301
+ needed,
302
+ needed,
303
+ needed,
304
+ )
305
+
242
306
  def value_at(self, symbol: str, offset: int) -> Any:
243
307
  """取该 symbol 前 ``offset`` 根的取值; 越界返回 ``None``.
244
308
 
@@ -406,8 +470,18 @@ class IndicatorBinding:
406
470
  return str(resolved)
407
471
 
408
472
  def __getitem__(self, offset: int) -> Any:
409
- """``ind[0]`` 当前值, ``ind[n]`` 前 n 根; 越界返回 ``None``."""
410
- return self._declaration().value_at(self._resolved_symbol(), offset)
473
+ """``ind[0]`` 当前值, ``ind[n]`` 前 n 根; 越界返回 ``None``.
474
+
475
+ ``n`` 超出 ``lookback`` 时自动加长并告警一次(此前是永远返回 ``None``,
476
+ 与预热期还没有值分不开); 超过自动加长上限时不加长, 见
477
+ :meth:`IndicatorDeclaration.ensure_lookback`。
478
+ """
479
+ declaration = self._declaration()
480
+ symbol = self._resolved_symbol()
481
+ # 快路径: 下标在 lookback 之内时不可能需要加长(有临时值时需要的更少)。
482
+ if int(offset) >= declaration.lookback:
483
+ declaration.ensure_lookback(symbol, offset, self._name)
484
+ return declaration.value_at(symbol, offset)
411
485
 
412
486
  def __len__(self) -> int:
413
487
  """当前 symbol 已积累的回溯长度."""
@@ -6,7 +6,7 @@ Extracted from the live runner for direct unit testing and reuse by the
6
6
 
7
7
  from typing import Any, Dict
8
8
 
9
- #: 终态状态文本(小写)。与回测侧 ``strategy_order_events._TERMINAL_ORDER_STATUSES``
9
+ #: 终态状态文本(小写)。与回测侧 ``src/order_ledger.rs`` 的 ``is_terminal``
10
10
  #: 保持同一口径——两边都必须含 ``expired``, 否则日内单收盘作废后仍被当活单。
11
11
  _TERMINAL_STATUSES = {"filled", "cancelled", "canceled", "rejected", "expired"}
12
12
 
@@ -58,7 +58,6 @@ from ..strategy_framework_hooks import (
58
58
  normalize_dual_stream_declaration,
59
59
  )
60
60
  from ..strategy_loader import resolve_strategy_input
61
- from ..strategy_order_events import assign_slot_ownership
62
61
  from ..strategy_runtime_config import apply_strategy_runtime_config
63
62
  from ..strategy_window import configure_engine_window_subscriptions
64
63
  from ..utils import format_metric_value
@@ -334,7 +333,8 @@ def _instruments_to_snapshots(
334
333
  class _StrategyCallbackFanout:
335
334
  """多槽位 broker_live 的柜台回调路由器.
336
335
 
337
- 与回测/paper 的槽位语义一致(``strategy_order_events._slot_filter``):
336
+ 与回测/paper 的槽位语义一致(``Rust 订单账本的槽位归属规则
337
+ (src/order_ledger.rs::SlotOwnership)``):
338
338
  订单、成交、执行回报与 OCO/Bracket 协调(``_process_order_groups``)按
339
339
  ``owner_strategy_id`` 只派给所属槽位, owner 为空或不在任何槽位的归默认
340
340
  槽位; 账户回调 ``on_portfolio_update`` 是全账户的, 广播给全部槽位。
@@ -1349,10 +1349,6 @@ class LiveRunner:
1349
1349
  setattr(strategy_instance, "_owner_strategy_id", effective_strategy_id)
1350
1350
  for slot_id, slot_strategy in slot_strategy_instances.items():
1351
1351
  setattr(slot_strategy, "_owner_strategy_id", slot_id)
1352
- assign_slot_ownership(
1353
- {effective_strategy_id: strategy_instance, **slot_strategy_instances},
1354
- effective_strategy_id,
1355
- )
1356
1352
 
1357
1353
  default_ready = getattr(self, "trading_mode", "paper") != "broker_live"
1358
1354
  for target in [strategy_instance, *slot_strategy_instances.values()]: