akquant 0.3.74__tar.gz → 0.3.76__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.74 → akquant-0.3.76}/.pre-commit-config.yaml +1 -0
- {akquant-0.3.74 → akquant-0.3.76}/CHANGELOG.md +35 -0
- {akquant-0.3.74 → akquant-0.3.76}/Cargo.lock +1 -1
- {akquant-0.3.74 → akquant-0.3.76}/Cargo.toml +1 -1
- {akquant-0.3.74 → akquant-0.3.76}/PKG-INFO +56 -44
- {akquant-0.3.74 → akquant-0.3.76}/README.md +52 -43
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/custom_strategy_loader.md +1 -1
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/runtime_config.md +8 -6
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/custom_indicator.md +2 -0
- akquant-0.3.76/docs/en/guide/mcp.md +66 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/reference/api.md +9 -9
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/start/quickstart.md +111 -147
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/custom_strategy_loader.md +1 -1
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/llm.md +1 -1
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/runtime_config.md +8 -6
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/custom_indicator.md +2 -0
- akquant-0.3.76/docs/zh/guide/mcp.md +66 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/meta/internals.md +1 -1
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/reference/api.md +10 -10
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/start/quickstart.md +111 -147
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/04_backtest_engine.md +2 -2
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/07_futures.md +1 -1
- {akquant-0.3.74 → akquant-0.3.76}/mkdocs.yml +3 -0
- {akquant-0.3.74 → akquant-0.3.76}/pyproject.toml +8 -1
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/__init__.py +1 -1
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/backtest/__init__.pyi +1 -1
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/backtest/engine.py +28 -64
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/backtest/result.py +24 -2
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/config.py +22 -7
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/order_submitter.py +4 -1
- akquant-0.3.76/python/akquant/mcp/__init__.py +5 -0
- akquant-0.3.76/python/akquant/mcp/__main__.py +46 -0
- akquant-0.3.76/python/akquant/mcp/guides/data-format.md +54 -0
- akquant-0.3.76/python/akquant/mcp/guides/indicators.md +45 -0
- akquant-0.3.76/python/akquant/mcp/guides/market-rules.md +31 -0
- akquant-0.3.76/python/akquant/mcp/guides/orders-and-positions.md +56 -0
- akquant-0.3.76/python/akquant/mcp/guides/strategy-skeleton.md +43 -0
- akquant-0.3.76/python/akquant/mcp/server.py +147 -0
- akquant-0.3.76/python/akquant/mcp/service/__init__.py +8 -0
- akquant-0.3.76/python/akquant/mcp/service/api_index.py +174 -0
- akquant-0.3.76/python/akquant/mcp/service/check.py +359 -0
- akquant-0.3.76/python/akquant/mcp/service/data.py +372 -0
- akquant-0.3.76/python/akquant/mcp/service/errors.py +154 -0
- akquant-0.3.76/python/akquant/mcp/service/guides.py +48 -0
- akquant-0.3.76/python/akquant/mcp/service/paths.py +103 -0
- akquant-0.3.76/python/akquant/mcp/service/records.py +45 -0
- akquant-0.3.76/python/akquant/mcp/service/runs.py +222 -0
- akquant-0.3.76/python/akquant/mcp/worker.py +170 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/plot/analysis.py +7 -1
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/plot/report.py +8 -5
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy.py +37 -5
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_loader.py +64 -7
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_trading_api.py +51 -34
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/utils/__init__.py +22 -14
- {akquant-0.3.74 → akquant-0.3.76}/src/execution/simulated.rs +259 -16
- {akquant-0.3.74 → akquant-0.3.76}/src/order_manager.rs +2 -0
- akquant-0.3.76/tests/mcp_server/conftest.py +26 -0
- akquant-0.3.76/tests/mcp_server/test_mcp_api_index.py +69 -0
- akquant-0.3.76/tests/mcp_server/test_mcp_check.py +215 -0
- akquant-0.3.76/tests/mcp_server/test_mcp_data.py +195 -0
- akquant-0.3.76/tests/mcp_server/test_mcp_errors.py +184 -0
- akquant-0.3.76/tests/mcp_server/test_mcp_guides.py +62 -0
- akquant-0.3.76/tests/mcp_server/test_mcp_main.py +29 -0
- akquant-0.3.76/tests/mcp_server/test_mcp_paths.py +124 -0
- akquant-0.3.76/tests/mcp_server/test_mcp_records.py +39 -0
- akquant-0.3.76/tests/mcp_server/test_mcp_runs.py +323 -0
- akquant-0.3.76/tests/mcp_server/test_mcp_server.py +164 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_account_risk_rules.py +0 -4
- akquant-0.3.76/tests/test_broker_profile_cn_stock.py +134 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_engine.py +24 -31
- akquant-0.3.76/tests/test_fetch_akshare_symbol.py +101 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_broker_submitter_quantity.py +27 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_broker_submitter_signature.py +1 -1
- akquant-0.3.76/tests/test_indicator_duplicate_name.py +179 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_instrument_slippage.py +1 -1
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_public_api.py +3 -3
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_report_plot_extensions.py +39 -0
- akquant-0.3.76/tests/test_sizer_auto_resize.py +149 -0
- akquant-0.3.76/tests/test_slippage_bare_number.py +184 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_extras.py +14 -14
- akquant-0.3.76/tests/test_strategy_loader_reload.py +241 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_volume_limit.py +58 -0
- akquant-0.3.76/tests/test_warm_start_slippage_inherit.py +108 -0
- {akquant-0.3.74 → akquant-0.3.76}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/.github/dependabot.yml +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/.github/workflows/deploy-docs.yml +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/.github/workflows/docs-quality.yml +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/.github/workflows/release.yml +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/.gitignore +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/CODE_OF_CONDUCT.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/CONTRIBUTING.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/LICENSE +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/assets/dashboard_preview.png +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/assets/logo.svg +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/assets/social_preview.png +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/CNAME +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/assets/akquant-icon.svg +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/assets/akquant-logo.svg +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/assets/reports/akquant_report.html +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/llm.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/ml.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/timezone.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/advanced/warm_start.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/analysis.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/data.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/examples.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/factor.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/optimization.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/python_basics.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/quant_basics.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/strategy.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/testing.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/guide/visualization.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/index.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/meta/architecture.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/meta/internals.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/start/first_strategy.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/start/installation.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/start/setup_guide.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/01_foundations.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/02_programming.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/03_data.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/04_backtest_engine.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/05_strategy.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/06_stock_a.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/07_futures.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/08_options.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/09_funds.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/10_analysis.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/11_optimization.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/12_ml.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/13_visualization.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/14_factor.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/15_live_trading.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/en/textbook/index.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/javascripts/mathjax.js +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/javascripts/search-lang-filter.js +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/robots.txt +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/adding_a_broker.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/ml.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/timezone.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/advanced/warm_start.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/analysis.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/data.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/examples.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/factor.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/optimization.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/python_basics.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/quant_basics.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/strategy.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/testing.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/guide/visualization.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/index.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/meta/architecture.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/meta/columnar-rfc.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/meta/hooks-rfc.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/meta/indicator-tradingview-rfc.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/meta/issue-329-fix-plan.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/meta/logging-rfc.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/meta/signal-ingestion-rfc.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/meta/timer-api-rfc.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/meta/viz-namespace-and-lwc-review-rfc.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/meta/warm-start-config-and-merge-rfc.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/start/first_strategy.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/start/installation.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/start/setup_guide.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/00_glossary.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/01_foundations.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/02_programming.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/03_data.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/05_strategy.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/06_stock_a.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/08_options.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/09_funds.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/10_analysis.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/11_optimization.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/12_ml.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/13_visualization.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/14_factor.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/15_live_trading.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/ROADMAP.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/appendix_cite.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/appendix_pitfalls.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/appendix_setup.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/capstone.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/docs/zh/textbook/index.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/01_quickstart.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/02_parameter_optimization.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/03_parameter_optimization_advanced.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/04_mixed_assets.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/05_live_trading_ctp.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/06_complex_orders.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/07_option_test.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/08_event_callbacks.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/09_ml_framework.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/10_ml_walk_forward.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/11_plot_visualization.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/12_wfo_integrated.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/13_quantstats_report.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/14_multi_frequency.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/15_plot_intraday.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/16_adj_returns_signal.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/17_readme_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/18_benchmark_multisymbol.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/19_factor_expression.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/20_risk_management_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/21_warm_start_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/22_strategy_runtime_config_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/23_functional_callbacks_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/24_functional_tick_simulation_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/25_streaming_backtest_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/26_streaming_quickstart.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/27_streaming_monitoring_console.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/28_streaming_alerts_and_persist.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/29_streaming_event_report.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/30_streaming_report_oneclick.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/31_streaming_live_console.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/32_streaming_live_web.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/33_report_and_analysis_outputs.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/34_multi_strategy_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/35_custom_broker_registry_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/36_trailing_orders.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/37_feed_replay_alignment_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/38_live_functional_strategy_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/39_live_broker_submit_order_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/39_live_mixed_broker_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/40_functional_multi_slot_risk_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/41_live_multi_slot_orchestration_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/42_live_broker_event_audit_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/43_target_weights_rebalance.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/44_strategy_source_loader_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/45_talib_indicator_playbook_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/46_broker_profile_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/47_margin_liquidation_audit_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/48_margin_liquidation_priority_compare.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/49_on_expiry_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/50_framework_hooks_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/51_class_tick_callbacks_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/52_pre_open_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/53_timer_to_pre_open_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/54_functional_pre_open_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/55_functional_ml_walk_forward.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/56_functional_warm_start_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/57_functional_multi_slot_warm_start_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/58_incremental_bootstrap_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/59_akshare_etf_rotation.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/60_custom_indicator_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/61_indicator_visualization_export_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/61_signal_platform_webhook.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/62_indicator_streaming_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/63_indicator_ws_bridge_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/64_indicator_live_web.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/65_bar_generator.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/66_logging_audit_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/67_lwc_trade_review.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/68_backtest_tick_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/69_live_runtime_config_dispatch_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/70_csv_multi_symbol_import_demo.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/71_native_multi_timeframe_live.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/72_declarative_indicators.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/73_lwc_live_indicators.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/74_indicator_scripts.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/75_intrabar_indicators.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/76_tick_intrabar_indicators.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/77_heikin_ashi_indicator.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/README.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/benchmark_utils.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/pb_mock.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/strategies/01_stock_dual_moving_average.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/strategies/02_stock_grid_trading.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/strategies/03_stock_atr_breakout.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/strategies/04_stock_momentum_rotation.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/strategies/05_stock_momentum_rotation_timer.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/strategies/06_stock_momentum_rotation_bucket.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/strategies/07_stock_momentum_rotation_on_timer.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/strategies/08_target_positions_long_short.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/strategies/09_stock_momentum_rotation_after_bar.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/strategies/README.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch01_quickstart.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch01_quickstart_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch02_programming.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch03_data.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch04_comparison.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch04_comparison_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch05_strategy.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch05_strategy_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch06_stock_a.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch06_stock_a_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch07_futures.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch07_futures_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch08_options.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch08_options_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch09_funds.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch09_funds_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch09_portfolio.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch09_portfolio_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch10_analysis.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch10_analysis_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch11_optimization.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch11_optimization_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch12_ml.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch12_ml_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch13_visualization.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch13_visualization_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch14_factor.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch15_live_trading.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch15_live_trading_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch15_strategy_loader.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch15_strategy_loader_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch16_indicators.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/examples/textbook/ch16_indicators_functional.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/akquant.pyi +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/analysis/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/analysis/benchmark.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/analyzer_plugin.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/backtest/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/backtest/_viz.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/backtest/fill_mode.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/backtest/merge.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/backtest/tick_input.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/bar_generator.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/chart/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/chart/_normalize.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/chart/d3kline.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/checkpoint.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/data.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/execution/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/execution/base.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/execution/sim.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/factor/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/factor/engine.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/factor/ops.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/factor/parser.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/feed_adapter.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/fund/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/futures/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/base.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/broker_event_adapter.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/broker_event_bridge.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/broker_event_mapper.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/broker_execution.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/broker_models.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/broker_recovery.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/broker_runtime.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/broker_state_cache.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/broker_strategy_api.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/brokers/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/brokers/builtins.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/brokers/ctp/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/brokers/ctp/adapter.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/brokers/ctp/native.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/brokers/miniqmt/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/brokers/miniqmt/stub.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/brokers/plugins.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/brokers/ptrade/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/brokers/ptrade/stub.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/brokers/replay/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/brokers/replay/gateway.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/ctp_adapter.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/ctp_native.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/factory.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/local_stop_book.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/mapper.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/miniqmt.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/models.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/order_audit.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/order_errors.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/order_receipt.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/protocols.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/ptrade.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/registry.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/symbol_match.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/gateway/trader_base.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/indicator_declaration.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/indicator_identity.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/indicator_recording.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/indicator_script.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/indicator_stream.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/live/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/live/_facade.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/live/_gateway_setup.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/live/_payload_utils.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/live/_preload.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/live/_runner.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/live/_strategy_maps.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/live/_stream_sink.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/log.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/lwc/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/lwc/_indicators.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/lwc/_payload.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/lwc/_template.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/lwc/assets/LICENSE.lightweight-charts +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/lwc/assets/NOTICE.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/lwc/assets/lightweight-charts.standalone.production.js +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/lwc/review.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/ml/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/ml/model.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/normalize.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/optimize.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/option/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/params.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/params_adapter.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/plot/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/plot/_market_data.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/plot/dashboard.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/plot/indicator.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/plot/strategy.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/plot/utils.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/precomputed.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/py.typed +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/risk.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/schema.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/sessions_config.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/signal/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/signal/dedup.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/signal/dispatcher.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/signal/models.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/signal/protocols.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/signal/registry.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/signal/security.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/signal/sinks.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/signal/sources/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/signal/sources/http.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/signal/sources/queue.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/signal/sources/redis_stream.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/sizer.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/stock/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_events.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_framework_hooks.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_history.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_inspect.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_logging.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_ml.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_order_events.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_position.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_preload.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_runtime_config.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_scheduler.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_time.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/strategy_window.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/stream_schema.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/talib/__init__.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/talib/_kernels.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/talib/backend.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/talib/core.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/talib/funcs.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/talib/lookback.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/trade_stream.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/utils/inspector.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/python/akquant/utils/price.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/requirements-dev.txt +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/scripts/bench_engine_perbar.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/scripts/cargo-test.sh +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/scripts/check_docs_api_examples.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/scripts/check_docs_links.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/scripts/check_release.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/scripts/dev-check.sh +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/scripts/golden_baseline_report.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/scripts/profile_backtest.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/scripts/stress_out_of_core.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/account.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/analysis/mod.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/analysis/python.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/analysis/result.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/analysis/tests.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/analysis/tracker.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/analysis/types.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/bin/stub_gen.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/calendar/clock.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/calendar/mod.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/calendar/python.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/calendar/resolver.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/calendar/schedule.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/calendar/trading_calendar.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/clock.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/context.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/data/aggregator.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/data/batch.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/data/client.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/data/columns.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/data/compute.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/data/feed.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/data/mod.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/data/parquet_stream.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/data/python_window.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/data/window.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/engine/core.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/engine/mod.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/engine/python.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/engine/state.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/error.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/event.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/event_manager.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/execution/common.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/execution/crypto.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/execution/forex.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/execution/futures.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/execution/matcher.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/execution/mod.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/execution/option.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/execution/python.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/execution/realtime.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/execution/slippage.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/execution/stock.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/execution/validation.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/history.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/momentum.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/momentum_oscillators.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/momentum_rates.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/moving_average.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/moving_average_compound.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/moving_average_core.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/moving_average_hilbert.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/moving_average_transforms.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/moving_average_windowed.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/trend.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/trend_directional.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/trend_oscillators.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/trend_regression.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/volatility.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/volatility_candle.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/volatility_price.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/volatility_stats.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators/volume.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/indicators.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/lib.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/log_context.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/margin/calculator.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/margin/engine.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/margin/mod.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/market/china.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/market/core.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/market/corporate_action.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/market/fee_override.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/market/fund.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/market/futures.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/market/manager.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/market/mod.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/market/option.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/market/simple.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/market/stock.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/model/corporate_action.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/model/instrument.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/model/market_data.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/model/mod.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/model/order.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/model/timer.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/model/types.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/pipeline/mod.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/pipeline/processor.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/pipeline/runner.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/pipeline/stages/channel.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/pipeline/stages/cleanup.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/pipeline/stages/data.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/pipeline/stages/execution.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/pipeline/stages/mod.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/pipeline/stages/shared.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/pipeline/stages/statistics.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/pipeline/stages/strategy.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/portfolio.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/risk/common.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/risk/config.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/risk/futures.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/risk/manager.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/risk/mod.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/risk/option.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/risk/portfolio.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/risk/rule.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/risk/stock.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/risk/strategy_limits.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/settlement/expiry.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/settlement/handler.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/settlement/manager.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/settlement/mod.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/settlement/option.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/signal_port.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/src/statistics/mod.rs +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/_checkpoint_0371.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/_plot_cases.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/fixtures/checkpoint_0371_minute.pkl +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/gateway_contract/test_event_bridge_contract.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/gateway_contract/test_recovery_contract.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/gateway_contract/test_submitter_contract.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/BASELINE_REPORT.md +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/futures_margin/equity_curve.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/futures_margin/metrics.json +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/futures_margin/orders.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/futures_margin/trading_day_ends.json +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/futures_night_weekend/equity_curve.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/futures_night_weekend/metrics.json +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/futures_night_weekend/orders.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/futures_night_weekend/trades.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/futures_night_weekend/trading_day_ends.json +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/option_basic/equity_curve.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/option_basic/metrics.json +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/option_basic/orders.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/option_basic/trading_day_ends.json +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/order_cancel/equity_curve.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/order_cancel/metrics.json +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/order_cancel/orders.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/order_cancel/trades.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/order_cancel/trading_day_ends.json +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/stock_minute_auction/equity_curve.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/stock_minute_auction/metrics.json +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/stock_minute_auction/orders.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/stock_minute_auction/trades.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/stock_minute_auction/trading_day_ends.json +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/stock_t1/equity_curve.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/stock_t1/metrics.json +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/stock_t1/orders.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/stock_t1/trades.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/baselines/stock_t1/trading_day_ends.json +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/data/future_margin.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/data/future_margin.parquet.sha256 +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/data/futures_night_weekend.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/data/futures_night_weekend.parquet.sha256 +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/data/option_basic.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/data/option_basic.parquet.sha256 +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/data/order_cancel.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/data/order_cancel.parquet.sha256 +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/data/stock_minute_auction.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/data/stock_minute_auction.parquet.sha256 +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/data/stock_t1.parquet +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/data/stock_t1.parquet.sha256 +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/gen_data.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/runner.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/strategies/futures_margin.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/strategies/futures_night_weekend.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/strategies/option_basic.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/strategies/order_cancel.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/strategies/stock_minute_auction.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/strategies/stock_t1.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/golden/test_golden.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_api_rename_cash.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_api_rename_composites.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_api_rename_equity.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_api_rename_holding_bars.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_api_rename_positions.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_api_rename_rebalance.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_api_rename_scheduler.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_backtest_params.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_backtest_symbol_column_aliases.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_backtest_tick_aggregate.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_backtest_tick_entry.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_backtest_tick_history.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_bar_aggregator_live.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_bar_generator.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_bar_hook_bookkeeping_invariants.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_bench_noise_gate.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_boundary_bar_fill.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_bridge_adapts_events.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_bridge_drives_order_groups.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_dropped_counts_periodic_summary.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_event_adapter.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_event_adapter_local_id.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_event_symbol_filter.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_event_task_isolation.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_execution_local_stops.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_execution_read_path_parity.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_execution_stop_requeue.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_live_risk_enforcement.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_order_redelivery_dedup.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_plugins.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_position_sync.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_recovery_cadence.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_recovery_error_visibility.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_seed_baseline.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_broker_trade_redelivery_dedup.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_buying_power_new_symbol.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_cancel_request_persistence.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_candle_exporters.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_candle_render_type.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_chart_d3kline.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_chart_normalize.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_check_release.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_checkpoint_0371_compat.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_checkpoint_option_rules.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_close_position_delegate.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_composed_ctx_not_ready.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_cost_config_consolidation.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_cross_section_day_order_next_open_fill.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_ctp_classify_order_error.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_custom_matcher.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_data_catalog.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_date_only_rewrite_cache.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_day_order_expiry_no_zombie_fill.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_deterministic_order.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_docs_api_examples.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_docs_links.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_dual_stream_freq_inference.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_engine_python_crossings.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_event_model_parity.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_examples_regression.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_execution_binding.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_execution_broker.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_execution_broker_reads_routed.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_execution_composed_parity.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_execution_read_delegation.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_execution_sim.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_execution_write_delegation.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_expiry_terminal_dispatch.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_expiry_trade_accounting.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_factor_engine.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_factor_ops.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_feed_adapter.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_fill_mode.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_broker_live_cancel.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_broker_live_reads.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_broker_models_ext.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_broker_state_cache.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_broker_state_invalidation.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_broker_submitter_readiness.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_brokers_paths.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_builtins_registry.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_callbacks.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_cancel_failure.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_ctp_adapter.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_ctp_dual_stream.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_ctp_native.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_expired_order_status.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_factory.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_mapper.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_mixed_market_trader.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_optional_market.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_order_error_classification.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_order_submitter_extra.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_order_tick_reject_soft.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_order_tick_validation.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_place_order_failure.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_registry.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_sim_submit_guard.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_symbol_match.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_tif_mapping.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_gateway_trader_base.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_get_order_finalized.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_heikin_ashi.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_hooks_functional_wrapper.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_hooks_inherited_via_base.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_indicator_declaration.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_indicator_declaration_review.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_indicator_dual_stream.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_indicator_intrabar.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_indicator_live_web_example.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_indicator_non_finite.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_indicator_owner_identity.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_indicator_recording.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_indicator_script.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_inspector.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_instrument_default_tick.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_instrument_fee_override.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_instrument_symbol_suffix_normalization.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_instruments_config_symbol_mismatch.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_lifecycle_hooks.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_lifecycle_review_fixes.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_auto_preload.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_broker_slot_routing.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_duration_wallclock.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_freq_injection.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_market_config_by_asset_type.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_mixed_market_broker.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_multi_slot_windows.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_preload_normalize.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_preload_runner.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runner.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runner_bounded_session.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runner_broker_bridge.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runner_broker_readiness.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runner_broker_recovery.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runner_broker_submitter.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runner_client_order_id.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runner_instrument_snapshots.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runner_lifecycle.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runner_no_market_data_warning.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runner_order_request_cache.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runner_sigterm_stop.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runner_stop_remap.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_runtime_config_dispatch.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_subscribe_forwards_to_gateway.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_live_summary_stop_reason.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_local_stop_book.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_local_stop_book_threadsafe.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_local_stop_scenario.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_log_sensitive_filter.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_lwc_indicators.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_lwc_review.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_merge_results.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_ml_rolling_training_threshold.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_multi_slot_ownership.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_multisymbol_cross_section_consistency.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_naive_timezone.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_normalize.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_oco_bracket_broker_live_scenario.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_on_execution_report_noop.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_on_timer_suspension_deadlock.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_optimize_functional_params.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_optimize_params.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_option_expiry_settlement.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_option_fees.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_option_market_side_effects.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_order_api_return_values.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_order_audit.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_order_callback_dedupe.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_order_receipt.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_order_receipt_backtest.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_order_target_lot_size_alignment.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_orders_df.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_params.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_params_adapter.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_parquet_stream.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_partial_filled_status.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_pickle_model_objects.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_plot_defaults.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_portfolio.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_position_effect_flip.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_pre_open_live_warns.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_product_presets.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_quickstart_stream_consistency.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_reduce_only_sell_affordability.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_removed_wrappers.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_replay_live_end_to_end.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_replay_market_gateway.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_report_helpers.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_result_analysis_extensions.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_review_minors_cleanup.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_run_live_indicator_stream.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_session_config.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_session_matching.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_session_resolver.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_signal_module.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_signal_port_injection.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_signal_sources_p3.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_sort_determinism.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_source_trading_day.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_stock_tick_validation.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_stop_id_remap_scenario.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_stop_orders.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_stop_retry_client_order_id.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_events_stop_hook.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_freq_attribute.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_history_dual_stream.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_history_missing_symbol_warning.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_inspect.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_loader_exports.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_loader_pickle.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_loader_plugins.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_ml_dual_stream.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_order_group_lock.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_params.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_session_api.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_sizing_broker_live_guard.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_strategy_timers_indicators.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_stream_series_key.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_subscribe_live_warns.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_suspension_zero_volume_gtc_terminal.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_symbols_filtering.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_symbols_whitelist_rust.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_t_plus_one.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_talib_alignment.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_talib_backend.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_talib_compat.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_target_orders_core.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_tick_indicators.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_tick_input.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_trade_stream_bridge.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_trades_df.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_trading_day_lifecycle.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_utils_price.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_vectorized.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_version.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_viz_namespace.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_walk_forward_kwargs.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_warmup_period_per_symbol.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_window_checkpoint.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_window_live_replay.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_window_sessions.py +0 -0
- {akquant-0.3.74 → akquant-0.3.76}/tests/test_window_subscriptions.py +0 -0
|
@@ -7,6 +7,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.76] - 2026-10-30
|
|
11
|
+
|
|
12
|
+
> **规则版本 2.1.2**:热启动恢复时,`config` 里没设滑点的配置现在沿用快照里的滑点(此前被覆盖成无滑点),涉及热启动且第一阶段有滑点的回测结果会变;另外,裸数字滑点与 `self.I(...)` 重名声明从静默接受改为直接报错。
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- **破坏性:滑点不再接受裸数字**:`run_backtest(slippage=...)`、`StrategyConfig.slippage`、`InstrumentConfig.slippage`、`strategy_slippage` 映射的值、订单级 `buy/sell/short/cover(..., slippage=...)`、`run_from_checkpoint` 热启动路径,收到 `int`/`float`(含 `0`、`0.0` 和 `bool`)一律抛 `TypeError`。裸数字弃用已久,却只发 `DeprecationWarning`,而策略模块不是 `__main__`,按 Python 默认的告警过滤规则用户根本看不到,所以直接移除。报错信息里带着传入的值和迁移写法:百分比改写成 `{'type': 'percent', 'value': 0.0002}`,固定价差改写成 `{'type': 'fixed', 'value': 0.2}`;要关掉滑点(包括覆盖 `broker_profile` 模板里的滑点)传 `{'type': 'zero'}`;不传或传 `None` 表示不覆盖,设了 `broker_profile` 时模板滑点照常生效,否则不加滑点。`StrategyConfig.slippage` 默认值由 `0.0` 改为 `None`,`SlippageInput` 与各处类型注解去掉 `float`/`int`;同时删除只在裸数字路径上触发的“全局滑点 >= 0.05”提示。
|
|
16
|
+
- **热启动:`config` 没设滑点时沿用快照里的滑点**:`StrategyConfig.slippage` 默认值由 `0.0` 改为 `None` 之后,`run_from_checkpoint(config=BacktestConfig(strategy_config=StrategyConfig(...)))` 里没写滑点的配置不再把快照滑点覆盖成“无滑点”,而是按文档约定的优先级“显式入参 > `config.strategy_config` > 快照配置”落到快照上(例如第一阶段 1% 滑点、第二阶段 `config` 没写滑点,成交价由 100.0 变为 101.0)。要在热启动时关掉滑点,在 `config` 或 `slippage=` 里显式传 `{'type': 'zero'}`。
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- **MCP 服务 `akquant-mcp`(可选依赖 `pip install "akquant[mcp]"`)**:给 Claude Code、Cursor 等 AI 编程助手用的本地 stdio 服务,提供 7 个工具——`search_api`/`get_api`(运行时内省,与已装版本一致)、`get_guide`(写策略要点)、`check_strategy`(静态检查,不执行代码)、`prepare_data`(本地文件、AKShare A 股日线、合成数据)、`run_backtest`(子进程回测,返回核心指标与带策略文件行号、阶段和修复提示的结构化报错)、`get_run_details`(分页读取成交、委托、权益、日志)。一期只支持类式策略;不做沙箱。见 `docs/zh/guide/mcp.md`。
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- **同一进程里改了策略文件再 `run_backtest(strategy_source=path)`,静默跑的还是旧代码**:`python_plain` 加载器按路径编码出稳定的模块名并登记进 `sys.modules`,第二次加载见到同名模块就直接复用(Jupyter、长期运行的服务里最容易踩到)。现在加载时对源文件字节计算 sha256 摘要,存在模块的 `__akquant_source_digest__` 上:内容不变照旧复用同一个模块和类,内容变了就用同一个模块名重新执行并替换 `sys.modules` 里的条目(缓存模块没有摘要属性也视为需要重新加载)。重新加载时如果源文件执行失败(如语法错误),旧模块会放回 `sys.modules`,此前 pickle 出去的对象仍能按名找到,并重新抛出原异常。用内容哈希而不是 mtime,因为 Windows 上 mtime 精度有限、部分编辑器还会保留原 mtime;同时这类策略模块改为始终从源文件编译、不读写 `.pyc`,父进程的加载器和 spawn 出来的网格搜索 worker 里的 finder 都是如此(`.pyc` 只按秒级 mtime 和大小判过期,同一秒内改出等长内容或编辑器保留 mtime 都会命中旧字节码);摘要与编译用的是同一次读到的字节,加载过程加了进程内锁,多线程并发加载不会看到只执行了一半的模块。模块命名规则不变,多进程网格搜索的 pickle 链路不受影响。注意:重新加载之后,旧模块里的类和实例不能再被 pickle(`PicklingError: not the same object`),因为按名字解析到的是当前最新的类。
|
|
23
|
+
- **`self.I(...)` 重名声明不再静默覆盖,直接抛 `ValueError`**:同一策略里 `self.I(aq.EMA(3), name="x")` 与 `self.I(aq.EMA(30), name="x")` 此前不报错也不告警,第二次声明覆盖第一次,两个绑定每根 bar 读到的都是后声明的指标值。原因是指标按名字存进同一个字典、`IndicatorBinding` 也只按名字取值。现在“同一轮声明”(首跑的 `__init__` 与 `on_start`,或 warm start 恢复时重跑的那一遍 `on_start`)里解析后的名字第二次出现即报错,信息写明重复的名字、两次声明各自的指标类型与修改建议;显式名字与自动编号名(`ema`、`ema_2`)撞车、`PrecomputedIndicator` 重名同样报错。warm start 恢复时 `on_start` 重跑的同名声明不受影响(已声明名字的登记在恢复开始时与自动命名计数一并重置)。声明要放在 `on_start`(或 `__init__`)里,不要写在 `on_bar` 等回调中:在回调里声明会从第二根 bar 起因重名而报错。
|
|
24
|
+
- **`fetch_akshare_symbol` 把网络断开、AKShare 接口变动等请求失败都报成 `ValueError: No data found`,用户会误以为是代码或日期写错了**:带市场前缀和去掉前缀的两次调用都用 `except Exception` 吞掉异常并置空数据。现在两次调用都没拿到数据且至少一次抛了异常时抛 `RuntimeError`(`AKShare 请求失败 (sh600000): ConnectionError: ...`,并用 `from` 链接第一个抛出的异常);所有调用都正常返回、只是数据为空时仍抛 `ValueError("No data found ...")`;任意一次拿到数据照常返回。MCP 的 `prepare_data` 同步把 `RuntimeError` 转成 `ServiceError("AKShare 请求失败: ...")`。
|
|
25
|
+
|
|
26
|
+
## [0.3.75] - 2026-10-29
|
|
27
|
+
|
|
28
|
+
> **规则版本 2.1.1**:「部分成交后成交时验资不过」与「成交时自动缩量」只影响订单记录与回调,成交、持仓、资金不变;`buy()` 不传 `quantity`(交给 sizer 定量)且资金不足、或 sizer 算出非整手数量的回测结果会变化(原来拒单,现在缩量或取整后成交),显式给数量的回测不变。使用 `cn_stock_*` 三个 `broker_profile` 模板的回测结果会变化(印花税减半、开 T+1)。
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
- **订单跨多根 bar 部分成交后,某一根成交时验资被拒(资金或可用持仓不足),`orders_df` 与 `on_order` 里的 `filled_quantity` 被清零、状态为 `rejected`**(0.3.74 Known Issues 第一条):被拒的只是剩余部分,现在状态记为 `cancelled`,`filled_quantity`、`avg_price` 与佣金保留已成交部分,原因仍写在 `reject_reason`(带 `at execution` 标记,`top_reject_reasons` 照常统计);一股未成交就被拒的订单仍是 `rejected`。
|
|
32
|
+
- **成交时自动缩量(`allow_quantity_auto_resize`)后订单的成交量与成交记录不一致**:原来成交记录按缩量后的数量,订单的 `filled_quantity` 与均价却按缩量前;现在订单数量改写为实际成交总量(与提交时缩量改写数量一致)、状态为 `filled`。缩到 0 股时原来回报被丢弃,订单从执行端消失而订单记录永远停在挂单状态,现在与不允许缩量时一样按上一条处理。
|
|
33
|
+
- **`buy()` 不传 `quantity`、交给 sizer 定量时资金不足不会自动缩量,直接拒单**:文档承诺的自动缩量自引入开平语义(自动开平拆腿)起失效——拆腿后各腿按显式数量下单,缩量标志被重算为否,提交时与成交时都不缩量。现在缩量标志传给开仓腿(平仓腿数量由持仓决定,不缩);显式给 `quantity` 的买单仍不缩量。
|
|
34
|
+
- **sizer 算出的数量不按手数取整,A 股、港股等登记了 `lot_size` 的标的整单被拒**:`PercentSizer`、`AllInSizer` 只按资金折算股数(如 2790 股),撮合层要求买单是 `lot_size` 的整数倍。现在 `buy()`、`short()` 不传 `quantity` 时,以及 `broker_live` 下买入不传 `quantity` 时,sizer 的结果按 `lot_size` 向下取整(口径与 `order_target_*` 相同,自定义 sizer 一并生效),不足一手不下单;`lot_size` 为 1 时不取整,加密货币等小数数量不受影响;显式给的 `quantity` 不取整。
|
|
35
|
+
- **A 股 `broker_profile` 模板的印花税仍是旧税率 0.1%**:`cn_stock_miniqmt`、`cn_stock_t1_low_fee`、`cn_stock_sim_high_slippage` 改为 2023-08-28 起的现行税率 0.0005(0.05%,与教材第 6 章一致);回测此前的行情请显式传 `stamp_tax_rate=0.001`。
|
|
36
|
+
- **A 股 `broker_profile` 模板没有开 T+1**(`cn_stock_t1_low_fee` 名字带 t1 也没开),当日买入可当日卖出:三个模板现在都开 T+1;`run_backtest(t_plus_one=...)` 默认值改为 `None`,不传时取模板设置、没有模板时仍为 `False`,显式传 `t_plus_one=False` 可关闭。热启动 `run_from_checkpoint` 的优先级为:显式入参 > 存档配置 > 模板 > 按快照推断。
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
- **`result.metrics` 可取到 `metrics_df` 里的全部字段**:`metrics` 原来只有收益与风险类指标,`result.metrics.total_commission`、`closed_trade_count` 等交易类字段会抛 `AttributeError`(它们在 `result.trade_metrics` 上);现在取不到时依次回退到 `trade_metrics` 与 `metrics_df`,字段名不存在时报错信息指向 `metrics_df.index`。
|
|
40
|
+
- **回测报告统一红涨绿跌**:指标卡片原来正值绿、负值红,与月度热力图、年度收益柱、权益曲线的红涨绿跌相反;交易盈亏散点图用的是红蓝色阶(负值红、正值蓝)。现在都取主题的 `up_color`(红)/`down_color`(绿),散点图 0 居中为灰;最大回撤等亏损类卡片显示为绿色。
|
|
41
|
+
|
|
42
|
+
### Docs
|
|
43
|
+
- README 与《快速开始》(中英文)的示例改为传 `broker_profile="cn_stock_t1_low_fee"` 与交易日历,并醒目提示 `run_backtest` 默认不计交易成本、不开 T+1;示例输出按当前版本重跑(原输出来自旧版本,与示例代码对不上)。README 的指标数量更正为 104 个。
|
|
44
|
+
|
|
10
45
|
## [0.3.74] - 2026-10-29
|
|
11
46
|
|
|
12
47
|
> **规则版本 2.1.0**:显式开启成交量限制(含 `broker_profile` 模板)的回测结果会变化,不传 `volume_limit_pct` 且不用 `broker_profile` 的回测不变;**指标数值口径统一对齐 TA-Lib 0.8.2**,用到下列指标的回测、`Strategy.I()`、`aq.Indicator` 与实盘指标都会变化,不用指标的回测不变。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: akquant
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.76
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -26,6 +26,7 @@ Requires-Dist: pytest>=7.0.0 ; extra == 'dev'
|
|
|
26
26
|
Requires-Dist: ruff==0.17.1 ; extra == 'dev'
|
|
27
27
|
Requires-Dist: ta-lib==0.8.2 ; python_full_version >= '3.11' and extra == 'dev'
|
|
28
28
|
Requires-Dist: types-pytz>=2025.2.0.20251108 ; extra == 'dev'
|
|
29
|
+
Requires-Dist: mcp>=2.3,<3 ; extra == 'dev'
|
|
29
30
|
Requires-Dist: mkdocs>=1.5.0 ; extra == 'docs'
|
|
30
31
|
Requires-Dist: mkdocs-material>=9.5.0 ; extra == 'docs'
|
|
31
32
|
Requires-Dist: mkdocs-static-i18n>=1.2.0 ; extra == 'docs'
|
|
@@ -34,6 +35,7 @@ Requires-Dist: plotly>=5.0.0 ; extra == 'full'
|
|
|
34
35
|
Requires-Dist: scikit-learn>=1.0.0 ; extra == 'full'
|
|
35
36
|
Requires-Dist: torch>=2.0.0 ; extra == 'full'
|
|
36
37
|
Requires-Dist: quantstats>=0.0.60 ; extra == 'full'
|
|
38
|
+
Requires-Dist: mcp>=2.3,<3 ; extra == 'mcp'
|
|
37
39
|
Requires-Dist: scikit-learn>=1.0.0 ; extra == 'ml'
|
|
38
40
|
Requires-Dist: torch>=2.0.0 ; extra == 'ml'
|
|
39
41
|
Requires-Dist: plotly>=5.0.0 ; extra == 'plot'
|
|
@@ -42,6 +44,7 @@ Requires-Dist: redis>=5.0.0 ; extra == 'signal-redis'
|
|
|
42
44
|
Provides-Extra: dev
|
|
43
45
|
Provides-Extra: docs
|
|
44
46
|
Provides-Extra: full
|
|
47
|
+
Provides-Extra: mcp
|
|
45
48
|
Provides-Extra: ml
|
|
46
49
|
Provides-Extra: plot
|
|
47
50
|
Provides-Extra: quantstats
|
|
@@ -85,7 +88,7 @@ Project-URL: Repository, https://github.com/akfamily/akquant
|
|
|
85
88
|
|
|
86
89
|
* **高性能内核**:得益于 Rust 的零开销抽象与 **Zero-Copy 数据导入**(`add_arrays` 借用 NumPy 缓冲入引擎;策略侧 `get_history` 等读取则返回安全快照拷贝),AKQuant 在部分回测场景下可显著降低 Python 层开销;实际运行速度取决于策略逻辑、数据规模、回调频率与运行环境。
|
|
87
90
|
* **原生 ML 支持**:内置 **Walk-forward Validation**(滚动训练)框架,无缝集成 PyTorch/Scikit-learn,让 AI 策略开发从实验到回测一气呵成。
|
|
88
|
-
* **TA-Lib 指标生态**:内置 `akquant.talib` 双后端(`python/rust`)兼容能力,支持 **
|
|
91
|
+
* **TA-Lib 指标生态**:内置 `akquant.talib` 双后端(`python/rust`)兼容能力,支持 **104 个指标**。
|
|
89
92
|
* **因子表达式引擎**:内置 **Polars** 驱动的高性能因子计算引擎,支持 `Rank(Ts_Mean(Close, 5))` 等 Alpha101 风格公式,自动处理并行计算与数据对齐。
|
|
90
93
|
* **参数优化**:内置多进程网格搜索(Grid Search)框架,支持策略参数的高效并行优化。
|
|
91
94
|
* **专业级风控**:内置完善的订单流管理与即时风控模块,支持多资产组合回测。
|
|
@@ -112,6 +115,8 @@ from akquant import Strategy
|
|
|
112
115
|
# 1. 准备数据
|
|
113
116
|
# 使用 akshare 获取 A 股历史数据 (需安装: pip install akshare)
|
|
114
117
|
df = ak.stock_zh_a_daily(symbol="sh600000", start_date="20250212", end_date="20260212")
|
|
118
|
+
# 交易日历: 不传时按工作日推算, 节假日会被当作交易日
|
|
119
|
+
trade_dates = ak.tool_trade_date_hist_sina()["trade_date"]
|
|
115
120
|
|
|
116
121
|
|
|
117
122
|
class MyStrategy(Strategy):
|
|
@@ -137,7 +142,9 @@ result = aq.run_backtest(
|
|
|
137
142
|
data=df,
|
|
138
143
|
strategy=MyStrategy,
|
|
139
144
|
initial_cash=100000.0,
|
|
140
|
-
symbols="sh600000"
|
|
145
|
+
symbols="sh600000",
|
|
146
|
+
broker_profile="cn_stock_t1_low_fee", # A 股佣金/印花税/过户费、T+1、一手 100 股
|
|
147
|
+
trading_calendar=trade_dates,
|
|
141
148
|
)
|
|
142
149
|
|
|
143
150
|
# 打印回测结果
|
|
@@ -157,69 +164,73 @@ result.viz.report(
|
|
|
157
164
|
|
|
158
165
|
调用 `result.viz.report(..., benchmark=...)` 后,报告会新增“基准对比 (Benchmark Comparison)”区块,展示策略/基准/超额累计收益曲线,以及累计超额收益、年化超额收益、跟踪误差、信息比率、Beta、Alpha 等相对指标。
|
|
159
166
|
|
|
167
|
+
> **注意:`run_backtest` 默认不计交易成本、不开 T+1。** 不传 `broker_profile` 也不传费率时,佣金、印花税、过户费都是 0,可以当日买卖,最小交易单位是 1 股——这样得到的是理想化的结果,换手越高越偏乐观。A 股回测请像上面这样传 `broker_profile`(内置 `cn_stock_miniqmt`、`cn_stock_t1_low_fee`、`cn_stock_sim_high_slippage`),或者显式传 `commission_rate`、`stamp_tax_rate`、`transfer_fee_rate`、`min_commission`、`t_plus_one=True`、`lot_size=100`。模板的印花税按 2023-08-28 起的现行税率 0.05% 计,回测此前的行情请显式传 `stamp_tax_rate=0.001`。
|
|
168
|
+
|
|
160
169
|
**运行结果示例:**
|
|
161
170
|
|
|
162
171
|
```text
|
|
163
172
|
=== Backtest Result ===
|
|
164
173
|
BacktestResult:
|
|
165
174
|
Value
|
|
166
|
-
|
|
167
|
-
|
|
175
|
+
name
|
|
176
|
+
start_time 2025-02-12 15:00:00+08:00
|
|
177
|
+
end_time 2026-02-12 15:00:00+08:00
|
|
168
178
|
duration 365 days, 0:00:00
|
|
169
179
|
total_bars 249
|
|
170
|
-
closed_trade_count
|
|
171
|
-
execution_count
|
|
172
|
-
open_position_count
|
|
180
|
+
closed_trade_count 62.0
|
|
181
|
+
execution_count 124.0
|
|
182
|
+
open_position_count 0.0
|
|
173
183
|
initial_market_value 100000.0
|
|
174
|
-
end_market_value
|
|
175
|
-
total_pnl
|
|
184
|
+
end_market_value 99379.212386
|
|
185
|
+
total_pnl -620.787614
|
|
176
186
|
unrealized_pnl 0.0
|
|
177
|
-
total_return_pct
|
|
178
|
-
annualized_return
|
|
179
|
-
volatility 0.
|
|
180
|
-
total_profit
|
|
181
|
-
total_loss
|
|
182
|
-
total_commission
|
|
183
|
-
max_drawdown
|
|
184
|
-
|
|
187
|
+
total_return_pct -0.620788
|
|
188
|
+
annualized_return -0.006208
|
|
189
|
+
volatility 0.002456
|
|
190
|
+
total_profit 544.624
|
|
191
|
+
total_loss -755.5086
|
|
192
|
+
total_commission 409.903014
|
|
193
|
+
max_drawdown 0.006234
|
|
194
|
+
max_drawdown_value 623.409236
|
|
195
|
+
max_drawdown_pct 0.623393
|
|
185
196
|
win_rate 22.580645
|
|
186
197
|
loss_rate 77.419355
|
|
187
198
|
winning_trades 14.0
|
|
188
199
|
losing_trades 48.0
|
|
189
|
-
avg_pnl
|
|
190
|
-
avg_return_pct -0.
|
|
200
|
+
avg_pnl -3.401365
|
|
201
|
+
avg_return_pct -0.219536
|
|
191
202
|
avg_trade_bars 1.967742
|
|
192
|
-
avg_profit
|
|
193
|
-
avg_profit_pct 3.
|
|
203
|
+
avg_profit 38.901714
|
|
204
|
+
avg_profit_pct 3.350484
|
|
194
205
|
avg_winning_trade_bars 4.5
|
|
195
|
-
avg_loss
|
|
196
|
-
avg_loss_pct -1.
|
|
206
|
+
avg_loss -15.739762
|
|
207
|
+
avg_loss_pct -1.260791
|
|
197
208
|
avg_losing_trade_bars 1.229167
|
|
198
|
-
largest_win
|
|
199
|
-
largest_win_pct 10.
|
|
209
|
+
largest_win 119.7522
|
|
210
|
+
largest_win_pct 10.156084
|
|
200
211
|
largest_win_bars 7.0
|
|
201
|
-
largest_loss
|
|
202
|
-
largest_loss_pct -5.
|
|
212
|
+
largest_loss -70.2532
|
|
213
|
+
largest_loss_pct -5.399399
|
|
203
214
|
largest_loss_bars 1.0
|
|
204
215
|
max_wins 2.0
|
|
205
216
|
max_losses 9.0
|
|
206
|
-
sharpe_ratio -
|
|
207
|
-
sortino_ratio
|
|
208
|
-
profit_factor 0.
|
|
209
|
-
ulcer_index 0.
|
|
210
|
-
upi -
|
|
211
|
-
equity_r2 0.
|
|
212
|
-
std_error
|
|
213
|
-
calmar_ratio -0.
|
|
217
|
+
sharpe_ratio -2.574886
|
|
218
|
+
sortino_ratio -3.16692
|
|
219
|
+
profit_factor 0.720871
|
|
220
|
+
ulcer_index 0.003099
|
|
221
|
+
upi -2.003008
|
|
222
|
+
equity_r2 0.871776
|
|
223
|
+
std_error 69.889352
|
|
224
|
+
calmar_ratio -0.995821
|
|
214
225
|
exposure_time_pct 48.995984
|
|
215
|
-
var_95
|
|
216
|
-
var_99
|
|
217
|
-
cvar_95 -0.
|
|
218
|
-
cvar_99
|
|
219
|
-
sqn -0.
|
|
220
|
-
kelly_criterion -0.
|
|
221
|
-
max_leverage
|
|
222
|
-
min_margin_level 68.
|
|
226
|
+
var_95 -0.000262
|
|
227
|
+
var_99 -0.000623
|
|
228
|
+
cvar_95 -0.000427
|
|
229
|
+
cvar_99 -0.000702
|
|
230
|
+
sqn -0.800105
|
|
231
|
+
kelly_criterion -0.087435
|
|
232
|
+
max_leverage 0.014604
|
|
233
|
+
min_margin_level 68.473617
|
|
223
234
|
```
|
|
224
235
|
|
|
225
236
|
## 复杂订单助手 (OCO / Bracket)
|
|
@@ -340,6 +351,7 @@ executions_by_strategy = result.executions_by_strategy() # 按策略归属聚合
|
|
|
340
351
|
* 🚀 **[快速入门](https://akquant.akfamily.xyz/start/quickstart/)**: 更多示例与基础用法。
|
|
341
352
|
* 🤖 **[机器学习指南](https://akquant.akfamily.xyz/advanced/ml/)**: 如何使用内置的 ML 框架进行滚动训练。
|
|
342
353
|
* 📚 **[API 参考](https://akquant.akfamily.xyz/reference/api/)**: 详细的类与函数文档。
|
|
354
|
+
* 🧩 **[MCP 服务](https://akquant.akfamily.xyz/guide/mcp/)**: 让 Claude Code、Cursor 等 AI 助手查 API、跑回测、读结构化报错。
|
|
343
355
|
* 💻 **[贡献指南](https://github.com/akfamily/akquant/blob/main/CONTRIBUTING.md)**: 如何参与项目开发。
|
|
344
356
|
|
|
345
357
|
## 🧪 测试与质量保证
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
* **高性能内核**:得益于 Rust 的零开销抽象与 **Zero-Copy 数据导入**(`add_arrays` 借用 NumPy 缓冲入引擎;策略侧 `get_history` 等读取则返回安全快照拷贝),AKQuant 在部分回测场景下可显著降低 Python 层开销;实际运行速度取决于策略逻辑、数据规模、回调频率与运行环境。
|
|
28
28
|
* **原生 ML 支持**:内置 **Walk-forward Validation**(滚动训练)框架,无缝集成 PyTorch/Scikit-learn,让 AI 策略开发从实验到回测一气呵成。
|
|
29
|
-
* **TA-Lib 指标生态**:内置 `akquant.talib` 双后端(`python/rust`)兼容能力,支持 **
|
|
29
|
+
* **TA-Lib 指标生态**:内置 `akquant.talib` 双后端(`python/rust`)兼容能力,支持 **104 个指标**。
|
|
30
30
|
* **因子表达式引擎**:内置 **Polars** 驱动的高性能因子计算引擎,支持 `Rank(Ts_Mean(Close, 5))` 等 Alpha101 风格公式,自动处理并行计算与数据对齐。
|
|
31
31
|
* **参数优化**:内置多进程网格搜索(Grid Search)框架,支持策略参数的高效并行优化。
|
|
32
32
|
* **专业级风控**:内置完善的订单流管理与即时风控模块,支持多资产组合回测。
|
|
@@ -53,6 +53,8 @@ from akquant import Strategy
|
|
|
53
53
|
# 1. 准备数据
|
|
54
54
|
# 使用 akshare 获取 A 股历史数据 (需安装: pip install akshare)
|
|
55
55
|
df = ak.stock_zh_a_daily(symbol="sh600000", start_date="20250212", end_date="20260212")
|
|
56
|
+
# 交易日历: 不传时按工作日推算, 节假日会被当作交易日
|
|
57
|
+
trade_dates = ak.tool_trade_date_hist_sina()["trade_date"]
|
|
56
58
|
|
|
57
59
|
|
|
58
60
|
class MyStrategy(Strategy):
|
|
@@ -78,7 +80,9 @@ result = aq.run_backtest(
|
|
|
78
80
|
data=df,
|
|
79
81
|
strategy=MyStrategy,
|
|
80
82
|
initial_cash=100000.0,
|
|
81
|
-
symbols="sh600000"
|
|
83
|
+
symbols="sh600000",
|
|
84
|
+
broker_profile="cn_stock_t1_low_fee", # A 股佣金/印花税/过户费、T+1、一手 100 股
|
|
85
|
+
trading_calendar=trade_dates,
|
|
82
86
|
)
|
|
83
87
|
|
|
84
88
|
# 打印回测结果
|
|
@@ -98,69 +102,73 @@ result.viz.report(
|
|
|
98
102
|
|
|
99
103
|
调用 `result.viz.report(..., benchmark=...)` 后,报告会新增“基准对比 (Benchmark Comparison)”区块,展示策略/基准/超额累计收益曲线,以及累计超额收益、年化超额收益、跟踪误差、信息比率、Beta、Alpha 等相对指标。
|
|
100
104
|
|
|
105
|
+
> **注意:`run_backtest` 默认不计交易成本、不开 T+1。** 不传 `broker_profile` 也不传费率时,佣金、印花税、过户费都是 0,可以当日买卖,最小交易单位是 1 股——这样得到的是理想化的结果,换手越高越偏乐观。A 股回测请像上面这样传 `broker_profile`(内置 `cn_stock_miniqmt`、`cn_stock_t1_low_fee`、`cn_stock_sim_high_slippage`),或者显式传 `commission_rate`、`stamp_tax_rate`、`transfer_fee_rate`、`min_commission`、`t_plus_one=True`、`lot_size=100`。模板的印花税按 2023-08-28 起的现行税率 0.05% 计,回测此前的行情请显式传 `stamp_tax_rate=0.001`。
|
|
106
|
+
|
|
101
107
|
**运行结果示例:**
|
|
102
108
|
|
|
103
109
|
```text
|
|
104
110
|
=== Backtest Result ===
|
|
105
111
|
BacktestResult:
|
|
106
112
|
Value
|
|
107
|
-
|
|
108
|
-
|
|
113
|
+
name
|
|
114
|
+
start_time 2025-02-12 15:00:00+08:00
|
|
115
|
+
end_time 2026-02-12 15:00:00+08:00
|
|
109
116
|
duration 365 days, 0:00:00
|
|
110
117
|
total_bars 249
|
|
111
|
-
closed_trade_count
|
|
112
|
-
execution_count
|
|
113
|
-
open_position_count
|
|
118
|
+
closed_trade_count 62.0
|
|
119
|
+
execution_count 124.0
|
|
120
|
+
open_position_count 0.0
|
|
114
121
|
initial_market_value 100000.0
|
|
115
|
-
end_market_value
|
|
116
|
-
total_pnl
|
|
122
|
+
end_market_value 99379.212386
|
|
123
|
+
total_pnl -620.787614
|
|
117
124
|
unrealized_pnl 0.0
|
|
118
|
-
total_return_pct
|
|
119
|
-
annualized_return
|
|
120
|
-
volatility 0.
|
|
121
|
-
total_profit
|
|
122
|
-
total_loss
|
|
123
|
-
total_commission
|
|
124
|
-
max_drawdown
|
|
125
|
-
|
|
125
|
+
total_return_pct -0.620788
|
|
126
|
+
annualized_return -0.006208
|
|
127
|
+
volatility 0.002456
|
|
128
|
+
total_profit 544.624
|
|
129
|
+
total_loss -755.5086
|
|
130
|
+
total_commission 409.903014
|
|
131
|
+
max_drawdown 0.006234
|
|
132
|
+
max_drawdown_value 623.409236
|
|
133
|
+
max_drawdown_pct 0.623393
|
|
126
134
|
win_rate 22.580645
|
|
127
135
|
loss_rate 77.419355
|
|
128
136
|
winning_trades 14.0
|
|
129
137
|
losing_trades 48.0
|
|
130
|
-
avg_pnl
|
|
131
|
-
avg_return_pct -0.
|
|
138
|
+
avg_pnl -3.401365
|
|
139
|
+
avg_return_pct -0.219536
|
|
132
140
|
avg_trade_bars 1.967742
|
|
133
|
-
avg_profit
|
|
134
|
-
avg_profit_pct 3.
|
|
141
|
+
avg_profit 38.901714
|
|
142
|
+
avg_profit_pct 3.350484
|
|
135
143
|
avg_winning_trade_bars 4.5
|
|
136
|
-
avg_loss
|
|
137
|
-
avg_loss_pct -1.
|
|
144
|
+
avg_loss -15.739762
|
|
145
|
+
avg_loss_pct -1.260791
|
|
138
146
|
avg_losing_trade_bars 1.229167
|
|
139
|
-
largest_win
|
|
140
|
-
largest_win_pct 10.
|
|
147
|
+
largest_win 119.7522
|
|
148
|
+
largest_win_pct 10.156084
|
|
141
149
|
largest_win_bars 7.0
|
|
142
|
-
largest_loss
|
|
143
|
-
largest_loss_pct -5.
|
|
150
|
+
largest_loss -70.2532
|
|
151
|
+
largest_loss_pct -5.399399
|
|
144
152
|
largest_loss_bars 1.0
|
|
145
153
|
max_wins 2.0
|
|
146
154
|
max_losses 9.0
|
|
147
|
-
sharpe_ratio -
|
|
148
|
-
sortino_ratio
|
|
149
|
-
profit_factor 0.
|
|
150
|
-
ulcer_index 0.
|
|
151
|
-
upi -
|
|
152
|
-
equity_r2 0.
|
|
153
|
-
std_error
|
|
154
|
-
calmar_ratio -0.
|
|
155
|
+
sharpe_ratio -2.574886
|
|
156
|
+
sortino_ratio -3.16692
|
|
157
|
+
profit_factor 0.720871
|
|
158
|
+
ulcer_index 0.003099
|
|
159
|
+
upi -2.003008
|
|
160
|
+
equity_r2 0.871776
|
|
161
|
+
std_error 69.889352
|
|
162
|
+
calmar_ratio -0.995821
|
|
155
163
|
exposure_time_pct 48.995984
|
|
156
|
-
var_95
|
|
157
|
-
var_99
|
|
158
|
-
cvar_95 -0.
|
|
159
|
-
cvar_99
|
|
160
|
-
sqn -0.
|
|
161
|
-
kelly_criterion -0.
|
|
162
|
-
max_leverage
|
|
163
|
-
min_margin_level 68.
|
|
164
|
+
var_95 -0.000262
|
|
165
|
+
var_99 -0.000623
|
|
166
|
+
cvar_95 -0.000427
|
|
167
|
+
cvar_99 -0.000702
|
|
168
|
+
sqn -0.800105
|
|
169
|
+
kelly_criterion -0.087435
|
|
170
|
+
max_leverage 0.014604
|
|
171
|
+
min_margin_level 68.473617
|
|
164
172
|
```
|
|
165
173
|
|
|
166
174
|
## 复杂订单助手 (OCO / Bracket)
|
|
@@ -281,6 +289,7 @@ executions_by_strategy = result.executions_by_strategy() # 按策略归属聚合
|
|
|
281
289
|
* 🚀 **[快速入门](https://akquant.akfamily.xyz/start/quickstart/)**: 更多示例与基础用法。
|
|
282
290
|
* 🤖 **[机器学习指南](https://akquant.akfamily.xyz/advanced/ml/)**: 如何使用内置的 ML 框架进行滚动训练。
|
|
283
291
|
* 📚 **[API 参考](https://akquant.akfamily.xyz/reference/api/)**: 详细的类与函数文档。
|
|
292
|
+
* 🧩 **[MCP 服务](https://akquant.akfamily.xyz/guide/mcp/)**: 让 Claude Code、Cursor 等 AI 助手查 API、跑回测、读结构化报错。
|
|
284
293
|
* 💻 **[贡献指南](https://github.com/akfamily/akquant/blob/main/CONTRIBUTING.md)**: 如何参与项目开发。
|
|
285
294
|
|
|
286
295
|
## 🧪 测试与质量保证
|
|
@@ -117,7 +117,7 @@ A single failing plugin is logged at `WARNING` and skipped; it does not affect o
|
|
|
117
117
|
1. **Stable module name** — loading the same source repeatedly yields the same module name
|
|
118
118
|
2. **Registered in `sys.modules`**, and importable by that name from a worker process
|
|
119
119
|
|
|
120
|
-
The built-in `python_plain` already satisfies both: it derives a stable, reversible module name from the source file path, and installs a `sys.meta_path` finder at `import akquant` time so workers can recover the source file from the module name.
|
|
120
|
+
The built-in `python_plain` already satisfies both: it derives a stable, reversible module name from the source file path, and installs a `sys.meta_path` finder at `import akquant` time so workers can recover the source file from the module name. When the source file content changes (detected by content hash), `python_plain` re-loads it under the same stable module name; unchanged content reuses the already loaded module. After a reload, classes and instances from the old module can no longer be pickled (`PicklingError: not the same object`), because the name now resolves to the latest class.
|
|
121
121
|
|
|
122
122
|
A custom loader that also needs multiprocessing support must provide an equivalent mechanism. Mind the timing: a `spawn`-started worker restores the module while deserializing the task queue, before any user code runs, so the finder must be installed at module import time.
|
|
123
123
|
|
|
@@ -207,12 +207,14 @@ Priority rule:
|
|
|
207
207
|
|
|
208
208
|
Template parameter details (current built-in values):
|
|
209
209
|
|
|
210
|
-
| Template | commission_rate | stamp_tax_rate | transfer_fee_rate | min_commission | slippage | volume_limit_pct | lot_size |
|
|
211
|
-
|
|
212
|
-
| `cn_stock_miniqmt` | 0.0003 | 0.
|
|
213
|
-
| `cn_stock_t1_low_fee` | 0.0002 | 0.
|
|
214
|
-
| `cn_stock_sim_high_slippage` | 0.0003 | 0.
|
|
215
|
-
|
|
210
|
+
| Template | commission_rate | stamp_tax_rate | transfer_fee_rate | min_commission | slippage | volume_limit_pct | lot_size | t_plus_one |
|
|
211
|
+
|---|---:|---:|---:|---:|---:|---:|---:|---|
|
|
212
|
+
| `cn_stock_miniqmt` | 0.0003 | 0.0005 | 0.00001 | 5.0 | 0.0002 | 0.2 | 100 | True |
|
|
213
|
+
| `cn_stock_t1_low_fee` | 0.0002 | 0.0005 | 0.000005 | 3.0 | 0.0001 | 0.25 | 100 | True |
|
|
214
|
+
| `cn_stock_sim_high_slippage` | 0.0003 | 0.0005 | 0.00001 | 5.0 | 0.001 | 0.1 | 100 | True |
|
|
215
|
+
|
|
216
|
+
> Stamp tax uses the rate in force since 2023-08-28, 0.05% (it was 0.1% before; the templates previously used the old rate). For data before 2023-08-28 pass `stamp_tax_rate=0.001`. All three templates enable T+1 (previously they did not, so same-day round trips were allowed); pass `t_plus_one=False` to turn it off.
|
|
217
|
+
>
|
|
216
218
|
> Since 0.3.74, `volume_limit_pct=0.25` of `cn_stock_t1_low_fee` actually takes effect (it was previously skipped by a default-value check). For `cn_stock_miniqmt` (0.2) and `cn_stock_sim_high_slippage` (0.1), capped fills are now also floored to whole lots by `lot_size`.
|
|
217
219
|
|
|
218
220
|
Quick example:
|
|
@@ -28,6 +28,8 @@ framework takes care of three things for you: **advancing it on every bar**, **s
|
|
|
28
28
|
lookback through `ind[0]` / `ind[1]`**, and **reporting plot points on demand**. This
|
|
29
29
|
mirrors `ta.*` + `plot()` in TradingView Pine Script.
|
|
30
30
|
|
|
31
|
+
`name=` must be unique within a strategy: declaring the same name twice raises `ValueError` (without `name`, indicators are auto-numbered `ema`, `ema_2`, ...; an explicit name must not collide with those auto names either).
|
|
32
|
+
|
|
31
33
|
```python
|
|
32
34
|
import akquant as aq
|
|
33
35
|
from akquant import Bar, Strategy
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# MCP Server: Help AI Assistants Write Strategies That Run
|
|
2
|
+
|
|
3
|
+
AKQuant ships a local MCP (Model Context Protocol) server. Once connected to an AI coding assistant such as Claude Code or Cursor, the AI can look up APIs matching your installed version, statically check a strategy, prepare data, run backtests, and read structured results and errors — a write–run–fix loop.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install "akquant[mcp]"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This adds an `akquant-mcp` command. It talks to the AI client over stdio and is normally launched by the client.
|
|
12
|
+
|
|
13
|
+
## Connect a client
|
|
14
|
+
|
|
15
|
+
Claude Code (run in the project root):
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
claude mcp add akquant -- akquant-mcp
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`akquant-mcp` must be on PATH. If AKQuant is installed in a uv/venv environment, use `claude mcp add akquant -- uv run akquant-mcp` or the absolute path of the executable.
|
|
22
|
+
|
|
23
|
+
Clients configured with JSON (Cursor etc.):
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"mcpServers": {
|
|
28
|
+
"akquant": {"command": "akquant-mcp", "args": ["--root", "/path/to/project"]}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Options:
|
|
34
|
+
|
|
35
|
+
- `--root`: project root. Without it the root is the directory the client launches the server in, so pass it explicitly. Strategy and data files must live under it.
|
|
36
|
+
- `--max-runs`: how many recent backtest runs to keep, default 50.
|
|
37
|
+
|
|
38
|
+
## Tools
|
|
39
|
+
|
|
40
|
+
| Tool | Purpose |
|
|
41
|
+
|---|---|
|
|
42
|
+
| `search_api` / `get_api` | Look up API signatures and docs (runtime introspection, matches your installed version) |
|
|
43
|
+
| `get_guide` | Strategy-writing notes: skeleton, orders, indicators, data format, market rules |
|
|
44
|
+
| `check_strategy` | Static check of a strategy file; does not execute it |
|
|
45
|
+
| `prepare_data` | Prepare data: local CSV/Parquet, AKShare (A-share daily bars), or synthetic |
|
|
46
|
+
| `run_backtest` | Backtest in a subprocess; returns key metrics, first trades and structured errors |
|
|
47
|
+
| `get_run_details` | Page through trades, orders, daily equity and logs |
|
|
48
|
+
|
|
49
|
+
The guides are also exposed as the resource `akquant://guide/{topic}`.
|
|
50
|
+
|
|
51
|
+
## Limitations
|
|
52
|
+
|
|
53
|
+
- Only class-based strategies (`Strategy` subclasses) are supported in this release; for function-style strategies, call `run_backtest` from a script.
|
|
54
|
+
- `run_backtest`'s `config` exposes common options only; futures contract parameters, risk config, optimization and reports are out of scope.
|
|
55
|
+
|
|
56
|
+
## Working directory
|
|
57
|
+
|
|
58
|
+
Cached data and run results go to `<project root>/.akquant-mcp/` by default; override with the `AKQUANT_MCP_HOME` environment variable. Add it to `.gitignore`:
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
.akquant-mcp/
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Security
|
|
65
|
+
|
|
66
|
+
This is a local development tool and **is not a sandbox**: `run_backtest` executes your strategy file in a subprocess with the same trust as running `python strategy.py` yourself. The project-root path restriction only keeps the AI from wandering into other directories; it is not isolation. Do not use it to run strategy files from untrusted sources.
|
|
@@ -35,7 +35,7 @@ def run_backtest(
|
|
|
35
35
|
timezone: Optional[str] = None,
|
|
36
36
|
sessions: Optional[SessionsArg] = None,
|
|
37
37
|
trading_calendar: Optional[Iterable[Any]] = None,
|
|
38
|
-
t_plus_one: bool =
|
|
38
|
+
t_plus_one: Optional[bool] = None,
|
|
39
39
|
initialize: Optional[Callable[[Any], None]] = None,
|
|
40
40
|
on_start: Optional[Callable[[Any], None]] = None,
|
|
41
41
|
on_resume: Optional[Callable[[Any], None]] = None,
|
|
@@ -127,8 +127,8 @@ def run_backtest(
|
|
|
127
127
|
* `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.
|
|
128
128
|
* `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).
|
|
129
129
|
* `trading_calendar`: List of trading days (`date` / string / `Timestamp`), default `None`. When omitted, China markets infer trading days from weekdays (holidays are treated as trading days, so night sessions and end-of-day settlement around holidays are wrong) and a warning is logged once; `ALWAYS_OPEN` counts every day and does not warn. Data timestamps outside the range covered by the given calendar raise `ValueError`.
|
|
130
|
-
* `t_plus_one`: Enable T+1 trading rule (
|
|
131
|
-
* `slippage`: Global slippage (Default
|
|
130
|
+
* `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.
|
|
131
|
+
* `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).
|
|
132
132
|
* `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 `stock_zh_a_hist` reports volume in lots (100 shares), multiply by 100 before enabling the limit. 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.
|
|
133
133
|
* `warmup_period`: Strategy warmup period. Specifies the length of historical data (number of Bars) to preload for indicator calculation.
|
|
134
134
|
* `start_time` / `end_time`: Backtest start/end time. Naive strings or `Timestamp` values are interpreted in the current `timezone` before being converted to UTC for filtering.
|
|
@@ -167,7 +167,7 @@ def run_backtest(
|
|
|
167
167
|
* `risk_budget_mode` / `risk_budget_reset_daily`: Risk budget accounting mode and reset policy.
|
|
168
168
|
* `analyzer_plugins`: Optional analyzer plugin list. Plugins receive `on_start/on_bar/on_trade/on_finish` callbacks and final outputs are stored in `result.analyzer_outputs`.
|
|
169
169
|
* `on_event`: Optional stream callback. When omitted, an internal no-op callback keeps legacy blocking return semantics; when provided, runtime events are emitted.
|
|
170
|
-
* `broker_profile`: Optional broker template preset for quick defaults (fees/slippage/lot size). Built-ins: `cn_stock_miniqmt`, `cn_stock_t1_low_fee`, `cn_stock_sim_high_slippage`.
|
|
170
|
+
* `broker_profile`: Optional broker template preset for quick defaults (fees/slippage/lot size/T+1); explicit arguments take precedence (for slippage too: to override the template's slippage you must pass an explicit `slippage={"type": "zero"}` or another policy dict; omitting it or passing `None` leaves the template's slippage in effect). Built-ins: `cn_stock_miniqmt`, `cn_stock_t1_low_fee`, `cn_stock_sim_high_slippage`.
|
|
171
171
|
|
|
172
172
|
**Recommended fill_policy examples (primary path):**
|
|
173
173
|
|
|
@@ -508,7 +508,7 @@ class StrategyConfig:
|
|
|
508
508
|
# Execution
|
|
509
509
|
enable_fractional_shares: bool = False
|
|
510
510
|
round_fill_price: bool = True
|
|
511
|
-
slippage:
|
|
511
|
+
slippage: Optional[Dict[str, Any]] = None
|
|
512
512
|
volume_limit_pct: float = 0.0
|
|
513
513
|
exit_on_last_bar: bool = True
|
|
514
514
|
|
|
@@ -562,7 +562,7 @@ class InstrumentConfig:
|
|
|
562
562
|
min_commission: Optional[float] = None
|
|
563
563
|
stamp_tax_rate: Optional[float] = None
|
|
564
564
|
transfer_fee_rate: Optional[float] = None
|
|
565
|
-
slippage: Optional[
|
|
565
|
+
slippage: Optional[Dict[str, Any]] = None
|
|
566
566
|
|
|
567
567
|
# Option specific
|
|
568
568
|
option_type: Optional[
|
|
@@ -947,7 +947,7 @@ Note: if you do not pass an explicit `fill_mode` here, the framework defaults to
|
|
|
947
947
|
* Limit order if `price` is specified.
|
|
948
948
|
* Stop order (Stop Market) if `trigger_price` is specified.
|
|
949
949
|
* Omitting `symbol` uses the current bar/tick symbol; callbacks without market context (e.g. `on_start`) must pass it explicitly.
|
|
950
|
-
* Omitting `quantity` sizes the order via `self.sizer` (defaults to `FixedSize(100)`, replaceable with `set_sizer()`).
|
|
950
|
+
* Omitting `quantity` sizes the order via `self.sizer` (defaults to `FixedSize(100)`, replaceable with `set_sizer()`); the sized quantity is rounded down to the instrument's `lot_size`, and nothing is submitted if it is below one lot. With `lot_size` 1 no rounding is applied (fractional quantities pass through). An explicit `quantity` is never rounded.
|
|
951
951
|
* `sell(symbol=None, quantity=None, price=None, trigger_price=None, ...)`: Sell (close long / open short). Same parameters as above, except that **omitting `quantity` does not use the sizer — it closes the whole position**: total position in backtest, available position under `broker_live` (China A-share T+1 freezes same-day buys, so sizing off the total gets the whole order rejected by the broker).
|
|
952
952
|
* When the resolved quantity is `<= 0`, no order is placed and an empty receipt is returned (`len(receipt) == 0`, `receipt.primary == ""`).
|
|
953
953
|
* `receipt.failure` (read-only, `None` / `"rejected"` / `"unknown"`): distinguishes the three causes of an empty receipt.
|
|
@@ -1377,9 +1377,9 @@ Funds-check fields:
|
|
|
1377
1377
|
|
|
1378
1378
|
* `check_cash`: enable cash/margin checks (default `True`). It controls both the submission gate and the execution gate; `False` lets the account overdraw.
|
|
1379
1379
|
* `safety_margin`: buffer for the submission gate (default `0.0001`), applied as `available × (1 − safety_margin)`. The execution gate uses no buffer.
|
|
1380
|
-
* The submission gate prices the order at a **reference price**: the limit price for limit orders, the last price for market orders. Under `fill_policy=NextOpen()` the last price is the previous bar's close while the real fill is the next bar's open, so on gap-up days a full-size market buy sized at the open can be rejected at submission (`Insufficient margin`, with `Required = quantity × reference price + commission` and `Available = available funds × (1 − safety_margin)`). The execution gate checks again at the real fill price. Workarounds: use a limit order priced at the highest price you accept; call `buy(symbol, quantity=None)` so the sizer computes the quantity and the engine shrinks it when funds are short; or size with `reference price × (1 + headroom)` yourself.
|
|
1380
|
+
* The submission gate prices the order at a **reference price**: the limit price for limit orders, the last price for market orders. Under `fill_policy=NextOpen()` the last price is the previous bar's close while the real fill is the next bar's open, so on gap-up days a full-size market buy sized at the open can be rejected at submission (`Insufficient margin`, with `Required = quantity × reference price + commission` and `Available = available funds × (1 − safety_margin)`). The execution gate checks again at the real fill price. Workarounds: use a limit order priced at the highest price you accept; call `buy(symbol, quantity=None)` so the sizer computes the quantity and the engine shrinks it to whole lots it can afford when funds are short (at both gates; buys with an explicit `quantity` are never resized); or size with `reference price × (1 + headroom)` yourself.
|
|
1381
1381
|
|
|
1382
|
-
Rejection reasons are available in `orders_df.reject_reason`.
|
|
1382
|
+
Rejection reasons are available in `orders_df.reject_reason`. Execution-time rejections carry an `at execution` marker. If the order was already partially filled (e.g. across several bars under `volume_limit_pct`), only the remainder is rejected: the status becomes `cancelled`, `filled_quantity` and `avg_price` keep the filled part, and the reason is still in `reject_reason`.
|
|
1383
1383
|
|
|
1384
1384
|
## 6. Analysis
|
|
1385
1385
|
|