akquant 0.3.75__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.75 → akquant-0.3.77}/.pre-commit-config.yaml +1 -0
- {akquant-0.3.75 → akquant-0.3.77}/CHANGELOG.md +31 -0
- {akquant-0.3.75 → akquant-0.3.77}/Cargo.lock +1 -1
- {akquant-0.3.75 → akquant-0.3.77}/Cargo.toml +1 -1
- {akquant-0.3.75 → akquant-0.3.77}/PKG-INFO +5 -1
- {akquant-0.3.75 → akquant-0.3.77}/README.md +1 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/custom_strategy_loader.md +3 -1
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/guide/custom_indicator.md +6 -4
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/guide/data.md +6 -15
- akquant-0.3.77/docs/en/guide/mcp.md +66 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/guide/optimization.md +14 -0
- {akquant-0.3.75 → 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.75 → akquant-0.3.77}/docs/en/reference/api.md +29 -5
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/custom_strategy_loader.md +3 -1
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/llm.md +1 -1
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/guide/custom_indicator.md +5 -3
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/guide/data.md +6 -15
- akquant-0.3.77/docs/zh/guide/mcp.md +66 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/guide/optimization.md +14 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/guide/quant_basics.md +3 -13
- {akquant-0.3.75 → 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.75 → akquant-0.3.77}/docs/zh/meta/indicator-tradingview-rfc.md +2 -3
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/reference/api.md +29 -5
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/03_data.md +5 -3
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/04_backtest_engine.md +1 -1
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/05_strategy.md +1 -1
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/07_futures.md +1 -1
- {akquant-0.3.75 → akquant-0.3.77}/examples/59_akshare_etf_rotation.py +18 -18
- {akquant-0.3.75 → 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.75 → akquant-0.3.77}/examples/README.md +1 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch03_data.py +35 -25
- {akquant-0.3.75 → akquant-0.3.77}/mkdocs.yml +3 -0
- {akquant-0.3.75 → akquant-0.3.77}/pyproject.toml +8 -1
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/__init__.py +10 -1
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/akquant.pyi +46 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/backtest/_viz.py +3 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/backtest/engine.py +10 -57
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/backtest/merge.py +24 -1
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/backtest/result.py +28 -0
- {akquant-0.3.75 → 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.75 → akquant-0.3.77}/python/akquant/config.py +23 -8
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/broker_event_bridge.py +35 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/broker_execution.py +7 -1
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/broker_runtime.py +51 -2
- {akquant-0.3.75 → 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.75 → akquant-0.3.77}/python/akquant/gateway/broker_strategy_api.py +24 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/indicator_recording.py +45 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/indicator_stream.py +35 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/live/_runner.py +77 -0
- {akquant-0.3.75 → 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.75 → akquant-0.3.77}/python/akquant/lwc/_indicators.py +14 -2
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/lwc/_payload.py +37 -8
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/lwc/_template.py +251 -3
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/lwc/review.py +7 -1
- akquant-0.3.77/python/akquant/mcp/__init__.py +5 -0
- akquant-0.3.77/python/akquant/mcp/__main__.py +46 -0
- akquant-0.3.77/python/akquant/mcp/guides/data-format.md +54 -0
- akquant-0.3.77/python/akquant/mcp/guides/indicators.md +45 -0
- akquant-0.3.77/python/akquant/mcp/guides/market-rules.md +31 -0
- akquant-0.3.77/python/akquant/mcp/guides/orders-and-positions.md +56 -0
- akquant-0.3.77/python/akquant/mcp/guides/strategy-skeleton.md +43 -0
- akquant-0.3.77/python/akquant/mcp/server.py +147 -0
- akquant-0.3.77/python/akquant/mcp/service/__init__.py +8 -0
- akquant-0.3.77/python/akquant/mcp/service/api_index.py +174 -0
- akquant-0.3.77/python/akquant/mcp/service/check.py +394 -0
- akquant-0.3.77/python/akquant/mcp/service/data.py +372 -0
- akquant-0.3.77/python/akquant/mcp/service/errors.py +155 -0
- akquant-0.3.77/python/akquant/mcp/service/guides.py +48 -0
- akquant-0.3.77/python/akquant/mcp/service/paths.py +103 -0
- akquant-0.3.77/python/akquant/mcp/service/records.py +45 -0
- akquant-0.3.77/python/akquant/mcp/service/runs.py +222 -0
- akquant-0.3.77/python/akquant/mcp/worker.py +170 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/optimize.py +55 -2
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy.py +114 -9
- akquant-0.3.77/python/akquant/strategy_drawing.py +355 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_events.py +27 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_loader.py +72 -8
- akquant-0.3.77/python/akquant/strategy_stats.py +201 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_trading_api.py +18 -29
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/stream_schema.py +10 -1
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/utils/__init__.py +22 -14
- akquant-0.3.77/src/analysis/live_stats.rs +377 -0
- akquant-0.3.77/src/analysis/mod.rs +16 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/analysis/result.rs +11 -14
- akquant-0.3.77/src/analysis/strategy_stats.rs +351 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/analysis/tests.rs +65 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/analysis/tracker.rs +86 -42
- {akquant-0.3.75 → akquant-0.3.77}/src/context.rs +37 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/engine/core.rs +15 -1
- {akquant-0.3.75 → akquant-0.3.77}/src/engine/python.rs +26 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/lib.rs +4 -1
- {akquant-0.3.75 → akquant-0.3.77}/src/statistics/mod.rs +120 -0
- akquant-0.3.77/tests/mcp_server/conftest.py +26 -0
- akquant-0.3.77/tests/mcp_server/test_mcp_api_index.py +69 -0
- akquant-0.3.77/tests/mcp_server/test_mcp_check.py +298 -0
- akquant-0.3.77/tests/mcp_server/test_mcp_data.py +195 -0
- akquant-0.3.77/tests/mcp_server/test_mcp_errors.py +184 -0
- akquant-0.3.77/tests/mcp_server/test_mcp_guides.py +62 -0
- akquant-0.3.77/tests/mcp_server/test_mcp_main.py +29 -0
- akquant-0.3.77/tests/mcp_server/test_mcp_paths.py +124 -0
- akquant-0.3.77/tests/mcp_server/test_mcp_records.py +39 -0
- akquant-0.3.77/tests/mcp_server/test_mcp_runs.py +338 -0
- akquant-0.3.77/tests/mcp_server/test_mcp_server.py +164 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_account_risk_rules.py +0 -4
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_profile_cn_stock.py +1 -1
- akquant-0.3.77/tests/test_broker_trade_stats.py +655 -0
- {akquant-0.3.75 → 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.75 → akquant-0.3.77}/tests/test_engine.py +23 -30
- akquant-0.3.77/tests/test_fetch_akshare_symbol.py +101 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_broker_submitter_signature.py +1 -1
- akquant-0.3.77/tests/test_grid_search_all_failed.py +265 -0
- akquant-0.3.77/tests/test_indicator_duplicate_name.py +179 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_indicator_recording.py +7 -1
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_instrument_slippage.py +1 -1
- {akquant-0.3.75 → 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.75 → akquant-0.3.77}/tests/test_lwc_indicators.py +99 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_lwc_review.py +88 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_merge_results.py +47 -0
- akquant-0.3.77/tests/test_slippage_bare_number.py +184 -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.75 → akquant-0.3.77}/tests/test_strategy_extras.py +14 -14
- akquant-0.3.77/tests/test_strategy_loader_candidates.py +118 -0
- akquant-0.3.77/tests/test_strategy_loader_reload.py +241 -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.77/tests/test_warm_start_slippage_inherit.py +108 -0
- akquant-0.3.75/docs/en/guide/visualization.md +0 -105
- akquant-0.3.75/docs/zh/guide/visualization.md +0 -104
- akquant-0.3.75/src/analysis/mod.rs +0 -10
- {akquant-0.3.75 → akquant-0.3.77}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/.github/dependabot.yml +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/.github/workflows/deploy-docs.yml +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/.github/workflows/docs-quality.yml +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/.github/workflows/release.yml +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/.gitignore +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/CODE_OF_CONDUCT.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/CONTRIBUTING.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/LICENSE +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/assets/dashboard_preview.png +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/assets/logo.svg +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/assets/social_preview.png +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/CNAME +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/assets/akquant-icon.svg +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/assets/akquant-logo.svg +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/assets/reports/akquant_report.html +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/llm.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/ml.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/runtime_config.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/timezone.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/advanced/warm_start.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/guide/analysis.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/guide/examples.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/guide/factor.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/guide/python_basics.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/guide/quant_basics.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/guide/testing.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/index.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/meta/architecture.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/meta/internals.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/start/first_strategy.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/start/installation.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/start/quickstart.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/start/setup_guide.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/01_foundations.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/02_programming.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/03_data.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/04_backtest_engine.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/05_strategy.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/06_stock_a.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/07_futures.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/08_options.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/09_funds.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/10_analysis.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/11_optimization.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/12_ml.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/13_visualization.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/14_factor.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/15_live_trading.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/en/textbook/index.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/javascripts/mathjax.js +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/javascripts/search-lang-filter.js +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/robots.txt +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/adding_a_broker.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/ml.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/runtime_config.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/timezone.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/advanced/warm_start.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/guide/analysis.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/guide/examples.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/guide/factor.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/guide/python_basics.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/guide/testing.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/index.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/meta/architecture.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/meta/columnar-rfc.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/meta/hooks-rfc.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/meta/internals.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/meta/issue-329-fix-plan.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/meta/logging-rfc.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/meta/signal-ingestion-rfc.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/meta/timer-api-rfc.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/meta/viz-namespace-and-lwc-review-rfc.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/meta/warm-start-config-and-merge-rfc.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/start/first_strategy.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/start/installation.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/start/quickstart.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/start/setup_guide.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/00_glossary.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/01_foundations.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/02_programming.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/06_stock_a.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/08_options.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/09_funds.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/10_analysis.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/11_optimization.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/12_ml.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/13_visualization.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/14_factor.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/15_live_trading.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/ROADMAP.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/appendix_cite.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/appendix_pitfalls.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/appendix_setup.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/capstone.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/docs/zh/textbook/index.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/01_quickstart.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/02_parameter_optimization.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/03_parameter_optimization_advanced.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/04_mixed_assets.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/05_live_trading_ctp.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/06_complex_orders.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/07_option_test.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/08_event_callbacks.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/09_ml_framework.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/10_ml_walk_forward.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/11_plot_visualization.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/12_wfo_integrated.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/13_quantstats_report.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/14_multi_frequency.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/15_plot_intraday.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/16_adj_returns_signal.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/17_readme_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/18_benchmark_multisymbol.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/19_factor_expression.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/20_risk_management_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/21_warm_start_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/22_strategy_runtime_config_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/23_functional_callbacks_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/24_functional_tick_simulation_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/25_streaming_backtest_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/26_streaming_quickstart.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/27_streaming_monitoring_console.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/28_streaming_alerts_and_persist.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/29_streaming_event_report.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/30_streaming_report_oneclick.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/31_streaming_live_console.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/32_streaming_live_web.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/33_report_and_analysis_outputs.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/34_multi_strategy_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/35_custom_broker_registry_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/36_trailing_orders.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/37_feed_replay_alignment_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/38_live_functional_strategy_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/39_live_broker_submit_order_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/39_live_mixed_broker_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/40_functional_multi_slot_risk_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/41_live_multi_slot_orchestration_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/42_live_broker_event_audit_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/43_target_weights_rebalance.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/44_strategy_source_loader_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/45_talib_indicator_playbook_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/46_broker_profile_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/47_margin_liquidation_audit_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/48_margin_liquidation_priority_compare.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/49_on_expiry_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/50_framework_hooks_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/51_class_tick_callbacks_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/52_pre_open_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/53_timer_to_pre_open_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/54_functional_pre_open_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/55_functional_ml_walk_forward.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/56_functional_warm_start_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/57_functional_multi_slot_warm_start_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/58_incremental_bootstrap_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/60_custom_indicator_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/61_indicator_visualization_export_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/61_signal_platform_webhook.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/62_indicator_streaming_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/63_indicator_ws_bridge_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/64_indicator_live_web.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/65_bar_generator.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/66_logging_audit_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/67_lwc_trade_review.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/68_backtest_tick_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/69_live_runtime_config_dispatch_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/70_csv_multi_symbol_import_demo.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/71_native_multi_timeframe_live.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/73_lwc_live_indicators.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/74_indicator_scripts.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/75_intrabar_indicators.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/76_tick_intrabar_indicators.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/77_heikin_ashi_indicator.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/benchmark_utils.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/pb_mock.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/strategies/01_stock_dual_moving_average.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/strategies/02_stock_grid_trading.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/strategies/03_stock_atr_breakout.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/strategies/04_stock_momentum_rotation.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/strategies/05_stock_momentum_rotation_timer.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/strategies/06_stock_momentum_rotation_bucket.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/strategies/07_stock_momentum_rotation_on_timer.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/strategies/08_target_positions_long_short.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/strategies/09_stock_momentum_rotation_after_bar.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/strategies/README.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch01_quickstart.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch01_quickstart_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch02_programming.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch04_comparison.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch04_comparison_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch05_strategy.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch05_strategy_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch06_stock_a.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch06_stock_a_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch07_futures.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch07_futures_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch08_options.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch08_options_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch09_funds.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch09_funds_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch09_portfolio.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch09_portfolio_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch10_analysis.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch10_analysis_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch11_optimization.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch11_optimization_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch12_ml.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch12_ml_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch13_visualization.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch13_visualization_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch14_factor.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch15_live_trading.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch15_live_trading_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch15_strategy_loader.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch15_strategy_loader_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch16_indicators.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/examples/textbook/ch16_indicators_functional.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/analysis/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/analysis/benchmark.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/analyzer_plugin.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/backtest/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/backtest/__init__.pyi +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/backtest/fill_mode.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/backtest/tick_input.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/bar_generator.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/chart/_normalize.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/chart/d3kline.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/checkpoint.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/data.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/execution/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/execution/base.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/execution/sim.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/factor/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/factor/engine.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/factor/ops.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/factor/parser.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/feed_adapter.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/fund/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/futures/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/base.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/broker_event_adapter.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/broker_event_mapper.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/broker_models.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/broker_recovery.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/brokers/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/brokers/builtins.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/brokers/ctp/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/brokers/ctp/adapter.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/brokers/ctp/native.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/brokers/miniqmt/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/brokers/miniqmt/stub.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/brokers/plugins.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/brokers/ptrade/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/brokers/ptrade/stub.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/brokers/replay/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/brokers/replay/gateway.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/ctp_adapter.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/ctp_native.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/factory.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/local_stop_book.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/mapper.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/miniqmt.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/models.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/order_audit.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/order_errors.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/order_receipt.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/order_submitter.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/protocols.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/ptrade.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/registry.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/symbol_match.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/gateway/trader_base.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/indicator_declaration.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/indicator_identity.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/indicator_script.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/live/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/live/_facade.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/live/_gateway_setup.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/live/_payload_utils.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/live/_preload.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/live/_strategy_maps.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/log.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/lwc/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/lwc/assets/LICENSE.lightweight-charts +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/lwc/assets/NOTICE.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/lwc/assets/lightweight-charts.standalone.production.js +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/ml/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/ml/model.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/normalize.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/option/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/params.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/params_adapter.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/plot/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/plot/_market_data.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/plot/analysis.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/plot/dashboard.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/plot/indicator.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/plot/report.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/plot/strategy.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/plot/utils.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/precomputed.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/py.typed +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/risk.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/schema.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/sessions_config.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/signal/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/signal/dedup.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/signal/dispatcher.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/signal/models.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/signal/protocols.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/signal/registry.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/signal/security.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/signal/sinks.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/signal/sources/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/signal/sources/http.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/signal/sources/queue.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/signal/sources/redis_stream.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/sizer.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/stock/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_framework_hooks.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_history.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_inspect.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_logging.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_ml.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_order_events.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_position.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_preload.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_runtime_config.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_scheduler.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_time.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/strategy_window.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/talib/__init__.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/talib/_kernels.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/talib/backend.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/talib/core.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/talib/funcs.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/talib/lookback.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/trade_stream.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/utils/inspector.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/python/akquant/utils/price.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/requirements-dev.txt +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/scripts/bench_engine_perbar.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/scripts/cargo-test.sh +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/scripts/check_docs_api_examples.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/scripts/check_docs_links.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/scripts/check_release.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/scripts/dev-check.sh +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/scripts/golden_baseline_report.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/scripts/profile_backtest.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/scripts/stress_out_of_core.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/account.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/analysis/python.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/analysis/types.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/bin/stub_gen.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/calendar/clock.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/calendar/mod.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/calendar/python.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/calendar/resolver.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/calendar/schedule.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/calendar/trading_calendar.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/clock.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/data/aggregator.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/data/batch.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/data/client.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/data/columns.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/data/compute.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/data/feed.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/data/mod.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/data/parquet_stream.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/data/python_window.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/data/window.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/engine/mod.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/engine/state.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/error.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/event.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/event_manager.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/execution/common.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/execution/crypto.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/execution/forex.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/execution/futures.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/execution/matcher.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/execution/mod.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/execution/option.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/execution/python.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/execution/realtime.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/execution/simulated.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/execution/slippage.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/execution/stock.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/execution/validation.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/history.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/momentum.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/momentum_oscillators.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/momentum_rates.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/moving_average.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/moving_average_compound.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/moving_average_core.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/moving_average_hilbert.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/moving_average_transforms.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/moving_average_windowed.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/trend.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/trend_directional.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/trend_oscillators.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/trend_regression.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/volatility.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/volatility_candle.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/volatility_price.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/volatility_stats.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators/volume.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/indicators.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/log_context.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/margin/calculator.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/margin/engine.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/margin/mod.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/market/china.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/market/core.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/market/corporate_action.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/market/fee_override.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/market/fund.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/market/futures.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/market/manager.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/market/mod.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/market/option.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/market/simple.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/market/stock.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/model/corporate_action.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/model/instrument.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/model/market_data.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/model/mod.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/model/order.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/model/timer.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/model/types.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/order_manager.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/pipeline/mod.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/pipeline/processor.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/pipeline/runner.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/pipeline/stages/channel.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/pipeline/stages/cleanup.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/pipeline/stages/data.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/pipeline/stages/execution.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/pipeline/stages/mod.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/pipeline/stages/shared.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/pipeline/stages/statistics.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/pipeline/stages/strategy.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/portfolio.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/risk/common.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/risk/config.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/risk/futures.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/risk/manager.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/risk/mod.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/risk/option.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/risk/portfolio.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/risk/rule.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/risk/stock.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/risk/strategy_limits.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/settlement/expiry.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/settlement/handler.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/settlement/manager.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/settlement/mod.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/settlement/option.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/src/signal_port.rs +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/_checkpoint_0371.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/_plot_cases.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/fixtures/checkpoint_0371_minute.pkl +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/gateway_contract/test_event_bridge_contract.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/gateway_contract/test_recovery_contract.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/gateway_contract/test_submitter_contract.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/BASELINE_REPORT.md +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/futures_margin/equity_curve.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/futures_margin/metrics.json +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/futures_margin/orders.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/futures_margin/trading_day_ends.json +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/futures_night_weekend/equity_curve.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/futures_night_weekend/metrics.json +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/futures_night_weekend/orders.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/futures_night_weekend/trades.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/futures_night_weekend/trading_day_ends.json +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/option_basic/equity_curve.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/option_basic/metrics.json +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/option_basic/orders.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/option_basic/trading_day_ends.json +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/order_cancel/equity_curve.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/order_cancel/metrics.json +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/order_cancel/orders.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/order_cancel/trades.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/order_cancel/trading_day_ends.json +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/stock_minute_auction/equity_curve.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/stock_minute_auction/metrics.json +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/stock_minute_auction/orders.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/stock_minute_auction/trades.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/stock_minute_auction/trading_day_ends.json +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/stock_t1/equity_curve.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/stock_t1/metrics.json +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/stock_t1/orders.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/stock_t1/trades.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/baselines/stock_t1/trading_day_ends.json +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/data/future_margin.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/data/future_margin.parquet.sha256 +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/data/futures_night_weekend.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/data/futures_night_weekend.parquet.sha256 +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/data/option_basic.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/data/option_basic.parquet.sha256 +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/data/order_cancel.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/data/order_cancel.parquet.sha256 +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/data/stock_minute_auction.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/data/stock_minute_auction.parquet.sha256 +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/data/stock_t1.parquet +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/data/stock_t1.parquet.sha256 +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/gen_data.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/runner.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/strategies/futures_margin.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/strategies/futures_night_weekend.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/strategies/option_basic.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/strategies/order_cancel.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/strategies/stock_minute_auction.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/strategies/stock_t1.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/golden/test_golden.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_api_rename_cash.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_api_rename_composites.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_api_rename_equity.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_api_rename_holding_bars.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_api_rename_positions.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_api_rename_rebalance.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_api_rename_scheduler.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_backtest_params.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_backtest_symbol_column_aliases.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_backtest_tick_aggregate.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_backtest_tick_entry.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_backtest_tick_history.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_bar_aggregator_live.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_bar_generator.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_bar_hook_bookkeeping_invariants.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_bench_noise_gate.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_boundary_bar_fill.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_bridge_adapts_events.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_bridge_drives_order_groups.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_dropped_counts_periodic_summary.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_event_adapter.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_event_adapter_local_id.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_event_symbol_filter.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_event_task_isolation.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_execution_local_stops.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_execution_read_path_parity.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_execution_stop_requeue.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_live_risk_enforcement.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_order_redelivery_dedup.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_plugins.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_position_sync.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_recovery_cadence.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_recovery_error_visibility.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_seed_baseline.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_broker_trade_redelivery_dedup.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_buying_power_new_symbol.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_cancel_request_persistence.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_candle_exporters.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_chart_d3kline.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_chart_normalize.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_check_release.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_checkpoint_0371_compat.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_checkpoint_option_rules.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_close_position_delegate.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_composed_ctx_not_ready.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_cost_config_consolidation.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_cross_section_day_order_next_open_fill.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_ctp_classify_order_error.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_custom_matcher.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_data_catalog.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_date_only_rewrite_cache.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_day_order_expiry_no_zombie_fill.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_deterministic_order.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_docs_api_examples.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_docs_links.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_dual_stream_freq_inference.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_engine_python_crossings.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_event_model_parity.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_examples_regression.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_execution_binding.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_execution_broker.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_execution_broker_reads_routed.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_execution_composed_parity.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_execution_read_delegation.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_execution_sim.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_execution_write_delegation.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_expiry_terminal_dispatch.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_expiry_trade_accounting.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_factor_engine.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_factor_ops.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_feed_adapter.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_fill_mode.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_broker_live_cancel.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_broker_live_reads.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_broker_models_ext.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_broker_state_cache.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_broker_state_invalidation.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_broker_submitter_quantity.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_broker_submitter_readiness.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_brokers_paths.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_builtins_registry.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_callbacks.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_cancel_failure.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_ctp_adapter.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_ctp_dual_stream.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_ctp_native.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_expired_order_status.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_factory.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_mapper.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_mixed_market_trader.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_optional_market.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_order_error_classification.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_order_submitter_extra.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_order_tick_reject_soft.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_order_tick_validation.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_place_order_failure.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_registry.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_sim_submit_guard.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_symbol_match.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_tif_mapping.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_gateway_trader_base.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_get_order_finalized.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_heikin_ashi.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_hooks_functional_wrapper.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_hooks_inherited_via_base.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_indicator_declaration.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_indicator_declaration_review.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_indicator_dual_stream.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_indicator_intrabar.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_indicator_live_web_example.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_indicator_non_finite.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_indicator_owner_identity.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_indicator_script.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_inspector.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_instrument_default_tick.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_instrument_fee_override.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_instrument_symbol_suffix_normalization.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_instruments_config_symbol_mismatch.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_lifecycle_hooks.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_lifecycle_review_fixes.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_auto_preload.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_broker_slot_routing.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_duration_wallclock.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_freq_injection.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_market_config_by_asset_type.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_mixed_market_broker.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_multi_slot_windows.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_preload_normalize.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_preload_runner.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runner.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runner_bounded_session.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runner_broker_bridge.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runner_broker_readiness.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runner_broker_recovery.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runner_broker_submitter.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runner_client_order_id.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runner_instrument_snapshots.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runner_lifecycle.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runner_no_market_data_warning.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runner_order_request_cache.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runner_sigterm_stop.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runner_stop_remap.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_runtime_config_dispatch.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_subscribe_forwards_to_gateway.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_live_summary_stop_reason.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_local_stop_book.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_local_stop_book_threadsafe.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_local_stop_scenario.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_log_sensitive_filter.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_ml_rolling_training_threshold.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_multi_slot_ownership.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_multisymbol_cross_section_consistency.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_naive_timezone.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_normalize.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_oco_bracket_broker_live_scenario.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_on_execution_report_noop.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_on_timer_suspension_deadlock.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_optimize_functional_params.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_optimize_params.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_option_expiry_settlement.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_option_fees.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_option_market_side_effects.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_order_api_return_values.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_order_audit.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_order_callback_dedupe.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_order_receipt.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_order_receipt_backtest.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_order_target_lot_size_alignment.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_orders_df.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_params.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_params_adapter.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_parquet_stream.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_partial_filled_status.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_pickle_model_objects.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_plot_defaults.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_portfolio.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_position_effect_flip.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_pre_open_live_warns.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_product_presets.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_quickstart_stream_consistency.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_reduce_only_sell_affordability.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_removed_wrappers.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_replay_live_end_to_end.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_replay_market_gateway.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_report_helpers.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_report_plot_extensions.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_result_analysis_extensions.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_review_minors_cleanup.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_run_live_indicator_stream.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_session_config.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_session_matching.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_session_resolver.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_signal_module.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_signal_port_injection.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_signal_sources_p3.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_sizer_auto_resize.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_sort_determinism.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_source_trading_day.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_stock_tick_validation.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_stop_id_remap_scenario.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_stop_orders.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_stop_retry_client_order_id.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_events_stop_hook.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_freq_attribute.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_history_dual_stream.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_history_missing_symbol_warning.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_inspect.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_loader_exports.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_loader_pickle.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_loader_plugins.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_ml_dual_stream.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_order_group_lock.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_params.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_session_api.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_sizing_broker_live_guard.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_strategy_timers_indicators.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_stream_series_key.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_subscribe_live_warns.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_suspension_zero_volume_gtc_terminal.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_symbols_filtering.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_symbols_whitelist_rust.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_t_plus_one.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_talib_alignment.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_talib_backend.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_talib_compat.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_target_orders_core.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_tick_indicators.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_tick_input.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_trade_stream_bridge.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_trades_df.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_trading_day_lifecycle.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_utils_price.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_vectorized.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_version.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_viz_namespace.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_volume_limit.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_walk_forward_kwargs.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_warmup_period_per_symbol.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_window_checkpoint.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_window_live_replay.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_window_sessions.py +0 -0
- {akquant-0.3.75 → akquant-0.3.77}/tests/test_window_subscriptions.py +0 -0
|
@@ -7,6 +7,37 @@ 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
|
+
|
|
25
|
+
## [0.3.76] - 2026-10-30
|
|
26
|
+
|
|
27
|
+
> **规则版本 2.1.2**:热启动恢复时,`config` 里没设滑点的配置现在沿用快照里的滑点(此前被覆盖成无滑点),涉及热启动且第一阶段有滑点的回测结果会变;另外,裸数字滑点与 `self.I(...)` 重名声明从静默接受改为直接报错。
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
- **破坏性:滑点不再接受裸数字**:`run_backtest(slippage=...)`、`StrategyConfig.slippage`、`InstrumentConfig.slippage`、`strategy_slippage` 映射的值、订单级 `buy/sell/short/cover(..., slippage=...)`、`run_from_checkpoint` 热启动路径,收到 `int`/`float`(含 `0`、`0.0` 和 `bool`)一律抛 `TypeError`。裸数字弃用已久,却只发 `DeprecationWarning`,而策略模块不是 `__main__`,按 Python 默认的告警过滤规则用户根本看不到,所以直接移除。报错信息里带着传入的值和迁移写法:百分比改写成 `{'type': 'percent', 'value': 0.0002}`,固定价差改写成 `{'type': 'fixed', 'value': 0.2}`;要关掉滑点(包括覆盖 `broker_profile` 模板里的滑点)传 `{'type': 'zero'}`;不传或传 `None` 表示不覆盖,设了 `broker_profile` 时模板滑点照常生效,否则不加滑点。`StrategyConfig.slippage` 默认值由 `0.0` 改为 `None`,`SlippageInput` 与各处类型注解去掉 `float`/`int`;同时删除只在裸数字路径上触发的“全局滑点 >= 0.05”提示。
|
|
31
|
+
- **热启动:`config` 没设滑点时沿用快照里的滑点**:`StrategyConfig.slippage` 默认值由 `0.0` 改为 `None` 之后,`run_from_checkpoint(config=BacktestConfig(strategy_config=StrategyConfig(...)))` 里没写滑点的配置不再把快照滑点覆盖成“无滑点”,而是按文档约定的优先级“显式入参 > `config.strategy_config` > 快照配置”落到快照上(例如第一阶段 1% 滑点、第二阶段 `config` 没写滑点,成交价由 100.0 变为 101.0)。要在热启动时关掉滑点,在 `config` 或 `slippage=` 里显式传 `{'type': 'zero'}`。
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
- **MCP 服务 `akquant-mcp`(可选依赖 `pip install "akquant[mcp]"`)**:给 Claude Code、Cursor 等 AI 编程助手用的本地 stdio 服务,提供 7 个工具——`search_api`/`get_api`(运行时内省,与已装版本一致)、`get_guide`(写策略要点)、`check_strategy`(静态检查,不执行代码)、`prepare_data`(本地文件、AKShare A 股日线、合成数据)、`run_backtest`(子进程回测,返回核心指标与带策略文件行号、阶段和修复提示的结构化报错)、`get_run_details`(分页读取成交、委托、权益、日志)。一期只支持类式策略;不做沙箱。见 `docs/zh/guide/mcp.md`。
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
- **同一进程里改了策略文件再 `run_backtest(strategy_source=path)`,静默跑的还是旧代码**:`python_plain` 加载器按路径编码出稳定的模块名并登记进 `sys.modules`,第二次加载见到同名模块就直接复用(Jupyter、长期运行的服务里最容易踩到)。现在加载时对源文件字节计算 sha256 摘要,存在模块的 `__akquant_source_digest__` 上:内容不变照旧复用同一个模块和类,内容变了就用同一个模块名重新执行并替换 `sys.modules` 里的条目(缓存模块没有摘要属性也视为需要重新加载)。重新加载时如果源文件执行失败(如语法错误),旧模块会放回 `sys.modules`,此前 pickle 出去的对象仍能按名找到,并重新抛出原异常。用内容哈希而不是 mtime,因为 Windows 上 mtime 精度有限、部分编辑器还会保留原 mtime;同时这类策略模块改为始终从源文件编译、不读写 `.pyc`,父进程的加载器和 spawn 出来的网格搜索 worker 里的 finder 都是如此(`.pyc` 只按秒级 mtime 和大小判过期,同一秒内改出等长内容或编辑器保留 mtime 都会命中旧字节码);摘要与编译用的是同一次读到的字节,加载过程加了进程内锁,多线程并发加载不会看到只执行了一半的模块。模块命名规则不变,多进程网格搜索的 pickle 链路不受影响。注意:重新加载之后,旧模块里的类和实例不能再被 pickle(`PicklingError: not the same object`),因为按名字解析到的是当前最新的类。
|
|
38
|
+
- **`self.I(...)` 重名声明不再静默覆盖,直接抛 `ValueError`**:同一策略里 `self.I(aq.EMA(3), name="x")` 与 `self.I(aq.EMA(30), name="x")` 此前不报错也不告警,第二次声明覆盖第一次,两个绑定每根 bar 读到的都是后声明的指标值。原因是指标按名字存进同一个字典、`IndicatorBinding` 也只按名字取值。现在“同一轮声明”(首跑的 `__init__` 与 `on_start`,或 warm start 恢复时重跑的那一遍 `on_start`)里解析后的名字第二次出现即报错,信息写明重复的名字、两次声明各自的指标类型与修改建议;显式名字与自动编号名(`ema`、`ema_2`)撞车、`PrecomputedIndicator` 重名同样报错。warm start 恢复时 `on_start` 重跑的同名声明不受影响(已声明名字的登记在恢复开始时与自动命名计数一并重置)。声明要放在 `on_start`(或 `__init__`)里,不要写在 `on_bar` 等回调中:在回调里声明会从第二根 bar 起因重名而报错。
|
|
39
|
+
- **`fetch_akshare_symbol` 把网络断开、AKShare 接口变动等请求失败都报成 `ValueError: No data found`,用户会误以为是代码或日期写错了**:带市场前缀和去掉前缀的两次调用都用 `except Exception` 吞掉异常并置空数据。现在两次调用都没拿到数据且至少一次抛了异常时抛 `RuntimeError`(`AKShare 请求失败 (sh600000): ConnectionError: ...`,并用 `from` 链接第一个抛出的异常);所有调用都正常返回、只是数据为空时仍抛 `ValueError("No data found ...")`;任意一次拿到数据照常返回。MCP 的 `prepare_data` 同步把 `RuntimeError` 转成 `ServiceError("AKShare 请求失败: ...")`。
|
|
40
|
+
|
|
10
41
|
## [0.3.75] - 2026-10-29
|
|
11
42
|
|
|
12
43
|
> **规则版本 2.1.1**:「部分成交后成交时验资不过」与「成交时自动缩量」只影响订单记录与回调,成交、持仓、资金不变;`buy()` 不传 `quantity`(交给 sizer 定量)且资金不足、或 sizer 算出非整手数量的回测结果会变化(原来拒单,现在缩量或取整后成交),显式给数量的回测不变。使用 `cn_stock_*` 三个 `broker_profile` 模板的回测结果会变化(印花税减半、开 T+1)。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: akquant
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.77
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -26,6 +26,7 @@ Requires-Dist: pytest>=7.0.0 ; extra == 'dev'
|
|
|
26
26
|
Requires-Dist: ruff==0.17.1 ; extra == 'dev'
|
|
27
27
|
Requires-Dist: ta-lib==0.8.2 ; python_full_version >= '3.11' and extra == 'dev'
|
|
28
28
|
Requires-Dist: types-pytz>=2025.2.0.20251108 ; extra == 'dev'
|
|
29
|
+
Requires-Dist: mcp>=2.3,<3 ; extra == 'dev'
|
|
29
30
|
Requires-Dist: mkdocs>=1.5.0 ; extra == 'docs'
|
|
30
31
|
Requires-Dist: mkdocs-material>=9.5.0 ; extra == 'docs'
|
|
31
32
|
Requires-Dist: mkdocs-static-i18n>=1.2.0 ; extra == 'docs'
|
|
@@ -34,6 +35,7 @@ Requires-Dist: plotly>=5.0.0 ; extra == 'full'
|
|
|
34
35
|
Requires-Dist: scikit-learn>=1.0.0 ; extra == 'full'
|
|
35
36
|
Requires-Dist: torch>=2.0.0 ; extra == 'full'
|
|
36
37
|
Requires-Dist: quantstats>=0.0.60 ; extra == 'full'
|
|
38
|
+
Requires-Dist: mcp>=2.3,<3 ; extra == 'mcp'
|
|
37
39
|
Requires-Dist: scikit-learn>=1.0.0 ; extra == 'ml'
|
|
38
40
|
Requires-Dist: torch>=2.0.0 ; extra == 'ml'
|
|
39
41
|
Requires-Dist: plotly>=5.0.0 ; extra == 'plot'
|
|
@@ -42,6 +44,7 @@ Requires-Dist: redis>=5.0.0 ; extra == 'signal-redis'
|
|
|
42
44
|
Provides-Extra: dev
|
|
43
45
|
Provides-Extra: docs
|
|
44
46
|
Provides-Extra: full
|
|
47
|
+
Provides-Extra: mcp
|
|
45
48
|
Provides-Extra: ml
|
|
46
49
|
Provides-Extra: plot
|
|
47
50
|
Provides-Extra: quantstats
|
|
@@ -348,6 +351,7 @@ executions_by_strategy = result.executions_by_strategy() # 按策略归属聚合
|
|
|
348
351
|
* 🚀 **[快速入门](https://akquant.akfamily.xyz/start/quickstart/)**: 更多示例与基础用法。
|
|
349
352
|
* 🤖 **[机器学习指南](https://akquant.akfamily.xyz/advanced/ml/)**: 如何使用内置的 ML 框架进行滚动训练。
|
|
350
353
|
* 📚 **[API 参考](https://akquant.akfamily.xyz/reference/api/)**: 详细的类与函数文档。
|
|
354
|
+
* 🧩 **[MCP 服务](https://akquant.akfamily.xyz/guide/mcp/)**: 让 Claude Code、Cursor 等 AI 助手查 API、跑回测、读结构化报错。
|
|
351
355
|
* 💻 **[贡献指南](https://github.com/akfamily/akquant/blob/main/CONTRIBUTING.md)**: 如何参与项目开发。
|
|
352
356
|
|
|
353
357
|
## 🧪 测试与质量保证
|
|
@@ -289,6 +289,7 @@ executions_by_strategy = result.executions_by_strategy() # 按策略归属聚合
|
|
|
289
289
|
* 🚀 **[快速入门](https://akquant.akfamily.xyz/start/quickstart/)**: 更多示例与基础用法。
|
|
290
290
|
* 🤖 **[机器学习指南](https://akquant.akfamily.xyz/advanced/ml/)**: 如何使用内置的 ML 框架进行滚动训练。
|
|
291
291
|
* 📚 **[API 参考](https://akquant.akfamily.xyz/reference/api/)**: 详细的类与函数文档。
|
|
292
|
+
* 🧩 **[MCP 服务](https://akquant.akfamily.xyz/guide/mcp/)**: 让 Claude Code、Cursor 等 AI 助手查 API、跑回测、读结构化报错。
|
|
292
293
|
* 💻 **[贡献指南](https://github.com/akfamily/akquant/blob/main/CONTRIBUTING.md)**: 如何参与项目开发。
|
|
293
294
|
|
|
294
295
|
## 🧪 测试与质量保证
|
|
@@ -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:
|
|
@@ -117,7 +119,7 @@ A single failing plugin is logged at `WARNING` and skipped; it does not affect o
|
|
|
117
119
|
1. **Stable module name** — loading the same source repeatedly yields the same module name
|
|
118
120
|
2. **Registered in `sys.modules`**, and importable by that name from a worker process
|
|
119
121
|
|
|
120
|
-
The built-in `python_plain` already satisfies both: it derives a stable, reversible module name from the source file path, and installs a `sys.meta_path` finder at `import akquant` time so workers can recover the source file from the module name.
|
|
122
|
+
The built-in `python_plain` already satisfies both: it derives a stable, reversible module name from the source file path, and installs a `sys.meta_path` finder at `import akquant` time so workers can recover the source file from the module name. When the source file content changes (detected by content hash), `python_plain` re-loads it under the same stable module name; unchanged content reuses the already loaded module. After a reload, classes and instances from the old module can no longer be pickled (`PicklingError: not the same object`), because the name now resolves to the latest class.
|
|
121
123
|
|
|
122
124
|
A custom loader that also needs multiprocessing support must provide an equivalent mechanism. Mind the timing: a `spawn`-started worker restores the module while deserializing the task queue, before any user code runs, so the finder must be installed at module import time.
|
|
123
125
|
|
|
@@ -28,6 +28,8 @@ framework takes care of three things for you: **advancing it on every bar**, **s
|
|
|
28
28
|
lookback through `ind[0]` / `ind[1]`**, and **reporting plot points on demand**. This
|
|
29
29
|
mirrors `ta.*` + `plot()` in TradingView Pine Script.
|
|
30
30
|
|
|
31
|
+
`name=` must be unique within a strategy: declaring the same name twice raises `ValueError` (without `name`, indicators are auto-numbered `ema`, `ema_2`, ...; an explicit name must not collide with those auto names either).
|
|
32
|
+
|
|
31
33
|
```python
|
|
32
34
|
import akquant as aq
|
|
33
35
|
from akquant import Bar, Strategy
|
|
@@ -63,10 +65,10 @@ class MaCross(Strategy):
|
|
|
63
65
|
|
|
64
66
|
### Where to declare
|
|
65
67
|
|
|
66
|
-
Both `__init__` and `on_start` work
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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`.
|
|
70
72
|
|
|
71
73
|
`subscribe_bars` is the exception — it **must** be called in `__init__`, because the
|
|
72
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
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# MCP Server: Help AI Assistants Write Strategies That Run
|
|
2
|
+
|
|
3
|
+
AKQuant ships a local MCP (Model Context Protocol) server. Once connected to an AI coding assistant such as Claude Code or Cursor, the AI can look up APIs matching your installed version, statically check a strategy, prepare data, run backtests, and read structured results and errors — a write–run–fix loop.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install "akquant[mcp]"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This adds an `akquant-mcp` command. It talks to the AI client over stdio and is normally launched by the client.
|
|
12
|
+
|
|
13
|
+
## Connect a client
|
|
14
|
+
|
|
15
|
+
Claude Code (run in the project root):
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
claude mcp add akquant -- akquant-mcp
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`akquant-mcp` must be on PATH. If AKQuant is installed in a uv/venv environment, use `claude mcp add akquant -- uv run akquant-mcp` or the absolute path of the executable.
|
|
22
|
+
|
|
23
|
+
Clients configured with JSON (Cursor etc.):
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"mcpServers": {
|
|
28
|
+
"akquant": {"command": "akquant-mcp", "args": ["--root", "/path/to/project"]}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Options:
|
|
34
|
+
|
|
35
|
+
- `--root`: project root. Without it the root is the directory the client launches the server in, so pass it explicitly. Strategy and data files must live under it.
|
|
36
|
+
- `--max-runs`: how many recent backtest runs to keep, default 50.
|
|
37
|
+
|
|
38
|
+
## Tools
|
|
39
|
+
|
|
40
|
+
| Tool | Purpose |
|
|
41
|
+
|---|---|
|
|
42
|
+
| `search_api` / `get_api` | Look up API signatures and docs (runtime introspection, matches your installed version) |
|
|
43
|
+
| `get_guide` | Strategy-writing notes: skeleton, orders, indicators, data format, market rules |
|
|
44
|
+
| `check_strategy` | Static check of a strategy file; does not execute it |
|
|
45
|
+
| `prepare_data` | Prepare data: local CSV/Parquet, AKShare (A-share daily bars), or synthetic |
|
|
46
|
+
| `run_backtest` | Backtest in a subprocess; returns key metrics, first trades and structured errors |
|
|
47
|
+
| `get_run_details` | Page through trades, orders, daily equity and logs |
|
|
48
|
+
|
|
49
|
+
The guides are also exposed as the resource `akquant://guide/{topic}`.
|
|
50
|
+
|
|
51
|
+
## Limitations
|
|
52
|
+
|
|
53
|
+
- Only class-based strategies (`Strategy` subclasses) are supported in this release; for function-style strategies, call `run_backtest` from a script.
|
|
54
|
+
- `run_backtest`'s `config` exposes common options only; futures contract parameters, risk config, optimization and reports are out of scope.
|
|
55
|
+
|
|
56
|
+
## Working directory
|
|
57
|
+
|
|
58
|
+
Cached data and run results go to `<project root>/.akquant-mcp/` by default; override with the `AKQUANT_MCP_HOME` environment variable. Add it to `.gitignore`:
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
.akquant-mcp/
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Security
|
|
65
|
+
|
|
66
|
+
This is a local development tool and **is not a sandbox**: `run_backtest` executes your strategy file in a subprocess with the same trust as running `python strategy.py` yourself. The project-root path restriction only keeps the AI from wandering into other directories; it is not isolation. Do not use it to run strategy files from untrusted sources.
|
|
@@ -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.
|