akquant 0.3.83__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.
- {akquant-0.3.83 → akquant-0.3.84}/CHANGELOG.md +8 -0
- {akquant-0.3.83 → akquant-0.3.84}/Cargo.lock +1 -1
- {akquant-0.3.83 → akquant-0.3.84}/Cargo.toml +1 -1
- {akquant-0.3.83 → akquant-0.3.84}/PKG-INFO +1 -1
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/strategy.md +5 -1
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/strategy.md +3 -1
- {akquant-0.3.83 → akquant-0.3.84}/pyproject.toml +1 -1
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/__init__.py +1 -1
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_trading_api.py +6 -1
- {akquant-0.3.83 → akquant-0.3.84}/server.json +3 -3
- {akquant-0.3.83 → akquant-0.3.84}/src/engine/core.rs +72 -14
- {akquant-0.3.83 → akquant-0.3.84}/src/engine/python.rs +4 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/order_ledger.rs +89 -12
- {akquant-0.3.83 → akquant-0.3.84}/src/pipeline/stages/channel.rs +149 -1
- {akquant-0.3.83 → akquant-0.3.84}/src/pipeline/stages/strategy.rs +6 -10
- {akquant-0.3.83 → akquant-0.3.84}/tests/fixtures/order_event_traces.json +596 -414
- akquant-0.3.84/tests/test_cancel_same_cycle.py +354 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_public_api.py +3 -3
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_order_event_timing.py +39 -1
- {akquant-0.3.83 → akquant-0.3.84}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/.github/dependabot.yml +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/.github/workflows/deploy-docs.yml +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/.github/workflows/docs-quality.yml +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/.github/workflows/release.yml +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/.gitignore +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/.pre-commit-config.yaml +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/CODE_OF_CONDUCT.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/CONTRIBUTING.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/LICENSE +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/README.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/assets/dashboard_preview.png +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/assets/logo.svg +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/assets/social_preview.png +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/CNAME +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/assets/akquant-icon.svg +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/assets/akquant-logo.svg +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/assets/reports/akquant_report.html +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/custom_strategy_loader.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/llm.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/ml.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/runtime_config.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/timezone.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/advanced/warm_start.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/analysis.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/custom_indicator.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/data.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/examples.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/factor.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/mcp.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/optimization.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/python_basics.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/quant_basics.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/testing.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/guide/visualization.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/index.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/meta/architecture.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/meta/internals.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/reference/api.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/start/first_strategy.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/start/installation.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/start/quickstart.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/start/setup_guide.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/01_foundations.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/02_programming.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/03_data.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/04_backtest_engine.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/05_strategy.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/06_stock_a.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/07_futures.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/08_options.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/09_funds.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/10_analysis.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/11_optimization.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/12_ml.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/13_visualization.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/14_factor.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/15_live_trading.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/en/textbook/index.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/javascripts/mathjax.js +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/javascripts/search-lang-filter.js +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/llms.txt +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/robots.txt +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/adding_a_broker.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/custom_strategy_loader.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/llm.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/ml.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/runtime_config.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/timezone.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/advanced/warm_start.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/analysis.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/custom_indicator.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/data.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/examples.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/factor.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/mcp.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/optimization.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/python_basics.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/quant_basics.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/testing.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/guide/visualization.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/index.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/meta/architecture.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/meta/columnar-rfc.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/meta/internals.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/reference/api.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/start/first_strategy.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/start/installation.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/start/quickstart.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/start/setup_guide.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/00_glossary.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/01_foundations.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/02_programming.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/03_data.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/04_backtest_engine.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/05_strategy.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/06_stock_a.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/07_futures.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/08_options.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/09_funds.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/10_analysis.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/11_optimization.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/12_ml.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/13_visualization.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/14_factor.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/15_live_trading.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/ROADMAP.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/appendix_cite.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/appendix_pitfalls.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/appendix_setup.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/capstone.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/docs/zh/textbook/index.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/01_quickstart.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/02_parameter_optimization.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/03_parameter_optimization_advanced.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/04_mixed_assets.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/05_live_trading_ctp.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/06_complex_orders.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/07_option_test.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/08_event_callbacks.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/09_ml_framework.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/10_ml_walk_forward.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/11_plot_visualization.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/12_wfo_integrated.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/13_quantstats_report.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/14_multi_frequency.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/15_plot_intraday.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/16_adj_returns_signal.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/17_readme_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/18_benchmark_multisymbol.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/19_factor_expression.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/20_risk_management_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/21_warm_start_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/22_strategy_runtime_config_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/23_functional_callbacks_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/24_functional_tick_simulation_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/25_streaming_backtest_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/26_streaming_quickstart.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/27_streaming_monitoring_console.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/28_streaming_alerts_and_persist.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/29_streaming_event_report.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/30_streaming_report_oneclick.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/31_streaming_live_console.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/32_streaming_live_web.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/33_report_and_analysis_outputs.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/34_multi_strategy_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/35_custom_broker_registry_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/36_trailing_orders.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/37_feed_replay_alignment_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/38_live_functional_strategy_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/39_live_broker_submit_order_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/39_live_mixed_broker_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/40_functional_multi_slot_risk_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/41_live_multi_slot_orchestration_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/42_live_broker_event_audit_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/43_target_weights_rebalance.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/44_strategy_source_loader_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/45_talib_indicator_playbook_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/46_broker_profile_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/47_margin_liquidation_audit_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/48_margin_liquidation_priority_compare.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/49_on_expiry_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/50_framework_hooks_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/51_class_tick_callbacks_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/52_pre_open_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/53_timer_to_pre_open_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/54_functional_pre_open_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/55_functional_ml_walk_forward.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/56_functional_warm_start_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/57_functional_multi_slot_warm_start_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/58_incremental_bootstrap_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/59_akshare_etf_rotation.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/60_custom_indicator_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/61_indicator_visualization_export_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/61_signal_platform_webhook.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/62_indicator_streaming_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/63_indicator_ws_bridge_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/64_indicator_live_web.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/65_bar_generator.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/66_logging_audit_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/67_lwc_trade_review.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/68_backtest_tick_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/69_live_runtime_config_dispatch_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/70_csv_multi_symbol_import_demo.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/71_native_multi_timeframe_live.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/72_declarative_indicators.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/73_lwc_live_indicators.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/74_indicator_scripts.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/75_intrabar_indicators.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/76_tick_intrabar_indicators.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/77_heikin_ashi_indicator.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/78_chart_drawings.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/79_multi_symbol_indicator_timer.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/README.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/benchmark_utils.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/pb_mock.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/strategies/01_stock_dual_moving_average.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/strategies/02_stock_grid_trading.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/strategies/03_stock_atr_breakout.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/strategies/04_stock_momentum_rotation.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/strategies/05_stock_momentum_rotation_timer.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/strategies/06_stock_momentum_rotation_bucket.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/strategies/07_stock_momentum_rotation_on_timer.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/strategies/08_target_positions_long_short.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/strategies/09_stock_momentum_rotation_after_bar.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/strategies/README.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch01_quickstart.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch01_quickstart_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch02_programming.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch03_data.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch04_comparison.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch04_comparison_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch05_strategy.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch05_strategy_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch06_stock_a.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch06_stock_a_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch07_futures.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch07_futures_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch08_options.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch08_options_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch09_funds.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch09_funds_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch09_portfolio.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch09_portfolio_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch10_analysis.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch10_analysis_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch11_optimization.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch11_optimization_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch12_ml.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch12_ml_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch13_visualization.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch13_visualization_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch14_factor.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch15_live_trading.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch15_live_trading_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch15_strategy_loader.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch15_strategy_loader_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch16_indicators.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/examples/textbook/ch16_indicators_functional.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/mkdocs.yml +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/akquant.pyi +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/analysis/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/analysis/benchmark.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/analyzer_plugin.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/backtest/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/backtest/__init__.pyi +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/backtest/_viz.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/backtest/engine.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/backtest/fill_mode.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/backtest/merge.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/backtest/result.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/backtest/tick_input.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/bar_generator.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/chart/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/chart/_drawing.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/chart/_normalize.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/chart/d3kline.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/checkpoint.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/cli.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/config.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/data.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/execution/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/execution/base.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/execution/sim.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/factor/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/factor/engine.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/factor/ops.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/factor/parser.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/feed_adapter.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/fund/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/futures/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/base.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/broker_event_adapter.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/broker_event_bridge.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/broker_event_mapper.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/broker_execution.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/broker_models.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/broker_recovery.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/broker_runtime.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/broker_state_cache.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/broker_stats.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/broker_strategy_api.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/brokers/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/brokers/builtins.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/brokers/ctp/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/brokers/ctp/adapter.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/brokers/ctp/native.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/brokers/miniqmt/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/brokers/miniqmt/stub.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/brokers/plugins.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/brokers/ptrade/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/brokers/ptrade/stub.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/brokers/replay/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/brokers/replay/gateway.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/ctp_adapter.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/ctp_native.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/factory.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/local_stop_book.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/mapper.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/miniqmt.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/models.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/order_audit.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/order_errors.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/order_receipt.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/order_submitter.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/protocols.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/ptrade.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/registry.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/symbol_match.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/gateway/trader_base.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/indicator_declaration.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/indicator_identity.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/indicator_recording.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/indicator_script.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/indicator_stream.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/live/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/live/_facade.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/live/_gateway_setup.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/live/_paper_execution.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/live/_payload_utils.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/live/_preload.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/live/_runner.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/live/_strategy_maps.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/live/_stream_sink.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/log.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/lwc/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/lwc/_drawings.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/lwc/_indicators.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/lwc/_payload.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/lwc/_template.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/lwc/assets/LICENSE.lightweight-charts +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/lwc/assets/NOTICE.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/lwc/assets/lightweight-charts.standalone.production.js +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/lwc/review.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/__main__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/guides/data-format.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/guides/indicators.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/guides/market-rules.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/guides/orders-and-positions.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/guides/strategy-skeleton.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/server.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/service/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/service/api_index.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/service/check.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/service/data.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/service/errors.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/service/guides.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/service/paths.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/service/records.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/service/runs.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/mcp/worker.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/ml/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/ml/model.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/normalize.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/optimize.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/option/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/params.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/params_adapter.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/plot/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/plot/_market_data.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/plot/analysis.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/plot/dashboard.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/plot/indicator.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/plot/report.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/plot/strategy.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/plot/utils.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/precomputed.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/py.typed +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/risk.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/schema.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/sessions_config.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/signal/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/signal/dedup.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/signal/dispatcher.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/signal/models.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/signal/protocols.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/signal/registry.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/signal/security.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/signal/sinks.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/signal/sources/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/signal/sources/http.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/signal/sources/queue.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/signal/sources/redis_stream.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/sizer.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/stock/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_drawing.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_events.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_framework_hooks.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_history.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_inspect.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_loader.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_logging.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_ml.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_order_events.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_position.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_preload.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_runtime_config.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_scheduler.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_stats.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_time.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/strategy_window.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/stream_schema.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/talib/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/talib/_kernels.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/talib/backend.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/talib/core.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/talib/funcs.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/talib/lookback.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/trade_stream.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/utils/__init__.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/utils/inspector.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/python/akquant/utils/price.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/requirements-dev.txt +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/scripts/bench_engine_perbar.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/scripts/cargo-test.sh +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/scripts/check_docs_api_examples.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/scripts/check_docs_links.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/scripts/check_release.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/scripts/dev-check.sh +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/scripts/golden_baseline_report.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/scripts/profile_backtest.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/scripts/stress_out_of_core.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/account.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/analysis/excursion_tests.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/analysis/live_stats.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/analysis/mod.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/analysis/python.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/analysis/result.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/analysis/strategy_stats.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/analysis/tests.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/analysis/tracker.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/analysis/types.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/bin/stub_gen.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/calendar/clock.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/calendar/mod.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/calendar/python.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/calendar/resolver.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/calendar/schedule.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/calendar/trading_calendar.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/clock.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/context.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/data/aggregator.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/data/batch.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/data/client.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/data/columns.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/data/compute.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/data/feed.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/data/mod.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/data/parquet_stream.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/data/python_window.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/data/window.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/engine/mod.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/engine/state.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/engine/strategy_handler.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/error.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/event.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/event_manager.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/execution/common.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/execution/crypto.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/execution/forex.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/execution/futures.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/execution/matcher.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/execution/mod.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/execution/option.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/execution/python.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/execution/realtime.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/execution/simulated.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/execution/slippage.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/execution/stock.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/execution/validation.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/history.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/momentum.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/momentum_oscillators.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/momentum_rates.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/moving_average.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/moving_average_compound.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/moving_average_core.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/moving_average_hilbert.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/moving_average_transforms.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/moving_average_windowed.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/trend.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/trend_directional.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/trend_oscillators.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/trend_regression.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/volatility.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/volatility_candle.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/volatility_price.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/volatility_stats.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators/volume.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/indicators.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/lib.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/log_context.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/margin/calculator.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/margin/engine.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/margin/mod.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/market/china.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/market/core.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/market/corporate_action.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/market/fee_override.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/market/fund.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/market/futures.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/market/manager.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/market/mod.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/market/option.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/market/simple.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/market/stock.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/model/corporate_action.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/model/instrument.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/model/market_data.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/model/mod.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/model/order.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/model/timer.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/model/types.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/order_manager.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/pipeline/mod.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/pipeline/processor.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/pipeline/runner.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/pipeline/stages/cleanup.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/pipeline/stages/data.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/pipeline/stages/execution.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/pipeline/stages/mod.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/pipeline/stages/shared.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/pipeline/stages/statistics.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/portfolio.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/risk/common.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/risk/config.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/risk/futures.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/risk/manager.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/risk/mod.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/risk/option.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/risk/portfolio.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/risk/rule.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/risk/stock.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/risk/strategy_limits.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/settlement/expiry.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/settlement/handler.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/settlement/manager.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/settlement/mod.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/settlement/option.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/signal_port.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/src/statistics/mod.rs +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/_checkpoint_0371.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/_mock_ctx.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/_order_event_scenarios.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/_plot_cases.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/fixtures/checkpoint_0371_minute.pkl +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/gateway_contract/test_event_bridge_contract.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/gateway_contract/test_recovery_contract.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/gateway_contract/test_submitter_contract.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/BASELINE_REPORT.md +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/futures_margin/equity_curve.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/futures_margin/metrics.json +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/futures_margin/orders.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/futures_margin/trading_day_ends.json +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/futures_night_weekend/equity_curve.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/futures_night_weekend/metrics.json +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/futures_night_weekend/orders.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/futures_night_weekend/trades.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/futures_night_weekend/trading_day_ends.json +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/option_basic/equity_curve.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/option_basic/metrics.json +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/option_basic/orders.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/option_basic/trading_day_ends.json +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/order_cancel/equity_curve.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/order_cancel/metrics.json +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/order_cancel/orders.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/order_cancel/trades.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/order_cancel/trading_day_ends.json +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/stock_minute_auction/equity_curve.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/stock_minute_auction/metrics.json +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/stock_minute_auction/orders.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/stock_minute_auction/trades.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/stock_minute_auction/trading_day_ends.json +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/stock_t1/equity_curve.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/stock_t1/metrics.json +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/stock_t1/orders.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/stock_t1/trades.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/baselines/stock_t1/trading_day_ends.json +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/data/future_margin.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/data/future_margin.parquet.sha256 +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/data/futures_night_weekend.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/data/futures_night_weekend.parquet.sha256 +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/data/option_basic.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/data/option_basic.parquet.sha256 +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/data/order_cancel.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/data/order_cancel.parquet.sha256 +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/data/stock_minute_auction.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/data/stock_minute_auction.parquet.sha256 +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/data/stock_t1.parquet +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/data/stock_t1.parquet.sha256 +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/gen_data.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/runner.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/strategies/futures_margin.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/strategies/futures_night_weekend.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/strategies/option_basic.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/strategies/order_cancel.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/strategies/stock_minute_auction.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/strategies/stock_t1.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/golden/test_golden.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/mcp_server/conftest.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/mcp_server/test_cli.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/mcp_server/test_mcp_api_index.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/mcp_server/test_mcp_check.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/mcp_server/test_mcp_data.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/mcp_server/test_mcp_errors.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/mcp_server/test_mcp_guides.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/mcp_server/test_mcp_main.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/mcp_server/test_mcp_paths.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/mcp_server/test_mcp_records.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/mcp_server/test_mcp_runs.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/mcp_server/test_mcp_server.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_account_risk_rules.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_api_rename_cash.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_api_rename_composites.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_api_rename_equity.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_api_rename_holding_bars.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_api_rename_positions.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_api_rename_rebalance.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_api_rename_scheduler.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_backtest_fund_fee_rules.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_backtest_params.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_backtest_symbol_column_aliases.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_backtest_tick_aggregate.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_backtest_tick_entry.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_backtest_tick_history.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_bar_aggregator_live.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_bar_generator.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_bar_hook_bookkeeping_invariants.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_bench_noise_gate.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_boundary_bar_fill.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_bridge_adapts_events.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_bridge_drives_order_groups.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_dropped_counts_periodic_summary.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_event_adapter.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_event_adapter_local_id.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_event_symbol_filter.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_event_task_isolation.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_execution_local_stops.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_execution_read_path_parity.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_execution_stop_requeue.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_live_risk_enforcement.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_order_redelivery_dedup.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_plugins.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_position_sync.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_profile_cn_stock.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_recovery_cadence.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_recovery_error_visibility.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_seed_baseline.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_trade_redelivery_dedup.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_broker_trade_stats.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_buying_power_new_symbol.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_cancel_request_persistence.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_candle_exporters.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_candle_render_type.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_chart_d3kline.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_chart_drawing_normalize.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_chart_normalize.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_check_release.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_checkpoint_0371_compat.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_checkpoint_option_rules.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_close_position_delegate.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_composed_ctx_not_ready.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_cost_config_consolidation.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_cross_section_day_order_next_open_fill.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_ctp_classify_order_error.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_custom_matcher.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_data_catalog.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_date_only_rewrite_cache.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_day_order_expiry_no_zombie_fill.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_deterministic_order.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_docs_api_examples.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_docs_links.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_drawing_stream.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_dual_stream_freq_inference.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_engine.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_engine_python_crossings.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_event_model_parity.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_examples_regression.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_execution_binding.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_execution_broker.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_execution_broker_reads_routed.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_execution_composed_parity.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_execution_read_delegation.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_execution_sim.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_execution_write_delegation.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_expiry_terminal_dispatch.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_expiry_trade_accounting.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_factor_engine.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_factor_ops.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_feed_adapter.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_fetch_akshare_symbol.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_fill_mode.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_broker_live_cancel.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_broker_live_reads.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_broker_models_ext.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_broker_state_cache.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_broker_state_invalidation.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_broker_submitter_quantity.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_broker_submitter_readiness.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_broker_submitter_signature.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_brokers_paths.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_builtins_registry.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_callbacks.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_cancel_failure.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_ctp_adapter.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_ctp_dual_stream.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_ctp_native.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_expired_order_status.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_factory.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_mapper.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_mixed_market_trader.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_optional_market.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_order_error_classification.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_order_submitter_extra.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_order_tick_reject_soft.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_order_tick_validation.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_place_order_failure.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_registry.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_sim_submit_guard.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_symbol_match.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_tif_mapping.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_gateway_trader_base.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_get_order_finalized.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_grid_search_all_failed.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_heikin_ashi.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_history_depth_after_start.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_history_lookback_autogrow.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_hooks_functional_wrapper.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_hooks_inherited_via_base.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_indicator_declaration.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_indicator_declaration_review.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_indicator_dual_stream.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_indicator_duplicate_name.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_indicator_intrabar.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_indicator_live_web_example.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_indicator_multi_symbol_access.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_indicator_non_finite.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_indicator_owner_identity.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_indicator_recording.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_indicator_script.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_inspector.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_instrument_default_tick.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_instrument_fee_override.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_instrument_slippage.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_instrument_symbol_suffix_normalization.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_instruments_config_symbol_mismatch.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_lifecycle_hooks.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_lifecycle_review_fixes.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_auto_preload.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_broker_slot_routing.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_duration_wallclock.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_freq_injection.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_market_config_by_asset_type.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_mixed_market_broker.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_multi_slot_windows.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_paper_execution_params.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_preload_normalize.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_preload_runner.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runner.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runner_bounded_session.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runner_broker_bridge.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runner_broker_readiness.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runner_broker_recovery.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runner_broker_submitter.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runner_client_order_id.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runner_instrument_snapshots.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runner_lifecycle.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runner_no_market_data_warning.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runner_order_request_cache.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runner_sigterm_stop.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runner_stop_remap.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_runtime_config_dispatch.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_subscribe_forwards_to_gateway.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_live_summary_stop_reason.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_local_stop_book.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_local_stop_book_threadsafe.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_local_stop_scenario.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_log_sensitive_filter.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_lwc_drawings.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_lwc_indicators.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_lwc_review.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_merge_results.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_ml_rolling_training_threshold.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_multi_slot_ownership.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_multisymbol_cross_section_consistency.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_naive_timezone.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_normalize.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_oco_bracket_broker_live_scenario.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_on_execution_report_noop.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_on_timer_suspension_deadlock.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_optimize_functional_params.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_optimize_params.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_option_expiry_settlement.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_option_fees.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_option_market_side_effects.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_order_api_return_values.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_order_audit.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_order_callback_dedupe.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_order_event_traces.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_order_ledger_binding.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_order_receipt.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_order_receipt_backtest.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_order_target_lot_size_alignment.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_orders_df.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_params.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_params_adapter.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_parquet_stream.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_partial_filled_status.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_pickle_model_objects.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_plot_defaults.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_portfolio.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_position_effect_flip.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_pre_open_live_warns.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_product_presets.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_quickstart_stream_consistency.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_reduce_only_sell_affordability.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_removed_wrappers.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_replay_live_end_to_end.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_replay_market_gateway.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_report_helpers.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_report_plot_extensions.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_result_analysis_extensions.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_review_minors_cleanup.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_run_live_indicator_stream.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_session_config.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_session_matching.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_session_resolver.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_signal_module.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_signal_port_injection.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_signal_sources_p3.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_sizer_auto_resize.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_slippage_bare_number.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_sort_determinism.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_source_trading_day.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_stock_tick_validation.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_stop_id_remap_scenario.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_stop_orders.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_stop_retry_client_order_id.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_custom_init_params.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_drawing.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_events_stop_hook.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_extras.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_freq_attribute.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_history_dual_stream.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_history_missing_symbol_warning.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_inspect.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_loader_candidates.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_loader_exports.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_loader_pickle.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_loader_plugins.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_loader_reload.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_ml_dual_stream.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_order_group_lock.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_params.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_session_api.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_sizing_broker_live_guard.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_stats.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_stats_parity.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_strategy_timers_indicators.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_stream_series_key.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_subscribe_live_warns.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_suspension_zero_volume_gtc_terminal.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_symbols_filtering.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_symbols_whitelist_rust.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_t_plus_one.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_talib_alignment.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_talib_backend.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_talib_compat.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_target_orders_core.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_tick_indicators.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_tick_input.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_trade_stream_bridge.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_trades_df.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_trading_day_lifecycle.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_utils_price.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_vectorized.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_version.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_viz_namespace.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_volume_limit.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_walk_forward_kwargs.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_warm_start_slippage_inherit.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_warmup_period_per_symbol.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_window_checkpoint.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_window_live_replay.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_window_sessions.py +0 -0
- {akquant-0.3.83 → akquant-0.3.84}/tests/test_window_subscriptions.py +0 -0
|
@@ -7,6 +7,14 @@ 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
|
+
|
|
10
18
|
## [0.3.83] - 2026-11-08
|
|
11
19
|
|
|
12
20
|
> **规则版本 2.3.0**:持仓超过历史深度的交易,`trades_df` 里的 `mae`、`mfe`、`max_drawdown_pct` 会变成正确值(此前被截断,常见结果是 0),成交、盈亏、权益与各项收益指标不变;取历史 `count` 超过保留长度、或指标回看超出 `lookback` 的策略,此前拿到的是残缺数据,现在自动加长后结果会变。
|
|
@@ -609,7 +609,11 @@ class MyStrategy(Strategy):
|
|
|
609
609
|
self.sell(symbol=bar.symbol, quantity=100)
|
|
610
610
|
```
|
|
611
611
|
|
|
612
|
-
**
|
|
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.
|
|
613
617
|
|
|
614
618
|
## 5. Orders & Execution
|
|
615
619
|
|
|
@@ -766,7 +766,9 @@ AKQuant 提供了两种风格的策略开发接口:
|
|
|
766
766
|
|
|
767
767
|
* **`self.get_history(count, ...)`**: 返回 `numpy.ndarray`,性能最高,适合计算指标。
|
|
768
768
|
* **`self.get_history_df(count, ...)`**: 返回 `pandas.DataFrame`,包含 OHLCV,适合复杂分析。
|
|
769
|
-
*
|
|
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` 让实盘里的缓冲区无限增长。
|
|
770
772
|
|
|
771
773
|
**`freq` 参数(tick/bar 双流下按需选择粒度)**
|
|
772
774
|
|
|
@@ -8,7 +8,7 @@ try:
|
|
|
8
8
|
except metadata.PackageNotFoundError:
|
|
9
9
|
__version__ = "0.0.0+unknown"
|
|
10
10
|
|
|
11
|
-
__engine_rule_version__ = "2.3.
|
|
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
|
|
@@ -98,7 +98,12 @@ def get_order(strategy: Any, order_id: str) -> Optional[Any]:
|
|
|
98
98
|
pending_canceled_ids = set()
|
|
99
99
|
setattr(strategy, "_pending_canceled_order_ids", pending_canceled_ids)
|
|
100
100
|
canceled_order_ids.update(str(oid) for oid in pending_canceled_ids if oid)
|
|
101
|
-
|
|
101
|
+
# 已请求撤单只改显示未完成的单; 已成交/已撤/已拒/已过期的终态单原样返回。
|
|
102
|
+
if str(order_id) in canceled_order_ids and getattr(order, "status", None) in (
|
|
103
|
+
OrderStatus.New,
|
|
104
|
+
OrderStatus.Submitted,
|
|
105
|
+
OrderStatus.PartiallyFilled,
|
|
106
|
+
):
|
|
102
107
|
try:
|
|
103
108
|
order.status = OrderStatus.Cancelled
|
|
104
109
|
except Exception:
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "io.github.akfamily/akquant",
|
|
4
4
|
"title": "AKQuant",
|
|
5
5
|
"description": "Write and backtest trading strategies with AKQuant: API lookup, strategy checks, backtest runs",
|
|
6
|
-
"version": "0.3.
|
|
6
|
+
"version": "0.3.84",
|
|
7
7
|
"websiteUrl": "https://akquant.akfamily.xyz/guide/mcp/",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/akfamily/akquant",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"registryType": "pypi",
|
|
15
15
|
"registryBaseUrl": "https://pypi.org",
|
|
16
16
|
"identifier": "akquant",
|
|
17
|
-
"version": "0.3.
|
|
17
|
+
"version": "0.3.84",
|
|
18
18
|
"runtimeHint": "uvx",
|
|
19
19
|
"runtimeArguments": [
|
|
20
20
|
{
|
|
21
21
|
"type": "named",
|
|
22
22
|
"name": "--with",
|
|
23
|
-
"value": "akquant[mcp]==0.3.
|
|
23
|
+
"value": "akquant[mcp]==0.3.84",
|
|
24
24
|
"description": "Install the optional MCP dependencies (MCP SDK and AKShare) together with AKQuant"
|
|
25
25
|
}
|
|
26
26
|
],
|
|
@@ -294,6 +294,14 @@ pub struct Engine {
|
|
|
294
294
|
/// 本时间步闭合、尚未派发给策略的窗口 bar。DataProcessor 写入, StrategyProcessor
|
|
295
295
|
/// 在基础事件回调之后取走派发。
|
|
296
296
|
pub(crate) pending_window_bars: Vec<Bar>,
|
|
297
|
+
/// 策略回调撤的、引擎此刻还不认识的订单号(见 [`Engine::request_strategy_cancel`])。
|
|
298
|
+
///
|
|
299
|
+
/// 回测下单经事件队列送达, 要到回调之后的 `ChannelProcessor` 过完风控才登记为
|
|
300
|
+
/// 挂单; 同一次回调里撤这张单时它还在队列里。这里先记下, 由 `ChannelProcessor`
|
|
301
|
+
/// 在订单通过风控时立即撤掉、被风控拒掉时静默作罢、事件处理完仍不认识时按原样
|
|
302
|
+
/// 告警并清空。每次策略回调之后紧跟一个 `ChannelProcessor`, 因此它只在一步之内
|
|
303
|
+
/// 存在, 步与步之间恒为空, 不进存档。
|
|
304
|
+
pub(crate) deferred_cancels: HashSet<String>,
|
|
297
305
|
pub(crate) initial_cash: Decimal,
|
|
298
306
|
#[pyo3(get, set)]
|
|
299
307
|
pub active_start_time_ns: Option<i64>,
|
|
@@ -2440,16 +2448,7 @@ impl Engine {
|
|
|
2440
2448
|
Self::take_context_outputs(py, &py_ctx);
|
|
2441
2449
|
crate::pipeline::stages::strategy::apply_pending_engine_plans(self, pending_plans);
|
|
2442
2450
|
for id in canceled_ids {
|
|
2443
|
-
self.
|
|
2444
|
-
if let Some(cancelled) = self
|
|
2445
|
-
.state
|
|
2446
|
-
.order_manager
|
|
2447
|
-
.cancel_active_order(&id, self.clock.timestamp().unwrap_or(0))
|
|
2448
|
-
{
|
|
2449
|
-
let _ = self
|
|
2450
|
-
.event_manager
|
|
2451
|
-
.send(Event::ExecutionReport(cancelled, None));
|
|
2452
|
-
}
|
|
2451
|
+
self.request_strategy_cancel(id);
|
|
2453
2452
|
}
|
|
2454
2453
|
// 只有多策略才需要在 slot 间累加(单策略下无后续 slot 会读它)。
|
|
2455
2454
|
// 取本 slot Context 的 `orders` 而非上面的 `new_orders`: 原因同
|
|
@@ -2473,6 +2472,62 @@ impl Engine {
|
|
|
2473
2472
|
Ok(())
|
|
2474
2473
|
}
|
|
2475
2474
|
|
|
2475
|
+
/// 撤掉一张已登记在挂单里的订单: 通知撮合器、改订单状态、发撤单回报。
|
|
2476
|
+
/// 订单不在 `active_orders` 里时什么也不做, 返回 `false`。
|
|
2477
|
+
fn cancel_registered_order(&mut self, order_id: &str) -> bool {
|
|
2478
|
+
if !self
|
|
2479
|
+
.state
|
|
2480
|
+
.order_manager
|
|
2481
|
+
.active_orders
|
|
2482
|
+
.iter()
|
|
2483
|
+
.any(|o| o.id == order_id)
|
|
2484
|
+
{
|
|
2485
|
+
return false;
|
|
2486
|
+
}
|
|
2487
|
+
self.execution_model.on_cancel(order_id);
|
|
2488
|
+
if let Some(cancelled) = self
|
|
2489
|
+
.state
|
|
2490
|
+
.order_manager
|
|
2491
|
+
.cancel_active_order(order_id, self.clock.timestamp().unwrap_or(0))
|
|
2492
|
+
{
|
|
2493
|
+
let _ = self
|
|
2494
|
+
.event_manager
|
|
2495
|
+
.send(Event::ExecutionReport(cancelled, None));
|
|
2496
|
+
}
|
|
2497
|
+
true
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2500
|
+
/// 处理策略回调里的一笔撤单(基础事件与窗口 bar 两条派发路径共用)。
|
|
2501
|
+
///
|
|
2502
|
+
/// 订单已是挂单时立即撤; 否则多半是同一次回调里刚下、还在事件队列里的单
|
|
2503
|
+
/// (issue #440), 记入 [`Engine::deferred_cancels`], 由 `ChannelProcessor` 在它
|
|
2504
|
+
/// 通过风控时撤掉。此时不告警: 真不认识的订单号要等事件处理完才能断定。
|
|
2505
|
+
pub(crate) fn request_strategy_cancel(&mut self, order_id: String) {
|
|
2506
|
+
if !self.cancel_registered_order(&order_id) {
|
|
2507
|
+
self.deferred_cancels.insert(order_id);
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
/// 订单刚通过风控、登记为挂单: 若策略在同一次回调里已撤它, 立即撤掉(撮合之前)。
|
|
2512
|
+
pub(crate) fn apply_deferred_cancel(&mut self, order_id: &str) {
|
|
2513
|
+
if self.deferred_cancels.remove(order_id) {
|
|
2514
|
+
self.cancel_registered_order(order_id);
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
/// 事件处理完仍未出现的订单号: 按修复前的方式交给撮合器(它照旧告警
|
|
2519
|
+
/// unknown / non-cancellable), 然后清空。
|
|
2520
|
+
pub(crate) fn flush_deferred_cancels(&mut self) {
|
|
2521
|
+
if self.deferred_cancels.is_empty() {
|
|
2522
|
+
return;
|
|
2523
|
+
}
|
|
2524
|
+
let mut ids: Vec<String> = self.deferred_cancels.drain().collect();
|
|
2525
|
+
ids.sort_unstable();
|
|
2526
|
+
for id in ids {
|
|
2527
|
+
self.execution_model.on_cancel(&id);
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2476
2531
|
/// 会话结束时闭合全部尾部未满窗口并派发(规格 5.3)。
|
|
2477
2532
|
///
|
|
2478
2533
|
/// 供 `python.rs::run()` 的正常收尾路径与 `KeyboardInterrupt` 收尾路径共用,
|
|
@@ -2507,10 +2562,13 @@ impl Engine {
|
|
|
2507
2562
|
}
|
|
2508
2563
|
// 派发顺序 = pending 在前(它们更早闭合), tail 在后, 且只派发一次。
|
|
2509
2564
|
bars.extend(tail);
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2565
|
+
// 空列表时 dispatch_window_bars 直接返回 Ok。
|
|
2566
|
+
let result = self.dispatch_window_bars(py, strategy, bars);
|
|
2567
|
+
// 收尾之后不再有 ChannelProcessor: 收尾派发里下的单不会进引擎, 撤单按原样
|
|
2568
|
+
// 告警; 中断(KeyboardInterrupt)时上一步回调留下的延迟撤单也在这里清掉。
|
|
2569
|
+
// 无论有没有窗口要派发都要清。
|
|
2570
|
+
self.flush_deferred_cancels();
|
|
2571
|
+
result
|
|
2514
2572
|
}
|
|
2515
2573
|
|
|
2516
2574
|
/// 把 recent_expiry_events 逐条发成 `expiry` 流事件(日常路径与收尾补结算共用)。
|
|
@@ -667,6 +667,7 @@ impl Engine {
|
|
|
667
667
|
28800,
|
|
668
668
|
))),
|
|
669
669
|
pending_window_bars: Vec::new(),
|
|
670
|
+
deferred_cancels: HashSet::new(),
|
|
670
671
|
initial_cash,
|
|
671
672
|
active_start_time_ns: None,
|
|
672
673
|
event_manager: EventManager::new(),
|
|
@@ -1718,6 +1719,9 @@ impl Engine {
|
|
|
1718
1719
|
strategy: &StrategyHandle,
|
|
1719
1720
|
show_progress: bool,
|
|
1720
1721
|
) -> PyResult<String> {
|
|
1722
|
+
// 延迟撤单只在一步之内存在: 上一次 run() 若因异常中途退出可能留有残余,
|
|
1723
|
+
// 这些订单号属于已结束的会话, 丢弃而不是带进本次运行。
|
|
1724
|
+
self.deferred_cancels.clear();
|
|
1721
1725
|
// 会话解析器(交易日归属、收盘时刻)在数据循环前构造,配置错误在这里报出。
|
|
1722
1726
|
self.ensure_session_resolver()?;
|
|
1723
1727
|
// 每次运行一次:未传交易日历、按工作日推算时告警(节假日会被当作交易日)。
|
|
@@ -103,8 +103,8 @@ pub struct StageBInput<'a> {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
/// 订单状态指纹(原 Python `order_event_key`); 数值取 normalize 后比较。
|
|
106
|
-
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
|
107
|
-
struct OrderEventKey {
|
|
106
|
+
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
|
107
|
+
pub struct OrderEventKey {
|
|
108
108
|
id: String,
|
|
109
109
|
status: OrderStatus,
|
|
110
110
|
filled_quantity: Decimal,
|
|
@@ -246,12 +246,20 @@ pub struct OrderLedger {
|
|
|
246
246
|
finalized_ids: VecDeque<String>,
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
/// 存档内容:
|
|
250
|
-
///
|
|
249
|
+
/// 存档内容: 在途订单、已通知过的成交、状态指纹(FIFO 顺序)与已触发 on_reject 的订单号,
|
|
250
|
+
/// 续跑后已通知过的订单状态不再重复通知(撤单的同一次检查里, 上下文在途快照中该单仍是
|
|
251
|
+
/// 撤单前的状态, 只靠状态指纹挡住); 终态留档不保存。
|
|
252
|
+
///
|
|
253
|
+
/// msgpack 按位置编码, 新字段只能追加在末尾并带 `#[serde(default)]`:
|
|
254
|
+
/// 0.3.83 的存档只有前两个字段, 读入后新字段为空。
|
|
251
255
|
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
|
|
252
256
|
pub struct OrderLedgerSnapshot {
|
|
253
257
|
pub known: Vec<Order>,
|
|
254
258
|
pub trade_keys: Vec<TradeKey>,
|
|
259
|
+
#[serde(default)]
|
|
260
|
+
pub order_event_keys: Vec<OrderEventKey>,
|
|
261
|
+
#[serde(default)]
|
|
262
|
+
pub rejected_notified: Vec<String>,
|
|
255
263
|
}
|
|
256
264
|
|
|
257
265
|
impl OrderLedger {
|
|
@@ -390,6 +398,12 @@ impl OrderLedger {
|
|
|
390
398
|
.filter_map(|id| self.known.get(id).cloned())
|
|
391
399
|
.collect(),
|
|
392
400
|
trade_keys: self.trade_keys.order.iter().cloned().collect(),
|
|
401
|
+
order_event_keys: self.order_event_keys.order.iter().cloned().collect(),
|
|
402
|
+
rejected_notified: {
|
|
403
|
+
let mut ids: Vec<String> = self.rejected_notified.iter().cloned().collect();
|
|
404
|
+
ids.sort();
|
|
405
|
+
ids
|
|
406
|
+
},
|
|
393
407
|
}
|
|
394
408
|
}
|
|
395
409
|
|
|
@@ -402,6 +416,12 @@ impl OrderLedger {
|
|
|
402
416
|
ledger.trade_keys.set.insert(key.clone());
|
|
403
417
|
ledger.trade_keys.order.push_back(key);
|
|
404
418
|
}
|
|
419
|
+
for key in snapshot.order_event_keys {
|
|
420
|
+
ledger
|
|
421
|
+
.order_event_keys
|
|
422
|
+
.insert(key, ORDER_EVENT_DEDUPE_LIMIT);
|
|
423
|
+
}
|
|
424
|
+
ledger.rejected_notified.extend(snapshot.rejected_notified);
|
|
405
425
|
ledger
|
|
406
426
|
}
|
|
407
427
|
|
|
@@ -876,10 +896,11 @@ mod tests {
|
|
|
876
896
|
assert!(l.find("nope", &active).is_none());
|
|
877
897
|
}
|
|
878
898
|
|
|
879
|
-
///
|
|
880
|
-
///
|
|
899
|
+
/// 存档保存在途订单、成交指纹、状态指纹与 on_reject 记录: 往返后在途单与旧成交
|
|
900
|
+
/// 不重复; 已通知过的状态不再通知(撤单的同一次检查里, 在途快照中该单仍是 New);
|
|
901
|
+
/// 已触发过 on_reject 的单不再触发。
|
|
881
902
|
#[test]
|
|
882
|
-
fn
|
|
903
|
+
fn snapshot_roundtrip_keeps_notified_state() {
|
|
883
904
|
let mut l = OrderLedger::default();
|
|
884
905
|
let active = [
|
|
885
906
|
order("A", OrderStatus::New, 0),
|
|
@@ -888,24 +909,80 @@ mod tests {
|
|
|
888
909
|
l.stage_b(b(&[], &active, &[trade("t1", "x")], &[]), None, LIMITS);
|
|
889
910
|
let rejected = [order("R", OrderStatus::Rejected, 0)];
|
|
890
911
|
l.stage_a(a(&[], &[], &rejected, &[]), None, LIMITS);
|
|
891
|
-
let
|
|
912
|
+
let snap = l.snapshot();
|
|
913
|
+
let bytes = rmp_serde::to_vec(&snap).unwrap();
|
|
892
914
|
let mut r = OrderLedger::restore(rmp_serde::from_slice(&bytes).unwrap());
|
|
915
|
+
let again = r.snapshot();
|
|
916
|
+
assert_eq!(
|
|
917
|
+
again
|
|
918
|
+
.known
|
|
919
|
+
.iter()
|
|
920
|
+
.map(|o| o.id.as_str())
|
|
921
|
+
.collect::<Vec<_>>(),
|
|
922
|
+
vec!["A", "B", "R"]
|
|
923
|
+
);
|
|
924
|
+
assert_eq!(
|
|
925
|
+
again.order_event_keys, snap.order_event_keys,
|
|
926
|
+
"指纹保持 FIFO 顺序"
|
|
927
|
+
);
|
|
928
|
+
assert_eq!(again.rejected_notified, vec!["R".to_string()]);
|
|
893
929
|
let (ev, out) = r.stage_b(b(&[], &active, &[trade("t1", "x")], &[]), None, LIMITS);
|
|
894
930
|
assert!(ev.is_empty(), "在途单不重复通知");
|
|
895
931
|
assert!(out.is_empty(), "旧成交不重复回调");
|
|
932
|
+
// 撤 A: 引擎尚未处理撤单, 同一次检查的在途快照里 A 仍是 New
|
|
933
|
+
let ev = r.stage_a(a(&["A".to_string()], &active, &[], &[]), None, LIMITS);
|
|
934
|
+
assert_eq!(sig(&ev), vec![st("A", OrderStatus::Cancelled, false)]);
|
|
935
|
+
let (ev, _) = r.stage_b(b(&[], &active, &[], &[]), None, LIMITS);
|
|
936
|
+
assert!(
|
|
937
|
+
ev.is_empty(),
|
|
938
|
+
"撤单之后不再通知一次旧状态 New: {:?}",
|
|
939
|
+
sig(&ev)
|
|
940
|
+
);
|
|
896
941
|
let ev = r.stage_a(a(&[], &[], &rejected, &[]), None, LIMITS);
|
|
942
|
+
assert!(ev.is_empty(), "已通知过的拒单状态不重复: {:?}", sig(&ev));
|
|
943
|
+
let mut changed = order("R", OrderStatus::Rejected, 0);
|
|
944
|
+
changed.reject_reason = "other".to_string();
|
|
945
|
+
let ev = r.stage_a(a(&[], &[], &[changed], &[]), None, LIMITS);
|
|
897
946
|
assert_eq!(
|
|
898
947
|
sig(&ev),
|
|
899
|
-
vec![st("R", OrderStatus::Rejected,
|
|
900
|
-
"
|
|
948
|
+
vec![st("R", OrderStatus::Rejected, false)],
|
|
949
|
+
"on_reject 每单只一次, 跨存档也是"
|
|
901
950
|
);
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
/// 0.3.83 的存档(只有 known 与 trade_keys 两个字段)仍能读入, 新字段为空。
|
|
954
|
+
#[test]
|
|
955
|
+
fn legacy_two_field_snapshot_still_decodes() {
|
|
956
|
+
#[derive(Serialize)]
|
|
957
|
+
struct LegacySnapshot {
|
|
958
|
+
known: Vec<Order>,
|
|
959
|
+
trade_keys: Vec<TradeKey>,
|
|
960
|
+
}
|
|
961
|
+
let mut l = OrderLedger::default();
|
|
962
|
+
let active = [order("A", OrderStatus::New, 0)];
|
|
963
|
+
l.stage_b(b(&[], &active, &[trade("t1", "x")], &[]), None, LIMITS);
|
|
964
|
+
let snap = l.snapshot();
|
|
965
|
+
assert!(!snap.order_event_keys.is_empty());
|
|
966
|
+
let legacy = LegacySnapshot {
|
|
967
|
+
known: snap.known.clone(),
|
|
968
|
+
trade_keys: snap.trade_keys.clone(),
|
|
969
|
+
};
|
|
970
|
+
let bytes = rmp_serde::to_vec(&legacy).unwrap();
|
|
971
|
+
let decoded: OrderLedgerSnapshot = rmp_serde::from_slice(&bytes).unwrap();
|
|
902
972
|
assert_eq!(
|
|
903
|
-
|
|
973
|
+
decoded
|
|
904
974
|
.known
|
|
905
975
|
.iter()
|
|
906
976
|
.map(|o| o.id.as_str())
|
|
907
977
|
.collect::<Vec<_>>(),
|
|
908
|
-
vec!["A"
|
|
978
|
+
vec!["A"]
|
|
909
979
|
);
|
|
980
|
+
assert_eq!(decoded.trade_keys, snap.trade_keys);
|
|
981
|
+
assert!(decoded.order_event_keys.is_empty());
|
|
982
|
+
assert!(decoded.rejected_notified.is_empty());
|
|
983
|
+
let mut r = OrderLedger::restore(decoded);
|
|
984
|
+
let (ev, out) = r.stage_b(b(&[], &active, &[trade("t1", "x")], &[]), None, LIMITS);
|
|
985
|
+
assert!(ev.is_empty(), "在途单不重复通知");
|
|
986
|
+
assert!(out.is_empty(), "旧成交不重复回调");
|
|
910
987
|
}
|
|
911
988
|
}
|
|
@@ -233,9 +233,22 @@ impl Processor for ChannelProcessor {
|
|
|
233
233
|
) {
|
|
234
234
|
engine.execution_model.mark_created_off_bar(&order.id);
|
|
235
235
|
}
|
|
236
|
+
let order_id = order.id.clone();
|
|
236
237
|
engine.state.order_manager.add_active_order(order);
|
|
238
|
+
// 同一次回调里下单又撤单(issue #440): 撮合之前立即撤掉。
|
|
239
|
+
engine.apply_deferred_cancel(&order_id);
|
|
237
240
|
}
|
|
238
241
|
Event::ExecutionReport(order, trade) => {
|
|
242
|
+
// 风控拒单等已结束的单: 同回调里的撤单不必再做, 也不告警。
|
|
243
|
+
if matches!(
|
|
244
|
+
order.status,
|
|
245
|
+
OrderStatus::Filled
|
|
246
|
+
| OrderStatus::Cancelled
|
|
247
|
+
| OrderStatus::Rejected
|
|
248
|
+
| OrderStatus::Expired
|
|
249
|
+
) {
|
|
250
|
+
engine.deferred_cancels.remove(&order.id);
|
|
251
|
+
}
|
|
239
252
|
apply_execution_report(
|
|
240
253
|
engine,
|
|
241
254
|
py,
|
|
@@ -345,6 +358,9 @@ impl Processor for ChannelProcessor {
|
|
|
345
358
|
}
|
|
346
359
|
}
|
|
347
360
|
|
|
361
|
+
// 事件全部处理完仍不认识的撤单订单号: 按原样告警并清空。
|
|
362
|
+
engine.flush_deferred_cancels();
|
|
363
|
+
|
|
348
364
|
flush_accumulated_trades(engine, &mut trades_to_process);
|
|
349
365
|
|
|
350
366
|
Ok(ProcessorResult::Next)
|
|
@@ -357,8 +373,11 @@ mod tests {
|
|
|
357
373
|
use crate::engine::Engine;
|
|
358
374
|
use crate::event::Event;
|
|
359
375
|
use crate::model::timer::{LIFECYCLE_AFTER_TRADING, lifecycle_payload};
|
|
360
|
-
use crate::model::{Order, OrderSide, OrderType, Timer, TradingSession};
|
|
376
|
+
use crate::model::{Order, OrderSide, OrderStatus, OrderType, Timer, TradingSession};
|
|
377
|
+
use crate::pipeline::processor::Processor;
|
|
361
378
|
use chrono::NaiveDate;
|
|
379
|
+
use pyo3::prelude::*;
|
|
380
|
+
use pyo3::types::PyList;
|
|
362
381
|
use rust_decimal_macros::dec;
|
|
363
382
|
|
|
364
383
|
fn stock_engine() -> Engine {
|
|
@@ -418,4 +437,133 @@ mod tests {
|
|
|
418
437
|
Some(&TradingSession::Closed)
|
|
419
438
|
);
|
|
420
439
|
}
|
|
440
|
+
|
|
441
|
+
/// 只记录撤单调用的撮合器替身: 用来观察 ChannelProcessor 对延迟撤单的处理。
|
|
442
|
+
struct RecordingClient {
|
|
443
|
+
cancels: std::sync::Arc<std::sync::Mutex<Vec<String>>>,
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
impl crate::execution::ExecutionClient for RecordingClient {
|
|
447
|
+
fn on_order(&mut self, _order: Order) {}
|
|
448
|
+
fn on_cancel(&mut self, order_id: &str) {
|
|
449
|
+
self.cancels.lock().unwrap().push(order_id.to_string());
|
|
450
|
+
}
|
|
451
|
+
fn on_event(&mut self, _event: &Event, _ctx: &crate::context::EngineContext) -> Vec<Event> {
|
|
452
|
+
Vec::new()
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
type Cancels = std::sync::Arc<std::sync::Mutex<Vec<String>>>;
|
|
457
|
+
|
|
458
|
+
/// 装上撤单记录替身与收集流事件的回调, 返回 (撤单记录, 流事件列表)。
|
|
459
|
+
fn instrumented_engine(py: pyo3::Python<'_>) -> (Engine, Cancels, pyo3::Py<PyList>) {
|
|
460
|
+
let mut engine = stock_engine();
|
|
461
|
+
let cancels: Cancels = Default::default();
|
|
462
|
+
engine.execution_model = Box::new(RecordingClient {
|
|
463
|
+
cancels: cancels.clone(),
|
|
464
|
+
});
|
|
465
|
+
let events = PyList::empty(py);
|
|
466
|
+
engine.stream_callback = Some(events.getattr("append").unwrap().unbind());
|
|
467
|
+
engine.stream_run_id = Some("test".to_string());
|
|
468
|
+
(engine, cancels, events.unbind())
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
fn run_channel(engine: &mut Engine, py: pyo3::Python<'_>) {
|
|
472
|
+
let strategy = crate::engine::strategy_handler::PyStrategy::handle(py.None());
|
|
473
|
+
super::ChannelProcessor
|
|
474
|
+
.process(engine, py, &strategy)
|
|
475
|
+
.unwrap();
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/// 流事件里 order 类事件的状态序列(按发出顺序)。
|
|
479
|
+
fn order_stream_statuses(py: pyo3::Python<'_>, events: &pyo3::Py<PyList>) -> Vec<String> {
|
|
480
|
+
events
|
|
481
|
+
.bind(py)
|
|
482
|
+
.iter()
|
|
483
|
+
.filter(|ev| {
|
|
484
|
+
ev.get_item("event_type")
|
|
485
|
+
.and_then(|t| t.extract::<String>())
|
|
486
|
+
.is_ok_and(|t| t == "order")
|
|
487
|
+
})
|
|
488
|
+
.map(|ev| {
|
|
489
|
+
ev.get_item("payload")
|
|
490
|
+
.and_then(|p| p.get_item("status"))
|
|
491
|
+
.and_then(|s| s.extract::<String>())
|
|
492
|
+
.unwrap()
|
|
493
|
+
})
|
|
494
|
+
.collect()
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
fn market_buy(id: &str) -> Order {
|
|
498
|
+
Order::test_new(id, "600000.SH", OrderSide::Buy, OrderType::Market, dec!(100))
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
#[test]
|
|
502
|
+
fn deferred_cancel_applies_when_order_is_validated() {
|
|
503
|
+
pyo3::Python::initialize();
|
|
504
|
+
pyo3::Python::attach(|py| {
|
|
505
|
+
let (mut engine, cancels, events) = instrumented_engine(py);
|
|
506
|
+
engine.deferred_cancels.insert("o1".to_string());
|
|
507
|
+
engine
|
|
508
|
+
.event_manager
|
|
509
|
+
.send(Event::OrderValidated(market_buy("o1")))
|
|
510
|
+
.unwrap();
|
|
511
|
+
|
|
512
|
+
run_channel(&mut engine, py);
|
|
513
|
+
|
|
514
|
+
let order = engine
|
|
515
|
+
.state
|
|
516
|
+
.order_manager
|
|
517
|
+
.active_orders
|
|
518
|
+
.iter()
|
|
519
|
+
.find(|o| o.id == "o1")
|
|
520
|
+
.expect("订单已登记为挂单");
|
|
521
|
+
assert_eq!(order.status, OrderStatus::Cancelled);
|
|
522
|
+
// 撤单回报经 apply_execution_report 处理后发出 order 流事件
|
|
523
|
+
assert_eq!(order_stream_statuses(py, &events), vec!["Cancelled"]);
|
|
524
|
+
assert_eq!(*cancels.lock().unwrap(), vec!["o1".to_string()]);
|
|
525
|
+
assert!(engine.deferred_cancels.is_empty());
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
#[test]
|
|
530
|
+
fn deferred_cancel_of_rejected_order_is_dropped_silently() {
|
|
531
|
+
pyo3::Python::initialize();
|
|
532
|
+
pyo3::Python::attach(|py| {
|
|
533
|
+
let (mut engine, cancels, _events) = instrumented_engine(py);
|
|
534
|
+
engine.deferred_cancels.insert("o2".to_string());
|
|
535
|
+
let mut rejected = market_buy("o2");
|
|
536
|
+
rejected.status = OrderStatus::Rejected;
|
|
537
|
+
engine
|
|
538
|
+
.event_manager
|
|
539
|
+
.send(Event::ExecutionReport(rejected, None))
|
|
540
|
+
.unwrap();
|
|
541
|
+
|
|
542
|
+
run_channel(&mut engine, py);
|
|
543
|
+
|
|
544
|
+
// 拒单已结束: 不再交给撮合器撤单(否则会告警 unknown order)
|
|
545
|
+
assert!(cancels.lock().unwrap().is_empty());
|
|
546
|
+
assert!(engine.deferred_cancels.is_empty());
|
|
547
|
+
assert_eq!(
|
|
548
|
+
engine.state.order_manager.current_step_rejected_orders.len(),
|
|
549
|
+
1
|
|
550
|
+
);
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
#[test]
|
|
555
|
+
fn deferred_cancel_of_unknown_order_is_flushed_to_execution_model() {
|
|
556
|
+
pyo3::Python::initialize();
|
|
557
|
+
pyo3::Python::attach(|py| {
|
|
558
|
+
let (mut engine, cancels, events) = instrumented_engine(py);
|
|
559
|
+
engine.deferred_cancels.insert("ghost".to_string());
|
|
560
|
+
|
|
561
|
+
run_channel(&mut engine, py);
|
|
562
|
+
|
|
563
|
+
// 事件处理完仍不认识: 交给撮合器(由它照旧告警), 然后清空
|
|
564
|
+
assert_eq!(*cancels.lock().unwrap(), vec!["ghost".to_string()]);
|
|
565
|
+
assert!(engine.deferred_cancels.is_empty());
|
|
566
|
+
assert!(order_stream_statuses(py, &events).is_empty());
|
|
567
|
+
});
|
|
568
|
+
}
|
|
421
569
|
}
|
|
@@ -84,6 +84,11 @@ impl Processor for StrategyProcessor {
|
|
|
84
84
|
py: Python<'_>,
|
|
85
85
|
strategy: &crate::engine::strategy_handler::StrategyHandle,
|
|
86
86
|
) -> PyResult<ProcessorResult> {
|
|
87
|
+
// 上一次策略回调留下的延迟撤单已由紧随其后的 ChannelProcessor 处理完。
|
|
88
|
+
debug_assert!(
|
|
89
|
+
engine.deferred_cancels.is_empty(),
|
|
90
|
+
"deferred_cancels 应在每次策略回调之后的 ChannelProcessor 里清空"
|
|
91
|
+
);
|
|
87
92
|
if let Some(event) = engine.current_event.clone() {
|
|
88
93
|
engine.ensure_strategy_slot_exists();
|
|
89
94
|
engine.ensure_strategy_context_capacity();
|
|
@@ -120,16 +125,7 @@ impl Processor for StrategyProcessor {
|
|
|
120
125
|
apply_pending_engine_plans(engine, plans);
|
|
121
126
|
|
|
122
127
|
for id in canceled_ids {
|
|
123
|
-
engine.
|
|
124
|
-
if let Some(cancelled_order) = engine
|
|
125
|
-
.state
|
|
126
|
-
.order_manager
|
|
127
|
-
.cancel_active_order(&id, engine.clock.timestamp().unwrap_or(0))
|
|
128
|
-
{
|
|
129
|
-
let _ = engine
|
|
130
|
-
.event_manager
|
|
131
|
-
.send(Event::ExecutionReport(cancelled_order, None));
|
|
132
|
-
}
|
|
128
|
+
engine.request_strategy_cancel(id);
|
|
133
129
|
}
|
|
134
130
|
// 只有多策略才需要在 slot 间累加(单策略下无后续 slot 会读它),
|
|
135
131
|
// 避免为单策略回测多付一次 Vec 克隆。
|