akquant 0.3.85__tar.gz → 0.3.87__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.85 → akquant-0.3.87}/.github/workflows/release.yml +1 -1
- {akquant-0.3.85 → akquant-0.3.87}/CHANGELOG.md +28 -0
- {akquant-0.3.85 → akquant-0.3.87}/Cargo.lock +1 -1
- {akquant-0.3.85 → akquant-0.3.87}/Cargo.toml +1 -1
- {akquant-0.3.85 → akquant-0.3.87}/PKG-INFO +1 -1
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/timezone.md +2 -2
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/factor.md +20 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/mcp.md +3 -3
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/strategy.md +3 -3
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/reference/api.md +3 -3
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/timezone.md +2 -2
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/factor.md +13 -2
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/mcp.md +3 -3
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/strategy.md +3 -3
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/reference/api.md +3 -3
- {akquant-0.3.85 → akquant-0.3.87}/pyproject.toml +1 -1
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/__init__.py +1 -1
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/akquant.pyi +35 -1
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/backtest/engine.py +132 -26
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/factor/parser.py +48 -4
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/live/_facade.py +3 -1
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/live/_runner.py +3 -2
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/guides/orders-and-positions.md +1 -1
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/server.py +10 -6
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/service/api_index.py +19 -4
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/service/check.py +134 -13
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/service/errors.py +114 -1
- akquant-0.3.87/python/akquant/mcp/service/members.py +153 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/sessions_config.py +1 -1
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_scheduler.py +1 -1
- akquant-0.3.87/scripts/update_cn_exchange_calendar.py +58 -0
- {akquant-0.3.85 → akquant-0.3.87}/server.json +3 -3
- {akquant-0.3.85 → akquant-0.3.87}/src/calendar/clock.rs +5 -0
- akquant-0.3.87/src/calendar/cn_exchange.rs +116 -0
- akquant-0.3.87/src/calendar/cn_exchange_closed.txt +610 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/calendar/mod.rs +1 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/calendar/python.rs +41 -2
- {akquant-0.3.85 → akquant-0.3.87}/src/calendar/resolver.rs +67 -9
- {akquant-0.3.85 → akquant-0.3.87}/src/calendar/trading_calendar.rs +50 -8
- {akquant-0.3.85 → akquant-0.3.87}/src/engine/core.rs +109 -7
- {akquant-0.3.85 → akquant-0.3.87}/src/engine/python.rs +26 -7
- {akquant-0.3.85 → akquant-0.3.87}/tests/mcp_server/test_mcp_api_index.py +28 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/mcp_server/test_mcp_check.py +116 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/mcp_server/test_mcp_errors.py +96 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_bar_generator.py +2 -1
- akquant-0.3.87/tests/test_builtin_calendar.py +262 -0
- akquant-0.3.87/tests/test_factor_logic_ops.py +171 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_public_api.py +2 -2
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_report_plot_extensions.py +4 -3
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_source_trading_day.py +41 -4
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_symbols_filtering.py +2 -1
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_trading_day_lifecycle.py +50 -22
- {akquant-0.3.85 → akquant-0.3.87}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/.github/dependabot.yml +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/.github/workflows/deploy-docs.yml +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/.github/workflows/docs-quality.yml +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/.gitignore +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/.pre-commit-config.yaml +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/CODE_OF_CONDUCT.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/CONTRIBUTING.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/LICENSE +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/README.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/assets/dashboard_preview.png +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/assets/logo.svg +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/assets/social_preview.png +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/CNAME +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/assets/akquant-icon.svg +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/assets/akquant-logo.svg +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/assets/reports/akquant_report.html +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/custom_strategy_loader.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/llm.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/ml.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/runtime_config.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/advanced/warm_start.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/analysis.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/custom_indicator.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/data.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/examples.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/optimization.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/python_basics.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/quant_basics.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/testing.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/guide/visualization.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/index.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/meta/architecture.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/meta/internals.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/start/first_strategy.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/start/installation.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/start/quickstart.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/start/setup_guide.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/01_foundations.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/02_programming.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/03_data.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/04_backtest_engine.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/05_strategy.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/06_stock_a.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/07_futures.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/08_options.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/09_funds.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/10_analysis.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/11_optimization.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/12_ml.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/13_visualization.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/14_factor.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/15_live_trading.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/en/textbook/index.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/javascripts/mathjax.js +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/javascripts/search-lang-filter.js +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/llms.txt +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/robots.txt +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/adding_a_broker.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/custom_strategy_loader.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/llm.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/ml.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/runtime_config.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/advanced/warm_start.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/analysis.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/custom_indicator.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/data.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/examples.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/optimization.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/python_basics.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/quant_basics.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/testing.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/guide/visualization.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/index.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/meta/architecture.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/meta/columnar-rfc.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/meta/internals.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/start/first_strategy.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/start/installation.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/start/quickstart.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/start/setup_guide.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/00_glossary.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/01_foundations.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/02_programming.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/03_data.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/04_backtest_engine.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/05_strategy.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/06_stock_a.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/07_futures.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/08_options.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/09_funds.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/10_analysis.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/11_optimization.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/12_ml.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/13_visualization.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/14_factor.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/15_live_trading.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/ROADMAP.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/appendix_cite.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/appendix_pitfalls.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/appendix_setup.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/capstone.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/docs/zh/textbook/index.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/01_quickstart.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/02_parameter_optimization.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/03_parameter_optimization_advanced.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/04_mixed_assets.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/05_live_trading_ctp.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/06_complex_orders.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/07_option_test.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/08_event_callbacks.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/09_ml_framework.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/10_ml_walk_forward.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/11_plot_visualization.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/12_wfo_integrated.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/13_quantstats_report.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/14_multi_frequency.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/15_plot_intraday.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/16_adj_returns_signal.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/17_readme_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/18_benchmark_multisymbol.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/19_factor_expression.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/20_risk_management_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/21_warm_start_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/22_strategy_runtime_config_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/23_functional_callbacks_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/24_functional_tick_simulation_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/25_streaming_backtest_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/26_streaming_quickstart.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/27_streaming_monitoring_console.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/28_streaming_alerts_and_persist.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/29_streaming_event_report.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/30_streaming_report_oneclick.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/31_streaming_live_console.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/32_streaming_live_web.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/33_report_and_analysis_outputs.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/34_multi_strategy_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/35_custom_broker_registry_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/36_trailing_orders.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/37_feed_replay_alignment_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/38_live_functional_strategy_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/39_live_broker_submit_order_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/39_live_mixed_broker_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/40_functional_multi_slot_risk_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/41_live_multi_slot_orchestration_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/42_live_broker_event_audit_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/43_target_weights_rebalance.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/44_strategy_source_loader_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/45_talib_indicator_playbook_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/46_broker_profile_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/47_margin_liquidation_audit_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/48_margin_liquidation_priority_compare.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/49_on_expiry_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/50_framework_hooks_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/51_class_tick_callbacks_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/52_pre_open_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/53_timer_to_pre_open_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/54_functional_pre_open_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/55_functional_ml_walk_forward.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/56_functional_warm_start_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/57_functional_multi_slot_warm_start_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/58_incremental_bootstrap_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/59_akshare_etf_rotation.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/60_custom_indicator_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/61_indicator_visualization_export_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/61_signal_platform_webhook.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/62_indicator_streaming_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/63_indicator_ws_bridge_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/64_indicator_live_web.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/65_bar_generator.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/66_logging_audit_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/67_lwc_trade_review.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/68_backtest_tick_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/69_live_runtime_config_dispatch_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/70_csv_multi_symbol_import_demo.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/71_native_multi_timeframe_live.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/72_declarative_indicators.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/73_lwc_live_indicators.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/74_indicator_scripts.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/75_intrabar_indicators.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/76_tick_intrabar_indicators.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/77_heikin_ashi_indicator.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/78_chart_drawings.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/79_multi_symbol_indicator_timer.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/README.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/benchmark_utils.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/pb_mock.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/strategies/01_stock_dual_moving_average.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/strategies/02_stock_grid_trading.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/strategies/03_stock_atr_breakout.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/strategies/04_stock_momentum_rotation.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/strategies/05_stock_momentum_rotation_timer.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/strategies/06_stock_momentum_rotation_bucket.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/strategies/07_stock_momentum_rotation_on_timer.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/strategies/08_target_positions_long_short.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/strategies/09_stock_momentum_rotation_after_bar.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/strategies/README.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch01_quickstart.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch01_quickstart_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch02_programming.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch03_data.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch04_comparison.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch04_comparison_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch05_strategy.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch05_strategy_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch06_stock_a.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch06_stock_a_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch07_futures.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch07_futures_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch08_options.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch08_options_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch09_funds.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch09_funds_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch09_portfolio.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch09_portfolio_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch10_analysis.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch10_analysis_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch11_optimization.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch11_optimization_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch12_ml.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch12_ml_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch13_visualization.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch13_visualization_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch14_factor.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch15_live_trading.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch15_live_trading_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch15_strategy_loader.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch15_strategy_loader_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch16_indicators.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/examples/textbook/ch16_indicators_functional.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/mkdocs.yml +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/analysis/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/analysis/benchmark.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/analyzer_plugin.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/backtest/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/backtest/__init__.pyi +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/backtest/_viz.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/backtest/fill_mode.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/backtest/merge.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/backtest/result.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/backtest/tick_input.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/bar_batch.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/bar_generator.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/chart/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/chart/_drawing.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/chart/_normalize.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/chart/d3kline.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/checkpoint.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/cli.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/config.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/data.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/execution/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/execution/base.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/execution/sim.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/factor/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/factor/engine.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/factor/ops.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/feed_adapter.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/fund/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/futures/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/base.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/broker_event_adapter.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/broker_event_bridge.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/broker_event_mapper.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/broker_execution.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/broker_models.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/broker_recovery.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/broker_runtime.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/broker_state_cache.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/broker_stats.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/broker_strategy_api.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/brokers/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/brokers/builtins.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/brokers/ctp/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/brokers/ctp/adapter.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/brokers/ctp/native.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/brokers/miniqmt/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/brokers/miniqmt/stub.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/brokers/plugins.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/brokers/ptrade/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/brokers/ptrade/stub.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/brokers/replay/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/brokers/replay/gateway.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/ctp_adapter.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/ctp_native.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/factory.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/local_stop_book.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/mapper.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/miniqmt.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/models.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/order_audit.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/order_errors.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/order_receipt.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/order_submitter.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/protocols.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/ptrade.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/registry.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/symbol_match.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/gateway/trader_base.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/indicator_declaration.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/indicator_identity.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/indicator_recording.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/indicator_script.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/indicator_stream.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/live/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/live/_gateway_setup.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/live/_paper_execution.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/live/_payload_utils.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/live/_preload.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/live/_strategy_maps.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/live/_stream_sink.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/log.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/lwc/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/lwc/_drawings.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/lwc/_indicators.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/lwc/_payload.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/lwc/_template.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/lwc/assets/LICENSE.lightweight-charts +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/lwc/assets/NOTICE.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/lwc/assets/lightweight-charts.standalone.production.js +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/lwc/review.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/__main__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/guides/data-format.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/guides/indicators.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/guides/market-rules.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/guides/strategy-skeleton.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/service/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/service/data.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/service/guides.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/service/paths.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/service/records.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/service/runs.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/mcp/worker.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/ml/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/ml/model.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/normalize.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/optimize.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/option/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/params.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/params_adapter.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/plot/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/plot/_market_data.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/plot/analysis.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/plot/dashboard.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/plot/indicator.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/plot/report.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/plot/strategy.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/plot/utils.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/precomputed.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/py.typed +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/risk.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/schema.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/signal/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/signal/dedup.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/signal/dispatcher.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/signal/models.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/signal/protocols.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/signal/registry.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/signal/security.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/signal/sinks.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/signal/sources/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/signal/sources/http.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/signal/sources/queue.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/signal/sources/redis_stream.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/sizer.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/stock/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_drawing.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_events.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_framework_hooks.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_history.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_inspect.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_loader.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_logging.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_ml.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_order_events.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_position.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_preload.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_runtime_config.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_stats.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_time.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_trading_api.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/strategy_window.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/stream_schema.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/talib/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/talib/_kernels.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/talib/backend.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/talib/core.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/talib/funcs.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/talib/lookback.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/trade_stream.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/utils/__init__.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/utils/inspector.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/python/akquant/utils/price.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/requirements-dev.txt +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/scripts/bench_engine_perbar.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/scripts/cargo-test.sh +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/scripts/check_docs_api_examples.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/scripts/check_docs_links.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/scripts/check_release.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/scripts/dev-check.sh +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/scripts/golden_baseline_report.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/scripts/profile_backtest.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/scripts/stress_out_of_core.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/account.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/analysis/excursion_tests.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/analysis/live_stats.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/analysis/mod.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/analysis/python.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/analysis/result.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/analysis/strategy_stats.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/analysis/tests.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/analysis/tracker.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/analysis/types.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/bin/stub_gen.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/calendar/schedule.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/clock.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/context.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/data/aggregator.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/data/batch.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/data/client.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/data/columns.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/data/compute.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/data/feed.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/data/mod.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/data/parquet_stream.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/data/python_window.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/data/window.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/engine/mod.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/engine/state.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/engine/strategy_handler.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/error.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/event.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/event_manager.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/execution/common.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/execution/crypto.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/execution/forex.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/execution/futures.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/execution/matcher.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/execution/mod.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/execution/option.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/execution/python.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/execution/realtime.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/execution/simulated.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/execution/slippage.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/execution/stock.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/execution/validation.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/history.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/momentum.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/momentum_oscillators.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/momentum_rates.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/moving_average.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/moving_average_compound.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/moving_average_core.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/moving_average_hilbert.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/moving_average_transforms.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/moving_average_windowed.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/trend.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/trend_directional.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/trend_oscillators.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/trend_regression.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/volatility.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/volatility_candle.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/volatility_price.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/volatility_stats.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators/volume.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/indicators.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/lib.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/log_context.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/margin/calculator.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/margin/engine.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/margin/mod.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/market/china.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/market/core.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/market/corporate_action.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/market/fee_override.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/market/fund.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/market/futures.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/market/manager.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/market/mod.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/market/option.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/market/simple.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/market/stock.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/model/corporate_action.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/model/instrument.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/model/market_data.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/model/mod.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/model/order.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/model/timer.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/model/types.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/order_ledger.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/order_manager.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/pipeline/mod.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/pipeline/processor.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/pipeline/runner.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/pipeline/stages/channel.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/pipeline/stages/cleanup.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/pipeline/stages/data.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/pipeline/stages/execution.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/pipeline/stages/mod.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/pipeline/stages/shared.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/pipeline/stages/statistics.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/pipeline/stages/strategy.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/portfolio.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/risk/common.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/risk/config.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/risk/futures.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/risk/manager.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/risk/mod.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/risk/option.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/risk/portfolio.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/risk/rule.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/risk/stock.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/risk/strategy_limits.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/settlement/expiry.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/settlement/handler.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/settlement/manager.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/settlement/mod.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/settlement/option.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/signal_port.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/src/statistics/mod.rs +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/_checkpoint_0371.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/_mock_ctx.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/_order_event_scenarios.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/_plot_cases.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/fixtures/checkpoint_0371_minute.pkl +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/fixtures/order_event_traces.json +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/gateway_contract/test_event_bridge_contract.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/gateway_contract/test_recovery_contract.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/gateway_contract/test_submitter_contract.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/BASELINE_REPORT.md +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/futures_margin/equity_curve.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/futures_margin/metrics.json +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/futures_margin/orders.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/futures_margin/trading_day_ends.json +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/futures_night_weekend/equity_curve.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/futures_night_weekend/metrics.json +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/futures_night_weekend/orders.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/futures_night_weekend/trades.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/futures_night_weekend/trading_day_ends.json +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/option_basic/equity_curve.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/option_basic/metrics.json +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/option_basic/orders.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/option_basic/trading_day_ends.json +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/order_cancel/equity_curve.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/order_cancel/metrics.json +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/order_cancel/orders.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/order_cancel/trades.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/order_cancel/trading_day_ends.json +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/stock_minute_auction/equity_curve.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/stock_minute_auction/metrics.json +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/stock_minute_auction/orders.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/stock_minute_auction/trades.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/stock_minute_auction/trading_day_ends.json +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/stock_t1/equity_curve.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/stock_t1/metrics.json +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/stock_t1/orders.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/stock_t1/trades.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/baselines/stock_t1/trading_day_ends.json +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/data/future_margin.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/data/future_margin.parquet.sha256 +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/data/futures_night_weekend.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/data/futures_night_weekend.parquet.sha256 +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/data/option_basic.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/data/option_basic.parquet.sha256 +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/data/order_cancel.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/data/order_cancel.parquet.sha256 +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/data/stock_minute_auction.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/data/stock_minute_auction.parquet.sha256 +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/data/stock_t1.parquet +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/data/stock_t1.parquet.sha256 +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/gen_data.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/runner.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/strategies/futures_margin.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/strategies/futures_night_weekend.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/strategies/option_basic.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/strategies/order_cancel.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/strategies/stock_minute_auction.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/strategies/stock_t1.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/golden/test_golden.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/mcp_server/conftest.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/mcp_server/test_cli.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/mcp_server/test_mcp_data.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/mcp_server/test_mcp_guides.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/mcp_server/test_mcp_main.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/mcp_server/test_mcp_paths.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/mcp_server/test_mcp_records.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/mcp_server/test_mcp_runs.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/mcp_server/test_mcp_server.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_account_risk_rules.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_api_rename_cash.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_api_rename_composites.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_api_rename_equity.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_api_rename_holding_bars.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_api_rename_positions.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_api_rename_rebalance.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_api_rename_scheduler.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_backtest_fund_fee_rules.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_backtest_params.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_backtest_symbol_column_aliases.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_backtest_tick_aggregate.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_backtest_tick_entry.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_backtest_tick_history.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_bar_aggregator_live.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_bar_hook_bookkeeping_invariants.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_bench_noise_gate.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_boundary_bar_fill.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_bridge_adapts_events.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_bridge_drives_order_groups.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_dropped_counts_periodic_summary.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_event_adapter.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_event_adapter_local_id.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_event_symbol_filter.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_event_task_isolation.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_execution_local_stops.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_execution_read_path_parity.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_execution_stop_requeue.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_live_risk_enforcement.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_order_redelivery_dedup.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_plugins.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_position_sync.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_profile_cn_stock.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_recovery_cadence.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_recovery_error_visibility.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_seed_baseline.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_trade_redelivery_dedup.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_broker_trade_stats.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_buying_power_new_symbol.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_cancel_request_persistence.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_cancel_same_cycle.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_candle_exporters.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_candle_render_type.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_chart_d3kline.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_chart_drawing_normalize.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_chart_normalize.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_check_release.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_checkpoint_0371_compat.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_checkpoint_option_rules.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_close_position_delegate.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_composed_ctx_not_ready.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_cost_config_consolidation.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_cross_section_day_order_next_open_fill.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_ctp_classify_order_error.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_custom_matcher.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_data_catalog.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_date_only_rewrite_cache.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_day_order_expiry_no_zombie_fill.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_deterministic_order.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_docs_api_examples.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_docs_links.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_drawing_stream.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_dual_stream_freq_inference.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_engine.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_engine_python_crossings.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_event_model_parity.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_examples_regression.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_execution_binding.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_execution_broker.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_execution_broker_reads_routed.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_execution_composed_parity.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_execution_read_delegation.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_execution_sim.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_execution_write_delegation.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_expiry_terminal_dispatch.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_expiry_trade_accounting.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_factor_engine.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_factor_ops.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_feed_adapter.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_fetch_akshare_symbol.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_fill_mode.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_broker_live_cancel.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_broker_live_reads.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_broker_models_ext.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_broker_state_cache.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_broker_state_invalidation.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_broker_submitter_quantity.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_broker_submitter_readiness.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_broker_submitter_signature.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_brokers_paths.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_builtins_registry.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_callbacks.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_cancel_failure.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_ctp_adapter.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_ctp_dual_stream.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_ctp_native.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_expired_order_status.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_factory.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_mapper.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_mixed_market_trader.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_optional_market.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_order_error_classification.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_order_submitter_extra.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_order_tick_reject_soft.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_order_tick_validation.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_place_order_failure.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_registry.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_sim_submit_guard.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_symbol_match.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_tif_mapping.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_gateway_trader_base.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_get_order_finalized.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_grid_search_all_failed.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_heikin_ashi.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_history_depth_after_start.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_history_lookback_autogrow.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_hooks_functional_wrapper.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_hooks_inherited_via_base.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_indicator_declaration.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_indicator_declaration_review.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_indicator_dual_stream.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_indicator_duplicate_name.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_indicator_intrabar.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_indicator_live_web_example.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_indicator_multi_symbol_access.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_indicator_non_finite.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_indicator_owner_identity.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_indicator_recording.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_indicator_script.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_inspector.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_instrument_default_tick.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_instrument_fee_override.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_instrument_slippage.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_instrument_symbol_suffix_normalization.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_instruments_config_symbol_mismatch.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_lifecycle_hooks.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_lifecycle_review_fixes.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_auto_preload.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_broker_slot_routing.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_duration_wallclock.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_freq_injection.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_market_config_by_asset_type.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_mixed_market_broker.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_multi_slot_windows.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_paper_execution_params.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_preload_normalize.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_preload_runner.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runner.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runner_bounded_session.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runner_broker_bridge.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runner_broker_readiness.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runner_broker_recovery.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runner_broker_submitter.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runner_client_order_id.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runner_instrument_snapshots.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runner_lifecycle.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runner_no_market_data_warning.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runner_order_request_cache.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runner_sigterm_stop.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runner_stop_remap.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_runtime_config_dispatch.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_subscribe_forwards_to_gateway.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_live_summary_stop_reason.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_local_stop_book.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_local_stop_book_threadsafe.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_local_stop_scenario.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_log_sensitive_filter.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_lwc_drawings.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_lwc_indicators.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_lwc_review.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_merge_results.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_ml_rolling_training_threshold.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_multi_slot_ownership.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_multisymbol_cross_section_consistency.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_naive_timezone.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_normalize.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_oco_bracket_broker_live_scenario.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_on_bars.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_on_execution_report_noop.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_on_timer_suspension_deadlock.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_optimize_functional_params.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_optimize_params.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_option_expiry_settlement.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_option_fees.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_option_market_side_effects.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_order_api_return_values.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_order_audit.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_order_callback_dedupe.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_order_event_timing.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_order_event_traces.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_order_ledger_binding.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_order_receipt.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_order_receipt_backtest.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_order_target_lot_size_alignment.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_orders_df.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_params.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_params_adapter.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_parquet_stream.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_partial_filled_status.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_pickle_model_objects.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_plot_defaults.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_portfolio.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_position_effect_flip.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_pre_open_live_warns.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_product_presets.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_quickstart_stream_consistency.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_reduce_only_sell_affordability.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_removed_wrappers.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_replay_live_end_to_end.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_replay_market_gateway.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_report_helpers.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_result_analysis_extensions.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_review_minors_cleanup.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_run_live_indicator_stream.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_session_config.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_session_matching.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_session_resolver.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_signal_module.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_signal_port_injection.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_signal_sources_p3.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_sizer_auto_resize.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_slippage_bare_number.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_sort_determinism.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_stock_tick_validation.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_stop_id_remap_scenario.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_stop_orders.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_stop_retry_client_order_id.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_custom_init_params.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_drawing.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_events_stop_hook.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_extras.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_freq_attribute.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_history_dual_stream.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_history_missing_symbol_warning.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_inspect.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_loader_candidates.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_loader_exports.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_loader_pickle.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_loader_plugins.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_loader_reload.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_ml_dual_stream.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_order_group_lock.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_params.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_session_api.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_sizing_broker_live_guard.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_stats.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_stats_parity.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_strategy_timers_indicators.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_stream_series_key.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_subscribe_live_warns.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_suspension_zero_volume_gtc_terminal.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_symbols_whitelist_rust.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_t_plus_one.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_talib_alignment.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_talib_backend.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_talib_compat.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_target_orders_core.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_tick_indicators.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_tick_input.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_trade_stream_bridge.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_trades_df.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_utils_price.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_vectorized.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_version.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_viz_namespace.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_volume_limit.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_walk_forward_kwargs.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_warm_start_slippage_inherit.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_warmup_period_per_symbol.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_window_checkpoint.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_window_live_replay.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_window_sessions.py +0 -0
- {akquant-0.3.85 → akquant-0.3.87}/tests/test_window_subscriptions.py +0 -0
|
@@ -269,7 +269,7 @@ jobs:
|
|
|
269
269
|
- uses: actions/checkout@v7
|
|
270
270
|
|
|
271
271
|
- name: Install cosign
|
|
272
|
-
uses: sigstore/cosign-installer@
|
|
272
|
+
uses: sigstore/cosign-installer@756fe2d284c7292c4e9b62c8a28f1e5629c59532 # v4.1.3
|
|
273
273
|
|
|
274
274
|
- name: Download and verify mcp-publisher
|
|
275
275
|
run: |
|
|
@@ -7,6 +7,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.87] - 2026-11-13
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **因子表达式支持逻辑组合**(#446):文档一直写着条件里可以用 `&`、`|`,但解析器从未实现,照文档写会报 `ValueError: Unsupported binary operator: <class 'ast.BitAnd'>`。现在 `&`、`|`、`~` 以及等价的 `and`、`or`、`not` 都可用,如 `If((Close > Open) & (Volume > Ts_Mean(Volume, 20)), 1, 0)`。逐元素计算、没有短路;空值按三值逻辑处理(`空 & False` 得 `False`、`空 | True` 得 `True`)。`&`、`|` 两侧的比较漏写括号时,报错会说明加括号或改用 `and`、`or`。旧版本可用嵌套写法 `If(A, If(B, 1, 0), 0)` 代替。
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- 文档补充 0.3.86 内置交易所日历的一处影响:`broker="replay"` 回放走实盘入口,不按数据修正日历,回放数据落在休市日(如手工造的从 2024-01-01 元旦起的数据)时当天全天闭市、订单不成交(0.3.85 及以前按工作日推算,会成交)。请把数据放在真实交易日,或用 `trading_calendar=` 把这些日期列为交易日。
|
|
17
|
+
|
|
18
|
+
## [0.3.86] - 2026-11-11
|
|
19
|
+
|
|
20
|
+
> **规则版本 2.4.0**:不传 `trading_calendar` 时的缺省交易日历变了。受影响的是此前靠“周一至周五”推算交易日的运行:`schedule_daily` 等按交易日触发的定时任务不再在节假日触发;节前收盘后 `self.trading_day` 直接是节后首个交易日;数据里含周末或节假日日期的回测,这些日期各自成为一个交易日(此前并入下一交易日)。只含真实交易日的 A 股日线回测,收益、回撤等数值不变。显式传了 `trading_calendar` 的运行不受影响。
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- **不用再传交易日历:中国时区内置交易所日历,回测按数据修正**。此前不传 `trading_calendar` 时按“周一至周五”推算交易日并每次运行告警,节假日被当作交易日(照常开日、结算、触发交易日钩子与每日定时任务),带夜盘的期货在节假日前后的交易日归属也会算错;要避免就得每次自己取日历传进来。现在:
|
|
24
|
+
- 中国时区(`Asia/Shanghai` 等)缺省使用随包附带的交易所日历(沪深及期货交易所的休市安排,1990-12-19 起,本版覆盖到 2026-12-31),回测与实盘都生效;`SessionResolver.builtin_calendar_range()` 返回覆盖范围。
|
|
25
|
+
- 回测把数据里出现过行情的日期并入交易日(本地时刻 06:00 之后有 bar 才算,夜盘跨过午夜的部分不算)。超出内置日历范围的日期、以及非中国时区的自定义时段表,所有标的都没有行情的工作日不算交易日。内置日历覆盖的交易日不会因为数据里没有行情而被剔除(个别标的停牌时当天仍是交易日)。
|
|
26
|
+
- 告警只在交易日确实要靠“周一至周五”推算时出现:回测不再告警;实盘在内置日历 30 天内到期或已过期时告警一次,非中国时区的非全天候时段表未传日历时照旧告警一次。
|
|
27
|
+
- 显式传入的 `trading_calendar` 仍以用户为准,行为不变。
|
|
28
|
+
- 已知限制:`run_from_checkpoint` 续跑段、`DataFeed` 与 tick 形态的数据不按数据修正日历,只用内置日历;内置日历每年随交易所公布的休市安排更新(`scripts/update_cn_exchange_calendar.py`),需要升级 AKQuant 才能拿到下一年的安排。
|
|
29
|
+
|
|
30
|
+
- **`BarGenerator` 的日线 `interval_start` 跨节假日时指向节前最后一个交易日的收盘**(此前按工作日推算,指向节假日当天)。
|
|
31
|
+
- **MCP `run_backtest` 的报错更容易定位和修改**:多标的策略里共用增量指标实例(`self.I(SMA(5), name="ma")`)的错误在框架内部抛出,此前 `error.user_frames` 为空,现在指回对应的 `self.I` 声明行;`AttributeError` 的 `error.hint` 给出相近的属性名(没有相近名字且属性不多时列出全部可用属性);`self.I` 传错位置参数或关键字、没设历史深度就取历史数据这几类错误补了 `error.hint`。
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
- `SessionResolver` 新增 `uses_builtin_calendar`、`builtin_calendar_covers(day)`、`builtin_calendar_range()`、`with_calendar_adjustments(added, removed)`;`Engine` 新增 `set_calendar_adjustments(added, removed)`。
|
|
35
|
+
- **MCP `get_api` / `search_api` 能查类成员**:此前只索引顶层导出、`Strategy` 成员和 `run_backtest` 参数,`get_api("BarBatch.missing")`、`get_api("Bar.close")`、`get_api("BacktestResult.metrics_df")` 都报“找不到 API”。现在其余导出类的字段、属性、方法和枚举值都按 `类名.成员` 收录。
|
|
36
|
+
- **MCP `check_strategy` 新增两条诊断**:`bad-call-args`——`self.<Strategy 方法>(...)` 的位置参数过多、缺必填参数、同一参数传了两次(如 `self.I("SMA", 5)`,此前要到回测才报错);`unknown-attribute`——`on_bar` 的 `bar`、`on_bars` 的 `batch`、`on_tick` 的 `tick` 上访问了不存在的属性(如 `bar.clsoe`),提示里给出相近的属性名。入参在函数里被重新赋值时不检查。
|
|
37
|
+
|
|
10
38
|
## [0.3.85] - 2026-11-11
|
|
11
39
|
|
|
12
40
|
> 规则版本不变(2.3.1):回测结果不受影响。实盘重写了 `on_cross_section` 的策略,该钩子现在会被调用(此前从不触发)。
|
|
@@ -108,14 +108,14 @@ results = run_backtest(
|
|
|
108
108
|
|
|
109
109
|
| `timezone` | Default session table without `sessions` | Trading days without `trading_calendar` |
|
|
110
110
|
| :--- | :--- | :--- |
|
|
111
|
-
| China time zones (`Asia/Shanghai`, etc.) | By asset type: stocks/funds `CN_STOCK`, futures `CN_FUTURES_DAY`, options `CN_OPTION`, other assets `ALWAYS_OPEN` |
|
|
111
|
+
| China time zones (`Asia/Shanghai`, etc.) | By asset type: stocks/funds `CN_STOCK`, futures `CN_FUTURES_DAY`, options `CN_OPTION`, other assets `ALWAYS_OPEN` | Built-in exchange calendar: holidays are not trading days; dates beyond its coverage are inferred from weekdays (backtests follow the data) |
|
|
112
112
|
| Other time zones (e.g. `US/Eastern`, `UTC`) | `ALWAYS_OPEN` (continuous trading all day) | Every day is a trading day |
|
|
113
113
|
|
|
114
114
|
When a non-China market needs real trading sessions, pass a custom session table with `sessions=` (format in the [API Reference](../reference/api.md#akquantrun_backtest)).
|
|
115
115
|
|
|
116
116
|
### Trading Calendar `trading_calendar`
|
|
117
117
|
|
|
118
|
-
Both `run_backtest` and `run_live` accept `trading_calendar=` (a list of trading days as `date` / string / `Timestamp`). When omitted
|
|
118
|
+
Both `run_backtest` and `run_live` accept `trading_calendar=` (a list of trading days as `date` / string / `Timestamp`); it is usually not needed. When omitted: China time zones use the built-in exchange calendar (the holiday schedule of the Chinese stock and futures exchanges, updated with each release; see `SessionResolver.builtin_calendar_range()` for its coverage), so holidays are not trading days; backtests additionally treat every date that has data as a trading day. For dates beyond the built-in coverage, and for custom session tables outside China time zones, backtests follow the data (a weekday on which no symbol has data is not a trading day), while live mode infers trading days from weekdays and warns once. `ALWAYS_OPEN` counts every day. Live sessions without `trading_calendar=` use the built-in exchange calendar, so holidays are neither opened nor settled. The built-in calendar is updated with each release; if it expires within 30 days (or has expired) a warning is logged once at startup — upgrade AKQuant or pass `trading_calendar=`. Custom session tables outside China time zones have no built-in calendar: long-running sessions must pass one, otherwise trading days are inferred from weekdays and holidays are opened and settled (a warning is logged once at startup).
|
|
119
119
|
|
|
120
120
|
### Live Timezone
|
|
121
121
|
|
|
@@ -97,6 +97,26 @@ df_batch = engine.run_batch([
|
|
|
97
97
|
|
|
98
98
|
Expressions support variables (column names, case-insensitive, e.g., `Close`, `open`) and constants.
|
|
99
99
|
|
|
100
|
+
### Arithmetic, Comparison & Logical Operators
|
|
101
|
+
|
|
102
|
+
- Arithmetic: `+`, `-`, `*`, `/`, `**`, `%`
|
|
103
|
+
- Comparison: `>`, `<`, `>=`, `<=`, `==`, `!=`
|
|
104
|
+
- Logical: `&` (and), `|` (or), `~` (not); the keywords `and`, `or`, `not` are equivalent
|
|
105
|
+
|
|
106
|
+
```python
|
|
107
|
+
If((Close > Open) & (Volume > Ts_Mean(Volume, 20)), 1, 0)
|
|
108
|
+
If(Close > Open and Volume > Ts_Mean(Volume, 20), 1, 0)
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Notes:
|
|
112
|
+
|
|
113
|
+
- **Parenthesize each comparison around `&` and `|`.** They bind tighter than comparisons, so `Close > Open & Volume > 0` is read as `Close > (Open & Volume) > 0` and raises an error. `and` / `or` bind looser than comparisons and need no parentheses.
|
|
114
|
+
- **Element-wise, no short-circuit.** `and` / `or` behave exactly like `&` / `|` and are evaluated row by row.
|
|
115
|
+
- **Nulls follow three-valued logic.** A comparison against a rolling window that is not yet full is null; `null & False` is `False`, `null | True` is `True`, and other combinations stay null. `If` takes its third argument when the condition is null.
|
|
116
|
+
- Chained comparisons such as `1 < Close < 5` are not supported; write `(1 < Close) & (Close < 5)`.
|
|
117
|
+
|
|
118
|
+
Logical operators are available since 0.3.87. On 0.3.86 and earlier, nest instead: `If(A, If(B, 1, 0), 0)`.
|
|
119
|
+
|
|
100
120
|
### Time Series Operators
|
|
101
121
|
|
|
102
122
|
Calculated independently for each symbol over time.
|
|
@@ -196,11 +196,11 @@ Backtest results and suggestions are AI-generated, for learning and research onl
|
|
|
196
196
|
|
|
197
197
|
| Tool | Purpose |
|
|
198
198
|
|---|---|
|
|
199
|
-
| `search_api` / `get_api` | Look up API signatures and docs (runtime introspection, matches the installed version) |
|
|
199
|
+
| `search_api` / `get_api` | Look up API signatures and docs (runtime introspection, matches the installed version), including class members such as `Bar.close` and `BarBatch.missing` |
|
|
200
200
|
| `get_guide` | Strategy-writing notes: skeleton, orders, indicators, data format, market rules |
|
|
201
|
-
| `check_strategy` | Static check of a strategy file, without executing it |
|
|
201
|
+
| `check_strategy` | Static check of a strategy file, without executing it: misspelled method names, keyword names, argument counts, and attributes that do not exist on callback arguments such as `bar` and `batch` |
|
|
202
202
|
| `prepare_data` | Prepare data: local CSV/Parquet, AKShare (A-share daily bars), synthetic |
|
|
203
|
-
| `run_backtest` | Run a backtest in a subprocess; returns core metrics, the first trades and structured errors |
|
|
203
|
+
| `run_backtest` | Run a backtest in a subprocess; returns core metrics, the first trades and structured errors (the failing strategy line and a fix hint) |
|
|
204
204
|
| `get_run_details` | Page through trades, orders, daily equity and logs |
|
|
205
205
|
|
|
206
206
|
The writing notes are also available as the resource `akquant://guide/{topic}`.
|
|
@@ -233,7 +233,7 @@ class SessionAwareStrategy(Strategy):
|
|
|
233
233
|
Both `run_backtest` and `run_live` accept these two parameters:
|
|
234
234
|
|
|
235
235
|
* `sessions`: symbol prefix → session template name or custom session table; `"default"` is the global default. When omitted, China time zones use per-asset defaults (stocks/funds `CN_STOCK`, futures `CN_FUTURES_DAY`, options `CN_OPTION`, other assets `ALWAYS_OPEN`); other time zones trade continuously all day (`ALWAYS_OPEN`). List the templates with `aq.SessionResolver.templates()`; futures with a night session must be set explicitly, e.g. `sessions={"rb": "CN_FUTURES_NIGHT_23"}`. For the custom table format see the [API Reference](../reference/api.md#akquantrun_backtest).
|
|
236
|
-
* `trading_calendar`: list of trading days (`date` / string / `Timestamp`). When omitted
|
|
236
|
+
* `trading_calendar`: list of trading days (`date` / string / `Timestamp`); usually not needed. When omitted: China time zones use the built-in exchange calendar (the holiday schedule of the Chinese stock and futures exchanges, updated with each release; see `SessionResolver.builtin_calendar_range()` for its coverage), so holidays are not trading days; backtests additionally treat every date that has data as a trading day. For dates beyond the built-in coverage, and for custom session tables outside China time zones, backtests follow the data (a weekday on which no symbol has data is not a trading day), while live mode infers trading days from weekdays and warns once. `ALWAYS_OPEN` counts every day.
|
|
237
237
|
|
|
238
238
|
```python
|
|
239
239
|
import akquant as aq
|
|
@@ -251,7 +251,7 @@ Live notes:
|
|
|
251
251
|
|
|
252
252
|
* Session-aware order queueing only happens in the simulated matching of paper/replay: orders submitted while closed, on break, or during a call auction are queued and not filled as continuous trading. Under `broker_live` orders go straight to the broker counter without session queueing; the session table only determines `ctx.session`, `is_market_open()`, the trading-day split, and the timing of end-of-day settlement and the trading-day hooks.
|
|
253
253
|
* Futures without `sessions` use the `CN_FUTURES_DAY` day-session table, so night-session data is classified as closed (under paper, orders are queued until the day session); symbols with a night session must pass `sessions=`.
|
|
254
|
-
*
|
|
254
|
+
* Live sessions without `trading_calendar=` use the built-in exchange calendar, so holidays are neither opened nor settled. The built-in calendar is updated with each release; if it expires within 30 days (or has expired) a warning is logged once at startup — upgrade AKQuant or pass `trading_calendar=`. Custom session tables outside China time zones have no built-in calendar: long-running sessions must pass one, otherwise trading days are inferred from weekdays and holidays are opened and settled (a warning is logged once at startup). Since live_server 0.12.0, klinedata sessions also fetch the SSE/SZSE trading calendar from the market-data service and pass it in automatically.
|
|
255
255
|
* `run_live(timezone=)` must match the exchange; the end-of-day settlement time and the default session tables are computed in it.
|
|
256
256
|
|
|
257
257
|
## 3. Utilities
|
|
@@ -401,7 +401,7 @@ In addition to the low-level `schedule` method, AKQuant provides more convenient
|
|
|
401
401
|
|
|
402
402
|
* **`schedule_daily(time_str, payload)`**: Triggers at a specified time on every trading day of the trading calendar (not on non-trading days; in a backtest also on trading days without data inside the data range).
|
|
403
403
|
* **Same semantics in backtest and live**: Backtests pre-generate all triggers over the calendar trading days covered by the data; live mode registers only the next trigger and reschedules it along the trading calendar.
|
|
404
|
-
* **Default calendar without `trading_calendar`**:
|
|
404
|
+
* **Default calendar without `trading_calendar`**: China time zones use the built-in exchange calendar (no triggers on holidays); in backtests every date that has data also counts as a trading day, and dates beyond the built-in coverage or custom session tables outside China time zones follow the data. `ALWAYS_OPEN` (the default outside China time zones) counts every day: backtests only use days that have data (no weekend triggers when weekends have no bars), while live mode fires on weekends too and warns once; pass `trading_calendar` for markets closed on weekends such as US equities.
|
|
405
405
|
* **First-day rule**: In backtests, tasks registered in `on_start` take effect from the first market-data event; earlier times on the first day do not fire. In live mode they are also registered on lifecycle events such as pre-open, provided the strategy overrides one of `on_pre_open` / `on_before_trading` / `on_after_trading`; otherwise lifecycle events are not dispatched to the strategy and tasks are registered on the first market-data event.
|
|
406
406
|
* **`schedule_weekly(time_str, payload)`** / **`schedule_monthly(time_str, payload)`**: Trigger on the **first trading day** of each week/month (per the trading calendar, rolling over holidays), in both backtest and live; live mode reschedules to the first trading day of the next week/month.
|
|
407
407
|
* **`schedule(trigger_time, payload)`**: Triggers once at a specified datetime.
|
|
@@ -128,7 +128,7 @@ def run_backtest(
|
|
|
128
128
|
* Recommended to keep enabled to avoid silent parameter mismatch and distorted backtest results.
|
|
129
129
|
* `freq`: Data frequency, default `None`. When `data` is a list containing `Tick`, it is the tick aggregation period (whole minutes only, e.g. `"1min"`): ticks are aggregated into bars and `on_bar` fires as well. Bar data (DataFrame, `List[Bar]`, catalog) may pass it too, to declare the bar period and fill each bar's interval start (`interval_start = timestamp − period`); write it as "positive integer + unit" with unit `min` / `h` / `d` (or `day`), e.g. `"1min"`, `"5min"`, `"1h"`, `"1d"`. Date-only daily bars (local midnight) need no `freq`: they are rewritten to the trading day's close automatically. Daily bars stamped at a fixed non-midnight time such as 15:00 need `freq="1d"`; otherwise each bar is matched in the session of that time (15:00 is classified by "1ns before the timestamp", i.e. 14:59:59.999…, as the closing call auction), orders are queued to the next bar, and a warning is logged once. The strategy's `self.freq` is this value.
|
|
130
130
|
* `sessions`: Symbol prefix → session template name or custom session table (`"default"` is the global default), default `None`. When omitted, China time zones use per-asset defaults (stocks/funds `CN_STOCK`, futures `CN_FUTURES_DAY`, options `CN_OPTION`, other assets `ALWAYS_OPEN`); other time zones trade continuously all day (`ALWAYS_OPEN`). List the templates with `aq.SessionResolver.templates()`. A custom table is a sequence of `(start, end, session[, anchor])` segments, e.g. `[("21:00", "02:30", "continuous"), ("09:00", "15:00", "continuous")]`; anything outside the segments is closed, segments with `start >= "18:00"` anchor to the previous trading day (night session) unless a 4th item `"prev"` / `"day"` says otherwise, and keys match by the longest symbol prefix. Full rules in [Chapter 7](../textbook/07_futures.md).
|
|
131
|
-
* `trading_calendar`: List of trading days (`date` / string / `Timestamp`), default `None`. When omitted
|
|
131
|
+
* `trading_calendar`: List of trading days (`date` / string / `Timestamp`), default `None`. When omitted: China time zones use the built-in exchange calendar (the holiday schedule of the Chinese stock and futures exchanges, updated with each release; see `SessionResolver.builtin_calendar_range()` for its coverage), so holidays are not trading days; backtests additionally treat every date that has data as a trading day. For dates beyond the built-in coverage, and for custom session tables outside China time zones, backtests follow the data (a weekday on which no symbol has data is not a trading day), while live mode infers trading days from weekdays and warns once. `ALWAYS_OPEN` counts every day. When a calendar is given it takes precedence, and data timestamps outside the range it covers raise `ValueError`.
|
|
132
132
|
* `t_plus_one`: Enable T+1 trading rule. When omitted, the `broker_profile` setting is used (all three built-in A-share templates enable it); without a template it is False. If enabled, it forces usage of China Market Model.
|
|
133
133
|
* `slippage`: Global slippage (Default `None`, i.e. no slippage). Must be an explicit policy dict, e.g. `{"type": "percent", "value": 0.0001}` for 1bp (0.01%) percent slippage, or `{"type": "fixed", "value": 0.2}` for a fixed price offset. Bare numbers (including `0`) are no longer accepted and raise `TypeError`. To disable slippage, including overriding a `broker_profile` template, pass `{"type": "zero"}`; omitting it or passing `None` means no override (the template's slippage applies if a `broker_profile` is set, otherwise there is no slippage).
|
|
134
134
|
* `volume_limit_pct`: Max participation rate, default `None` (unlimited, same as 0). With 0.25 a single bar fills at most 25% of its volume, rounded down to whole lots; if that is less than one lot the bar fills nothing and the order stays open. An order whose remaining quantity is at most `volume × pct` still fills in one piece (this may be an odd lot, e.g. selling the last 50 shares); an IOC/FOK order whose floored cap is 0 is cancelled on that bar. **Bar volume must use the same unit as order quantity**: AKShare's Eastmoney `stock_zh_a_hist` reports volume in lots (100 shares), multiply by 100 before enabling the limit; the Sina `stock_zh_a_daily` already reports shares. The limit applies to bar matching only; tick-driven matching is not subject to it. For instruments with fractional quantities (crypto, forex), set `lot_size` (default 1), otherwise the capped quantity is floored to whole units.
|
|
@@ -1184,7 +1184,7 @@ run_live(
|
|
|
1184
1184
|
* **Must match the exchange timezone**: for Chinese markets (e.g. `klinedata` market data, `middleware` trading) keep the default rather than the local machine's or server's timezone; otherwise trading days, end-of-day settlement and Day-order expiry are split by the wrong timezone.
|
|
1185
1185
|
* `sessions` / `trading_calendar`: same as in `run_backtest` (template names or custom schedules); see the session notes in [Chapter 7](../textbook/07_futures.md).
|
|
1186
1186
|
* **Session-aware matching only in paper/replay**: under simulated matching, orders submitted while the session is closed, on break or in a call auction are queued and not filled as continuous trading. Under `broker_live` orders go straight to the broker counter without session queueing; the session table only determines `ctx.session`, `is_market_open()`, the trading-day split, and the timing of end-of-day settlement and the trading-day hooks. Futures without `sessions` use the `CN_FUTURES_DAY` day-session table, so night-session data is classified as closed (under paper, orders are queued until the day session); symbols with a night session must pass `sessions=` (e.g. `{"rb": "CN_FUTURES_NIGHT_23"}`).
|
|
1187
|
-
* **
|
|
1187
|
+
* **Trading calendar in live sessions**: Live sessions without `trading_calendar=` use the built-in exchange calendar, so holidays are neither opened nor settled. The built-in calendar is updated with each release; if it expires within 30 days (or has expired) a warning is logged once at startup — upgrade AKQuant or pass `trading_calendar=`. Custom session tables outside China time zones have no built-in calendar: long-running sessions must pass one, otherwise trading days are inferred from weekdays and holidays are opened and settled (a warning is logged once at startup). When the market-data source reports the trading day (e.g. CTP's `TradingDay`), it can only correct the default calendar before the affected trading day is opened. Since live_server 0.12.0, klinedata sessions fetch the SSE/SZSE trading calendar from the market-data service and pass it in automatically (when that service is deployed in jwt mode it requires `X-QMF-Session`, which live_server does not send, so the calendar cannot be fetched and the built-in exchange calendar is used). **`broker="replay"` goes through the live entry point and does not adjust the calendar from data**: replay data that falls on a non-trading day (weekends or holidays, e.g. hand-made data starting on 2024-01-01) is closed all day and orders do not fill; put the data on real trading days, or list those dates in `trading_calendar=`.
|
|
1188
1188
|
* `day_close_delay`: `float`, default `60.0` (seconds), range 0–86400; out-of-range or non-finite values raise `ValueError`, non-numbers raise `TypeError`. Live end-of-day settlement (Day-order expiry, T+1 unlock, closing snapshot) and `on_after_trading` run at "session close + `day_close_delay`", while the closing snapshot is still stamped at the close; settlement is scheduled from the trading calendar, so it happens even on days without any market data. Backtests are unaffected (they settle at the close).
|
|
1189
1189
|
* **Post-close grace**: in live trading (including replay), market data arriving within `day_close_delay` seconds after the close and before the next trading day's first session segment still belongs to the current day. The grace never crosses the next trading day's open, so session tables such as `ALWAYS_OPEN`, where the close is immediately followed by the next open, effectively have no grace unless an explicit calendar leaves a gap; `day_close_delay=0` also disables it. In the grace window `ctx.trading_day` is the current day and the session is `Closed` (`PostClose` if the custom table has a post-close segment); nothing is matched, no equity point is produced, and the next trading day is not opened early; Day orders submitted in the grace window still belong to the next trading day. The settlement time does not change, and the settlement price is the latest price at the close (only raw market data stamped no later than the close counts). When the gateway aggregates bars from ticks, ticks within `day_close_delay − 5` seconds after the close are merged into the closing bar, which is emitted 2 seconds after that clamping window ends (with `day_close_delay` under 5 seconds nothing is merged). `Engine.trading_day_at` is a pure calendar query and ignores the grace.
|
|
1190
1190
|
* Known limitations: when a checkpoint is taken during the grace window and resumed, that day's settlement price is the latest price at checkpoint time; if a symbol has no tick before the close and only grace-window ticks, its settlement price equals the grace price; a closing bar that arrives after settlement is still dispatched to `on_bar`; with dual streams the symbol's grace ticks are pushed before the closing bar, so timestamps step back once; with several session tables the grace window follows the session-level close (the latest one), so data for an earlier-closing symbol between its own close and the session close is not grace data: it counts toward the day and its settlement price as usual and triggers a one-time "closed session" warning.
|
|
@@ -1253,7 +1253,7 @@ The main entry point for the backtesting engine (usually used implicitly via `ru
|
|
|
1253
1253
|
* `add_bars(bars)`: Append a batch of `Bar` objects.
|
|
1254
1254
|
* `add_tick(tick)`: Append one `Tick` to a live feed.
|
|
1255
1255
|
* `add_arrays(timestamps, opens, highs, lows, closes, volumes, symbol)`: Build bars from arrays and inject them into the feed efficiently; optional `interval_starts=` passes an interval-start column.
|
|
1256
|
-
* `add_trading_day_hint(timestamp_ns, trading_day, source)`: Push the trading day reported by the market-data source (live feeds only; calling it on a backtest feed raises `RuntimeError`); it enters the engine in order with the market data. With `trading_calendar=` a mismatch only warns; without it the hint corrects the default (
|
|
1256
|
+
* `add_trading_day_hint(timestamp_ns, trading_day, source)`: Push the trading day reported by the market-data source (live feeds only; calling it on a backtest feed raises `RuntimeError`); it enters the engine in order with the market data. With `trading_calendar=` a mismatch only warns; without it the hint corrects the default calendar (built-in exchange calendar or weekdays) before the affected trading day is opened. Replay can simulate it with `gateway_options={"trading_day_hints": [(ts_ns, date), ...]}`.
|
|
1257
1257
|
* `sort()`: Sort the current historical feed by event time.
|
|
1258
1258
|
|
|
1259
1259
|
**When to use it:**
|
|
@@ -108,14 +108,14 @@ results = run_backtest(
|
|
|
108
108
|
|
|
109
109
|
| `timezone` | 未传 `sessions` 时的默认时段表 | 未传 `trading_calendar` 时的交易日 |
|
|
110
110
|
| :--- | :--- | :--- |
|
|
111
|
-
| 中国时区(`Asia/Shanghai` 等) | 按资产类型:股票/基金 `CN_STOCK`、期货 `CN_FUTURES_DAY`、期权 `CN_OPTION`,其他资产 `ALWAYS_OPEN` |
|
|
111
|
+
| 中国时区(`Asia/Shanghai` 等) | 按资产类型:股票/基金 `CN_STOCK`、期货 `CN_FUTURES_DAY`、期权 `CN_OPTION`,其他资产 `ALWAYS_OPEN` | 内置交易所日历:节假日不算交易日;超出覆盖范围的日期按工作日推算(回测以数据为准) |
|
|
112
112
|
| 其他时区(如 `US/Eastern`、`UTC`) | `ALWAYS_OPEN`(全天连续竞价) | 每天都算交易日 |
|
|
113
113
|
|
|
114
114
|
非中国市场需要真实交易时段时,用 `sessions=` 传自定义时段表(写法见 [API 参考](../reference/api.md#akquantrun_backtest))。
|
|
115
115
|
|
|
116
116
|
### 交易日历 `trading_calendar`
|
|
117
117
|
|
|
118
|
-
`run_backtest`、`run_live` 都接受 `trading_calendar=`(交易日列表,`date` / 字符串 / `Timestamp
|
|
118
|
+
`run_backtest`、`run_live` 都接受 `trading_calendar=`(交易日列表,`date` / 字符串 / `Timestamp`),一般不用传。不传时:中国时区用内置的交易所日历(沪深及期货交易所的休市安排,随版本更新,覆盖范围见 `SessionResolver.builtin_calendar_range()`),节假日不算交易日;回测还会把数据里出现过行情的日期并入交易日。超出内置日历范围的日期、以及非中国时区的自定义时段表,回测以数据为准(所有标的都没有行情的工作日不算交易日),实盘按工作日推算并告警一次。`ALWAYS_OPEN` 每天都算。实盘不传 `trading_calendar=` 时用内置交易所日历,节假日不开日、不结算;内置日历随版本更新,启动时若 30 天内到期(或已过期)会告警一次,届时请升级 AKQuant 或传入 `trading_calendar=`。非中国时区的自定义时段表没有内置日历,长期运行必须传,否则按工作日推算、节假日照常开日结算(启动时告警一次)。
|
|
119
119
|
|
|
120
120
|
### 实盘时区
|
|
121
121
|
|
|
@@ -77,16 +77,27 @@ df_batch = engine.run_batch(
|
|
|
77
77
|
|
|
78
78
|
### 4.2 运算符
|
|
79
79
|
|
|
80
|
-
- 算术运算:`+`, `-`, `*`,
|
|
80
|
+
- 算术运算:`+`, `-`, `*`, `/`, `**`, `%`
|
|
81
81
|
- 比较运算:`>`, `<`, `>=`, `<=`, `==`, `!=`
|
|
82
|
-
-
|
|
82
|
+
- 逻辑组合:`&`(且)、`|`(或)、`~`(非),也可以写成 `and`、`or`、`not`,两套写法等价
|
|
83
83
|
|
|
84
84
|
示例:
|
|
85
85
|
|
|
86
86
|
```python
|
|
87
87
|
If((Close > Open) & (Volume > Ts_Mean(Volume, 20)), 1, 0)
|
|
88
|
+
If(Close > Open and Volume > Ts_Mean(Volume, 20), 1, 0)
|
|
88
89
|
```
|
|
89
90
|
|
|
91
|
+
使用时注意:
|
|
92
|
+
|
|
93
|
+
- **`&`、`|` 两侧的比较必须各自加括号**。`&`、`|` 的优先级高于比较运算符,`Close > Open & Volume > 0` 会被理解成 `Close > (Open & Volume) > 0` 而报错;`and`、`or` 的优先级低于比较运算符,不需要括号。
|
|
94
|
+
- **逐元素计算,没有短路**。`and`、`or` 在这里与 `&`、`|` 完全相同,对每一行分别求值,不是 Python 里“前一个为假就不再看后一个”的语义。
|
|
95
|
+
- **空值按三值逻辑处理**。滚动窗口未填满时比较结果为空值,此时 `空 & False` 得 `False`、`空 | True` 得 `True`,其余组合仍为空值;`If` 的条件为空值时取第三个参数(“否”分支)。
|
|
96
|
+
- 不支持链式比较 `1 < Close < 5`,请写成 `(1 < Close) & (Close < 5)`。
|
|
97
|
+
|
|
98
|
+
!!! note "版本说明"
|
|
99
|
+
逻辑组合自 0.3.87 起可用。0.3.86 及以前的版本请改用嵌套写法 `If(A, If(B, 1, 0), 0)`。
|
|
100
|
+
|
|
90
101
|
### 4.3 三类分区语义
|
|
91
102
|
|
|
92
103
|
- **TS(时序)**:按 `symbol` 分组滚动。
|
|
@@ -199,11 +199,11 @@ DeepSeek Harness 在 `cordis.patch.yml` 里写两条:
|
|
|
199
199
|
|
|
200
200
|
| 工具 | 作用 |
|
|
201
201
|
|---|---|
|
|
202
|
-
| `search_api` / `get_api` | 查 API
|
|
202
|
+
| `search_api` / `get_api` | 查 API 签名与文档(运行时内省,与本机版本一致),包括 `Bar.close`、`BarBatch.missing` 这类类成员 |
|
|
203
203
|
| `get_guide` | 写策略要点:骨架、下单、指标、数据格式、市场规则 |
|
|
204
|
-
| `check_strategy` |
|
|
204
|
+
| `check_strategy` | 静态检查策略文件,不执行代码:拼错的方法名、参数名、实参个数,以及 `bar`、`batch` 等回调入参上不存在的属性 |
|
|
205
205
|
| `prepare_data` | 准备数据:本地 CSV/Parquet、AKShare(A 股个股日线)、合成数据 |
|
|
206
|
-
| `run_backtest` |
|
|
206
|
+
| `run_backtest` | 在子进程中回测,返回核心指标、前几笔成交和结构化报错(出错的策略行号与修改提示) |
|
|
207
207
|
| `get_run_details` | 分页读取成交、委托、日频权益和日志 |
|
|
208
208
|
|
|
209
209
|
写作要点同时以 resource `akquant://guide/{topic}` 的形式提供。
|
|
@@ -238,7 +238,7 @@ class SessionAwareStrategy(Strategy):
|
|
|
238
238
|
`run_backtest`、`run_live` 都接受这两个参数:
|
|
239
239
|
|
|
240
240
|
* `sessions`:代码前缀 → 时段模板名或自定义时段表,`"default"` 为全局默认。不传时中国时区按资产类型取默认(股票/基金 `CN_STOCK`、期货 `CN_FUTURES_DAY`、期权 `CN_OPTION`,其他资产 `ALWAYS_OPEN`),其他时区全天连续(`ALWAYS_OPEN`)。可选模板见 `aq.SessionResolver.templates()`;有夜盘的期货要显式指定,如 `sessions={"rb": "CN_FUTURES_NIGHT_23"}`。自定义时段表写法见 [API 参考](../reference/api.md#akquantrun_backtest)。
|
|
241
|
-
* `trading_calendar`:交易日列表(`date`/字符串/`Timestamp
|
|
241
|
+
* `trading_calendar`:交易日列表(`date`/字符串/`Timestamp`),一般不用传。不传时:中国时区用内置的交易所日历(沪深及期货交易所的休市安排,随版本更新,覆盖范围见 `SessionResolver.builtin_calendar_range()`),节假日不算交易日;回测还会把数据里出现过行情的日期并入交易日。超出内置日历范围的日期、以及非中国时区的自定义时段表,回测以数据为准(所有标的都没有行情的工作日不算交易日),实盘按工作日推算并告警一次。`ALWAYS_OPEN` 每天都算。
|
|
242
242
|
|
|
243
243
|
```python
|
|
244
244
|
import akquant as aq
|
|
@@ -256,7 +256,7 @@ result = aq.run_backtest(
|
|
|
256
256
|
|
|
257
257
|
* 按时段排队撮合只发生在 paper/replay 的模拟撮合:闭市、休市或集合竞价时订单排队,不按连续竞价成交。`broker_live` 下订单直接报到柜台、不按时段排队,时段表只决定 `ctx.session`、`is_market_open()`、交易日划分与日终结算、交易日钩子的时刻。
|
|
258
258
|
* 期货不传 `sessions` 时按 `CN_FUTURES_DAY` 日盘时段,夜盘行情的时段判为闭市(paper 下订单排到日盘才撮合),有夜盘的品种必须传 `sessions=`。
|
|
259
|
-
*
|
|
259
|
+
* 实盘不传 `trading_calendar=` 时用内置交易所日历,节假日不开日、不结算;内置日历随版本更新,启动时若 30 天内到期(或已过期)会告警一次,届时请升级 AKQuant 或传入 `trading_calendar=`。非中国时区的自定义时段表没有内置日历,长期运行必须传,否则按工作日推算、节假日照常开日结算(启动时告警一次)。live_server 0.12.0 起,klinedata 会话还会自动从行情服务取沪深交易日历传入。
|
|
260
260
|
* `run_live(timezone=)` 须与交易所一致,日终结算时刻与默认时段表都按它计算。
|
|
261
261
|
|
|
262
262
|
## 3. 风险管理 (Risk Management)
|
|
@@ -565,7 +565,7 @@ broker(无行情通道)都属于这种情形。框架**不从数据推断**
|
|
|
565
565
|
|
|
566
566
|
* **`schedule_daily(time_str, payload)`**: 交易日历上的每个交易日在指定时间触发(非交易日不触发;回测区间内没有行情的交易日也触发)。
|
|
567
567
|
* **回测与实盘同一语义**: 回测按数据覆盖范围内的日历交易日预生成所有触发时间;实盘只登记下一次,触发后按交易日历调度下一次。
|
|
568
|
-
* **未配置 `trading_calendar` 时的缺省日历**:
|
|
568
|
+
* **未配置 `trading_calendar` 时的缺省日历**: 中国时区用内置的交易所日历(节假日不触发);回测里数据出现过行情的日期也算交易日,超出内置日历范围或非中国时区的自定义时段表以数据为准。`ALWAYS_OPEN`(非中国时区的缺省)每天都算交易日:回测只取有行情的日子(周末无数据就不触发),实盘则周末也会触发并告警一次;美股等周末休市的市场请传 `trading_calendar`。
|
|
569
569
|
* **首日规则**: 回测中在 `on_start` 里登记的任务从首个行情事件起生效,首日早于该时刻的时点不触发;实盘在盘前等生命周期事件上也会登记(前提是策略重写了 `on_pre_open` / `on_before_trading` / `on_after_trading` 之一;都没重写时,生命周期事件不派发给策略,任务仍在首个行情事件登记)。
|
|
570
570
|
* **`schedule_weekly(time_str, payload)`** / **`schedule_monthly(time_str, payload)`**: 在每周/每月的**首个交易日**(按交易日历,节假日自动顺延)触发,回测与实盘都可用;实盘触发后调度到下周/下月首个交易日。
|
|
571
571
|
* **`schedule(trigger_time, payload)`**: 在指定时间点(一次性)触发。月末、偏移、每两周等非常规节奏,可用 `self.trading_days` 与 `nth_trading_day_of_month/week` 等日历辅助自行枚举,再逐个调 `schedule`。
|
|
@@ -236,7 +236,7 @@ def run_from_checkpoint(
|
|
|
236
236
|
* 推荐保持默认值,避免参数错配被静默忽略导致回测结果偏差。
|
|
237
237
|
* `freq`: 数据周期,默认 `None`。`data` 为含 `Tick` 的列表时是 tick 聚合周期(只支持整数分钟,如 `"1min"`),把 tick 合成 bar 并同时触发 `on_bar`;bar 数据(DataFrame、`List[Bar]`、catalog)也可传,用来声明 bar 周期并填 bar 的区间起点(`interval_start = 时间戳 − 周期`),写法为“正整数 + 单位”,单位 `min` / `h` / `d`(或 `day`),如 `"1min"`、`"5min"`、`"1h"`、`"1d"`。只有日期(本地 0 点)的日线不需要传,会自动改写到交易日收盘时刻;打在 15:00 等固定非 0 点时刻的日线要传 `freq="1d"`,否则每根 bar 按该时刻所在时段撮合(15:00 按“时间戳前 1ns”即 14:59:59.999… 判为收盘集合竞价),订单排到下一根 bar,并告警一次。策略的 `self.freq` 即该值。
|
|
238
238
|
* `sessions`: 代码前缀 → 时段模板名或自定义时段表(`"default"` 为全局默认),默认 `None`。不传时中国时区按资产类型取默认(股票/基金 `CN_STOCK`、期货 `CN_FUTURES_DAY`、期权 `CN_OPTION`,其他资产 `ALWAYS_OPEN`),其他时区全天连续(`ALWAYS_OPEN`)。可选模板见 `aq.SessionResolver.templates()`;自定义时段表写法见下文 `BacktestConfig.china_futures` 一节的时段说明。
|
|
239
|
-
* `trading_calendar`: 交易日列表(`date` / 字符串 / `Timestamp`),默认 `None
|
|
239
|
+
* `trading_calendar`: 交易日列表(`date` / 字符串 / `Timestamp`),默认 `None`。不传时:中国时区用内置的交易所日历(沪深及期货交易所的休市安排,随版本更新,覆盖范围见 `SessionResolver.builtin_calendar_range()`),节假日不算交易日;回测还会把数据里出现过行情的日期并入交易日。超出内置日历范围的日期、以及非中国时区的自定义时段表,回测以数据为准(所有标的都没有行情的工作日不算交易日),实盘按工作日推算并告警一次。`ALWAYS_OPEN` 每天都算。传了日历时以它为准,数据时刻超出所传日历覆盖范围时报 `ValueError`。
|
|
240
240
|
* `t_plus_one`: 是否启用 T+1 交易规则。不传时取 `broker_profile` 模板的设置(三个内置 A 股模板都开),没有模板时为 False。如果启用,将强制使用中国市场模型。
|
|
241
241
|
* `slippage`: 全局滑点 (默认 `None`,即不加滑点)。必须写成策略字典,例如 `{"type": "percent", "value": 0.0001}` 代表 1bp (0.01%) 的百分比滑点,或 `{"type": "fixed", "value": 0.2}` 代表固定价差。不再接受裸数字(含 `0`),传入会抛 `TypeError`。要关掉滑点(包括覆盖 `broker_profile` 模板里的滑点)传 `{"type": "zero"}`;不传或传 `None` 表示不覆盖,设了 `broker_profile` 时沿用模板的滑点,否则不加滑点。
|
|
242
242
|
* `volume_limit_pct`: 成交量限制比例,默认 `None`(不限制,等同 0)。设为 0.25 时单根 bar 最多成交该 bar 成交量的 25%,截断量按手数向下取整,不足一手则本根不成交、订单继续挂着。订单剩余量不超过 `成交量 × 比例` 时仍一次成交(可能是零股,比如卖出最后剩下的 50 股);IOC/FOK 订单若取整后的截断量为 0,当根撤销。**bar 的成交量必须与下单数量同单位**:AKShare 的东方财富接口 `stock_zh_a_hist` 成交量单位是“手”,需先乘以 100 再开启量限;新浪接口 `stock_zh_a_daily` 的单位已是“股”,无需换算。量限只作用于 bar 撮合,tick 驱动的撮合不受量限约束。数量可为小数的品种(加密货币、外汇)需设置 `lot_size`(默认 1),否则截断后的数量会向下取整为整数。
|
|
@@ -1251,7 +1251,7 @@ run_live(
|
|
|
1251
1251
|
* **须与交易所时区一致**:接中国市场(如 `klinedata` 行情、`middleware` 交易)时保持默认,不要改成本机或服务器所在时区,否则交易日、日终结算与 Day 单过期会按该时区划分,与交易所实际不符。
|
|
1252
1252
|
* `sessions` / `trading_calendar`:与 `run_backtest` 同义(模板名或自定义时段表),写法见上文 `BacktestConfig.china_futures` 一节的时段说明与[第 7 章](../textbook/07_futures.md)。
|
|
1253
1253
|
* **按时段撮合只在 paper/replay**:模拟撮合下,时段为闭市、休市或集合竞价时订单排队,不按连续竞价成交。`broker_live` 下订单直接报到柜台、不按时段排队,时段表只决定 `ctx.session`、`is_market_open()`、交易日划分与日终结算、交易日钩子的时刻。期货不传 `sessions` 时按 `CN_FUTURES_DAY` 日盘时段,夜盘行情的时段判为闭市(paper 下订单排到日盘才撮合),有夜盘的品种必须传 `sessions=`(如 `{"rb": "CN_FUTURES_NIGHT_23"}`)。
|
|
1254
|
-
*
|
|
1254
|
+
* **实盘的交易日历**:实盘不传 `trading_calendar=` 时用内置交易所日历,节假日不开日、不结算;内置日历随版本更新,启动时若 30 天内到期(或已过期)会告警一次,届时请升级 AKQuant 或传入 `trading_calendar=`。非中国时区的自定义时段表没有内置日历,长期运行必须传,否则按工作日推算、节假日照常开日结算(启动时告警一次)。行情源报告交易日(如 CTP 的 `TradingDay`)时,只能在所涉交易日开日前修正缺省日历。live_server 0.12.0 起,klinedata 会话自动从行情服务取沪深交易日历传入(行情服务以 jwt 模式部署时需要 `X-QMF-Session`,live_server 不带,取不到日历,退回内置交易所日历)。**`broker="replay"` 回放走实盘入口,不按数据修正日历**:回放数据落在休市日(周末、节假日,如手工造的从 2024-01-01 起的数据)时当天全天闭市,订单不成交;请把数据放在真实交易日,或用 `trading_calendar=` 把这些日期列为交易日。
|
|
1255
1255
|
* `day_close_delay`:`float`,默认 `60.0`(秒),取值 0~86400,越界或非有限值抛 `ValueError`,非数字抛 `TypeError`。实盘日终结算(Day 单过期、T+1 解冻、收盘快照)与 `on_after_trading` 在“会话收盘 + `day_close_delay`”触发,收盘快照仍记在收盘时刻;按交易日历登记,当日没有任何行情也会结算。回测不受影响(收盘时刻结算)。
|
|
1256
1256
|
* **收盘宽限**:实盘(含 replay)在收盘后 `day_close_delay` 秒内、且早于下一交易日首个时段开始时到达的行情仍归当日(宽限不越过下一交易日开盘,因此 `ALWAYS_OPEN` 这类收盘即次日开盘的时段表实际没有宽限,除非显式日历有空档;`day_close_delay=0` 时也没有宽限)——`ctx.trading_day` 为当日,时段为 `Closed`(自定义表有盘后段时为 `PostClose`),不撮合、不产生权益点,也不提前开下一交易日;宽限期内下的 Day 单仍属下一交易日。结算时刻不变,结算价为收盘时刻的最新价(只认时间戳不晚于收盘的原始行情)。网关由 tick 合成 bar 时,收盘后 `day_close_delay − 5` 秒内的 tick 并入收盘那根 bar,该 bar 在这段钳制宽限结束后 2 秒补发(`day_close_delay` 不足 5 秒时不并入)。`Engine.trading_day_at` 是纯日历查询,不考虑宽限。
|
|
1257
1257
|
* 已知限制:宽限期内存档后续跑,当日结算价按存档时的最新价;某品种收盘前没有 tick、只有宽限期 tick 时,结算价等于宽限价;结算之后才到的收盘 bar 仍派发给 `on_bar`;双流下同品种的宽限 tick 先于收盘 bar 推出,时间戳会倒退一次;多张时段表时宽限按会话级收盘(取最晚)判,早收盘品种在其自身收盘后、会话收盘前的行情不属宽限,照常计入当日与结算价,并报一次“闭市时段”告警。
|
|
@@ -1336,7 +1336,7 @@ run_live(
|
|
|
1336
1336
|
* `add_bars(bars)`: 向数据源批量追加 `Bar` 列表。
|
|
1337
1337
|
* `add_tick(tick)`: 向实时数据源追加单个 `Tick`。
|
|
1338
1338
|
* `add_arrays(timestamps, opens, highs, lows, closes, volumes, symbol)`: 通过数组快速批量构建 `Bar` 并注入数据源;可选 `interval_starts=` 传区间起点列。
|
|
1339
|
-
* `add_trading_day_hint(timestamp_ns, trading_day, source)`: 推送行情源报告的交易日(仅实盘数据源,回测数据源上调用抛 `RuntimeError`),与行情同序进入引擎。传了 `trading_calendar=`
|
|
1339
|
+
* `add_trading_day_hint(timestamp_ns, trading_day, source)`: 推送行情源报告的交易日(仅实盘数据源,回测数据源上调用抛 `RuntimeError`),与行情同序进入引擎。传了 `trading_calendar=` 时不一致只告警;未传时在所涉交易日开日前按它修正缺省日历(内置交易所日历或工作日)。replay 回放可用 `gateway_options={"trading_day_hints": [(ts_ns, date), ...]}` 模拟。
|
|
1340
1340
|
* `sort()`: 对当前历史数据源按事件时间排序。
|
|
1341
1341
|
|
|
1342
1342
|
**使用边界:**
|
|
@@ -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.4.0" # Increment on behavior-changing updates
|
|
12
12
|
|
|
13
13
|
from . import akquant as _akquant
|
|
14
14
|
from . import log as _log
|
|
@@ -148,7 +148,9 @@ class SessionResolver:
|
|
|
148
148
|
|
|
149
149
|
:param sessions: 代码前缀 → 时段模板名或自定义段列表;"default" 为全局默认。
|
|
150
150
|
自定义段写 (start, end, session),可选第 4 项锚定 "prev"/"day"
|
|
151
|
-
:param trading_calendar:
|
|
151
|
+
:param trading_calendar: 交易日列表;不传时中国时区用内置的交易所日历(覆盖范围见
|
|
152
|
+
builtin_calendar_range,范围之外按工作日推算),其他时区的非全天候时段表按
|
|
153
|
+
工作日推算,ALWAYS_OPEN 每天都算
|
|
152
154
|
:param timezone: IANA 时区名
|
|
153
155
|
"""
|
|
154
156
|
|
|
@@ -208,6 +210,23 @@ class SessionResolver:
|
|
|
208
210
|
def uses_fallback_calendar(self) -> bool: ...
|
|
209
211
|
@property
|
|
210
212
|
def uses_all_days_fallback(self) -> bool: ...
|
|
213
|
+
def with_calendar_adjustments(
|
|
214
|
+
self, added: list[datetime.date], removed: list[datetime.date]
|
|
215
|
+
) -> SessionResolver:
|
|
216
|
+
r"""
|
|
217
|
+
返回叠加了日历修正量的新解析器(时段表、在用标的等配置不变).
|
|
218
|
+
|
|
219
|
+
``added`` 并入交易日、``removed`` 从交易日中剔除,叠加在缺省日历上;传了
|
|
220
|
+
``trading_calendar`` 的解析器不受影响。
|
|
221
|
+
"""
|
|
222
|
+
@property
|
|
223
|
+
def uses_builtin_calendar(self) -> bool:
|
|
224
|
+
r"""会话日历是否为内置的中国交易所日历(未传 trading_calendar 且为中国时区)."""
|
|
225
|
+
def builtin_calendar_covers(self, day: datetime.date) -> bool:
|
|
226
|
+
r"""会话日历在 ``day`` 是否有内置交易所日历的数据;否则该日按工作日推算."""
|
|
227
|
+
@staticmethod
|
|
228
|
+
def builtin_calendar_range() -> tuple[datetime.date, datetime.date]:
|
|
229
|
+
r"""内置中国交易所日历的覆盖范围 ``(首日, 末日)``(含两端)."""
|
|
211
230
|
@staticmethod
|
|
212
231
|
def templates() -> list[str]: ...
|
|
213
232
|
|
|
@@ -919,6 +938,21 @@ class Engine:
|
|
|
919
938
|
r"""配置交易时段表与交易日历."""
|
|
920
939
|
...
|
|
921
940
|
|
|
941
|
+
def set_calendar_adjustments(
|
|
942
|
+
self, added: list[datetime.date], removed: list[datetime.date]
|
|
943
|
+
) -> None:
|
|
944
|
+
r"""
|
|
945
|
+
按回测数据修正缺省日历.
|
|
946
|
+
|
|
947
|
+
在 ``configure_sessions`` 之后、``run()`` 之前调用:``added`` 并入交易日,
|
|
948
|
+
``removed`` 从交易日中剔除,叠加在缺省日历(内置交易所日历或工作日)上,并随
|
|
949
|
+
存档保存。传了 ``trading_calendar`` 时不生效。
|
|
950
|
+
|
|
951
|
+
:param added: 数据里有行情、缺省日历却不是交易日的日期
|
|
952
|
+
:param removed: 缺省日历按工作日推算、数据里所有标的都没有行情的日期
|
|
953
|
+
"""
|
|
954
|
+
...
|
|
955
|
+
|
|
922
956
|
def trading_day_at(self, timestamp_ns: int) -> datetime.date:
|
|
923
957
|
r"""
|
|
924
958
|
时刻所属的交易日.
|