akquant 0.3.76__tar.gz → 0.3.77__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.76 → akquant-0.3.77}/CHANGELOG.md +15 -0
- {akquant-0.3.76 → akquant-0.3.77}/Cargo.lock +1 -1
- {akquant-0.3.76 → akquant-0.3.77}/Cargo.toml +1 -1
- {akquant-0.3.76 → akquant-0.3.77}/PKG-INFO +1 -1
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/custom_strategy_loader.md +2 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/custom_indicator.md +4 -4
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/data.md +6 -15
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/optimization.md +14 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/strategy.md +1 -1
- akquant-0.3.77/docs/en/guide/visualization.md +232 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/reference/api.md +25 -1
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/custom_strategy_loader.md +2 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/custom_indicator.md +3 -3
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/data.md +6 -15
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/optimization.md +14 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/quant_basics.md +3 -13
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/strategy.md +5 -3
- akquant-0.3.77/docs/zh/guide/visualization.md +231 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/meta/indicator-tradingview-rfc.md +2 -3
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/reference/api.md +25 -1
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/03_data.md +5 -3
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/05_strategy.md +1 -1
- {akquant-0.3.76 → akquant-0.3.77}/examples/59_akshare_etf_rotation.py +18 -18
- {akquant-0.3.76 → akquant-0.3.77}/examples/72_declarative_indicators.py +3 -2
- akquant-0.3.77/examples/78_chart_drawings.py +218 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/README.md +1 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch03_data.py +35 -25
- {akquant-0.3.76 → akquant-0.3.77}/pyproject.toml +1 -1
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/__init__.py +10 -1
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/akquant.pyi +46 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/backtest/_viz.py +3 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/backtest/engine.py +2 -1
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/backtest/merge.py +24 -1
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/backtest/result.py +28 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/chart/__init__.py +48 -0
- akquant-0.3.77/python/akquant/chart/_drawing.py +396 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/config.py +1 -1
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/broker_event_bridge.py +35 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/broker_execution.py +7 -1
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/broker_runtime.py +51 -2
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/broker_state_cache.py +9 -0
- akquant-0.3.77/python/akquant/gateway/broker_stats.py +261 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/broker_strategy_api.py +24 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/indicator_recording.py +45 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/indicator_stream.py +35 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/live/_runner.py +77 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/live/_stream_sink.py +12 -0
- akquant-0.3.77/python/akquant/lwc/_drawings.py +141 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/lwc/_indicators.py +14 -2
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/lwc/_payload.py +37 -8
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/lwc/_template.py +251 -3
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/lwc/review.py +7 -1
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/guides/indicators.md +1 -1
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/guides/strategy-skeleton.md +1 -1
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/service/check.py +51 -16
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/service/errors.py +4 -3
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/service/runs.py +1 -1
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/optimize.py +55 -2
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy.py +77 -4
- akquant-0.3.77/python/akquant/strategy_drawing.py +355 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_events.py +27 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_loader.py +8 -1
- akquant-0.3.77/python/akquant/strategy_stats.py +201 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/stream_schema.py +10 -1
- akquant-0.3.77/src/analysis/live_stats.rs +377 -0
- akquant-0.3.77/src/analysis/mod.rs +16 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/analysis/result.rs +11 -14
- akquant-0.3.77/src/analysis/strategy_stats.rs +351 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/analysis/tests.rs +65 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/analysis/tracker.rs +86 -42
- {akquant-0.3.76 → akquant-0.3.77}/src/context.rs +37 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/engine/core.rs +15 -1
- {akquant-0.3.76 → akquant-0.3.77}/src/engine/python.rs +26 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/lib.rs +4 -1
- {akquant-0.3.76 → akquant-0.3.77}/src/statistics/mod.rs +120 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/mcp_server/test_mcp_check.py +86 -3
- {akquant-0.3.76 → akquant-0.3.77}/tests/mcp_server/test_mcp_errors.py +3 -3
- {akquant-0.3.76 → akquant-0.3.77}/tests/mcp_server/test_mcp_runs.py +15 -0
- akquant-0.3.77/tests/test_broker_trade_stats.py +655 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_candle_render_type.py +2 -2
- akquant-0.3.77/tests/test_chart_drawing_normalize.py +397 -0
- akquant-0.3.77/tests/test_drawing_stream.py +159 -0
- akquant-0.3.77/tests/test_grid_search_all_failed.py +265 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_indicator_recording.py +7 -1
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_public_api.py +3 -3
- akquant-0.3.77/tests/test_lwc_drawings.py +169 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_lwc_indicators.py +99 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_lwc_review.py +88 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_merge_results.py +47 -0
- akquant-0.3.77/tests/test_strategy_custom_init_params.py +154 -0
- akquant-0.3.77/tests/test_strategy_drawing.py +347 -0
- akquant-0.3.77/tests/test_strategy_loader_candidates.py +118 -0
- akquant-0.3.77/tests/test_strategy_stats.py +222 -0
- akquant-0.3.77/tests/test_strategy_stats_parity.py +156 -0
- akquant-0.3.76/docs/en/guide/visualization.md +0 -105
- akquant-0.3.76/docs/zh/guide/visualization.md +0 -104
- akquant-0.3.76/src/analysis/mod.rs +0 -10
- {akquant-0.3.76 → akquant-0.3.77}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/.github/dependabot.yml +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/.github/workflows/deploy-docs.yml +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/.github/workflows/docs-quality.yml +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/.github/workflows/release.yml +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/.gitignore +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/.pre-commit-config.yaml +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/CODE_OF_CONDUCT.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/CONTRIBUTING.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/LICENSE +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/README.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/assets/dashboard_preview.png +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/assets/logo.svg +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/assets/social_preview.png +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/CNAME +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/assets/akquant-icon.svg +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/assets/akquant-logo.svg +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/assets/reports/akquant_report.html +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/llm.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/ml.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/runtime_config.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/timezone.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/advanced/warm_start.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/analysis.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/examples.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/factor.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/mcp.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/python_basics.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/quant_basics.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/guide/testing.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/index.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/meta/architecture.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/meta/internals.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/start/first_strategy.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/start/installation.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/start/quickstart.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/start/setup_guide.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/01_foundations.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/02_programming.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/03_data.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/04_backtest_engine.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/05_strategy.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/06_stock_a.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/07_futures.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/08_options.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/09_funds.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/10_analysis.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/11_optimization.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/12_ml.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/13_visualization.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/14_factor.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/15_live_trading.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/en/textbook/index.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/javascripts/mathjax.js +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/javascripts/search-lang-filter.js +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/robots.txt +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/adding_a_broker.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/llm.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/ml.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/runtime_config.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/timezone.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/advanced/warm_start.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/analysis.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/examples.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/factor.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/mcp.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/python_basics.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/guide/testing.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/index.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/meta/architecture.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/meta/columnar-rfc.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/meta/hooks-rfc.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/meta/internals.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/meta/issue-329-fix-plan.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/meta/logging-rfc.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/meta/signal-ingestion-rfc.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/meta/timer-api-rfc.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/meta/viz-namespace-and-lwc-review-rfc.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/meta/warm-start-config-and-merge-rfc.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/start/first_strategy.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/start/installation.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/start/quickstart.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/start/setup_guide.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/00_glossary.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/01_foundations.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/02_programming.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/04_backtest_engine.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/06_stock_a.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/07_futures.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/08_options.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/09_funds.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/10_analysis.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/11_optimization.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/12_ml.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/13_visualization.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/14_factor.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/15_live_trading.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/ROADMAP.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/appendix_cite.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/appendix_pitfalls.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/appendix_setup.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/capstone.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/docs/zh/textbook/index.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/01_quickstart.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/02_parameter_optimization.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/03_parameter_optimization_advanced.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/04_mixed_assets.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/05_live_trading_ctp.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/06_complex_orders.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/07_option_test.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/08_event_callbacks.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/09_ml_framework.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/10_ml_walk_forward.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/11_plot_visualization.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/12_wfo_integrated.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/13_quantstats_report.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/14_multi_frequency.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/15_plot_intraday.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/16_adj_returns_signal.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/17_readme_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/18_benchmark_multisymbol.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/19_factor_expression.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/20_risk_management_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/21_warm_start_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/22_strategy_runtime_config_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/23_functional_callbacks_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/24_functional_tick_simulation_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/25_streaming_backtest_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/26_streaming_quickstart.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/27_streaming_monitoring_console.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/28_streaming_alerts_and_persist.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/29_streaming_event_report.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/30_streaming_report_oneclick.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/31_streaming_live_console.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/32_streaming_live_web.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/33_report_and_analysis_outputs.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/34_multi_strategy_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/35_custom_broker_registry_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/36_trailing_orders.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/37_feed_replay_alignment_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/38_live_functional_strategy_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/39_live_broker_submit_order_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/39_live_mixed_broker_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/40_functional_multi_slot_risk_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/41_live_multi_slot_orchestration_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/42_live_broker_event_audit_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/43_target_weights_rebalance.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/44_strategy_source_loader_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/45_talib_indicator_playbook_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/46_broker_profile_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/47_margin_liquidation_audit_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/48_margin_liquidation_priority_compare.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/49_on_expiry_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/50_framework_hooks_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/51_class_tick_callbacks_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/52_pre_open_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/53_timer_to_pre_open_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/54_functional_pre_open_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/55_functional_ml_walk_forward.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/56_functional_warm_start_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/57_functional_multi_slot_warm_start_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/58_incremental_bootstrap_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/60_custom_indicator_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/61_indicator_visualization_export_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/61_signal_platform_webhook.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/62_indicator_streaming_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/63_indicator_ws_bridge_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/64_indicator_live_web.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/65_bar_generator.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/66_logging_audit_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/67_lwc_trade_review.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/68_backtest_tick_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/69_live_runtime_config_dispatch_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/70_csv_multi_symbol_import_demo.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/71_native_multi_timeframe_live.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/73_lwc_live_indicators.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/74_indicator_scripts.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/75_intrabar_indicators.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/76_tick_intrabar_indicators.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/77_heikin_ashi_indicator.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/benchmark_utils.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/pb_mock.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/strategies/01_stock_dual_moving_average.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/strategies/02_stock_grid_trading.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/strategies/03_stock_atr_breakout.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/strategies/04_stock_momentum_rotation.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/strategies/05_stock_momentum_rotation_timer.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/strategies/06_stock_momentum_rotation_bucket.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/strategies/07_stock_momentum_rotation_on_timer.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/strategies/08_target_positions_long_short.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/strategies/09_stock_momentum_rotation_after_bar.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/strategies/README.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch01_quickstart.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch01_quickstart_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch02_programming.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch04_comparison.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch04_comparison_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch05_strategy.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch05_strategy_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch06_stock_a.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch06_stock_a_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch07_futures.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch07_futures_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch08_options.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch08_options_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch09_funds.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch09_funds_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch09_portfolio.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch09_portfolio_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch10_analysis.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch10_analysis_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch11_optimization.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch11_optimization_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch12_ml.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch12_ml_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch13_visualization.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch13_visualization_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch14_factor.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch15_live_trading.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch15_live_trading_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch15_strategy_loader.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch15_strategy_loader_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch16_indicators.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/examples/textbook/ch16_indicators_functional.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/mkdocs.yml +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/analysis/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/analysis/benchmark.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/analyzer_plugin.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/backtest/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/backtest/__init__.pyi +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/backtest/fill_mode.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/backtest/tick_input.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/bar_generator.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/chart/_normalize.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/chart/d3kline.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/checkpoint.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/data.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/execution/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/execution/base.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/execution/sim.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/factor/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/factor/engine.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/factor/ops.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/factor/parser.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/feed_adapter.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/fund/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/futures/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/base.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/broker_event_adapter.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/broker_event_mapper.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/broker_models.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/broker_recovery.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/brokers/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/brokers/builtins.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/brokers/ctp/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/brokers/ctp/adapter.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/brokers/ctp/native.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/brokers/miniqmt/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/brokers/miniqmt/stub.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/brokers/plugins.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/brokers/ptrade/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/brokers/ptrade/stub.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/brokers/replay/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/brokers/replay/gateway.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/ctp_adapter.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/ctp_native.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/factory.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/local_stop_book.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/mapper.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/miniqmt.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/models.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/order_audit.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/order_errors.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/order_receipt.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/order_submitter.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/protocols.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/ptrade.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/registry.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/symbol_match.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/gateway/trader_base.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/indicator_declaration.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/indicator_identity.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/indicator_script.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/live/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/live/_facade.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/live/_gateway_setup.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/live/_payload_utils.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/live/_preload.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/live/_strategy_maps.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/log.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/lwc/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/lwc/assets/LICENSE.lightweight-charts +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/lwc/assets/NOTICE.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/lwc/assets/lightweight-charts.standalone.production.js +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/__main__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/guides/data-format.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/guides/market-rules.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/guides/orders-and-positions.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/server.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/service/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/service/api_index.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/service/data.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/service/guides.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/service/paths.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/service/records.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/mcp/worker.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/ml/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/ml/model.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/normalize.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/option/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/params.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/params_adapter.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/plot/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/plot/_market_data.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/plot/analysis.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/plot/dashboard.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/plot/indicator.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/plot/report.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/plot/strategy.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/plot/utils.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/precomputed.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/py.typed +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/risk.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/schema.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/sessions_config.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/signal/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/signal/dedup.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/signal/dispatcher.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/signal/models.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/signal/protocols.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/signal/registry.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/signal/security.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/signal/sinks.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/signal/sources/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/signal/sources/http.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/signal/sources/queue.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/signal/sources/redis_stream.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/sizer.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/stock/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_framework_hooks.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_history.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_inspect.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_logging.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_ml.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_order_events.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_position.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_preload.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_runtime_config.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_scheduler.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_time.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_trading_api.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/strategy_window.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/talib/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/talib/_kernels.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/talib/backend.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/talib/core.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/talib/funcs.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/talib/lookback.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/trade_stream.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/utils/__init__.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/utils/inspector.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/python/akquant/utils/price.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/requirements-dev.txt +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/scripts/bench_engine_perbar.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/scripts/cargo-test.sh +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/scripts/check_docs_api_examples.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/scripts/check_docs_links.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/scripts/check_release.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/scripts/dev-check.sh +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/scripts/golden_baseline_report.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/scripts/profile_backtest.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/scripts/stress_out_of_core.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/account.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/analysis/python.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/analysis/types.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/bin/stub_gen.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/calendar/clock.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/calendar/mod.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/calendar/python.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/calendar/resolver.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/calendar/schedule.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/calendar/trading_calendar.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/clock.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/data/aggregator.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/data/batch.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/data/client.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/data/columns.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/data/compute.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/data/feed.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/data/mod.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/data/parquet_stream.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/data/python_window.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/data/window.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/engine/mod.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/engine/state.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/error.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/event.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/event_manager.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/execution/common.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/execution/crypto.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/execution/forex.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/execution/futures.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/execution/matcher.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/execution/mod.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/execution/option.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/execution/python.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/execution/realtime.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/execution/simulated.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/execution/slippage.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/execution/stock.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/execution/validation.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/history.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/momentum.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/momentum_oscillators.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/momentum_rates.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/moving_average.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/moving_average_compound.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/moving_average_core.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/moving_average_hilbert.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/moving_average_transforms.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/moving_average_windowed.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/trend.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/trend_directional.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/trend_oscillators.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/trend_regression.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/volatility.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/volatility_candle.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/volatility_price.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/volatility_stats.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators/volume.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/indicators.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/log_context.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/margin/calculator.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/margin/engine.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/margin/mod.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/market/china.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/market/core.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/market/corporate_action.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/market/fee_override.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/market/fund.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/market/futures.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/market/manager.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/market/mod.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/market/option.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/market/simple.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/market/stock.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/model/corporate_action.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/model/instrument.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/model/market_data.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/model/mod.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/model/order.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/model/timer.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/model/types.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/order_manager.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/pipeline/mod.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/pipeline/processor.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/pipeline/runner.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/pipeline/stages/channel.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/pipeline/stages/cleanup.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/pipeline/stages/data.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/pipeline/stages/execution.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/pipeline/stages/mod.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/pipeline/stages/shared.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/pipeline/stages/statistics.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/pipeline/stages/strategy.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/portfolio.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/risk/common.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/risk/config.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/risk/futures.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/risk/manager.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/risk/mod.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/risk/option.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/risk/portfolio.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/risk/rule.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/risk/stock.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/risk/strategy_limits.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/settlement/expiry.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/settlement/handler.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/settlement/manager.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/settlement/mod.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/settlement/option.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/src/signal_port.rs +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/_checkpoint_0371.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/_plot_cases.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/fixtures/checkpoint_0371_minute.pkl +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/gateway_contract/test_event_bridge_contract.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/gateway_contract/test_recovery_contract.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/gateway_contract/test_submitter_contract.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/BASELINE_REPORT.md +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/futures_margin/equity_curve.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/futures_margin/metrics.json +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/futures_margin/orders.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/futures_margin/trading_day_ends.json +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/futures_night_weekend/equity_curve.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/futures_night_weekend/metrics.json +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/futures_night_weekend/orders.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/futures_night_weekend/trades.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/futures_night_weekend/trading_day_ends.json +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/option_basic/equity_curve.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/option_basic/metrics.json +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/option_basic/orders.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/option_basic/trading_day_ends.json +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/order_cancel/equity_curve.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/order_cancel/metrics.json +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/order_cancel/orders.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/order_cancel/trades.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/order_cancel/trading_day_ends.json +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/stock_minute_auction/equity_curve.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/stock_minute_auction/metrics.json +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/stock_minute_auction/orders.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/stock_minute_auction/trades.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/stock_minute_auction/trading_day_ends.json +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/stock_t1/equity_curve.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/stock_t1/metrics.json +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/stock_t1/orders.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/stock_t1/trades.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/baselines/stock_t1/trading_day_ends.json +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/data/future_margin.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/data/future_margin.parquet.sha256 +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/data/futures_night_weekend.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/data/futures_night_weekend.parquet.sha256 +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/data/option_basic.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/data/option_basic.parquet.sha256 +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/data/order_cancel.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/data/order_cancel.parquet.sha256 +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/data/stock_minute_auction.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/data/stock_minute_auction.parquet.sha256 +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/data/stock_t1.parquet +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/data/stock_t1.parquet.sha256 +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/gen_data.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/runner.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/strategies/futures_margin.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/strategies/futures_night_weekend.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/strategies/option_basic.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/strategies/order_cancel.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/strategies/stock_minute_auction.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/strategies/stock_t1.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/golden/test_golden.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/mcp_server/conftest.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/mcp_server/test_mcp_api_index.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/mcp_server/test_mcp_data.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/mcp_server/test_mcp_guides.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/mcp_server/test_mcp_main.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/mcp_server/test_mcp_paths.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/mcp_server/test_mcp_records.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/mcp_server/test_mcp_server.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_account_risk_rules.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_api_rename_cash.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_api_rename_composites.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_api_rename_equity.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_api_rename_holding_bars.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_api_rename_positions.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_api_rename_rebalance.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_api_rename_scheduler.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_backtest_params.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_backtest_symbol_column_aliases.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_backtest_tick_aggregate.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_backtest_tick_entry.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_backtest_tick_history.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_bar_aggregator_live.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_bar_generator.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_bar_hook_bookkeeping_invariants.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_bench_noise_gate.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_boundary_bar_fill.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_bridge_adapts_events.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_bridge_drives_order_groups.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_dropped_counts_periodic_summary.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_event_adapter.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_event_adapter_local_id.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_event_symbol_filter.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_event_task_isolation.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_execution_local_stops.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_execution_read_path_parity.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_execution_stop_requeue.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_live_risk_enforcement.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_order_redelivery_dedup.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_plugins.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_position_sync.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_profile_cn_stock.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_recovery_cadence.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_recovery_error_visibility.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_seed_baseline.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_broker_trade_redelivery_dedup.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_buying_power_new_symbol.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_cancel_request_persistence.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_candle_exporters.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_chart_d3kline.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_chart_normalize.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_check_release.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_checkpoint_0371_compat.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_checkpoint_option_rules.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_close_position_delegate.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_composed_ctx_not_ready.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_cost_config_consolidation.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_cross_section_day_order_next_open_fill.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_ctp_classify_order_error.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_custom_matcher.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_data_catalog.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_date_only_rewrite_cache.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_day_order_expiry_no_zombie_fill.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_deterministic_order.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_docs_api_examples.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_docs_links.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_dual_stream_freq_inference.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_engine.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_engine_python_crossings.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_event_model_parity.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_examples_regression.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_execution_binding.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_execution_broker.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_execution_broker_reads_routed.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_execution_composed_parity.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_execution_read_delegation.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_execution_sim.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_execution_write_delegation.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_expiry_terminal_dispatch.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_expiry_trade_accounting.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_factor_engine.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_factor_ops.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_feed_adapter.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_fetch_akshare_symbol.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_fill_mode.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_broker_live_cancel.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_broker_live_reads.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_broker_models_ext.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_broker_state_cache.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_broker_state_invalidation.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_broker_submitter_quantity.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_broker_submitter_readiness.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_broker_submitter_signature.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_brokers_paths.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_builtins_registry.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_callbacks.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_cancel_failure.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_ctp_adapter.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_ctp_dual_stream.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_ctp_native.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_expired_order_status.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_factory.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_mapper.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_mixed_market_trader.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_optional_market.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_order_error_classification.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_order_submitter_extra.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_order_tick_reject_soft.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_order_tick_validation.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_place_order_failure.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_registry.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_sim_submit_guard.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_symbol_match.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_tif_mapping.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_gateway_trader_base.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_get_order_finalized.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_heikin_ashi.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_hooks_functional_wrapper.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_hooks_inherited_via_base.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_indicator_declaration.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_indicator_declaration_review.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_indicator_dual_stream.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_indicator_duplicate_name.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_indicator_intrabar.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_indicator_live_web_example.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_indicator_non_finite.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_indicator_owner_identity.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_indicator_script.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_inspector.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_instrument_default_tick.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_instrument_fee_override.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_instrument_slippage.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_instrument_symbol_suffix_normalization.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_instruments_config_symbol_mismatch.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_lifecycle_hooks.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_lifecycle_review_fixes.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_auto_preload.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_broker_slot_routing.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_duration_wallclock.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_freq_injection.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_market_config_by_asset_type.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_mixed_market_broker.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_multi_slot_windows.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_preload_normalize.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_preload_runner.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runner.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runner_bounded_session.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runner_broker_bridge.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runner_broker_readiness.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runner_broker_recovery.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runner_broker_submitter.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runner_client_order_id.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runner_instrument_snapshots.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runner_lifecycle.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runner_no_market_data_warning.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runner_order_request_cache.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runner_sigterm_stop.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runner_stop_remap.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_runtime_config_dispatch.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_subscribe_forwards_to_gateway.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_live_summary_stop_reason.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_local_stop_book.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_local_stop_book_threadsafe.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_local_stop_scenario.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_log_sensitive_filter.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_ml_rolling_training_threshold.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_multi_slot_ownership.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_multisymbol_cross_section_consistency.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_naive_timezone.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_normalize.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_oco_bracket_broker_live_scenario.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_on_execution_report_noop.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_on_timer_suspension_deadlock.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_optimize_functional_params.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_optimize_params.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_option_expiry_settlement.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_option_fees.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_option_market_side_effects.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_order_api_return_values.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_order_audit.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_order_callback_dedupe.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_order_receipt.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_order_receipt_backtest.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_order_target_lot_size_alignment.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_orders_df.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_params.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_params_adapter.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_parquet_stream.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_partial_filled_status.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_pickle_model_objects.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_plot_defaults.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_portfolio.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_position_effect_flip.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_pre_open_live_warns.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_product_presets.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_quickstart_stream_consistency.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_reduce_only_sell_affordability.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_removed_wrappers.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_replay_live_end_to_end.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_replay_market_gateway.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_report_helpers.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_report_plot_extensions.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_result_analysis_extensions.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_review_minors_cleanup.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_run_live_indicator_stream.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_session_config.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_session_matching.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_session_resolver.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_signal_module.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_signal_port_injection.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_signal_sources_p3.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_sizer_auto_resize.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_slippage_bare_number.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_sort_determinism.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_source_trading_day.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_stock_tick_validation.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_stop_id_remap_scenario.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_stop_orders.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_stop_retry_client_order_id.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_events_stop_hook.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_extras.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_freq_attribute.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_history_dual_stream.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_history_missing_symbol_warning.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_inspect.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_loader_exports.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_loader_pickle.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_loader_plugins.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_loader_reload.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_ml_dual_stream.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_order_group_lock.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_params.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_session_api.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_sizing_broker_live_guard.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_strategy_timers_indicators.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_stream_series_key.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_subscribe_live_warns.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_suspension_zero_volume_gtc_terminal.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_symbols_filtering.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_symbols_whitelist_rust.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_t_plus_one.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_talib_alignment.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_talib_backend.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_talib_compat.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_target_orders_core.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_tick_indicators.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_tick_input.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_trade_stream_bridge.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_trades_df.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_trading_day_lifecycle.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_utils_price.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_vectorized.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_version.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_viz_namespace.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_volume_limit.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_walk_forward_kwargs.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_warm_start_slippage_inherit.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_warmup_period_per_symbol.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_window_checkpoint.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_window_live_replay.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_window_sessions.py +0 -0
- {akquant-0.3.76 → akquant-0.3.77}/tests/test_window_subscriptions.py +0 -0
|
@@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.77] - 2026-11-05
|
|
11
|
+
|
|
12
|
+
> **规则版本 2.1.3**:显式 `strict_strategy_params=False` 且策略 `__init__` 不接收传入参数时,此前实例化失败后会静默回退成默认参数,现在传入的参数会生效,这类回测结果会变;`run_walk_forward` 遇到训练窗口内全部组合失败的窗口,此前拿 -999 的失败参数去跑样本外,现在跳过该窗口,涉及此类窗口的滚动优化结果会变;另外,部分组合失败时,失败行此前在按取不到的指标升序排序(如 `sort_by="max_drawdown_pct", ascending=True`)时会排到最前,`run_walk_forward` 因而可能拿失败参数跑样本外,现在失败行始终排在所有成功行之后,`run_walk_forward` 只取成功行。
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- **策略绘图对象 `self.draw` 与运行时统计 `self.stats`**:策略和 `aq.Indicator` 脚本可以往 K 线上画 6 种带 id 的对象——`line` / `box` / `label` / `polyline` / `fib`(斐波那契回撤,档位固定)/ `table`(固定在图表角落的表格,9 个位置,`symbol="*"` 为全局表),另有 `delete` / `clear`。同 id 再画整体覆盖,内容不变不发事件,不同 kind 不能共用 id;每个 `(owner, symbol, kind)` 最多 500 个存活对象(类属性 `Strategy.max_drawings_per_kind`),超出淘汰最早创建的;表格上限 50 行 × 10 列,polyline 1000 点,单段文字 500 字符。`self.stats` 返回冻结快照 `StrategyStats`(收益、回撤、胜率、盈亏比等,含 `current_drawdown_pct` 与 `equity`),`as_rows()` 可直接喂给 `draw.table`;数值与 `result.metrics` 同源同算法,`on_stop` 中同名字段完全相等,统计是账户级的。`result.drawings` / `result.drawings_df()` 取回测结束时存活的对象,`export_indicators()` 带 `drawings`(parquet 导出另写 `drawings.json`),`result.viz.review(include_drawings=True)`(默认开)在复盘页渲染线、框、标注、折线、斐波那契和表格浮层(只叠在主图 pane,工具栏有“隐藏绘图”按钮)。流协议升到 1.7:新增 `type="drawing"` 消息,经新增的 `akquant.is_drawing_stream_event` / `akquant.to_drawing_message` 转换,`is_indicator_stream_event` / `to_indicator_message` 保持不变、不会收到 drawing 消息。引用更早 bar 的时间戳的绘图点不做“映射到 bar 结束”处理;`merge_results` 按 `(owner_strategy_id, symbol, drawing_id)` 去重,同一对象保留最后一段的状态。新增示例 `examples/78_chart_drawings.py`,指南见“可视化与报告”的“策略绘图与统计表”一节。规则版本不变;`result.metrics` 的数值不变(只是计算回撤的代码改为与运行时统计共用)。
|
|
16
|
+
- **接真实柜台的实盘(`broker_live`)下 `self.stats` 由柜台成交驱动**:新增会话级统计器(`akquant.gateway.broker_stats.BrokerTradeStats`,Rust 侧 `LiveTradeStats`,与回测共用统计算法),柜台成交按 `trade_id` 去重后计入,只统计本会话策略下的单,会话启动时用柜台持仓(数量、方向、均价)初始化,平仓超出持仓的部分截掉不当反向开仓,每根 bar 在 `on_bar` 前用柜台权益记一个权益点。限制:手续费恒为 0,统计范围是本次会话,会话启动前的持仓会被计入,柜台持仓没有均价时这部分持仓无法初始化,平掉它们的成交不计入(akquant-middleware 需用映射了 `cost_price` 的版本,fe32c4d 起),按净持仓记账(锁仓记为平仓)。
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- **行情不带时区时,`result.viz.review()` 的交易标记和指标线比 K 线早 8 小时**:成交时间与指标点时间被换成 UTC 墙钟再去掉时区,而无时区的行情索引表示的是策略时区(`timezone=`,默认 Asia/Shanghai)的本地时间。15:00 打点的日线上买卖点落到前一根 K 线,日内分钟线的指标线整条偏到 K 线范围外;0 点日线恰好不受影响。现在三处(交易标记、指标线、绘图对象)统一先换到策略时区再去掉时区;行情带时区时行为不变。
|
|
20
|
+
- **网格搜索全部组合失败时返回一张全是 `-999` 的结果表,看起来像正常返回**:`run_grid_search` 在每个组合都失败时只打日志,照常返回每行带 `error`、`sharpe_ratio=-999` 的结果。现在新增关键字参数 `raise_on_all_failed`(默认 `True`),在所有组合跑完、`result_filter` 之前判断:合并后的结果(含 `db_path` 续跑读出的历史结果)一条成功的都没有时抛 `RuntimeError`,信息含总组数、出现次数最多的前 3 种错误(各截 200 字)和“这通常是策略或数据本身的问题”的提示;传 `raise_on_all_failed=False` 可恢复返回结果表。已写入 `db_path` 的结果保留;部分失败仍只打 warning;`run_walk_forward` 内部固定传 `False`(不让某个窗口的失败中断整个滚动优化),同时修了它的一处旧缺陷:窗口只有在结果表为空时才被跳过,训练窗口内全部组合失败时会取第一行 -999 的失败参数去跑样本外;现在这种窗口会打 warning(含窗口序号和最常见的错误)并跳过,该窗口不产生样本外曲线,涉及此类窗口的结果会变(并入规则版本 2.1.3)。同时 `run_grid_search` 现在无论 `sort_by`/`ascending` 如何,带 `error` 的结果始终排在所有成功结果之后(此前失败行取不到排序指标按 -inf 计,升序时会排到最前),`run_walk_forward` 取第一条成功行作为最佳参数。
|
|
21
|
+
- **策略自定义 `def __init__(self)` 时,`strategy_params` 与 `run_grid_search` 全部报 `unexpected keyword argument`**:参数在 `Strategy.__new__` 里校验并注入 `self.params`,但引擎用 `strategy(**params)` 实例化,按 Python 语义同一组 kwargs 还会再传给 `__init__`,于是官方示例里常见的 `def __init__(self)` 一传参就失败,网格搜索每一组都失败。现在引擎经新增的 `akquant.strategy.instantiate_strategy` 实例化:参数注入与校验不变,调用 `__init__` 时只传它能接收的参数(签名含 `**kwargs` 则全部传入,否则只传签名里显式出现的参数名,签名取不到时原样全传),仅当 `__new__` 返回本类实例时才调 `__init__`。`__init__(self, fast=3, **kwargs)` 之类迁移了一半的写法行为不变;用户直接 `MyStrategy(n=5)` 构造仍按 Python 语义报错;带必填的非参数位置参数的 `__init__` 仍然报 `missing`。MCP 同步:`check_strategy` 删除 `custom-init` 诊断,`run_backtest` 的实例化报错提示改为指向“`__init__` 有必填参数”,`strategy-skeleton` 指南改为允许重写 `__init__`。
|
|
22
|
+
- **策略跨文件继承时(`from base import MyBase` 加 `class S(MyBase)`),不传 `strategy_attr` 报 `multiple Strategy subclasses found`**:`python_plain` 加载器把模块命名空间里所有 `Strategy` 子类都当候选,导入进来的基类也算一个。现在候选分两层:先取本文件自己定义的类(`__module__` 等于加载器登记的模块名),正好一个就选它,多于一个仍报 multiple;本文件一个都没定义(只 re-export)时才退回原来的全量候选,因此“只 re-export 一个策略”的文件照常可用,“没有策略”与“导入了多个”的报错文字不变。传了 `strategy_attr` 的行为不变。MCP `check_strategy` 的 `unresolved-base` 提示与 `run_backtest` 报错的修复提示同步改了措辞。
|
|
23
|
+
- **MCP `check_strategy` 把 Enum、异常等辅助类当成“可能的策略”**:基类无法静态解析的类一律按候选处理,结果只有 `class Side(enum.Enum)` 的文件得到 `ok=True` 加一条 `unresolved-base`,而不是 `no-strategy`;函数式 `on_bar` 加一个 Enum 的文件丢掉“一期只支持类式策略”的提示;多策略(ambiguous)时诊断循环也会扫这些类。现在基类属于 `Enum`/`IntEnum`/`StrEnum`/`Flag`/`IntFlag`、`Exception`/`BaseException` 及名字以 `Error`/`Exception` 结尾的基类、`NamedTuple`/`TypedDict`/`Protocol`/`Generic`(含下标写法与 `typing.X`、`enum.X` 前缀写法)、`ABC`、`BaseModel` 的类既不算候选也不算“无法解析”,其余基类都可解析时直接忽略。另外,只有一个可解析的策略、同时存在跨文件候选类时,现在会给一条 `unresolved-base` 警告(`ok` 仍为 `True`),说明候选类若也是策略,运行期会与已确认的策略一起算作两个本文件定义的类而报 multiple,可传 `strategy_attr`。顺带:`run_backtest` 子进程崩溃时 `error.message` 里带的日志末行也按 500 字截断,与 `log_tail` 一致。
|
|
24
|
+
|
|
10
25
|
## [0.3.76] - 2026-10-30
|
|
11
26
|
|
|
12
27
|
> **规则版本 2.1.2**:热启动恢复时,`config` 里没设滑点的配置现在沿用快照里的滑点(此前被覆盖成无滑点),涉及热启动且第一阶段有滑点的回测结果会变;另外,裸数字滑点与 `self.I(...)` 重名声明从静默接受改为直接报错。
|
|
@@ -30,6 +30,8 @@ result = aq.run_backtest(
|
|
|
30
30
|
)
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
Without `strategy_attr`, `python_plain` picks the class in two tiers: first the `Strategy` subclasses defined in the file itself, and if there is exactly one it is used (so `from base import MyBase` plus `class S(MyBase)` selects `S`, not the imported base); more than one raises an error; if the file defines none (it only re-exports), it falls back to all `Strategy` subclasses in the module, again requiring exactly one.
|
|
34
|
+
|
|
33
35
|
## 3. Core API
|
|
34
36
|
|
|
35
37
|
Importable from the `akquant` top level:
|
|
@@ -65,10 +65,10 @@ class MaCross(Strategy):
|
|
|
65
65
|
|
|
66
66
|
### Where to declare
|
|
67
67
|
|
|
68
|
-
Both `__init__` and `on_start` work
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
Both `__init__` and `on_start` work (`self.params` is already injected in `__new__`, so
|
|
69
|
+
`__init__` can read parameters too and a parameterized indicator can be declared in either
|
|
70
|
+
place), but **`on_start` is recommended**: a warm-start restore re-runs `on_start` but not
|
|
71
|
+
`__init__`, and the engine context is only ready in `on_start`.
|
|
72
72
|
|
|
73
73
|
`subscribe_bars` is the exception — it **must** be called in `__init__`, because the
|
|
74
74
|
subscription table is frozen before the engine starts. `self.I(freq="5min")` then validates
|
|
@@ -86,24 +86,15 @@ import akshare as ak
|
|
|
86
86
|
import pandas as pd
|
|
87
87
|
|
|
88
88
|
# 1. Download Data (Example: Forward Adjusted)
|
|
89
|
-
#
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"日期": "date",
|
|
95
|
-
"开盘": "open",
|
|
96
|
-
"最高": "high",
|
|
97
|
-
"最低": "low",
|
|
98
|
-
"收盘": "close",
|
|
99
|
-
"成交量": "volume"
|
|
100
|
-
})
|
|
101
|
-
|
|
102
|
-
# 3. Type Conversion
|
|
89
|
+
# Sina source, symbol needs a market prefix (sh/sz/bj); adjust="qfq" (forward adjusted)
|
|
90
|
+
# Returns English columns date/open/high/low/close/volume/...; volume is in shares
|
|
91
|
+
df = ak.stock_zh_a_daily(symbol="sz000001", start_date="20200101", end_date="20231231", adjust="qfq")
|
|
92
|
+
|
|
93
|
+
# 2. Type Conversion
|
|
103
94
|
df['date'] = pd.to_datetime(df['date'])
|
|
104
95
|
df['symbol'] = "000001"
|
|
105
96
|
|
|
106
|
-
#
|
|
97
|
+
# 3. Filter Columns
|
|
107
98
|
df = df[["date", "open", "high", "low", "close", "volume", "symbol"]]
|
|
108
99
|
```
|
|
109
100
|
|
|
@@ -228,6 +228,20 @@ Notes:
|
|
|
228
228
|
* If you want file logs to be easier for external log pipelines to consume, enable `file_json=True`.
|
|
229
229
|
* Once aggregation is enabled, Rust execution-path warnings are also forwarded back to the main process. That includes insufficient-margin rejects, session-close expiry, unknown cancel requests, and `same-cycle` deferrals, all of which are easier to filter through structured fields such as `phase=execution`, `order_id`, and `strategy_id`.
|
|
230
230
|
|
|
231
|
+
### Raising When Every Combination Fails (`raise_on_all_failed`)
|
|
232
|
+
|
|
233
|
+
If not a single combination succeeded in this run (including historical results read back from `db_path` when resuming), `run_grid_search` raises `RuntimeError` by default instead of returning a table whose rows all carry an `error` and `sharpe_ratio=-999`. Total failure almost always points at the strategy or the data (e.g. the strategy code raises, a data column is missing) rather than at bad parameters. The message lists the total number of combinations, the 3 most frequent errors (each truncated to 200 characters, with occurrence counts) and a troubleshooting hint.
|
|
234
|
+
|
|
235
|
+
```python
|
|
236
|
+
# Opt out to get the old behaviour (return the table and inspect the error column yourself)
|
|
237
|
+
results = run_grid_search(..., raise_on_all_failed=False)
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
* Partial failures behave as before: only the summary info line is logged, and a warning appears once the failure ratio reaches the 50% threshold.
|
|
241
|
+
* The check runs before `result_filter`; a filter that empties the results does not count as total failure.
|
|
242
|
+
* Results already written to `db_path` are kept when the error is raised.
|
|
243
|
+
* `run_walk_forward` always passes `raise_on_all_failed=False` internally, so a window whose training run fails entirely does not abort the whole walk-forward: that window is skipped with a warning (no out-of-sample curve), and its failed -999 parameters are never used for out-of-sample testing.
|
|
244
|
+
|
|
231
245
|
### Persistence & Resume
|
|
232
246
|
|
|
233
247
|
For scenarios with extremely large parameter sets (e.g., > 10,000 combinations), running on a single machine might take days. AKQuant supports real-time result persistence to SQLite, enabling breakpoint resume.
|
|
@@ -21,7 +21,7 @@ For those new to quantitative trading, here are some basic terms:
|
|
|
21
21
|
|
|
22
22
|
A strategy goes through the following stages from start to finish:
|
|
23
23
|
|
|
24
|
-
* `__init__`: Python object initialization. **It is not a parameter entry point** — declare tunable parameters as inline class fields (see [Parameter Declaration](#param-declaration)), and put context-dependent setup in `on_start`.
|
|
24
|
+
* `__init__`: Python object initialization. **It is not a parameter entry point** — declare tunable parameters as inline class fields (see [Parameter Declaration](#param-declaration)), and put context-dependent setup in `on_start`. You may override `__init__` to set up your own state and it does not need to accept `**kwargs`: the engine only passes `__init__` the arguments its signature can accept, while strategy parameters are always declared in the class body and read through `self.params`.
|
|
25
25
|
* `on_start`: Called when the strategy starts. This is where you typically call `self.subscribe()` to subscribe to data, and you can also register indicators here. On a warm start, be careful not to overwrite already-restored state. In a backtest, when `symbols` is **not** passed, symbols subscribed via `subscribe()` are folded into the backtest's symbol set; when `symbols` **is** passed, you may only subscribe to symbols already inside it — subscribing to one outside that set raises `ValueError` (passing `symbols` means "run only these symbols"; see the [`symbols` parameter of `run_backtest`](../reference/api.md#akquantrun_backtest)). In live trading, subscriptions are forwarded to the market gateway (a warning is logged instead if the broker has no market gateway).
|
|
26
26
|
* `on_bar`: Triggered when each Bar closes (core trading logic).
|
|
27
27
|
* `on_tick`: Triggered when each Tick arrives (high-frequency/order book strategies).
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# Interactive Backtest Report Demo
|
|
2
|
+
|
|
3
|
+
Below is an interactive backtest report generated by AKQuant. You can interact directly with the charts on this page to view detailed backtest data.
|
|
4
|
+
|
|
5
|
+
<iframe src="../../assets/reports/akquant_report.html" width="100%" height="1000px" frameborder="0" style="border: 1px solid #eee; border-radius: 4px;"></iframe>
|
|
6
|
+
|
|
7
|
+
## Benchmark Comparison
|
|
8
|
+
|
|
9
|
+
`BacktestResult.viz.report` accepts a benchmark return series:
|
|
10
|
+
|
|
11
|
+
```python
|
|
12
|
+
benchmark_returns = (
|
|
13
|
+
benchmark_df.set_index("date")["close"].pct_change().fillna(0.0)
|
|
14
|
+
)
|
|
15
|
+
result.viz.report(
|
|
16
|
+
filename="akquant_report.html",
|
|
17
|
+
benchmark=benchmark_returns,
|
|
18
|
+
show=False,
|
|
19
|
+
)
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
When `benchmark` is provided, the HTML report adds a benchmark comparison section with strategy/benchmark/excess cumulative curves and relative metrics (total excess, annual excess, tracking error, information ratio, beta, alpha).
|
|
23
|
+
|
|
24
|
+
## Structured Benchmark Analysis
|
|
25
|
+
|
|
26
|
+
AKQuant now exposes the benchmark comparison logic as a structured analysis payload that can be reused by web frontends, APIs, and offline pipelines instead of relying on HTML parsing.
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
benchmark_returns = (
|
|
30
|
+
benchmark_df.set_index("date")["close"].pct_change().fillna(0.0)
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
payload = result.benchmark_analysis(
|
|
34
|
+
benchmark=benchmark_returns,
|
|
35
|
+
curve_freq="D",
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
print(payload["schema_version"])
|
|
39
|
+
print(payload["summary"]["annual_excess"])
|
|
40
|
+
print(payload["series"][0])
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The payload includes:
|
|
44
|
+
|
|
45
|
+
- `schema_version`: contract version for downstream consumers
|
|
46
|
+
- `available`: whether benchmark analysis is available
|
|
47
|
+
- `reason`: validation or alignment message when analysis is unavailable
|
|
48
|
+
- `benchmark.label`: display label of the selected benchmark
|
|
49
|
+
- `summary`: aggregate metrics such as `total_excess`, `annual_excess`, `tracking_error`, `information_ratio`, `beta`, and `alpha` (return/error fields are decimals and must be multiplied by 100 for percentage display; ratio fields are dimensionless and should not be scaled — see [Backtest Results & Metrics](./analysis.md#summary-field-units))
|
|
50
|
+
- `series`: aligned daily points with strategy, benchmark, excess, and cumulative series
|
|
51
|
+
- `meta`: sample count, start/end date, and annualization settings
|
|
52
|
+
|
|
53
|
+
Recommended practice:
|
|
54
|
+
|
|
55
|
+
- Prepare the benchmark return series on the backend
|
|
56
|
+
- Call `result.benchmark_analysis(...)` once after the backtest
|
|
57
|
+
- Let the frontend render `summary + series + meta`
|
|
58
|
+
- Reuse the same analysis payload for both `result.viz.report(..., benchmark=...)` and the frontend view
|
|
59
|
+
|
|
60
|
+
## Export for Frontend or Archival
|
|
61
|
+
|
|
62
|
+
You can persist the benchmark analysis as part of the backtest artifacts:
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
result.export_benchmark_analysis(
|
|
66
|
+
path="artifacts/benchmark_analysis.json",
|
|
67
|
+
benchmark=benchmark_returns,
|
|
68
|
+
format="json",
|
|
69
|
+
curve_freq="D",
|
|
70
|
+
)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
`format="parquet"` is also supported and writes:
|
|
74
|
+
|
|
75
|
+
- `series.parquet`: aligned benchmark time series
|
|
76
|
+
- `metadata.json`: summary metrics and metadata
|
|
77
|
+
|
|
78
|
+
## Interactive LWC Trade Review
|
|
79
|
+
|
|
80
|
+
`result.viz.review()` renders an **offline, self-contained** single-file HTML powered by [TradingView Lightweight Charts](https://github.com/tradingview/lightweight-charts), overlaying buy/sell markers on the K-line for large-volume or intraday trade review.
|
|
81
|
+
|
|
82
|
+
It **complements** `result.viz.report()` rather than replacing it: analytical charts (equity curve, drawdown, heatmaps, attribution) stay with `report()`'s plotly output; `review()` only fills the "interactive candlesticks + trade markers" gap for bar-by-bar timing review.
|
|
83
|
+
|
|
84
|
+
```python
|
|
85
|
+
# market_data is a single DataFrame or a {symbol: df} dict
|
|
86
|
+
path = result.viz.review(
|
|
87
|
+
market_data=df,
|
|
88
|
+
title="AKQuant Trade Review",
|
|
89
|
+
theme="dark", # initial theme "light" / "dark"; toggled in-page
|
|
90
|
+
filename="akquant_review.html",
|
|
91
|
+
show=False, # True opens the browser automatically
|
|
92
|
+
)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Notes:
|
|
96
|
+
|
|
97
|
+
- The HTML inlines lightweight-charts with **no CDN dependency**, so it opens and archives offline.
|
|
98
|
+
- A **light/dark toggle button** sits in the top bar; `theme` only sets the initial theme. Switching recolors instantly with no file regeneration.
|
|
99
|
+
- Multi-symbol input (`{symbol: df}`) adds a symbol selector at the top; `initial_symbol` sets which one is shown first.
|
|
100
|
+
- When the current symbol has a candle indicator (e.g. Heikin-Ashi), a "hide candles" button appears in the top bar; `hide_price=True` opens the page with the price candles already hidden. Trade markers stay visible.
|
|
101
|
+
- Column names are case-insensitive and Chinese names are supported (`开盘/最高/最低/收盘/成交量/日期`, etc.).
|
|
102
|
+
- Daily data uses a `YYYY-MM-DD` axis; intraday data automatically switches to a time-of-day axis.
|
|
103
|
+
- Optimized for **large / intraday** datasets: the payload is built with vectorized ops and timestamps are de-duplicated, so tens of thousands of candles stay smooth (the core advantage over the plotly analytical charts).
|
|
104
|
+
|
|
105
|
+
See `examples/67_lwc_trade_review.py` for a full example.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
## Strategy Drawings and Stats Tables
|
|
109
|
+
|
|
110
|
+
A `self.I()` indicator is a time series: one number per bar. `self.draw` creates **objects with an id that can be overwritten or deleted**: trend lines, range boxes, text labels, polylines, Fibonacci retracements, and stats tables pinned to a corner of the chart (counterparts of Pine's `line.new` / `box.new` / `label.new` / `polyline.new` / `table.new`). Only the currently alive objects are kept, so a finished backtest shows the final state, as in TradingView. Both strategies and `aq.Indicator` scripts can use it; identity is `(owner, symbol, id)`, so they never clash.
|
|
111
|
+
|
|
112
|
+
```python
|
|
113
|
+
class MyStrategy(aq.Strategy):
|
|
114
|
+
def on_bar(self, bar):
|
|
115
|
+
self.draw.label(f"sig-{bar.timestamp}", (bar.timestamp, bar.high), "breakout", style="down", color="#e03131")
|
|
116
|
+
self.draw.box("zone", (t0, 3820.0), (bar.timestamp, 3780.0), border_color="#1971c2", fill_color="#1971c233")
|
|
117
|
+
self.draw.table("perf", self.stats.as_rows(), header=["Metric", "Value"], symbol="*")
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
See `examples/78_chart_drawings.py` for a full example.
|
|
121
|
+
|
|
122
|
+
### Objects and parameters
|
|
123
|
+
|
|
124
|
+
The first argument of every method is a non-empty `id`; the normalized `id` is returned. The common optional argument `symbol` defaults to the symbol of the current callback.
|
|
125
|
+
|
|
126
|
+
| Method | Parameters | Notes |
|
|
127
|
+
|---|---|---|
|
|
128
|
+
| `line(id, p1, p2, *, extend="none"\|"right"\|"both", color, width=1, style="solid"\|"dashed"\|"dotted")` | Two-point segment | `extend` extends it to the right or both ways |
|
|
129
|
+
| `box(id, top_left, bottom_right, *, border_color, fill_color, width=1, text="")` | Rectangle | Optional centered text |
|
|
130
|
+
| `label(id, point, text, *, style="down"\|"up"\|"left"\|"right"\|"none", color, text_color, size="normal"\|"small"\|"large")` | Anchored text label | `style` is the direction the bubble points; default `"down"` |
|
|
131
|
+
| `polyline(id, points, *, closed=False, color, width=1, fill_color=None)` | Polyline / closed polygon | 2 to 1000 points |
|
|
132
|
+
| `fib(id, p1, p2, *, color)` | Fibonacci retracement | Levels fixed at 0 / 0.236 / 0.382 / 0.5 / 0.618 / 0.786 / 1 |
|
|
133
|
+
| `table(id, rows, *, header=None, position="top_right", precision=2, bg_color, border_color)` | Table at a fixed screen position | See below |
|
|
134
|
+
| `delete(id, *, symbol=None)` | Delete one object | Silently ignored if missing |
|
|
135
|
+
| `clear(kind=None, *, symbol=None)` | Clear this owner's objects | Filter by kind / symbol; one delete event per removed object |
|
|
136
|
+
|
|
137
|
+
A point is `(time, price)`. `time` may be an `int` (UTC nanoseconds, i.e. `bar.timestamp`), a `pd.Timestamp`, or a `datetime` (naive values are localized to the strategy timezone); NumPy scalars work too. Time is normalized to milliseconds with the same function indicator points use, so annotations line up with the candles. Colors accept only `#RRGGBB` or `#RRGGBBAA`; the default (empty string) leaves the choice to the renderer.
|
|
138
|
+
|
|
139
|
+
`table` details:
|
|
140
|
+
|
|
141
|
+
- `precision`: decimal places for displayed numbers, an integer from 0 to 10, default 2; other values raise `ValueError`.
|
|
142
|
+
- Nine `position` values: `top_left` / `top_center` / `top_right` / `middle_left` / `middle_center` / `middle_right` / `bottom_left` / `bottom_center` / `bottom_right`.
|
|
143
|
+
- `rows` is a 2-D sequence. A cell is a `str` / `int` / `float` / `bool` / `None`, or `{"value": ..., "text": ..., "bg_color": ..., "text_color": ...}`.
|
|
144
|
+
- After normalization every cell is `{value, text, bg_color, text_color}`: `value` keeps the original value, `text` is the display text (numbers are formatted with `precision`, `None` and `NaN` show as "—", an explicit `text` wins).
|
|
145
|
+
- Short rows are padded with empty cells on the right; `header` is treated as row 0, recorded in `table.header_rows` (the number of leading header rows: 1 with a `header`, otherwise 0).
|
|
146
|
+
- `symbol="*"` makes a global table that appears on every symbol's chart; only `table` accepts it.
|
|
147
|
+
|
|
148
|
+
### Overwrite, delete and limits
|
|
149
|
+
|
|
150
|
+
- **Same id overwrites**: calling again with the same `(owner, symbol, id)` replaces the whole object (fields are not patched). If the content is identical nothing is emitted, so calling on every bar costs something only when the content changes.
|
|
151
|
+
- **A kind cannot reuse another kind's id**: drawing a `box` with an id already used by a `line` raises `ValueError`; call `draw.delete(id)` first. Under one symbol a `table` also occupies its id, so do not reuse ids of lines or boxes.
|
|
152
|
+
- **Delete / clear**: `delete` removes one object, `clear(kind=..., symbol=...)` removes in bulk, always within the owner.
|
|
153
|
+
|
|
154
|
+
| Item | Limit | When exceeded |
|
|
155
|
+
|---|---|---|
|
|
156
|
+
| Alive objects per `(owner, symbol, kind)` | 500 (class attribute `Strategy.max_drawings_per_kind`; override it in the strategy class) | The earliest created object is evicted; one `warning` per owner + kind |
|
|
157
|
+
| Table | 50 rows x 10 columns | `ValueError` |
|
|
158
|
+
| Polyline points | 1000 | `ValueError` |
|
|
159
|
+
| One piece of text | 500 characters | Truncated with a `warning` |
|
|
160
|
+
|
|
161
|
+
Eviction instead of an error: Pine users habitually put one label per signal, and dropping the oldest ones, like `max_labels_count`, is what they expect.
|
|
162
|
+
|
|
163
|
+
!!! note "Time alignment"
|
|
164
|
+
A point whose time equals the current bar's `bar.timestamp` is mapped to the bar end, like indicator points, so it aligns automatically. A timestamp that refers to an **earlier bar** is not mapped; on tick-aggregated bars such a point can sit one bar to the left of the matching indicator point. To mark a particular bar, use that bar's own `bar.timestamp`.
|
|
165
|
+
|
|
166
|
+
### Runtime stats `self.stats`
|
|
167
|
+
|
|
168
|
+
Each access to `self.stats` returns a frozen `StrategyStats` snapshot, computed on access. The numbers come from the same state and algorithms as the final `result.metrics`:
|
|
169
|
+
|
|
170
|
+
- One equity point per bar (same timestamp overwrites); the peak behind `max_drawdown*` starts from the initial cash.
|
|
171
|
+
- `win_rate` is a percentage (0 to 100) judged on **gross** `pnl > 0`, not on net pnl after commission.
|
|
172
|
+
- `total_pnl` is current equity minus initial cash, so it **includes unrealized pnl**; it is not the sum of per-trade gross pnl.
|
|
173
|
+
- Inside callbacks you read the **current state**; in `on_stop` the fields equal the same-named fields of `result.metrics` exactly.
|
|
174
|
+
- Stats are **account level**: in a multi-slot backtest every slot reads the same figures. Per-strategy breakdowns are out of scope.
|
|
175
|
+
- During the run `unrealized_pnl` is the account's floating pnl; in `on_stop` it is the value the trade tracker computes from inventory (as in metrics). They agree for stocks and futures; for instruments priced with margin, such as options, they may differ mid-run.
|
|
176
|
+
- Reading it outside callbacks and `on_stop` raises `RuntimeError`.
|
|
177
|
+
|
|
178
|
+
| Field | Meaning |
|
|
179
|
+
|---|---|
|
|
180
|
+
| `total_return_pct` / `total_pnl` / `unrealized_pnl` / `total_commission` | Return, total pnl, unrealized pnl, commission |
|
|
181
|
+
| `max_drawdown` / `max_drawdown_pct` / `max_drawdown_value` | Max drawdown (ratio / percent / amount) |
|
|
182
|
+
| `win_rate` / `loss_rate` / `winning_trades` / `losing_trades` | Win / loss rate and counts |
|
|
183
|
+
| `profit_factor` / `avg_pnl` / `avg_profit` / `avg_loss` | Profit factor and averages |
|
|
184
|
+
| `largest_win` / `largest_loss` / `max_wins` / `max_losses` | Largest single win / loss, longest win / loss streak |
|
|
185
|
+
| `trade_count` | Number of trades, `winning_trades + losing_trades` |
|
|
186
|
+
| `current_drawdown_pct` | Current drawdown from the peak in percent (not in `result.metrics`) |
|
|
187
|
+
| `equity` | Current equity |
|
|
188
|
+
|
|
189
|
+
Sharpe, Sortino, Calmar and annualized return are not provided: they need the full return series and annualization assumptions, so their intraday values would be ambiguous.
|
|
190
|
+
|
|
191
|
+
`self.stats.as_rows(fields=None, labels=None)` returns a 2-D list that can go straight into `draw.table(rows=...)` (name and value columns). The default fields are `total_return_pct` / `max_drawdown_pct` / `win_rate` / `profit_factor` / `trade_count` / `total_pnl`, with Chinese labels by default (pass `labels=` to change them). `*_pct` and `win_rate` display with `%`, and an infinite `profit_factor` shows `∞`.
|
|
192
|
+
|
|
193
|
+
!!! warning "Definitions and limitations with a real broker in live trading"
|
|
194
|
+
When `run_live` has no trading broker (for example paper matching with only klinedata market data), every `self.stats` field is available and follows the backtest definitions.
|
|
195
|
+
|
|
196
|
+
With a real broker (`broker_live`, e.g. `trader_broker="middleware"`) the engine does not receive the broker's fills, so `self.stats` comes from a per-session statistics tracker instead: broker fills are deduplicated by `trade_id` and fed one by one into the same statistics algorithm the backtest uses; on every bar, before `on_bar`, the most recently queried broker account equity is recorded as one equity point (used for drawdown; the broker is not queried for this), and `total_return_pct` is the return of this session; unrealized PnL uses the latest close the strategy has received; contract multipliers come from `run_live(instruments=...)`, and a symbol without one is computed with 1 and warned about once. With several slots every slot reads the same account-level statistics. The broker equity is only re-queried when the strategy reads the account (including reading `self.stats`) after a fill or order update, so price moves in between are not reflected in the drawdown. If querying the broker's equity or positions fails at session start, the tracker is unavailable and every field except `equity` is `None`. Further limitations:
|
|
197
|
+
|
|
198
|
+
- **Commission is 0**: broker fills carry no commission, so `total_commission` is always 0. Win rate and profit factor use gross PnL and are not affected.
|
|
199
|
+
- **Only this session is counted**: only orders placed by this session's strategies count; orders entered by hand in the front end or by other sessions do not. After a restart the tracker is re-initialized from the broker's positions, and trades closed before the restart are lost.
|
|
200
|
+
- **Positions held before the session starts are included**: at start-up the tracker is seeded from the broker's positions (quantity, direction, average price), even if a position was originally opened by hand; closing that position later counts toward this session's statistics. A position without an average price cannot be seeded, and fills that close it are not counted (a warning is logged). **With middleware (`trader_broker="middleware"`), seeding requires an akquant-middleware version that maps the counter's `cost_price` to the position's average price (and derives the direction from `position_side`)**; older versions carry neither, so positions held before the session starts are not seeded, and later sells of them are truncated to 0 as excess closes and not counted.
|
|
201
|
+
- **Excess closes are truncated**: the part of a close that exceeds the tracker's position is dropped rather than treated as opening the opposite side. Open/close is decided as follows: symbols configured in `run_live(instruments=...)` as futures or options use the fill's `position_effect` (with `auto`, inferred from the current position); symbols configured as stocks, funds or other types treat every sell as a close; for symbols that are not configured, an explicit open or close `position_effect` is honoured, and with `auto` a sell is a close.
|
|
202
|
+
- **Net-position bookkeeping**: the tracker keeps one net position per symbol. A locked/hedged position (for example buying to open while holding a short) is recorded as closing the short rather than holding both sides; long and short broker positions in the same symbol are also netted before seeding at session start.
|
|
203
|
+
|
|
204
|
+
### Viewing in backtests
|
|
205
|
+
|
|
206
|
+
```python
|
|
207
|
+
result.drawings # list[dict]: objects still alive at the end
|
|
208
|
+
result.drawings_df() # DataFrame; points / style / table stay nested
|
|
209
|
+
result.export_indicators("out.json") # the export carries a "drawings" key (format="parquet" writes drawings.json)
|
|
210
|
+
result.viz.review(df, include_drawings=True) # on by default
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
- `viz.review` draws lines, boxes, polylines, Fibonacci levels and labels on the main candlestick pane. Tables are HTML overlays on the main pane only, placed at the nine positions; switching symbol shows that symbol's tables plus the global ones. The top bar has a "hide drawings" button.
|
|
214
|
+
- Points whose time falls outside the data range are handled by the renderer as follows: a point later than the last bar snaps to the last bar (so the slope of a trend line projected into the future changes); a point earlier than the first bar is dropped, and an object left with fewer points than its kind needs is dropped entirely.
|
|
215
|
+
- `merge_results` de-duplicates the `drawings` of all segments by `(owner_strategy_id, symbol, drawing_id)`, keeping the object from the last segment (latest state); the result is ordered by `(owner_strategy_id, symbol, created_seq)`, with ties broken by segment order.
|
|
216
|
+
|
|
217
|
+
### Live stream messages (schema 1.7)
|
|
218
|
+
|
|
219
|
+
In live trading, drawing calls reach the sink as `indicator_drawing` events, converted by two new functions:
|
|
220
|
+
|
|
221
|
+
```python
|
|
222
|
+
if aq.is_drawing_stream_event(event):
|
|
223
|
+
message = aq.to_drawing_message(event)
|
|
224
|
+
# {"channel": "indicator", "type": "drawing", "schema_version": "1.7",
|
|
225
|
+
# "op": "upsert" | "delete", "drawing": {...}, "symbol": ..., ...}
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
- With `op="delete"`, `drawing` carries only the identity fields `owner_strategy_id` / `drawing_id` / `symbol` / `kind`. Identity is `(owner_strategy_id, symbol, drawing_id)`; a later upsert replaces an earlier one entirely. A global table has `drawing.symbol == "*"`.
|
|
229
|
+
- **The old entry points never receive drawing messages**: `is_indicator_stream_event` and `to_indicator_message` are unchanged and only know point and snapshot, so downstream code that understands only those two will not forward drawing messages to the frontend as they are.
|
|
230
|
+
- Peers below schema 1.7 produce no drawing messages; consumers should ignore unknown `type` values.
|
|
231
|
+
- If the sink has no `record_drawing` method, drawing calls are silently dropped and one `info` log is written the first time.
|
|
232
|
+
- Drawing calls during `run_live(preload_history=)` replay take effect normally (`phase="preload"`); an object created during preload that is still alive at run time is the same object.
|
|
@@ -129,7 +129,7 @@ def run_backtest(
|
|
|
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
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
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
|
-
* `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.
|
|
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 Eastmoney `stock_zh_a_hist` reports volume in lots (100 shares), multiply by 100 before enabling the limit; the Sina `stock_zh_a_daily` already reports shares. The limit applies to bar matching only; tick-driven matching is not subject to it. For instruments with fractional quantities (crypto, forex), set `lot_size` (default 1), otherwise the capped quantity is floored to whole units.
|
|
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.
|
|
135
135
|
* `catalog_path`: When `data` is omitted, load data from this directory using `ParquetDataCatalog` rules.
|
|
@@ -1023,6 +1023,12 @@ Notes:
|
|
|
1023
1023
|
* These APIs are available in `on_start` (snapshots are injected before start callbacks).
|
|
1024
1024
|
* Prefer these APIs for static metadata access instead of relying on `bar.extra`.
|
|
1025
1025
|
|
|
1026
|
+
**Strategy Drawings and Runtime Stats:**
|
|
1027
|
+
|
|
1028
|
+
* `draw`: The drawing entry bound to the strategy (`DrawingApi`), with `line` / `box` / `label` / `polyline` / `fib` / `table` / `delete` / `clear`. The first argument is a non-empty `id`; calling again with the same `(owner, symbol, id)` overwrites the whole object and emits nothing if the content is unchanged; a kind cannot reuse another kind's id (`ValueError`); colors accept only `#RRGGBB` / `#RRGGBBAA`. `aq.Indicator` inherits the same entry. See the [visualization guide](../guide/visualization.md#strategy-drawings-and-stats-tables) for parameters and limits.
|
|
1029
|
+
* `max_drawings_per_kind`: Class attribute, default `500`; maximum alive objects per `(owner, symbol, kind)`. When exceeded, the earliest created object is evicted and one `warning` is logged.
|
|
1030
|
+
* `stats -> StrategyStats`: Runtime performance snapshot, recomputed on each access; same definitions as `result.metrics` (fields in `on_stop` are exactly equal), account level. Reading it outside callbacks and `on_stop` raises `RuntimeError`; with a real broker in live trading (`broker_live`) it is driven by the broker's fills; see the [visualization guide](../guide/visualization.md#runtime-stats-selfstats) for definitions and limitations.
|
|
1031
|
+
|
|
1026
1032
|
**Machine Learning Support:**
|
|
1027
1033
|
|
|
1028
1034
|
* `set_rolling_window(train_window, step)`: Set rolling training window.
|
|
@@ -1068,6 +1074,21 @@ ha.update(open, high, low, close) # -> (ha_open, ha_high, ha_low, ha_close), re
|
|
|
1068
1074
|
* Also provides a `value` property and the batch method `update_many_ohlc`; works with `clone_indicator` and `intrabar=True`. There is no `akquant.talib` batch function.
|
|
1069
1075
|
* Draw it as candles: `self.I(aq.HeikinAshi(), name="ha", input_mode="ohlc", outputs=("open", "high", "low", "close"), render_type="candle")`. The four components (`ha.open`, ...) carry `group="ha"` and a `role`; LWC and plotly draw one candle series, d3Kline degrades to the close line. See the [custom indicator guide](../guide/custom_indicator.md).
|
|
1070
1076
|
|
|
1077
|
+
### `akquant.StrategyStats`
|
|
1078
|
+
|
|
1079
|
+
The frozen dataclass snapshot returned by `Strategy.stats`. Fields (all `Optional`): `total_return_pct`, `total_pnl`, `unrealized_pnl`, `total_commission`, `max_drawdown`, `max_drawdown_pct`, `max_drawdown_value`, `win_rate`, `loss_rate`, `winning_trades`, `losing_trades`, `profit_factor`, `avg_pnl`, `avg_profit`, `avg_loss`, `largest_win`, `largest_loss`, `max_wins`, `max_losses`, plus `trade_count`, `current_drawdown_pct` and `equity`.
|
|
1080
|
+
|
|
1081
|
+
* `as_rows(fields=None, labels=None) -> list[list[dict]]`: Converts to a 2-D cell list that goes straight into `self.draw.table(rows=...)` (name and value columns). Default fields are `total_return_pct` / `max_drawdown_pct` / `win_rate` / `profit_factor` / `trade_count` / `total_pnl` with Chinese labels; `labels` overrides labels, an unknown field name raises `ValueError`.
|
|
1082
|
+
|
|
1083
|
+
### `akquant.is_drawing_stream_event` / `akquant.to_drawing_message`
|
|
1084
|
+
|
|
1085
|
+
```python
|
|
1086
|
+
def is_drawing_stream_event(event) -> bool
|
|
1087
|
+
def to_drawing_message(event) -> Optional[dict]
|
|
1088
|
+
```
|
|
1089
|
+
|
|
1090
|
+
Entry points for the drawing message added in stream schema 1.7. `is_drawing_stream_event` tells whether an event is `indicator_drawing`; `to_drawing_message` converts it to the frontend message `{"channel": "indicator", "type": "drawing", "schema_version": "1.7", "op": "upsert" | "delete", "drawing": {...}, "run_id", "seq", "ts", "symbol", "level"}`. With `op="delete"` `drawing` carries only the identity fields. It returns `None` for non-drawing events or an invalid `op`. `is_indicator_stream_event` / `to_indicator_message` are unchanged and never receive drawing messages.
|
|
1091
|
+
|
|
1071
1092
|
### `akquant.inspect_strategy`
|
|
1072
1093
|
|
|
1073
1094
|
```python
|
|
@@ -1411,6 +1432,9 @@ Backtest result object.
|
|
|
1411
1432
|
* `cash_curve_daily`: Daily end-of-day cash curve.
|
|
1412
1433
|
* `margin_curve_daily`: Daily end-of-day margin curve.
|
|
1413
1434
|
|
|
1435
|
+
* `drawings`: List of strategy drawing objects still alive when the backtest ends (`list[dict]`; structure in the [visualization guide](../guide/visualization.md#strategy-drawings-and-stats-tables)).
|
|
1436
|
+
* `drawings_df()`: Drawing objects as a table; `points` / `style` / `table` stay nested. `export_indicators()` output carries `drawings`, and `viz.review(include_drawings=True)` (default) renders them on the review page.
|
|
1437
|
+
|
|
1414
1438
|
**Analysis Methods:**
|
|
1415
1439
|
|
|
1416
1440
|
* `exposure_df(freq="D")`: Portfolio exposure decomposition (net/gross/leverage).
|
|
@@ -30,6 +30,8 @@ result = aq.run_backtest(
|
|
|
30
30
|
)
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
不传 `strategy_attr` 时,`python_plain` 按两层规则选类:先取本文件自己定义的 `Strategy` 子类,正好一个就用它(所以 `from base import MyBase` 加 `class S(MyBase)` 会选中 `S`,不会把导入的基类也算进来);多于一个报错;本文件一个都没定义(只 re-export)时,退回模块里全部 `Strategy` 子类,同样要求恰好一个。
|
|
34
|
+
|
|
33
35
|
## 3. 核心 API
|
|
34
36
|
|
|
35
37
|
从 `akquant` 顶层可导入:
|
|
@@ -63,9 +63,9 @@ class MaCross(Strategy):
|
|
|
63
63
|
|
|
64
64
|
### 在哪里声明
|
|
65
65
|
|
|
66
|
-
`__init__` 与 `on_start`
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
`__init__` 与 `on_start` 都可以(`self.params` 在 `__new__` 里就已注入,`__init__`
|
|
67
|
+
里也能读到参数,参数化指标两处都能声明),但**推荐 `on_start`**:热启动恢复会重跑
|
|
68
|
+
`on_start` 而不重跑 `__init__`,并且引擎上下文在 `on_start` 里才就绪。
|
|
69
69
|
|
|
70
70
|
`subscribe_bars` 是例外,它**只能**在 `__init__` 调用(引擎启动前要冻结订阅表);
|
|
71
71
|
`self.I(freq="5min")` 会校验该周期已被订阅。
|
|
@@ -92,24 +92,15 @@ import akshare as ak
|
|
|
92
92
|
import pandas as pd
|
|
93
93
|
|
|
94
94
|
# 1. 下载数据 (以前复权为例)
|
|
95
|
-
#
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"日期": "date",
|
|
101
|
-
"开盘": "open",
|
|
102
|
-
"最高": "high",
|
|
103
|
-
"最低": "low",
|
|
104
|
-
"收盘": "close",
|
|
105
|
-
"成交量": "volume"
|
|
106
|
-
})
|
|
107
|
-
|
|
108
|
-
# 3. 类型转换
|
|
95
|
+
# 新浪数据源,代码需带市场前缀 (sh/sz/bj); adjust="qfq" 前复权
|
|
96
|
+
# 返回英文列名 date/open/high/low/close/volume/...,成交量单位是“股”
|
|
97
|
+
df = ak.stock_zh_a_daily(symbol="sz000001", start_date="20200101", end_date="20231231", adjust="qfq")
|
|
98
|
+
|
|
99
|
+
# 2. 类型转换
|
|
109
100
|
df['date'] = pd.to_datetime(df['date'])
|
|
110
101
|
df['symbol'] = "000001"
|
|
111
102
|
|
|
112
|
-
#
|
|
103
|
+
# 3. 筛选列
|
|
113
104
|
df = df[["date", "open", "high", "low", "close", "volume", "symbol"]]
|
|
114
105
|
```
|
|
115
106
|
|
|
@@ -226,6 +226,20 @@ akquant.configure_logging(
|
|
|
226
226
|
* 如果你希望文件日志更方便被日志平台消费,可额外打开 `file_json=True`。
|
|
227
227
|
* 开启日志聚合后,来自 Rust 执行链路的 warning 也会回传到主进程。例如保证金不足拒单、收盘过期、未知取消订单、`same-cycle` 延后等执行 warning,会按统一结构化字段输出,便于批量筛查 `phase=execution`、`order_id`、`strategy_id` 等信息。
|
|
228
228
|
|
|
229
|
+
### 全部组合失败时直接报错 (`raise_on_all_failed`)
|
|
230
|
+
|
|
231
|
+
如果本次所有组合(含 `db_path` 续跑时从库里读出的历史结果)一个成功的都没有,`run_grid_search` 默认抛 `RuntimeError`,而不是返回一张每行都带 `error`、`sharpe_ratio=-999` 的结果表。全部失败几乎总是策略或数据本身的问题(例如策略代码抛异常、数据列缺失),而不是参数不好。报错信息包含总组数、出现次数最多的前 3 种错误(每种最多 200 字)和排查提示。
|
|
232
|
+
|
|
233
|
+
```python
|
|
234
|
+
# 想保留旧行为(返回结果表,自行检查 error 列)时显式关闭
|
|
235
|
+
results = run_grid_search(..., raise_on_all_failed=False)
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
* 部分组合失败时行为不变,失败占比低于阈值(50%)时只在汇总里打一行 info,达到或超过阈值才打 warning。
|
|
239
|
+
* 判断发生在 `result_filter` 之前,筛选把结果清空不算“全部失败”。
|
|
240
|
+
* 已写入 `db_path` 的结果在抛错时保留,不回滚。
|
|
241
|
+
* `run_walk_forward` 内部调用时固定传 `raise_on_all_failed=False`,某个训练窗口全部失败不会中断整个滚动优化,该窗口会被跳过(打 warning,不产生样本外曲线),不会拿失败的 -999 参数去跑样本外。
|
|
242
|
+
|
|
229
243
|
### 持久化与断点续传 (Persistence & Resume)
|
|
230
244
|
|
|
231
245
|
对于参数组合极多(如 > 10,000 组)的场景,单机运行可能需要数小时甚至数天。如果中途断电或程序崩溃,重新运行将非常耗时。AKQuant 支持将优化结果实时写入 SQLite 数据库,并支持断点续传。
|
|
@@ -377,20 +377,10 @@ pip install akshare
|
|
|
377
377
|
import akshare as ak
|
|
378
378
|
import pandas as pd
|
|
379
379
|
|
|
380
|
-
# 下载 A
|
|
380
|
+
# 下载 A 股历史日线数据 (平安银行),使用新浪数据源,代码需带市场前缀 sz/sh/bj
|
|
381
381
|
# adjust="qfq" 表示使用前复权数据,这在回测中非常重要
|
|
382
|
-
#
|
|
383
|
-
df = ak.
|
|
384
|
-
|
|
385
|
-
# 数据清洗:将 AKShare 的中文列名转换为 AKQuant 需要的英文标准格式
|
|
386
|
-
df = df.rename(columns={
|
|
387
|
-
"日期": "date",
|
|
388
|
-
"开盘": "open",
|
|
389
|
-
"最高": "high",
|
|
390
|
-
"最低": "low",
|
|
391
|
-
"收盘": "close",
|
|
392
|
-
"成交量": "volume"
|
|
393
|
-
})
|
|
382
|
+
# 新浪接口已返回 AKQuant 需要的英文列名 (date/open/high/low/close/volume)
|
|
383
|
+
df = ak.stock_zh_a_daily(symbol="sz000001", start_date="20230101", end_date="20231231", adjust="qfq")
|
|
394
384
|
|
|
395
385
|
# 格式转换:确保 date 列是 datetime 类型
|
|
396
386
|
df['date'] = pd.to_datetime(df['date'])
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
一个策略从开始到结束,会经历以下几个阶段:
|
|
23
23
|
|
|
24
|
-
* `__init__`: Python 对象初始化。**注意它不是参数入口**——可外部调整的参数请用类体内联字段声明(见[参数声明](#param-declaration)),依赖引擎上下文或需要在热启动时重建的初始化放 `on_start
|
|
24
|
+
* `__init__`: Python 对象初始化。**注意它不是参数入口**——可外部调整的参数请用类体内联字段声明(见[参数声明](#param-declaration)),依赖引擎上下文或需要在热启动时重建的初始化放 `on_start`。可以重写 `__init__` 来初始化自己的状态,不必接收 `**kwargs`——引擎只会把 `__init__` 签名里能接收的参数传给它,策略参数始终经类体声明、由 `self.params` 读取。
|
|
25
25
|
* `on_start`: 策略启动时调用,适合在此使用 `self.subscribe()` 订阅数据,也可在此注册指标。如果是热启动,需注意不要覆盖已恢复的状态。回测下**未传 `symbols`** 时,`subscribe()` 的标的会并入回测标的集合;**传了 `symbols`** 时只能订阅 `symbols` 之内的标的,订阅集外的标的会抛 `ValueError`(传了 `symbols` 即表示「只跑这些标的」,参见 [`run_backtest` 的 `symbols` 参数](../reference/api.md#akquantrun_backtest))。实盘下会下发到行情网关(若该 broker 没有行情网关则记录一条 warning,见[行情源与交易源分开指定](../reference/api.md#mixed-market-trader-broker))。
|
|
26
26
|
* `on_resume`: **仅在热启动时调用**(在 `on_start` 之前)。用于处理从快照恢复后的特殊逻辑。
|
|
27
27
|
* `on_bar`: 每一根 K 线闭合时触发 (核心交易逻辑)。
|
|
@@ -890,8 +890,10 @@ class SMACrossStrategy(Strategy):
|
|
|
890
890
|
`self.params.<name>` 访问(例如 `self.params.fast_period`);`self.params`
|
|
891
891
|
是 frozen 对象,不支持在运行期赋值修改。
|
|
892
892
|
* **派生初始化放 `on_start`**:需要基于参数派生的对象(指标、缓存结构等),
|
|
893
|
-
应在 `on_start` 中读取 `self.params.<name>`
|
|
894
|
-
|
|
893
|
+
应在 `on_start` 中读取 `self.params.<name>` 后再构造,而不是在类体里
|
|
894
|
+
(类体执行时还没有实例)。`__init__` 里其实已经能读到 `self.params`(它在
|
|
895
|
+
`__new__` 里注入),推荐 `on_start` 的原因是引擎上下文在 `on_start` 才就绪,
|
|
896
|
+
且热启动恢复会重跑 `on_start` 而不重跑 `__init__`。
|
|
895
897
|
**注意 resume 语义**:`on_start` 在热启动(从快照恢复)时也会被调用,而
|
|
896
898
|
`__init__` 不会——这意味着原本「每个对象只跑一次」的初始化搬进 `on_start`
|
|
897
899
|
后变成「每次运行都跑一次,含 resume」。计数器、缓存、已建仓记录等
|