akquant 0.3.82__tar.gz → 0.3.83__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.82 → akquant-0.3.83}/CHANGELOG.md +15 -0
- {akquant-0.3.82 → akquant-0.3.83}/Cargo.lock +1 -1
- {akquant-0.3.82 → akquant-0.3.83}/Cargo.toml +1 -1
- {akquant-0.3.82 → akquant-0.3.83}/PKG-INFO +1 -1
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/warm_start.md +1 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/custom_indicator.md +6 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/strategy.md +3 -1
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/adding_a_broker.md +1 -1
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/warm_start.md +1 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/custom_indicator.md +3 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/strategy.md +2 -1
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/meta/columnar-rfc.md +1 -1
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch04_comparison.py +4 -4
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch04_comparison_functional.py +3 -2
- {akquant-0.3.82 → akquant-0.3.83}/pyproject.toml +1 -1
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/__init__.py +1 -1
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/akquant.pyi +31 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/backtest/engine.py +0 -9
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/broker_event_bridge.py +2 -1
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/order_submitter.py +3 -2
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/indicator_declaration.py +76 -2
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/live/_payload_utils.py +1 -1
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/live/_runner.py +2 -6
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy.py +6 -69
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_framework_hooks.py +0 -7
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_history.py +100 -1
- akquant-0.3.83/python/akquant/strategy_order_events.py +176 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_trading_api.py +17 -42
- {akquant-0.3.82 → akquant-0.3.83}/server.json +3 -3
- akquant-0.3.83/src/analysis/excursion_tests.rs +386 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/analysis/mod.rs +2 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/analysis/tracker.rs +238 -204
- {akquant-0.3.82 → akquant-0.3.83}/src/context.rs +118 -1
- {akquant-0.3.82 → akquant-0.3.83}/src/engine/core.rs +45 -1
- {akquant-0.3.82 → akquant-0.3.83}/src/engine/mod.rs +39 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/engine/python.rs +62 -2
- {akquant-0.3.82 → akquant-0.3.83}/src/engine/state.rs +3 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/history.rs +74 -5
- {akquant-0.3.82 → akquant-0.3.83}/src/lib.rs +1 -0
- akquant-0.3.83/src/order_ledger.rs +911 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/order_manager.rs +5 -4
- {akquant-0.3.82 → akquant-0.3.83}/src/pipeline/stages/data.rs +41 -5
- {akquant-0.3.82 → akquant-0.3.83}/src/pipeline/stages/mod.rs +2 -0
- akquant-0.3.83/tests/_mock_ctx.py +27 -0
- akquant-0.3.83/tests/_order_event_scenarios.py +327 -0
- akquant-0.3.83/tests/fixtures/order_event_traces.json +6105 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_api_rename_scheduler.py +3 -3
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_cancel_request_persistence.py +4 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_execution_sim.py +0 -1
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_get_order_finalized.py +9 -6
- akquant-0.3.83/tests/test_history_depth_after_start.py +325 -0
- akquant-0.3.83/tests/test_history_lookback_autogrow.py +299 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_lifecycle_hooks.py +3 -8
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_lifecycle_review_fixes.py +2 -4
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_public_api.py +3 -3
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_multi_slot_ownership.py +5 -76
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_multisymbol_cross_section_consistency.py +2 -2
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_order_callback_dedupe.py +8 -5
- akquant-0.3.83/tests/test_order_event_timing.py +213 -0
- akquant-0.3.83/tests/test_order_event_traces.py +38 -0
- akquant-0.3.83/tests/test_order_ledger_binding.py +125 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_pickle_model_objects.py +4 -2
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_extras.py +143 -131
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_timers_indicators.py +2 -3
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_trading_day_lifecycle.py +1 -1
- akquant-0.3.82/python/akquant/strategy_order_events.py +0 -452
- {akquant-0.3.82 → akquant-0.3.83}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/.github/dependabot.yml +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/.github/workflows/deploy-docs.yml +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/.github/workflows/docs-quality.yml +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/.github/workflows/release.yml +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/.gitignore +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/.pre-commit-config.yaml +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/CODE_OF_CONDUCT.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/CONTRIBUTING.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/LICENSE +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/README.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/assets/dashboard_preview.png +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/assets/logo.svg +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/assets/social_preview.png +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/CNAME +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/assets/akquant-icon.svg +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/assets/akquant-logo.svg +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/assets/reports/akquant_report.html +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/custom_strategy_loader.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/llm.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/ml.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/runtime_config.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/advanced/timezone.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/analysis.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/data.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/examples.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/factor.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/mcp.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/optimization.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/python_basics.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/quant_basics.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/testing.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/guide/visualization.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/index.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/meta/architecture.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/meta/internals.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/reference/api.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/start/first_strategy.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/start/installation.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/start/quickstart.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/start/setup_guide.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/01_foundations.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/02_programming.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/03_data.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/04_backtest_engine.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/05_strategy.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/06_stock_a.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/07_futures.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/08_options.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/09_funds.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/10_analysis.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/11_optimization.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/12_ml.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/13_visualization.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/14_factor.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/15_live_trading.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/en/textbook/index.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/javascripts/mathjax.js +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/javascripts/search-lang-filter.js +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/llms.txt +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/robots.txt +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/custom_strategy_loader.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/llm.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/ml.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/runtime_config.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/advanced/timezone.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/analysis.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/data.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/examples.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/factor.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/mcp.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/optimization.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/python_basics.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/quant_basics.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/testing.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/guide/visualization.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/index.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/meta/architecture.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/meta/internals.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/reference/api.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/start/first_strategy.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/start/installation.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/start/quickstart.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/start/setup_guide.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/00_glossary.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/01_foundations.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/02_programming.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/03_data.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/04_backtest_engine.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/05_strategy.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/06_stock_a.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/07_futures.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/08_options.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/09_funds.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/10_analysis.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/11_optimization.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/12_ml.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/13_visualization.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/14_factor.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/15_live_trading.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/ROADMAP.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/appendix_cite.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/appendix_pitfalls.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/appendix_setup.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/capstone.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/docs/zh/textbook/index.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/01_quickstart.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/02_parameter_optimization.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/03_parameter_optimization_advanced.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/04_mixed_assets.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/05_live_trading_ctp.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/06_complex_orders.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/07_option_test.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/08_event_callbacks.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/09_ml_framework.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/10_ml_walk_forward.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/11_plot_visualization.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/12_wfo_integrated.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/13_quantstats_report.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/14_multi_frequency.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/15_plot_intraday.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/16_adj_returns_signal.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/17_readme_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/18_benchmark_multisymbol.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/19_factor_expression.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/20_risk_management_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/21_warm_start_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/22_strategy_runtime_config_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/23_functional_callbacks_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/24_functional_tick_simulation_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/25_streaming_backtest_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/26_streaming_quickstart.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/27_streaming_monitoring_console.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/28_streaming_alerts_and_persist.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/29_streaming_event_report.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/30_streaming_report_oneclick.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/31_streaming_live_console.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/32_streaming_live_web.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/33_report_and_analysis_outputs.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/34_multi_strategy_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/35_custom_broker_registry_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/36_trailing_orders.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/37_feed_replay_alignment_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/38_live_functional_strategy_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/39_live_broker_submit_order_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/39_live_mixed_broker_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/40_functional_multi_slot_risk_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/41_live_multi_slot_orchestration_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/42_live_broker_event_audit_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/43_target_weights_rebalance.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/44_strategy_source_loader_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/45_talib_indicator_playbook_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/46_broker_profile_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/47_margin_liquidation_audit_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/48_margin_liquidation_priority_compare.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/49_on_expiry_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/50_framework_hooks_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/51_class_tick_callbacks_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/52_pre_open_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/53_timer_to_pre_open_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/54_functional_pre_open_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/55_functional_ml_walk_forward.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/56_functional_warm_start_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/57_functional_multi_slot_warm_start_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/58_incremental_bootstrap_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/59_akshare_etf_rotation.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/60_custom_indicator_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/61_indicator_visualization_export_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/61_signal_platform_webhook.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/62_indicator_streaming_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/63_indicator_ws_bridge_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/64_indicator_live_web.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/65_bar_generator.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/66_logging_audit_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/67_lwc_trade_review.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/68_backtest_tick_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/69_live_runtime_config_dispatch_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/70_csv_multi_symbol_import_demo.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/71_native_multi_timeframe_live.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/72_declarative_indicators.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/73_lwc_live_indicators.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/74_indicator_scripts.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/75_intrabar_indicators.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/76_tick_intrabar_indicators.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/77_heikin_ashi_indicator.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/78_chart_drawings.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/79_multi_symbol_indicator_timer.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/README.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/benchmark_utils.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/pb_mock.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/strategies/01_stock_dual_moving_average.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/strategies/02_stock_grid_trading.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/strategies/03_stock_atr_breakout.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/strategies/04_stock_momentum_rotation.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/strategies/05_stock_momentum_rotation_timer.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/strategies/06_stock_momentum_rotation_bucket.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/strategies/07_stock_momentum_rotation_on_timer.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/strategies/08_target_positions_long_short.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/strategies/09_stock_momentum_rotation_after_bar.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/strategies/README.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch01_quickstart.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch01_quickstart_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch02_programming.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch03_data.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch05_strategy.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch05_strategy_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch06_stock_a.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch06_stock_a_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch07_futures.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch07_futures_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch08_options.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch08_options_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch09_funds.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch09_funds_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch09_portfolio.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch09_portfolio_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch10_analysis.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch10_analysis_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch11_optimization.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch11_optimization_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch12_ml.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch12_ml_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch13_visualization.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch13_visualization_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch14_factor.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch15_live_trading.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch15_live_trading_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch15_strategy_loader.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch15_strategy_loader_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch16_indicators.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/examples/textbook/ch16_indicators_functional.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/mkdocs.yml +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/analysis/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/analysis/benchmark.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/analyzer_plugin.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/backtest/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/backtest/__init__.pyi +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/backtest/_viz.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/backtest/fill_mode.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/backtest/merge.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/backtest/result.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/backtest/tick_input.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/bar_generator.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/chart/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/chart/_drawing.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/chart/_normalize.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/chart/d3kline.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/checkpoint.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/cli.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/config.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/data.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/execution/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/execution/base.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/execution/sim.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/factor/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/factor/engine.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/factor/ops.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/factor/parser.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/feed_adapter.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/fund/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/futures/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/base.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/broker_event_adapter.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/broker_event_mapper.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/broker_execution.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/broker_models.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/broker_recovery.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/broker_runtime.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/broker_state_cache.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/broker_stats.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/broker_strategy_api.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/brokers/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/brokers/builtins.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/brokers/ctp/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/brokers/ctp/adapter.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/brokers/ctp/native.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/brokers/miniqmt/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/brokers/miniqmt/stub.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/brokers/plugins.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/brokers/ptrade/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/brokers/ptrade/stub.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/brokers/replay/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/brokers/replay/gateway.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/ctp_adapter.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/ctp_native.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/factory.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/local_stop_book.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/mapper.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/miniqmt.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/models.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/order_audit.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/order_errors.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/order_receipt.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/protocols.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/ptrade.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/registry.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/symbol_match.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/gateway/trader_base.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/indicator_identity.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/indicator_recording.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/indicator_script.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/indicator_stream.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/live/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/live/_facade.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/live/_gateway_setup.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/live/_paper_execution.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/live/_preload.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/live/_strategy_maps.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/live/_stream_sink.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/log.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/lwc/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/lwc/_drawings.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/lwc/_indicators.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/lwc/_payload.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/lwc/_template.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/lwc/assets/LICENSE.lightweight-charts +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/lwc/assets/NOTICE.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/lwc/assets/lightweight-charts.standalone.production.js +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/lwc/review.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/__main__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/guides/data-format.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/guides/indicators.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/guides/market-rules.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/guides/orders-and-positions.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/guides/strategy-skeleton.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/server.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/service/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/service/api_index.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/service/check.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/service/data.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/service/errors.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/service/guides.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/service/paths.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/service/records.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/service/runs.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/mcp/worker.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/ml/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/ml/model.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/normalize.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/optimize.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/option/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/params.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/params_adapter.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/plot/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/plot/_market_data.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/plot/analysis.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/plot/dashboard.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/plot/indicator.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/plot/report.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/plot/strategy.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/plot/utils.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/precomputed.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/py.typed +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/risk.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/schema.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/sessions_config.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/signal/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/signal/dedup.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/signal/dispatcher.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/signal/models.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/signal/protocols.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/signal/registry.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/signal/security.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/signal/sinks.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/signal/sources/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/signal/sources/http.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/signal/sources/queue.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/signal/sources/redis_stream.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/sizer.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/stock/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_drawing.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_events.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_inspect.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_loader.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_logging.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_ml.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_position.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_preload.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_runtime_config.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_scheduler.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_stats.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_time.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/strategy_window.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/stream_schema.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/talib/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/talib/_kernels.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/talib/backend.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/talib/core.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/talib/funcs.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/talib/lookback.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/trade_stream.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/utils/__init__.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/utils/inspector.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/python/akquant/utils/price.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/requirements-dev.txt +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/scripts/bench_engine_perbar.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/scripts/cargo-test.sh +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/scripts/check_docs_api_examples.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/scripts/check_docs_links.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/scripts/check_release.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/scripts/dev-check.sh +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/scripts/golden_baseline_report.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/scripts/profile_backtest.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/scripts/stress_out_of_core.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/account.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/analysis/live_stats.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/analysis/python.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/analysis/result.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/analysis/strategy_stats.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/analysis/tests.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/analysis/types.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/bin/stub_gen.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/calendar/clock.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/calendar/mod.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/calendar/python.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/calendar/resolver.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/calendar/schedule.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/calendar/trading_calendar.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/clock.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/data/aggregator.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/data/batch.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/data/client.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/data/columns.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/data/compute.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/data/feed.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/data/mod.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/data/parquet_stream.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/data/python_window.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/data/window.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/engine/strategy_handler.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/error.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/event.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/event_manager.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/execution/common.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/execution/crypto.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/execution/forex.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/execution/futures.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/execution/matcher.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/execution/mod.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/execution/option.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/execution/python.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/execution/realtime.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/execution/simulated.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/execution/slippage.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/execution/stock.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/execution/validation.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/momentum.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/momentum_oscillators.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/momentum_rates.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/moving_average.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/moving_average_compound.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/moving_average_core.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/moving_average_hilbert.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/moving_average_transforms.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/moving_average_windowed.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/trend.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/trend_directional.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/trend_oscillators.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/trend_regression.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/volatility.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/volatility_candle.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/volatility_price.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/volatility_stats.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators/volume.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/indicators.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/log_context.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/margin/calculator.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/margin/engine.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/margin/mod.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/market/china.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/market/core.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/market/corporate_action.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/market/fee_override.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/market/fund.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/market/futures.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/market/manager.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/market/mod.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/market/option.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/market/simple.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/market/stock.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/model/corporate_action.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/model/instrument.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/model/market_data.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/model/mod.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/model/order.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/model/timer.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/model/types.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/pipeline/mod.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/pipeline/processor.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/pipeline/runner.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/pipeline/stages/channel.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/pipeline/stages/cleanup.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/pipeline/stages/execution.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/pipeline/stages/shared.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/pipeline/stages/statistics.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/pipeline/stages/strategy.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/portfolio.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/risk/common.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/risk/config.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/risk/futures.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/risk/manager.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/risk/mod.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/risk/option.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/risk/portfolio.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/risk/rule.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/risk/stock.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/risk/strategy_limits.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/settlement/expiry.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/settlement/handler.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/settlement/manager.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/settlement/mod.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/settlement/option.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/signal_port.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/src/statistics/mod.rs +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/_checkpoint_0371.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/_plot_cases.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/fixtures/checkpoint_0371_minute.pkl +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/gateway_contract/test_event_bridge_contract.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/gateway_contract/test_recovery_contract.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/gateway_contract/test_submitter_contract.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/BASELINE_REPORT.md +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/futures_margin/equity_curve.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/futures_margin/metrics.json +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/futures_margin/orders.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/futures_margin/trading_day_ends.json +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/futures_night_weekend/equity_curve.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/futures_night_weekend/metrics.json +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/futures_night_weekend/orders.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/futures_night_weekend/trades.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/futures_night_weekend/trading_day_ends.json +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/option_basic/equity_curve.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/option_basic/metrics.json +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/option_basic/orders.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/option_basic/trading_day_ends.json +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/order_cancel/equity_curve.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/order_cancel/metrics.json +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/order_cancel/orders.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/order_cancel/trades.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/order_cancel/trading_day_ends.json +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/stock_minute_auction/equity_curve.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/stock_minute_auction/metrics.json +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/stock_minute_auction/orders.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/stock_minute_auction/trades.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/stock_minute_auction/trading_day_ends.json +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/stock_t1/equity_curve.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/stock_t1/metrics.json +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/stock_t1/orders.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/stock_t1/trades.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/baselines/stock_t1/trading_day_ends.json +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/data/future_margin.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/data/future_margin.parquet.sha256 +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/data/futures_night_weekend.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/data/futures_night_weekend.parquet.sha256 +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/data/option_basic.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/data/option_basic.parquet.sha256 +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/data/order_cancel.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/data/order_cancel.parquet.sha256 +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/data/stock_minute_auction.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/data/stock_minute_auction.parquet.sha256 +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/data/stock_t1.parquet +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/data/stock_t1.parquet.sha256 +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/gen_data.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/runner.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/strategies/futures_margin.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/strategies/futures_night_weekend.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/strategies/option_basic.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/strategies/order_cancel.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/strategies/stock_minute_auction.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/strategies/stock_t1.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/golden/test_golden.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/mcp_server/conftest.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/mcp_server/test_cli.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/mcp_server/test_mcp_api_index.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/mcp_server/test_mcp_check.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/mcp_server/test_mcp_data.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/mcp_server/test_mcp_errors.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/mcp_server/test_mcp_guides.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/mcp_server/test_mcp_main.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/mcp_server/test_mcp_paths.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/mcp_server/test_mcp_records.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/mcp_server/test_mcp_runs.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/mcp_server/test_mcp_server.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_account_risk_rules.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_api_rename_cash.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_api_rename_composites.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_api_rename_equity.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_api_rename_holding_bars.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_api_rename_positions.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_api_rename_rebalance.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_backtest_fund_fee_rules.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_backtest_params.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_backtest_symbol_column_aliases.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_backtest_tick_aggregate.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_backtest_tick_entry.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_backtest_tick_history.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_bar_aggregator_live.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_bar_generator.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_bar_hook_bookkeeping_invariants.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_bench_noise_gate.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_boundary_bar_fill.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_bridge_adapts_events.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_bridge_drives_order_groups.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_dropped_counts_periodic_summary.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_event_adapter.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_event_adapter_local_id.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_event_symbol_filter.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_event_task_isolation.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_execution_local_stops.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_execution_read_path_parity.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_execution_stop_requeue.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_live_risk_enforcement.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_order_redelivery_dedup.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_plugins.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_position_sync.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_profile_cn_stock.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_recovery_cadence.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_recovery_error_visibility.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_seed_baseline.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_trade_redelivery_dedup.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_broker_trade_stats.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_buying_power_new_symbol.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_candle_exporters.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_candle_render_type.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_chart_d3kline.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_chart_drawing_normalize.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_chart_normalize.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_check_release.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_checkpoint_0371_compat.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_checkpoint_option_rules.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_close_position_delegate.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_composed_ctx_not_ready.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_cost_config_consolidation.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_cross_section_day_order_next_open_fill.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_ctp_classify_order_error.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_custom_matcher.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_data_catalog.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_date_only_rewrite_cache.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_day_order_expiry_no_zombie_fill.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_deterministic_order.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_docs_api_examples.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_docs_links.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_drawing_stream.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_dual_stream_freq_inference.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_engine.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_engine_python_crossings.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_event_model_parity.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_examples_regression.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_execution_binding.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_execution_broker.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_execution_broker_reads_routed.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_execution_composed_parity.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_execution_read_delegation.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_execution_write_delegation.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_expiry_terminal_dispatch.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_expiry_trade_accounting.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_factor_engine.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_factor_ops.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_feed_adapter.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_fetch_akshare_symbol.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_fill_mode.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_broker_live_cancel.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_broker_live_reads.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_broker_models_ext.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_broker_state_cache.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_broker_state_invalidation.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_broker_submitter_quantity.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_broker_submitter_readiness.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_broker_submitter_signature.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_brokers_paths.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_builtins_registry.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_callbacks.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_cancel_failure.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_ctp_adapter.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_ctp_dual_stream.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_ctp_native.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_expired_order_status.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_factory.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_mapper.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_mixed_market_trader.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_optional_market.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_order_error_classification.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_order_submitter_extra.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_order_tick_reject_soft.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_order_tick_validation.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_place_order_failure.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_registry.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_sim_submit_guard.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_symbol_match.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_tif_mapping.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_gateway_trader_base.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_grid_search_all_failed.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_heikin_ashi.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_hooks_functional_wrapper.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_hooks_inherited_via_base.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_indicator_declaration.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_indicator_declaration_review.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_indicator_dual_stream.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_indicator_duplicate_name.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_indicator_intrabar.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_indicator_live_web_example.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_indicator_multi_symbol_access.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_indicator_non_finite.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_indicator_owner_identity.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_indicator_recording.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_indicator_script.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_inspector.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_instrument_default_tick.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_instrument_fee_override.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_instrument_slippage.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_instrument_symbol_suffix_normalization.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_instruments_config_symbol_mismatch.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_auto_preload.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_broker_slot_routing.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_duration_wallclock.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_freq_injection.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_market_config_by_asset_type.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_mixed_market_broker.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_multi_slot_windows.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_paper_execution_params.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_preload_normalize.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_preload_runner.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runner.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runner_bounded_session.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runner_broker_bridge.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runner_broker_readiness.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runner_broker_recovery.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runner_broker_submitter.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runner_client_order_id.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runner_instrument_snapshots.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runner_lifecycle.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runner_no_market_data_warning.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runner_order_request_cache.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runner_sigterm_stop.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runner_stop_remap.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_runtime_config_dispatch.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_subscribe_forwards_to_gateway.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_live_summary_stop_reason.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_local_stop_book.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_local_stop_book_threadsafe.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_local_stop_scenario.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_log_sensitive_filter.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_lwc_drawings.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_lwc_indicators.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_lwc_review.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_merge_results.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_ml_rolling_training_threshold.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_naive_timezone.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_normalize.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_oco_bracket_broker_live_scenario.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_on_execution_report_noop.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_on_timer_suspension_deadlock.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_optimize_functional_params.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_optimize_params.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_option_expiry_settlement.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_option_fees.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_option_market_side_effects.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_order_api_return_values.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_order_audit.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_order_receipt.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_order_receipt_backtest.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_order_target_lot_size_alignment.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_orders_df.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_params.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_params_adapter.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_parquet_stream.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_partial_filled_status.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_plot_defaults.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_portfolio.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_position_effect_flip.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_pre_open_live_warns.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_product_presets.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_quickstart_stream_consistency.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_reduce_only_sell_affordability.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_removed_wrappers.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_replay_live_end_to_end.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_replay_market_gateway.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_report_helpers.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_report_plot_extensions.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_result_analysis_extensions.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_review_minors_cleanup.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_run_live_indicator_stream.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_session_config.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_session_matching.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_session_resolver.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_signal_module.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_signal_port_injection.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_signal_sources_p3.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_sizer_auto_resize.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_slippage_bare_number.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_sort_determinism.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_source_trading_day.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_stock_tick_validation.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_stop_id_remap_scenario.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_stop_orders.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_stop_retry_client_order_id.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_custom_init_params.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_drawing.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_events_stop_hook.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_freq_attribute.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_history_dual_stream.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_history_missing_symbol_warning.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_inspect.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_loader_candidates.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_loader_exports.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_loader_pickle.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_loader_plugins.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_loader_reload.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_ml_dual_stream.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_order_group_lock.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_params.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_session_api.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_sizing_broker_live_guard.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_stats.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_strategy_stats_parity.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_stream_series_key.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_subscribe_live_warns.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_suspension_zero_volume_gtc_terminal.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_symbols_filtering.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_symbols_whitelist_rust.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_t_plus_one.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_talib_alignment.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_talib_backend.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_talib_compat.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_target_orders_core.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_tick_indicators.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_tick_input.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_trade_stream_bridge.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_trades_df.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_utils_price.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_vectorized.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_version.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_viz_namespace.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_volume_limit.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_walk_forward_kwargs.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_warm_start_slippage_inherit.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_warmup_period_per_symbol.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_window_checkpoint.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_window_live_replay.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_window_sessions.py +0 -0
- {akquant-0.3.82 → akquant-0.3.83}/tests/test_window_subscriptions.py +0 -0
|
@@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.83] - 2026-11-08
|
|
11
|
+
|
|
12
|
+
> **规则版本 2.3.0**:持仓超过历史深度的交易,`trades_df` 里的 `mae`、`mfe`、`max_drawdown_pct` 会变成正确值(此前被截断,常见结果是 0),成交、盈亏、权益与各项收益指标不变;取历史 `count` 超过保留长度、或指标回看超出 `lookback` 的策略,此前拿到的是残缺数据,现在自动加长后结果会变。
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- **持仓较久的交易,MAE / MFE / 持仓内最大回撤被悄悄算错**:这三个数是平仓时回头扫描历史缓冲区算出的,而缓冲区只保留 `history_depth` 根(设了 `warmup_period` 或用了会自动推断预热期的指标时通常只有几十根;什么都不设时为 10000 根)。持仓更久时,开仓后那段行情已被淘汰,结果只反映平仓前最后几根 bar——实测 `history_depth=30`、持仓 500 根、真实 MAE 为 -40% 的交易记成了 0;不设历史深度时持仓超过 10000 根同样记成 0。现在每笔未平持仓从开仓起自己累计持仓期间的最高价、最低价和回撤,平仓时直接用,不再依赖历史长度。算法与原扫描逐位相同(初值取开仓价、含开仓那根 bar、含平仓价、按路径算回撤;有 bar 序列按 bar 算,否则按 tick),持仓不超过历史深度时结果完全不变(随机化等价性测试对照原扫描算法锁定);唯一的例外是跨拆股的持仓:现在按拆股比例换算已累计的极值,原扫描算法用的是未复权的历史行,这一处是修正。累计状态随存档保存,恢复后接着累计。到期结算与强制平仓的成交仍记 0,与此前一致。
|
|
16
|
+
|
|
17
|
+
- **策略要的历史比框架保留的多时,悄悄拿到残缺数据**:`get_history(count=N)` / `get_history_multi` 的 `N` 超过保留长度(`history_depth` / `warmup_period`)时,此前前面永远补 NaN 且没有任何提示,按它算的均值等会一直是 NaN 或偏差;`self.I(..., lookback=L)` 之后取 `ind[n]`(`n >= L`)此前永远返回 `None`,与预热期还没有值分不开。现在第一次超出时自动加长到够用并告警一次(给出该设的值),加长之前已丢掉的数据补不回来,此后满 `N` 根 bar 起拿到完整数据。只是预热期数据还不够时不告警。多个策略共用一份历史缓冲区,别的策略已加长过时不告警。自动加长有上限:取 10000(0.3.82 的默认容量)与策略显式声明的 `history_depth` / `warmup_period`(指标为声明时的 `lookback`)中的较大值;需要的长度超过上限时不再加长,单独告警一次,照旧返回残缺数据,以免 `get_history(self.bars_held)` 这类随时间增长的 `count` 让实盘里的缓冲区无限增长(加长是对全部标的、bar / tick / 窗口序列一起加长)。`StrategyContext` 新增 `ensure_history_capacity(capacity)`。
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
- **订单事件改由 Rust 订单账本产出,回测更快**:每次策略回调前后都要做的订单事件检查(比对在途、撤单、拒单、过期与成交,决定触发哪些 `on_order` / `on_reject` / `on_trade`),原先每次都在 Python 里把上下文的订单列表与一份影子账本逐一比对,即使没有任何订单也照跑。现在比对、去重、终态留档都在 Rust 侧的“订单账本”里完成(每个策略槽一本,随存档保存),Python 只按顺序调用回调;回调种类、顺序、时机与参数数值不变(由回调轨迹基线测试锁定)。20 万根 A 股分钟 bar 的空策略回测从约 2.8 秒降到约 2.5 秒(简单策略约 3.4 秒降到约 2.9 秒),折合每根 bar 空策略省约 1.8µs(约 13%)、简单策略省约 2.6µs(约 15%)。几处细微差别:回调收到的订单对象每次新建(数值相同),框架不再改写策略自己存下的旧订单对象的状态;一次订单事件检查分两段派发(先主动撤单、拒单与过期,再新单、在途变化与成交),在后一段的回调里用 `get_order` 查本次检查中稍后才通知变化的单(新单、部分成交、撤单、成交),查到的已是变化后的状态(此前是变化前的状态);从存档续跑时,`on_resume` / `on_start` 里用 `get_order` 查存档前的在途单返回 `None`(第一根 bar 起恢复可查,与同一时刻 `get_open_orders()` 返回空列表一致);直接用底层 `Engine.set_strategy_slots` 配多个槽位(不经 `run_backtest` / `run_live`)时,成交只派给所属槽位,不再广播给其他槽位。`StrategyContext` 新增 `order_events` 与 `find_order`(框架内部使用)。
|
|
21
|
+
- **历史缓冲区默认容量从 10000 降到 1,多标的回测内存大幅下降**:此前为了让 MAE / MFE 有历史可扫,即使策略不取历史,也给每个标的预留 10000 行。MAE / MFE 改为边走边算后不再需要它;策略要取历史时,容量按各策略设的 `history_depth` 设置(回测还会计入 `warmup_period` 与指标推断的预热期):在 `__init__` 或 `on_start` 里调用 `set_history_depth` 都生效,实盘、槽位策略与直接调用 `Engine.run` 时同样如此;运行中再调用会立即加长。2000 个标的、250 个交易日的日线回测,回测期间新增的内存从约 1130MB 降到约 260MB。
|
|
22
|
+
- 存档格式变化:未平持仓记录新增累计极值字段,旧存档恢复后这些字段为空(只按开仓价与平仓价计);订单账本改随引擎存档,用 0.3.82 及更早的存档续跑时,存档时的在途单会再收到一次 `on_order(New)`。不再保证与旧版本存档兼容。
|
|
23
|
+
- 教材第 4 章示例(`examples/textbook/ch04_comparison.py` 及函数式版)取历史的长度改为与预热期一致,运行时不再触发自动加长告警,回测数值不变。
|
|
24
|
+
|
|
10
25
|
## [0.3.82] - 2026-11-07
|
|
11
26
|
|
|
12
27
|
> **规则版本不变(2.2.0)**:回测数值不变,只是更快。
|
|
@@ -135,6 +135,7 @@ Built-in indicators (`SMA`, `EMA`, etc.) support pickle serialization. For custo
|
|
|
135
135
|
7. **Strategy-level risk state continuity**: Strategy limits, strategy cashflow, daily-loss baseline, drawdown peak, and reduce-only activation state are persisted and restored.
|
|
136
136
|
8. **Default timezone**: If `timezone` is not explicitly provided to `run_from_checkpoint`, default is `Asia/Shanghai`.
|
|
137
137
|
9. **`self.I(factory=...)` factories must be picklable**: the snapshot serializes the strategy instance, and a local `lambda` cannot be pickled. Use a module-level function plus `functools.partial`.
|
|
138
|
+
10. **`get_order` cannot see pre-checkpoint open orders until the first bar**: in `on_resume` / `on_start`, `get_order` for an order that was still open at checkpoint time returns `None` (just as `get_open_orders()` returns an empty list at that moment); it becomes queryable again from the first bar. Do not treat that `None` as "the order is gone" and submit it again.
|
|
138
139
|
|
|
139
140
|
## 5. Full Example
|
|
140
141
|
|
|
@@ -82,6 +82,12 @@ that the requested frequency was actually subscribed.
|
|
|
82
82
|
out of range by nature, and raising would force every strategy to wrap reads in `try`
|
|
83
83
|
- Lookback depth is bounded by `lookback` (default `128`) over a ring buffer: a live
|
|
84
84
|
session is an unbounded stream, and an unbounded buffer would leak
|
|
85
|
+
- If `ind[n]` asks for `n` beyond `lookback`, the buffer grows automatically and a
|
|
86
|
+
warning is logged once; values dropped before the growth cannot be recovered, so
|
|
87
|
+
`ind[n]` has a value from `n+1` bars later. Declare `self.I(..., lookback=n+1)` as the
|
|
88
|
+
warning suggests. Automatic growth is capped at the larger of 10000 and the declared
|
|
89
|
+
`lookback`; beyond the cap it no longer grows, warns once on its own, and keeps
|
|
90
|
+
returning `None`
|
|
85
91
|
|
|
86
92
|
A not-ready value is always `None` (both a native indicator with an unfilled window and a
|
|
87
93
|
precomputed indicator whose asof lookup misses are normalized to `None`), so a single
|
|
@@ -609,6 +609,8 @@ class MyStrategy(Strategy):
|
|
|
609
609
|
self.sell(symbol=bar.symbol, quantity=100)
|
|
610
610
|
```
|
|
611
611
|
|
|
612
|
+
**When `count` exceeds the retained length, the history grows automatically and warns once**: the retained length is `history_depth` / `warmup_period`. 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
|
+
|
|
612
614
|
## 5. Orders & Execution
|
|
613
615
|
|
|
614
616
|
### 4.1 Order Lifecycle
|
|
@@ -994,7 +996,7 @@ class MultiSymbolIncrementalStrategy(Strategy):
|
|
|
994
996
|
|
|
995
997
|
Notes:
|
|
996
998
|
|
|
997
|
-
* `ind[0]` is the current bar's value (`.value` is an alias) and `ind[1]` is the previous bar. Out-of-range lookback returns `None` instead of raising, so a single `if val is None` check covers the warmup period.
|
|
999
|
+
* `ind[0]` is the current bar's value (`.value` is an alias) and `ind[1]` is the previous bar. Out-of-range lookback returns `None` instead of raising, so a single `if val is None` check covers the warmup period. Asking for `ind[n]` with `n` beyond `lookback` (default 128) grows the buffer automatically and logs a warning once; size `lookback` as the warning suggests.
|
|
998
1000
|
* If one shared instance is reused across multiple symbols, AKQuant raises an explicit error and points users to `factory=`.
|
|
999
1001
|
* In `on_bar` / `on_tick`, `ind[0]` reads the current symbol; in callbacks that do not belong to a symbol (`on_timer`, `on_cross_section`, ...) read a multi-symbol indicator with `ind.of(symbol)[0]` — a bare read raises. See the [Custom Indicator Guide](./custom_indicator.md#indicator-of-symbol).
|
|
1000
1002
|
* `warmup_bars` only consumes history before the active start boundary and does not double-consume the first active bar.
|
|
@@ -177,7 +177,7 @@ return GatewayBundle(
|
|
|
177
177
|
|
|
178
178
|
终态集在核心侧的落点是 `python/akquant/live/_payload_utils.py`
|
|
179
179
|
的 `_TERMINAL_STATUSES`,三个内置 broker 的 `_is_terminal_status()` 与之同口径;
|
|
180
|
-
回测侧对应 `
|
|
180
|
+
回测侧对应 `src/order_ledger.rs` 的 `is_terminal`。`Expired` 是
|
|
181
181
|
日内单收盘作废、柜台把单判废这类场景,**别漏**:漏掉它等于把终态单当活单。
|
|
182
182
|
|
|
183
183
|
三条容易踩的坑:
|
|
@@ -141,6 +141,7 @@ AKQuant 内置的指标(如 `SMA`, `EMA`)已经支持 Pickle 序列化。如
|
|
|
141
141
|
7. **策略级风控状态可恢复**:策略限额、策略现金流、日损基线、回撤峰值、仅平仓激活态等会随快照保存并恢复,便于断点续跑后保持风控行为连续。
|
|
142
142
|
8. **默认时区**:`run_from_checkpoint` 未显式传入 `timezone` 时,默认使用 `Asia/Shanghai`。
|
|
143
143
|
9. **`self.I(factory=...)` 的工厂必须可 `pickle`**:快照会序列化策略实例,局部的 `lambda` 无法 `pickle`。请改用模块级函数 + `functools.partial`。
|
|
144
|
+
10. **续跑开始时 `get_order` 查不到存档前的在途单**:`on_resume` / `on_start` 里用 `get_order` 查存档时仍在途的订单返回 `None`(同一时刻 `get_open_orders()` 也返回空列表),从第一根 bar 起恢复可查。不要把这里的 `None` 当成“单已经没了”而重复下单。
|
|
144
145
|
|
|
145
146
|
## 5. 完整示例
|
|
146
147
|
|
|
@@ -77,6 +77,9 @@ class MaCross(Strategy):
|
|
|
77
77
|
- **越界返回 `None`,不抛异常**——预热期天然越界,抛错会逼每个策略都写 `try`
|
|
78
78
|
- 回溯深度由 `lookback` 界定(默认 128),底层是有界环形缓冲:实盘是无限流,
|
|
79
79
|
无界缓冲必然泄漏
|
|
80
|
+
- `ind[n]` 的 `n` 超出 `lookback` 时自动加长并告警一次:加长之前的值补不回来,此后满
|
|
81
|
+
`n+1` 根 bar 起才有值。请按告警在声明时写 `self.I(..., lookback=n+1)`。自动加长的上限是
|
|
82
|
+
10000 与声明的 `lookback` 中的较大值,超过上限不再加长,单独告警一次,照旧返回 `None`
|
|
80
83
|
|
|
81
84
|
未就绪时取值为 `None`(原生指标未满窗、预计算指标 asof 落空都归一成 `None`),
|
|
82
85
|
因此判空统一写 `if value is None`,不必再区分 `NaN`。
|
|
@@ -766,6 +766,7 @@ AKQuant 提供了两种风格的策略开发接口:
|
|
|
766
766
|
|
|
767
767
|
* **`self.get_history(count, ...)`**: 返回 `numpy.ndarray`,性能最高,适合计算指标。
|
|
768
768
|
* **`self.get_history_df(count, ...)`**: 返回 `pandas.DataFrame`,包含 OHLCV,适合复杂分析。
|
|
769
|
+
* **`count` 超过保留长度时会自动加长并告警一次**:保留长度取 `history_depth` / `warmup_period`。`count` 更大时,框架第一次遇到就把保留长度加到 `count`,并打一条告警给出该设的值;加长之前已丢掉的数据补不回来,此后满 `count` 根 bar 起才是完整数据。请按告警在 `on_start` 里调用 `self.set_history_depth(N)` 提前设置(回测与实盘都生效)。预热期数据还不够(前面补 NaN)是正常情况,不会告警。自动加长有上限:取 10000 与显式声明的 `history_depth` / `warmup_period` 中的较大值;`count` 超过上限时不再加长,单独告警一次,照旧前面补 NaN,以免 `get_history(self.bars_held)` 这类随时间增长的 `count` 让实盘里的缓冲区无限增长。
|
|
769
770
|
|
|
770
771
|
**`freq` 参数(tick/bar 双流下按需选择粒度)**
|
|
771
772
|
|
|
@@ -1340,7 +1341,7 @@ class MultiSymbolIncrementalStrategy(Strategy):
|
|
|
1340
1341
|
|
|
1341
1342
|
说明:
|
|
1342
1343
|
|
|
1343
|
-
* `ind[0]` 是当前 Bar 的值(`.value` 是它的别名),`ind[1]` 是上一根,越界返回 `None` 而不抛异常,因此判空统一写 `if val is None
|
|
1344
|
+
* `ind[0]` 是当前 Bar 的值(`.value` 是它的别名),`ind[1]` 是上一根,越界返回 `None` 而不抛异常,因此判空统一写 `if val is None`。`ind[n]` 的 `n` 超出 `lookback`(默认 128)时会自动加长并告警一次,此后满 `n+1` 根 bar 起才有值;请按告警在 `self.I(..., lookback=...)` 里设够。
|
|
1344
1345
|
* 如果一个共享实例被多个 `symbol` 复用,框架会显式报错,提示改为 `factory=`。
|
|
1345
1346
|
* `on_bar` / `on_tick` 里 `ind[0]` 取当前标的;在 `on_timer`、`on_cross_section` 等不属于某个标的的回调里,多标的指标用 `ind.of(symbol)[0]` 取值,不写标的会报错,见[自定义指标指南](./custom_indicator.md#indicator-of-symbol)。
|
|
1346
1347
|
* `warmup_bars` 只会消费正式开始时间之前的历史数据,不会重复消费第一根有效 Bar。
|
|
@@ -114,7 +114,7 @@ trait Clock { fn now(&self) -> i64; fn timers(); } // 随事件推
|
|
|
114
114
|
|
|
115
115
|
1. **定规矩**:新增核心逻辑不出现 PyO3,PyO3 只放在各模块的 `python.rs`(`engine/`、`execution/`、`analysis/`、`calendar/` 已是这个结构)。
|
|
116
116
|
2. **策略派发 trait 化**(✅ 2026-11-06):引擎只经 `src/engine/strategy_handler.rs` 的 `StrategyHandler` 调用策略,Python 策略是实现之一(`PyStrategy`);`Engine::run_with_strategy` 可以直接运行 Rust 原生策略,`StrategyContext::submit_order` 是纯 Rust 下单入口;有原生策略跑完整会话的单测。
|
|
117
|
-
3. **按热点把策略语义下沉到 Rust**:Python 策略层约 1.1 万行(订单事件、OCO/括号单、`I()`、sizer、warmup
|
|
117
|
+
3. **按热点把策略语义下沉到 Rust**:Python 策略层约 1.1 万行(订单事件、OCO/括号单、`I()`、sizer、warmup、调度、本地止损……)。先下沉订单事件检查和框架钩子。订单事件检查已下沉(2026-11-08,`src/order_ledger.rs`);下一块是 `on_bar_event` 的簿记(持仓 bar 计数、warmup 计数)。
|
|
118
118
|
4. **出现 Rust 使用方时**,再决定是否单独发布核心 crate、Rust 策略如何加载(Rust 没有稳定 ABI,跨 `.so` 传 trait 对象不安全)。
|
|
119
119
|
|
|
120
120
|
### 6.3 现状与下一步
|
|
@@ -155,10 +155,10 @@ def run_akquant_backtest(df: pd.DataFrame) -> None:
|
|
|
155
155
|
|
|
156
156
|
def on_bar(self, bar: Bar) -> None:
|
|
157
157
|
symbol = bar.symbol
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
)
|
|
161
|
-
if len(closes) < self.ma_long
|
|
158
|
+
# 两条均线最长只用到最近 ma_long 根收盘价,取 ma_long 根即可,
|
|
159
|
+
# 与 warmup_period 一致
|
|
160
|
+
closes = self.get_history(count=self.ma_long, symbol=symbol, field="close")
|
|
161
|
+
if len(closes) < self.ma_long:
|
|
162
162
|
return
|
|
163
163
|
|
|
164
164
|
# 为了避免未来函数,我们使用 [:-1] 切片,仅使用截止到昨天的数据
|
|
@@ -180,8 +180,9 @@ def initialize(ctx: Any) -> None:
|
|
|
180
180
|
def on_bar(ctx: Any, bar: Bar) -> None:
|
|
181
181
|
"""核心交易逻辑,等价于类风格的 on_bar;self 全部换成 ctx."""
|
|
182
182
|
symbol = bar.symbol
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
# 两条均线最长只用到最近 ma_long 根收盘价,取 ma_long 根即可,与 warmup_period 一致
|
|
184
|
+
closes = ctx.get_history(count=ctx.ma_long, symbol=symbol, field="close")
|
|
185
|
+
if len(closes) < ctx.ma_long:
|
|
185
186
|
return
|
|
186
187
|
|
|
187
188
|
# 为了避免未来函数,我们使用 [:-1] 切片,仅使用截止到昨天的数据
|
|
@@ -8,7 +8,7 @@ try:
|
|
|
8
8
|
except metadata.PackageNotFoundError:
|
|
9
9
|
__version__ = "0.0.0+unknown"
|
|
10
10
|
|
|
11
|
-
__engine_rule_version__ = "2.
|
|
11
|
+
__engine_rule_version__ = "2.3.0" # Increment on behavior-changing updates
|
|
12
12
|
|
|
13
13
|
from . import akquant as _akquant
|
|
14
14
|
from . import log as _log
|
|
@@ -3096,6 +3096,37 @@ class StrategyContext:
|
|
|
3096
3096
|
r"""运行时绩效统计(口径同 result.metrics)."""
|
|
3097
3097
|
...
|
|
3098
3098
|
|
|
3099
|
+
def order_events(
|
|
3100
|
+
self, stage: int, finalized_limit: int, trade_limit: int
|
|
3101
|
+
) -> typing.Optional[tuple[list[tuple[Order, bool]], list[Trade], bool]]:
|
|
3102
|
+
r"""
|
|
3103
|
+
本次订单事件检查要通知策略的回调(框架内部使用).
|
|
3104
|
+
|
|
3105
|
+
:param stage: 0 或 1
|
|
3106
|
+
:param finalized_limit: 终态留档上限
|
|
3107
|
+
:param trade_limit: 成交去重上限
|
|
3108
|
+
:return: None(无事件) 或 ([(order, fire_reject), ...], [trade, ...], done)
|
|
3109
|
+
"""
|
|
3110
|
+
...
|
|
3111
|
+
|
|
3112
|
+
def find_order(self, order_id: str) -> typing.Optional[Order]:
|
|
3113
|
+
r"""
|
|
3114
|
+
按订单号查订单(本槽账本在途 → 上下文在途 → 终态留档).
|
|
3115
|
+
|
|
3116
|
+
:param order_id: 订单号
|
|
3117
|
+
:return: 订单快照, 查不到为 None
|
|
3118
|
+
"""
|
|
3119
|
+
...
|
|
3120
|
+
|
|
3121
|
+
def ensure_history_capacity(self, capacity: int) -> bool:
|
|
3122
|
+
r"""
|
|
3123
|
+
把历史缓冲区的保留长度加到至少 ``capacity``(只增不减, 已有数据保留).
|
|
3124
|
+
|
|
3125
|
+
:param capacity: 需要保留的行数
|
|
3126
|
+
:return: 是否真的加长了(此前保留的不够)
|
|
3127
|
+
"""
|
|
3128
|
+
...
|
|
3129
|
+
|
|
3099
3130
|
def history(
|
|
3100
3131
|
self,
|
|
3101
3132
|
symbol: str,
|
|
@@ -97,7 +97,6 @@ from ..strategy_framework_hooks import (
|
|
|
97
97
|
normalize_dual_stream_declaration,
|
|
98
98
|
)
|
|
99
99
|
from ..strategy_loader import resolve_strategy_input
|
|
100
|
-
from ..strategy_order_events import assign_slot_ownership
|
|
101
100
|
from ..strategy_runtime_config import apply_strategy_runtime_config
|
|
102
101
|
from ..strategy_window import (
|
|
103
102
|
configure_engine_window_subscriptions,
|
|
@@ -3689,10 +3688,6 @@ def run_backtest(
|
|
|
3689
3688
|
setattr(strategy_instance, "_owner_strategy_id", effective_strategy_id)
|
|
3690
3689
|
for slot_key, slot_strategy in slot_strategy_instances.items():
|
|
3691
3690
|
setattr(slot_strategy, "_owner_strategy_id", slot_key)
|
|
3692
|
-
assign_slot_ownership(
|
|
3693
|
-
{effective_strategy_id: strategy_instance, **slot_strategy_instances},
|
|
3694
|
-
effective_strategy_id,
|
|
3695
|
-
)
|
|
3696
3691
|
# 数据周期注入 self.freq(只读)。freq 此前只用于 tick→bar 聚合、用完即弃,
|
|
3697
3692
|
# 策略没有任何途径知道自己跑在什么周期上。纯 bar 数据不传 freq 时保持 None
|
|
3698
3693
|
# (不从相邻 bar 时间戳差推断: 停牌/跨日/午休会让它给出错误答案)。
|
|
@@ -6333,10 +6328,6 @@ def run_from_checkpoint(
|
|
|
6333
6328
|
setattr(strategy_instance, "_owner_strategy_id", effective_strategy_id)
|
|
6334
6329
|
for slot_key, slot_strategy in slot_strategy_instances.items():
|
|
6335
6330
|
setattr(slot_strategy, "_owner_strategy_id", slot_key)
|
|
6336
|
-
assign_slot_ownership(
|
|
6337
|
-
{effective_strategy_id: strategy_instance, **slot_strategy_instances},
|
|
6338
|
-
effective_strategy_id,
|
|
6339
|
-
)
|
|
6340
6331
|
indicator_recorder = _attach_indicator_recorder(
|
|
6341
6332
|
stream_emitter=indicator_stream_emitter,
|
|
6342
6333
|
strategy_instance=strategy_instance,
|
|
@@ -127,7 +127,8 @@ class BrokerEventBridge:
|
|
|
127
127
|
def _order_state_fingerprint(self, payload: Any) -> str:
|
|
128
128
|
"""委托状态指纹: 状态+已成交量+均价+拒单原因, **刻意不含时间戳**.
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
口径对齐回测侧订单账本的状态指纹
|
|
131
|
+
(``src/order_ledger.rs::order_event_key``): 含时间戳的键
|
|
131
132
|
每次重推都会变、去重完全失效(这类缺陷最常见的写法); 只按订单号去重又会
|
|
132
133
|
把 ``New -> PartiallyFilled -> Filled`` 这些真实的状态推进整批吞掉。
|
|
133
134
|
|
|
@@ -508,7 +508,8 @@ class BrokerOrderSubmitter:
|
|
|
508
508
|
"""把前置风控拒单以 `Rejected` 委托事件回吐给策略.
|
|
509
509
|
|
|
510
510
|
走 `on_order` + `on_reject` 而非错误回调: 与回测同口径——回测的风控拒单
|
|
511
|
-
经 `Event::ExecutionReport(Rejected)`
|
|
511
|
+
经 `Event::ExecutionReport(Rejected)` 由 Rust 订单账本产出 on_order +
|
|
512
|
+
on_reject(`src/order_ledger.rs`), 策略靠
|
|
512
513
|
`on_reject` 感知。实盘若改用 `on_error`, 同一份策略代码就得写两套感知逻辑。
|
|
513
514
|
"""
|
|
514
515
|
self._risk_reject_seq += 1
|
|
@@ -532,7 +533,7 @@ class BrokerOrderSubmitter:
|
|
|
532
533
|
"""把一笔 Rejected 委托派发给 on_order + on_reject.
|
|
533
534
|
|
|
534
535
|
broker_live 的事件桥直调 `on_order`(broker_event_bridge.py), 不走回测那套
|
|
535
|
-
|
|
536
|
+
订单账本的 Rejected→on_reject 级联, 故这里显式派发两者。
|
|
536
537
|
"""
|
|
537
538
|
for callback_name in ("on_order", "on_reject"):
|
|
538
539
|
callback = getattr(self._strategy, callback_name, None)
|
|
@@ -18,6 +18,8 @@ from dataclasses import dataclass, field
|
|
|
18
18
|
from typing import Any, Callable, Deque, Dict, NamedTuple, Optional, Tuple, cast
|
|
19
19
|
|
|
20
20
|
from .akquant import clone_indicator as _clone_rust_indicator
|
|
21
|
+
from .log import get_logger
|
|
22
|
+
from .strategy_history import AUTO_GROW_LIMIT
|
|
21
23
|
|
|
22
24
|
#: 标签未知(基础周期不可解析)时 ``set_provisional`` 记的占位标签; 不发流事件。
|
|
23
25
|
UNKNOWN_LABEL = -1
|
|
@@ -25,6 +27,8 @@ UNKNOWN_LABEL = -1
|
|
|
25
27
|
#: 回溯缓冲默认深度。足够绝大多数形态判断(交叉、背离、N 根新高)。
|
|
26
28
|
DEFAULT_LOOKBACK = 128
|
|
27
29
|
|
|
30
|
+
_logger = get_logger("strategy")
|
|
31
|
+
|
|
28
32
|
|
|
29
33
|
def _normalize_value(value: Any) -> Any:
|
|
30
34
|
"""NaN 归一成 None: 两条路的"未就绪"对用户必须长一个样."""
|
|
@@ -179,6 +183,10 @@ class IndicatorDeclaration:
|
|
|
179
183
|
|
|
180
184
|
# --- 序列回溯 ---
|
|
181
185
|
lookback: int = DEFAULT_LOOKBACK
|
|
186
|
+
#: 回看超出 lookback 自动加长时是否已告警过(只告警一次)
|
|
187
|
+
lookback_grown_warned: bool = False
|
|
188
|
+
#: 回看超出自动加长上限时是否已告警过(只告警一次)
|
|
189
|
+
lookback_limit_warned: bool = False
|
|
182
190
|
#: symbol -> 最近 lookback 个**已确认**取值(含未就绪时的 None)
|
|
183
191
|
history: Dict[str, Deque[Any]] = field(default_factory=dict)
|
|
184
192
|
|
|
@@ -239,6 +247,62 @@ class IndicatorDeclaration:
|
|
|
239
247
|
self.history[symbol] = buffer
|
|
240
248
|
buffer.append(value)
|
|
241
249
|
|
|
250
|
+
def ensure_lookback(self, symbol: str, offset: int, name: str) -> None:
|
|
251
|
+
"""``offset`` 超出 ``lookback`` 时把所有 symbol 的回溯缓冲加长到够用.
|
|
252
|
+
|
|
253
|
+
有临时值时 ``[n]`` 取的是已确认序列的第 n-1 个(见 :meth:`value_at`)。
|
|
254
|
+
加长前已淘汰的值补不回来。第一次加长时告警一次。
|
|
255
|
+
|
|
256
|
+
门槛直接比 ``lookback``: 它就是回溯缓冲(``deque``)的实际长度, 不存在
|
|
257
|
+
"声明了而缓冲没跟上"的情况。
|
|
258
|
+
|
|
259
|
+
需要的长度超过自动加长上限 ``max(AUTO_GROW_LIMIT, 声明的 lookback)`` 时
|
|
260
|
+
不加长、单独告警一次, 照旧返回 ``None``: 防止 ``ind[self.bars_held]`` 这类
|
|
261
|
+
随时间增长的下标让缓冲在实盘里无界增长。自动加长只会加到这个上限以内,
|
|
262
|
+
所以拿当前 ``lookback`` 算出的上限与拿声明值算的相同。
|
|
263
|
+
|
|
264
|
+
:param name: 指标名, 只用于告警文案
|
|
265
|
+
"""
|
|
266
|
+
index = int(offset)
|
|
267
|
+
if index < 0:
|
|
268
|
+
return
|
|
269
|
+
if symbol in self.provisional and index > 0:
|
|
270
|
+
index -= 1
|
|
271
|
+
needed = index + 1
|
|
272
|
+
previous = int(self.lookback)
|
|
273
|
+
if needed <= previous:
|
|
274
|
+
return
|
|
275
|
+
limit = max(AUTO_GROW_LIMIT, previous)
|
|
276
|
+
if needed > limit:
|
|
277
|
+
if not self.lookback_limit_warned:
|
|
278
|
+
self.lookback_limit_warned = True
|
|
279
|
+
_logger.warning(
|
|
280
|
+
"指标 %s 回看 [%d] 超过自动加长上限 %d: 不再自动加长, 照旧返回 "
|
|
281
|
+
"None。确实需要回看这么远, 请在声明时写 self.I(..., lookback=%d)",
|
|
282
|
+
name,
|
|
283
|
+
int(offset),
|
|
284
|
+
limit,
|
|
285
|
+
needed,
|
|
286
|
+
)
|
|
287
|
+
return
|
|
288
|
+
self.lookback = needed
|
|
289
|
+
for key, buffer in list(self.history.items()):
|
|
290
|
+
self.history[key] = deque(buffer, maxlen=needed)
|
|
291
|
+
if self.lookback_grown_warned:
|
|
292
|
+
return
|
|
293
|
+
self.lookback_grown_warned = True
|
|
294
|
+
_logger.warning(
|
|
295
|
+
"指标 %s 回看 [%d] 超出 lookback=%d: 已自动加长到 %d。加长之前的值"
|
|
296
|
+
"补不回来, 此后满 %d 根 bar 起才有值; 请在声明时写 "
|
|
297
|
+
"self.I(..., lookback=%d)",
|
|
298
|
+
name,
|
|
299
|
+
int(offset),
|
|
300
|
+
previous,
|
|
301
|
+
needed,
|
|
302
|
+
needed,
|
|
303
|
+
needed,
|
|
304
|
+
)
|
|
305
|
+
|
|
242
306
|
def value_at(self, symbol: str, offset: int) -> Any:
|
|
243
307
|
"""取该 symbol 前 ``offset`` 根的取值; 越界返回 ``None``.
|
|
244
308
|
|
|
@@ -406,8 +470,18 @@ class IndicatorBinding:
|
|
|
406
470
|
return str(resolved)
|
|
407
471
|
|
|
408
472
|
def __getitem__(self, offset: int) -> Any:
|
|
409
|
-
"""``ind[0]`` 当前值, ``ind[n]`` 前 n 根; 越界返回 ``None``.
|
|
410
|
-
|
|
473
|
+
"""``ind[0]`` 当前值, ``ind[n]`` 前 n 根; 越界返回 ``None``.
|
|
474
|
+
|
|
475
|
+
``n`` 超出 ``lookback`` 时自动加长并告警一次(此前是永远返回 ``None``,
|
|
476
|
+
与预热期还没有值分不开); 超过自动加长上限时不加长, 见
|
|
477
|
+
:meth:`IndicatorDeclaration.ensure_lookback`。
|
|
478
|
+
"""
|
|
479
|
+
declaration = self._declaration()
|
|
480
|
+
symbol = self._resolved_symbol()
|
|
481
|
+
# 快路径: 下标在 lookback 之内时不可能需要加长(有临时值时需要的更少)。
|
|
482
|
+
if int(offset) >= declaration.lookback:
|
|
483
|
+
declaration.ensure_lookback(symbol, offset, self._name)
|
|
484
|
+
return declaration.value_at(symbol, offset)
|
|
411
485
|
|
|
412
486
|
def __len__(self) -> int:
|
|
413
487
|
"""当前 symbol 已积累的回溯长度."""
|
|
@@ -6,7 +6,7 @@ Extracted from the live runner for direct unit testing and reuse by the
|
|
|
6
6
|
|
|
7
7
|
from typing import Any, Dict
|
|
8
8
|
|
|
9
|
-
#: 终态状态文本(小写)。与回测侧 ``
|
|
9
|
+
#: 终态状态文本(小写)。与回测侧 ``src/order_ledger.rs`` 的 ``is_terminal``
|
|
10
10
|
#: 保持同一口径——两边都必须含 ``expired``, 否则日内单收盘作废后仍被当活单。
|
|
11
11
|
_TERMINAL_STATUSES = {"filled", "cancelled", "canceled", "rejected", "expired"}
|
|
12
12
|
|
|
@@ -58,7 +58,6 @@ from ..strategy_framework_hooks import (
|
|
|
58
58
|
normalize_dual_stream_declaration,
|
|
59
59
|
)
|
|
60
60
|
from ..strategy_loader import resolve_strategy_input
|
|
61
|
-
from ..strategy_order_events import assign_slot_ownership
|
|
62
61
|
from ..strategy_runtime_config import apply_strategy_runtime_config
|
|
63
62
|
from ..strategy_window import configure_engine_window_subscriptions
|
|
64
63
|
from ..utils import format_metric_value
|
|
@@ -334,7 +333,8 @@ def _instruments_to_snapshots(
|
|
|
334
333
|
class _StrategyCallbackFanout:
|
|
335
334
|
"""多槽位 broker_live 的柜台回调路由器.
|
|
336
335
|
|
|
337
|
-
与回测/paper 的槽位语义一致(``
|
|
336
|
+
与回测/paper 的槽位语义一致(``Rust 订单账本的槽位归属规则
|
|
337
|
+
(src/order_ledger.rs::SlotOwnership)``):
|
|
338
338
|
订单、成交、执行回报与 OCO/Bracket 协调(``_process_order_groups``)按
|
|
339
339
|
``owner_strategy_id`` 只派给所属槽位, owner 为空或不在任何槽位的归默认
|
|
340
340
|
槽位; 账户回调 ``on_portfolio_update`` 是全账户的, 广播给全部槽位。
|
|
@@ -1349,10 +1349,6 @@ class LiveRunner:
|
|
|
1349
1349
|
setattr(strategy_instance, "_owner_strategy_id", effective_strategy_id)
|
|
1350
1350
|
for slot_id, slot_strategy in slot_strategy_instances.items():
|
|
1351
1351
|
setattr(slot_strategy, "_owner_strategy_id", slot_id)
|
|
1352
|
-
assign_slot_ownership(
|
|
1353
|
-
{effective_strategy_id: strategy_instance, **slot_strategy_instances},
|
|
1354
|
-
effective_strategy_id,
|
|
1355
|
-
)
|
|
1356
1352
|
|
|
1357
1353
|
default_ready = getattr(self, "trading_mode", "paper") != "broker_live"
|
|
1358
1354
|
for target in [strategy_instance, *slot_strategy_instances.values()]:
|
|
@@ -30,7 +30,6 @@ from pydantic import create_model
|
|
|
30
30
|
|
|
31
31
|
from .akquant import (
|
|
32
32
|
Bar,
|
|
33
|
-
Order,
|
|
34
33
|
StrategyContext,
|
|
35
34
|
Tick,
|
|
36
35
|
TimeInForce,
|
|
@@ -93,18 +92,6 @@ from .strategy_order_events import (
|
|
|
93
92
|
from .strategy_order_events import (
|
|
94
93
|
flush_terminal_expiry_events as _flush_terminal_expiry_events_impl,
|
|
95
94
|
)
|
|
96
|
-
from .strategy_order_events import (
|
|
97
|
-
key_value as _key_value_impl,
|
|
98
|
-
)
|
|
99
|
-
from .strategy_order_events import (
|
|
100
|
-
remember_trade_key as _remember_trade_key_impl,
|
|
101
|
-
)
|
|
102
|
-
from .strategy_order_events import (
|
|
103
|
-
trade_dedupe_cache_limit as _trade_dedupe_cache_limit_impl,
|
|
104
|
-
)
|
|
105
|
-
from .strategy_order_events import (
|
|
106
|
-
trade_event_key as _trade_event_key_impl,
|
|
107
|
-
)
|
|
108
95
|
from .strategy_position import Position
|
|
109
96
|
from .strategy_preload import PHASE_RUN, replay_preload_history
|
|
110
97
|
from .strategy_runtime_config import (
|
|
@@ -385,13 +372,8 @@ class Strategy:
|
|
|
385
372
|
_ml_pending_window_index: int
|
|
386
373
|
_ml_pending_window_start_bar: Optional[int]
|
|
387
374
|
_ml_pending_window_end_bar: Optional[int]
|
|
388
|
-
_known_orders: Dict[str, Order]
|
|
389
|
-
_finalized_orders: Dict[str, Order]
|
|
390
|
-
_finalized_order_ids: Deque[str]
|
|
391
375
|
_pending_canceled_order_ids: set[str]
|
|
392
376
|
_pending_canceled_order_id_queue: Deque[str]
|
|
393
|
-
_seen_trade_keys: set[Tuple[Any, ...]]
|
|
394
|
-
_seen_trade_key_order: Deque[Tuple[Any, ...]]
|
|
395
377
|
timezone: str = "Asia/Shanghai"
|
|
396
378
|
#: 每个 (标的, 绘图类型) 最多保留的存活对象数,超出淘汰最早创建的
|
|
397
379
|
#: (同 Pine max_labels_count)
|
|
@@ -423,9 +405,6 @@ class Strategy:
|
|
|
423
405
|
_framework_pre_open_done_date: Optional[dt.date]
|
|
424
406
|
_framework_last_portfolio_state: Any
|
|
425
407
|
_framework_portfolio_dirty: bool
|
|
426
|
-
_framework_rejected_order_ids: set[str]
|
|
427
|
-
_framework_order_event_keys: set[Tuple[Any, ...]]
|
|
428
|
-
_framework_order_event_key_order: Deque[Tuple[Any, ...]]
|
|
429
408
|
_framework_expiry_event_keys: set[Tuple[Any, ...]]
|
|
430
409
|
_framework_live_stop_dispatched: bool
|
|
431
410
|
_framework_in_pre_open_phase: bool
|
|
@@ -595,17 +574,12 @@ class Strategy:
|
|
|
595
574
|
instance._live_market_data_owner = False
|
|
596
575
|
instance._warned_live_subscriptions = set()
|
|
597
576
|
instance._last_prices = {}
|
|
598
|
-
instance._known_orders = {}
|
|
599
|
-
instance._finalized_orders = {}
|
|
600
|
-
instance._finalized_order_ids = deque()
|
|
601
577
|
# 撤单意图: 必须在此初始化。三处使用点都写作
|
|
602
578
|
# ``getattr(strategy, "_pending_canceled_order_ids", set())``, 该惯用法在
|
|
603
579
|
# 属性缺失时返回一个**临时** set, 其后的 isinstance 检查恒真 ⇒ setattr 永不
|
|
604
580
|
# 执行 ⇒ add 落到临时集合上随即丢弃。字段预先存在才能让 add 真正生效。
|
|
605
581
|
instance._pending_canceled_order_ids = set()
|
|
606
582
|
instance._pending_canceled_order_id_queue = deque()
|
|
607
|
-
instance._seen_trade_keys = set()
|
|
608
|
-
instance._seen_trade_key_order = deque()
|
|
609
583
|
instance._hold_bars = defaultdict(int)
|
|
610
584
|
instance._last_position_signs = defaultdict(float)
|
|
611
585
|
# per-symbol warmup 门槛计数(与全局 _bar_count 分离, 见该字段注释)。
|
|
@@ -688,9 +662,6 @@ class Strategy:
|
|
|
688
662
|
instance._framework_pre_open_done_date = None
|
|
689
663
|
instance._framework_last_portfolio_state = None
|
|
690
664
|
instance._framework_portfolio_dirty = True
|
|
691
|
-
instance._framework_rejected_order_ids = set()
|
|
692
|
-
instance._framework_order_event_keys = set()
|
|
693
|
-
instance._framework_order_event_key_order = deque()
|
|
694
665
|
instance._framework_expiry_event_keys = set()
|
|
695
666
|
instance._framework_live_stop_dispatched = False
|
|
696
667
|
instance._framework_in_pre_open_phase = False
|
|
@@ -761,24 +732,16 @@ class Strategy:
|
|
|
761
732
|
# (optimize.py 多进程会 pickle 策略), 且属于会话级运行时状态。
|
|
762
733
|
if "_live_subscription_forwarder" in state:
|
|
763
734
|
del state["_live_subscription_forwarder"]
|
|
735
|
+
# 已确保过的历史容量绑着上下文对象(见 strategy_history), 是会话级运行时状态;
|
|
736
|
+
# 续跑时缓冲区按存档恢复、开跑前还会重配容量, 须重新确认。
|
|
737
|
+
if "_history_capacity_ensured" in state:
|
|
738
|
+
del state["_history_capacity_ensured"]
|
|
764
739
|
# 交易日钩子的按交易日去重日期(_framework_*_done_date)随存档保存: 续跑时
|
|
765
740
|
# 同一交易日已触发过的钩子不再触发(引擎侧也会跳过存档时刻之前的生命周期事件)。
|
|
766
741
|
if "_framework_last_portfolio_state" in state:
|
|
767
742
|
del state["_framework_last_portfolio_state"]
|
|
768
743
|
if "_framework_portfolio_dirty" in state:
|
|
769
744
|
del state["_framework_portfolio_dirty"]
|
|
770
|
-
if "_framework_rejected_order_ids" in state:
|
|
771
|
-
del state["_framework_rejected_order_ids"]
|
|
772
|
-
# on_order 的状态指纹去重集合同属会话内派生态: 刻意**不**随存档带走。
|
|
773
|
-
# 热启动后 ctx 里的在途/终态订单会重新出现一轮, 此时宁可多推一次
|
|
774
|
-
# on_order(让恢复后的策略看到当前订单状态), 也不要因为旧 key 残留而
|
|
775
|
-
# 把恢复后的第一次状态通报整批吞掉。
|
|
776
|
-
for _order_dedupe_key in (
|
|
777
|
-
"_framework_order_event_keys",
|
|
778
|
-
"_framework_order_event_key_order",
|
|
779
|
-
):
|
|
780
|
-
if _order_dedupe_key in state:
|
|
781
|
-
del state[_order_dedupe_key]
|
|
782
745
|
# 实盘收尾标志同属会话内派生态: 续跑是一段新会话, 理应能再收尾一次。
|
|
783
746
|
if "_framework_live_stop_dispatched" in state:
|
|
784
747
|
del state["_framework_live_stop_dispatched"]
|
|
@@ -797,12 +760,6 @@ class Strategy:
|
|
|
797
760
|
del state["_framework_current_order"]
|
|
798
761
|
if "_framework_current_trade" in state:
|
|
799
762
|
del state["_framework_current_trade"]
|
|
800
|
-
# 终态订单留档: 纯运行期缓存, 且持有不可 pickle 的 Rust Order 对象,
|
|
801
|
-
# 必须排除在快照之外(恢复后按需重新累积)。
|
|
802
|
-
if "_finalized_orders" in state:
|
|
803
|
-
del state["_finalized_orders"]
|
|
804
|
-
if "_finalized_order_ids" in state:
|
|
805
|
-
del state["_finalized_order_ids"]
|
|
806
763
|
if "_indicator_recorder" in state:
|
|
807
764
|
del state["_indicator_recorder"]
|
|
808
765
|
if "_order_group_lock" in state:
|
|
@@ -881,19 +838,11 @@ class Strategy:
|
|
|
881
838
|
self._framework_current_trade = None
|
|
882
839
|
self._is_restored = True # 标记为已恢复状态
|
|
883
840
|
self._start_initialized = False
|
|
884
|
-
if not hasattr(self, "_seen_trade_keys"):
|
|
885
|
-
self._seen_trade_keys = set()
|
|
886
841
|
if not hasattr(self, "_incremental_indicators"):
|
|
887
842
|
self._incremental_indicators = {}
|
|
888
843
|
if not hasattr(self, "_window_subscriptions"):
|
|
889
844
|
self._window_subscriptions = []
|
|
890
845
|
self._window_subscriptions_frozen = False
|
|
891
|
-
if not hasattr(self, "_seen_trade_key_order"):
|
|
892
|
-
self._seen_trade_key_order = deque()
|
|
893
|
-
if not hasattr(self, "_finalized_orders"):
|
|
894
|
-
self._finalized_orders = {}
|
|
895
|
-
if not hasattr(self, "_finalized_order_ids"):
|
|
896
|
-
self._finalized_order_ids = deque()
|
|
897
846
|
if not hasattr(self, "_pending_canceled_order_ids"):
|
|
898
847
|
self._pending_canceled_order_ids = set()
|
|
899
848
|
if not hasattr(self, "_pending_canceled_order_id_queue"):
|
|
@@ -2742,18 +2691,6 @@ class Strategy:
|
|
|
2742
2691
|
def _check_order_events(self) -> None:
|
|
2743
2692
|
_check_order_events_impl(self)
|
|
2744
2693
|
|
|
2745
|
-
def _trade_event_key(self, trade: Any) -> Tuple[Any, ...]:
|
|
2746
|
-
return _trade_event_key_impl(self, trade)
|
|
2747
|
-
|
|
2748
|
-
def _key_value(self, value: Any) -> Any:
|
|
2749
|
-
return _key_value_impl(value)
|
|
2750
|
-
|
|
2751
|
-
def _remember_trade_key(self, key: Tuple[Any, ...]) -> bool:
|
|
2752
|
-
return _remember_trade_key_impl(self, key)
|
|
2753
|
-
|
|
2754
|
-
def _trade_dedupe_cache_limit(self) -> int:
|
|
2755
|
-
return _trade_dedupe_cache_limit_impl(self)
|
|
2756
|
-
|
|
2757
2694
|
def _on_bar_event(self, bar: Bar, ctx: StrategyContext) -> None:
|
|
2758
2695
|
_on_bar_event_impl(self, bar, ctx)
|
|
2759
2696
|
|
|
@@ -3270,8 +3207,8 @@ class Strategy:
|
|
|
3270
3207
|
Returns:
|
|
3271
3208
|
Order: 订单对象,如果未找到则返回 None
|
|
3272
3209
|
"""
|
|
3273
|
-
# 经执行后端(与 get_position/get_account 一致): 回测 SimExecution→
|
|
3274
|
-
#
|
|
3210
|
+
# 经执行后端(与 get_position/get_account 一致): 回测 SimExecution→
|
|
3211
|
+
# 上下文的订单账本, broker_live BrokerExecution→柜台挂单扫描(否则恒 None)。
|
|
3275
3212
|
return self.execution.get_order(order_id)
|
|
3276
3213
|
|
|
3277
3214
|
def get_account(self) -> Dict[str, Any]:
|