akquant 0.3.89__tar.gz → 0.3.91__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.89 → akquant-0.3.91}/CHANGELOG.md +41 -0
- {akquant-0.3.89 → akquant-0.3.91}/Cargo.lock +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/Cargo.toml +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/PKG-INFO +2 -3
- {akquant-0.3.89 → akquant-0.3.91}/README.md +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/data.md +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/examples.md +2 -2
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/mcp.md +17 -5
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/reference/api.md +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/start/installation.md +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/start/quickstart.md +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/data.md +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/examples.md +2 -2
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/mcp.md +17 -5
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/quant_basics.md +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/reference/api.md +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/start/installation.md +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/start/quickstart.md +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/03_data.md +3 -3
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/14_factor.md +2 -2
- {akquant-0.3.89 → akquant-0.3.91}/examples/01_quickstart.py +3 -3
- {akquant-0.3.89 → akquant-0.3.91}/examples/11_plot_visualization.py +3 -1
- {akquant-0.3.89 → akquant-0.3.91}/examples/15_plot_intraday.py +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/examples/16_adj_returns_signal.py +2 -2
- {akquant-0.3.89 → akquant-0.3.91}/examples/17_readme_demo.py +3 -1
- {akquant-0.3.89 → akquant-0.3.91}/examples/19_factor_expression.py +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/examples/20_risk_management_demo.py +10 -4
- {akquant-0.3.89 → akquant-0.3.91}/examples/21_warm_start_demo.py +2 -2
- {akquant-0.3.89 → akquant-0.3.91}/examples/26_streaming_quickstart.py +3 -3
- {akquant-0.3.89 → akquant-0.3.91}/examples/45_talib_indicator_playbook_demo.py +2 -2
- {akquant-0.3.89 → akquant-0.3.91}/examples/59_akshare_etf_rotation.py +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/examples/strategies/01_stock_dual_moving_average.py +3 -3
- {akquant-0.3.89 → akquant-0.3.91}/examples/strategies/02_stock_grid_trading.py +2 -2
- {akquant-0.3.89 → akquant-0.3.91}/examples/strategies/03_stock_atr_breakout.py +2 -2
- {akquant-0.3.89 → akquant-0.3.91}/examples/strategies/04_stock_momentum_rotation.py +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/examples/strategies/06_stock_momentum_rotation_bucket.py +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch01_quickstart.py +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch01_quickstart_functional.py +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch03_data.py +5 -5
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch16_indicators.py +3 -2
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch16_indicators_functional.py +3 -2
- {akquant-0.3.89 → akquant-0.3.91}/pyproject.toml +3 -4
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/__init__.py +0 -3
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/backtest/engine.py +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/config.py +2 -2
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/guides/data-format.md +11 -5
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/server.py +11 -5
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/service/data.py +51 -46
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/service/paths.py +40 -3
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/sessions_config.py +1 -1
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/utils/__init__.py +1 -82
- {akquant-0.3.89 → akquant-0.3.91}/scripts/update_cn_exchange_calendar.py +2 -2
- {akquant-0.3.89 → akquant-0.3.91}/server.json +4 -4
- {akquant-0.3.89 → akquant-0.3.91}/tests/mcp_server/conftest.py +12 -3
- {akquant-0.3.89 → akquant-0.3.91}/tests/mcp_server/test_mcp_data.py +103 -54
- {akquant-0.3.89 → akquant-0.3.91}/tests/mcp_server/test_mcp_paths.py +43 -0
- akquant-0.3.89/tests/test_fetch_akshare_symbol.py +0 -101
- {akquant-0.3.89 → akquant-0.3.91}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/.github/dependabot.yml +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/.github/workflows/deploy-docs.yml +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/.github/workflows/docs-quality.yml +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/.github/workflows/release.yml +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/.gitignore +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/.pre-commit-config.yaml +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/CODE_OF_CONDUCT.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/CONTRIBUTING.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/LICENSE +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/assets/dashboard_preview.png +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/assets/logo.svg +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/assets/social_preview.png +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/CNAME +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/assets/akquant-icon.svg +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/assets/akquant-logo.svg +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/assets/reports/akquant_report.html +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/custom_strategy_loader.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/llm.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/ml.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/runtime_config.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/timezone.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/advanced/warm_start.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/analysis.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/custom_indicator.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/factor.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/optimization.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/python_basics.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/quant_basics.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/strategy.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/testing.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/guide/visualization.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/index.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/meta/architecture.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/meta/internals.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/start/first_strategy.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/start/setup_guide.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/01_foundations.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/02_programming.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/03_data.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/04_backtest_engine.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/05_strategy.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/06_stock_a.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/07_futures.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/08_options.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/09_funds.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/10_analysis.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/11_optimization.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/12_ml.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/13_visualization.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/14_factor.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/15_live_trading.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/en/textbook/index.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/javascripts/mathjax.js +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/javascripts/search-lang-filter.js +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/llms.txt +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/robots.txt +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/adding_a_broker.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/analyzer_plugin_spec.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/broker_capability_matrix.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/custom_broker_production_checklist.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/custom_broker_registry.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/custom_strategy_loader.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/data_feed_adapter_spec.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/live_functional_quickstart.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/llm.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/ml.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/multi_strategy_guide.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/multi_timeframe_feed_api.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/runtime_config.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/signal_ingestion.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/strategy_style_decision.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/tick_size_alignment.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/timezone.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/advanced/warm_start.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/analysis.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/cross_section_checklist.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/custom_indicator.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/factor.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/indicator_scenario_quickref.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/optimization.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/python_basics.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/rust_indicator_reference.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/strategy.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/talib_indicator_playbook.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/testing.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/guide/visualization.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/index.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/meta/architecture.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/meta/columnar-rfc.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/meta/internals.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/start/first_strategy.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/start/setup_guide.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/00_glossary.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/01_foundations.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/02_programming.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/04_backtest_engine.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/05_strategy.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/06_stock_a.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/07_futures.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/08_options.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/09_funds.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/10_analysis.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/11_optimization.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/12_ml.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/13_visualization.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/15_live_trading.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/16_rust_indicators.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/ROADMAP.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/appendix_cite.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/appendix_pitfalls.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/appendix_setup.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/capstone.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/docs/zh/textbook/index.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/02_parameter_optimization.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/03_parameter_optimization_advanced.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/04_mixed_assets.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/05_live_trading_ctp.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/06_complex_orders.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/07_option_test.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/08_event_callbacks.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/09_ml_framework.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/10_ml_walk_forward.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/12_wfo_integrated.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/13_quantstats_report.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/14_multi_frequency.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/18_benchmark_multisymbol.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/22_strategy_runtime_config_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/23_functional_callbacks_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/24_functional_tick_simulation_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/25_streaming_backtest_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/27_streaming_monitoring_console.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/28_streaming_alerts_and_persist.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/29_streaming_event_report.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/30_streaming_report_oneclick.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/31_streaming_live_console.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/32_streaming_live_web.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/33_report_and_analysis_outputs.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/34_multi_strategy_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/35_custom_broker_registry_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/36_trailing_orders.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/37_feed_replay_alignment_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/38_live_functional_strategy_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/39_live_broker_submit_order_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/39_live_mixed_broker_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/40_functional_multi_slot_risk_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/41_live_multi_slot_orchestration_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/42_live_broker_event_audit_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/43_target_weights_rebalance.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/44_strategy_source_loader_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/46_broker_profile_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/47_margin_liquidation_audit_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/48_margin_liquidation_priority_compare.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/49_on_expiry_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/50_framework_hooks_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/51_class_tick_callbacks_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/52_pre_open_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/53_timer_to_pre_open_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/54_functional_pre_open_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/55_functional_ml_walk_forward.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/56_functional_warm_start_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/57_functional_multi_slot_warm_start_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/58_incremental_bootstrap_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/60_custom_indicator_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/61_indicator_visualization_export_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/61_signal_platform_webhook.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/62_indicator_streaming_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/63_indicator_ws_bridge_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/64_indicator_live_web.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/65_bar_generator.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/66_logging_audit_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/67_lwc_trade_review.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/68_backtest_tick_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/69_live_runtime_config_dispatch_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/70_csv_multi_symbol_import_demo.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/71_native_multi_timeframe_live.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/72_declarative_indicators.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/73_lwc_live_indicators.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/74_indicator_scripts.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/75_intrabar_indicators.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/76_tick_intrabar_indicators.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/77_heikin_ashi_indicator.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/78_chart_drawings.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/79_multi_symbol_indicator_timer.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/README.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/benchmark_utils.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/pb_mock.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/strategies/05_stock_momentum_rotation_timer.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/strategies/07_stock_momentum_rotation_on_timer.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/strategies/08_target_positions_long_short.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/strategies/09_stock_momentum_rotation_after_bar.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/strategies/README.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch02_programming.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch04_comparison.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch04_comparison_functional.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch05_strategy.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch05_strategy_functional.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch06_stock_a.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch06_stock_a_functional.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch07_futures.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch07_futures_functional.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch08_options.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch08_options_functional.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch09_funds.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch09_funds_functional.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch09_portfolio.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch09_portfolio_functional.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch10_analysis.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch10_analysis_functional.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch11_optimization.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch11_optimization_functional.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch12_ml.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch12_ml_functional.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch13_visualization.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch13_visualization_functional.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch14_factor.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch15_live_trading.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch15_live_trading_functional.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch15_strategy_loader.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/examples/textbook/ch15_strategy_loader_functional.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/mkdocs.yml +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/akquant.pyi +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/analysis/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/analysis/benchmark.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/analyzer_plugin.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/backtest/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/backtest/__init__.pyi +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/backtest/_viz.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/backtest/fill_mode.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/backtest/merge.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/backtest/result.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/backtest/tick_input.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/bar_batch.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/bar_generator.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/chart/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/chart/_drawing.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/chart/_normalize.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/chart/d3kline.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/checkpoint.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/cli.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/data.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/execution/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/execution/base.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/execution/sim.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/factor/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/factor/engine.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/factor/ops.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/factor/parser.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/feed_adapter.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/fund/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/futures/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/base.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/broker_event_adapter.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/broker_event_bridge.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/broker_event_mapper.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/broker_execution.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/broker_models.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/broker_recovery.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/broker_runtime.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/broker_state_cache.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/broker_stats.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/broker_strategy_api.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/brokers/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/brokers/builtins.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/brokers/ctp/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/brokers/ctp/adapter.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/brokers/ctp/native.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/brokers/plugins.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/brokers/replay/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/brokers/replay/gateway.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/ctp_adapter.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/ctp_native.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/factory.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/local_stop_book.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/mapper.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/models.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/order_audit.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/order_errors.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/order_receipt.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/order_submitter.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/protocols.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/registry.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/symbol_match.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/gateway/trader_base.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/indicator_declaration.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/indicator_identity.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/indicator_recording.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/indicator_script.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/indicator_stream.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/live/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/live/_facade.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/live/_gateway_setup.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/live/_paper_execution.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/live/_payload_utils.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/live/_preload.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/live/_runner.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/live/_strategy_maps.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/live/_stream_sink.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/log.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/lwc/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/lwc/_drawings.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/lwc/_indicators.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/lwc/_payload.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/lwc/_template.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/lwc/assets/LICENSE.lightweight-charts +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/lwc/assets/NOTICE.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/lwc/assets/lightweight-charts.standalone.production.js +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/lwc/review.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/__main__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/guides/indicators.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/guides/market-rules.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/guides/orders-and-positions.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/guides/strategy-skeleton.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/service/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/service/api_index.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/service/check.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/service/errors.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/service/guides.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/service/members.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/service/records.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/service/runs.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/mcp/worker.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/ml/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/ml/model.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/normalize.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/optimize.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/option/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/params.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/params_adapter.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/plot/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/plot/_market_data.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/plot/analysis.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/plot/dashboard.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/plot/indicator.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/plot/report.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/plot/strategy.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/plot/utils.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/precomputed.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/py.typed +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/risk.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/schema.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/signal/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/signal/dedup.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/signal/dispatcher.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/signal/models.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/signal/protocols.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/signal/registry.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/signal/security.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/signal/sinks.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/signal/sources/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/signal/sources/http.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/signal/sources/queue.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/signal/sources/redis_stream.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/sizer.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/stock/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_drawing.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_events.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_framework_hooks.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_history.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_inspect.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_loader.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_logging.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_ml.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_order_events.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_position.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_preload.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_runtime_config.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_scheduler.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_stats.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_time.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_trading_api.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/strategy_window.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/stream_schema.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/talib/__init__.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/talib/_kernels.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/talib/backend.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/talib/core.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/talib/funcs.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/talib/lookback.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/trade_stream.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/utils/inspector.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/python/akquant/utils/price.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/requirements-dev.txt +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/scripts/bench_engine_perbar.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/scripts/cargo-test.sh +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/scripts/check_docs_api_examples.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/scripts/check_docs_links.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/scripts/check_release.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/scripts/dev-check.sh +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/scripts/golden_baseline_report.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/scripts/profile_backtest.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/scripts/stress_out_of_core.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/account.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/analysis/append_log.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/analysis/excursion_tests.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/analysis/live_stats.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/analysis/mod.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/analysis/python.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/analysis/result.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/analysis/strategy_stats.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/analysis/tests.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/analysis/tracker.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/analysis/types.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/bin/stub_gen.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/calendar/clock.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/calendar/cn_exchange.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/calendar/cn_exchange_closed.txt +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/calendar/mod.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/calendar/python.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/calendar/resolver.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/calendar/schedule.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/calendar/trading_calendar.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/clock.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/context.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/data/aggregator.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/data/batch.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/data/client.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/data/columns.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/data/compute.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/data/feed.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/data/mod.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/data/parquet_stream.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/data/python_window.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/data/window.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/engine/core.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/engine/mod.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/engine/python.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/engine/state.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/engine/strategy_handler.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/error.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/event.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/event_manager.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/execution/common.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/execution/crypto.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/execution/forex.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/execution/futures.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/execution/matcher.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/execution/mod.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/execution/option.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/execution/python.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/execution/realtime.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/execution/simulated.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/execution/slippage.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/execution/stock.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/execution/validation.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/history.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/momentum.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/momentum_oscillators.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/momentum_rates.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/moving_average.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/moving_average_compound.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/moving_average_core.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/moving_average_hilbert.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/moving_average_transforms.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/moving_average_windowed.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/trend.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/trend_directional.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/trend_oscillators.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/trend_regression.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/volatility.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/volatility_candle.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/volatility_price.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/volatility_stats.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators/volume.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/indicators.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/lib.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/log_context.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/margin/calculator.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/margin/engine.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/margin/mod.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/market/china.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/market/core.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/market/corporate_action.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/market/fee_override.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/market/fund.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/market/futures.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/market/manager.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/market/mod.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/market/option.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/market/simple.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/market/stock.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/model/corporate_action.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/model/instrument.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/model/market_data.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/model/mod.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/model/order.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/model/timer.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/model/types.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/order_ledger.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/order_manager.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/pipeline/mod.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/pipeline/processor.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/pipeline/runner.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/pipeline/stages/channel.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/pipeline/stages/cleanup.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/pipeline/stages/data.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/pipeline/stages/execution.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/pipeline/stages/mod.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/pipeline/stages/shared.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/pipeline/stages/statistics.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/pipeline/stages/strategy.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/portfolio.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/revision.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/risk/common.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/risk/config.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/risk/futures.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/risk/manager.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/risk/mod.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/risk/option.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/risk/portfolio.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/risk/rule.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/risk/stock.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/risk/strategy_limits.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/settlement/expiry.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/settlement/handler.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/settlement/manager.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/settlement/mod.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/settlement/option.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/signal_port.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/src/statistics/mod.rs +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/_checkpoint_0371.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/_mock_ctx.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/_order_event_scenarios.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/_plot_cases.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/fixtures/checkpoint_0371_minute.pkl +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/fixtures/order_event_traces.json +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/gateway_contract/test_event_bridge_contract.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/gateway_contract/test_recovery_contract.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/gateway_contract/test_submitter_contract.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/BASELINE_REPORT.md +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/futures_margin/equity_curve.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/futures_margin/metrics.json +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/futures_margin/orders.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/futures_margin/trading_day_ends.json +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/futures_night_weekend/equity_curve.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/futures_night_weekend/metrics.json +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/futures_night_weekend/orders.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/futures_night_weekend/trades.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/futures_night_weekend/trading_day_ends.json +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/option_basic/equity_curve.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/option_basic/metrics.json +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/option_basic/orders.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/option_basic/trading_day_ends.json +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/order_cancel/equity_curve.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/order_cancel/metrics.json +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/order_cancel/orders.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/order_cancel/trades.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/order_cancel/trading_day_ends.json +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/stock_minute_auction/equity_curve.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/stock_minute_auction/metrics.json +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/stock_minute_auction/orders.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/stock_minute_auction/trades.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/stock_minute_auction/trading_day_ends.json +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/stock_t1/equity_curve.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/stock_t1/metrics.json +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/stock_t1/orders.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/stock_t1/trades.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/baselines/stock_t1/trading_day_ends.json +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/data/future_margin.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/data/future_margin.parquet.sha256 +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/data/futures_night_weekend.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/data/futures_night_weekend.parquet.sha256 +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/data/option_basic.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/data/option_basic.parquet.sha256 +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/data/order_cancel.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/data/order_cancel.parquet.sha256 +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/data/stock_minute_auction.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/data/stock_minute_auction.parquet.sha256 +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/data/stock_t1.parquet +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/data/stock_t1.parquet.sha256 +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/gen_data.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/runner.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/strategies/futures_margin.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/strategies/futures_night_weekend.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/strategies/option_basic.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/strategies/order_cancel.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/strategies/stock_minute_auction.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/strategies/stock_t1.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/golden/test_golden.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/mcp_server/test_cli.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/mcp_server/test_mcp_api_index.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/mcp_server/test_mcp_check.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/mcp_server/test_mcp_errors.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/mcp_server/test_mcp_guides.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/mcp_server/test_mcp_main.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/mcp_server/test_mcp_records.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/mcp_server/test_mcp_runs.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/mcp_server/test_mcp_server.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_account_risk_rules.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_api_rename_cash.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_api_rename_composites.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_api_rename_equity.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_api_rename_holding_bars.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_api_rename_positions.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_api_rename_rebalance.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_api_rename_scheduler.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_backtest_fund_fee_rules.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_backtest_params.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_backtest_symbol_column_aliases.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_backtest_tick_aggregate.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_backtest_tick_entry.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_backtest_tick_history.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_bar_aggregator_live.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_bar_generator.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_bar_hook_bookkeeping_invariants.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_bench_noise_gate.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_boundary_bar_fill.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_bridge_adapts_events.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_bridge_drives_order_groups.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_dropped_counts_periodic_summary.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_event_adapter.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_event_adapter_local_id.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_event_symbol_filter.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_event_task_isolation.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_execution_local_stops.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_execution_read_path_parity.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_execution_stop_requeue.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_live_risk_enforcement.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_order_redelivery_dedup.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_plugins.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_position_sync.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_profile_cn_stock.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_recovery_cadence.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_recovery_error_visibility.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_seed_baseline.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_trade_redelivery_dedup.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_broker_trade_stats.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_builtin_calendar.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_buying_power_new_symbol.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_cancel_order_argument.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_cancel_request_persistence.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_cancel_same_cycle.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_candle_exporters.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_candle_render_type.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_chart_d3kline.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_chart_drawing_normalize.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_chart_normalize.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_check_release.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_checkpoint_0371_compat.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_checkpoint_option_rules.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_close_position_delegate.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_composed_ctx_not_ready.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_cost_config_consolidation.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_cross_section_day_order_next_open_fill.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_ctp_classify_order_error.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_custom_matcher.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_data_catalog.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_date_only_rewrite_cache.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_day_order_expiry_no_zombie_fill.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_deferred_order_log_summary.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_deterministic_order.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_docs_api_examples.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_docs_links.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_drawing_stream.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_dual_stream_freq_inference.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_engine.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_engine_python_crossings.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_engine_rerun_context_refresh.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_event_model_parity.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_examples_regression.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_execution_binding.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_execution_broker.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_execution_broker_reads_routed.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_execution_composed_parity.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_execution_read_delegation.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_execution_sim.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_execution_write_delegation.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_expiry_terminal_dispatch.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_expiry_trade_accounting.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_factor_engine.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_factor_logic_ops.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_factor_ops.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_feed_adapter.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_fill_mode.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_frozen_cash_on_demand.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_broker_live_cancel.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_broker_live_reads.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_broker_models_ext.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_broker_state_cache.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_broker_state_invalidation.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_broker_submitter_quantity.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_broker_submitter_readiness.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_broker_submitter_signature.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_brokers_paths.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_builtins_registry.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_cancel_failure.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_ctp_adapter.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_ctp_dual_stream.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_ctp_native.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_expired_order_status.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_mapper.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_mixed_market_trader.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_optional_market.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_order_error_classification.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_order_submitter_extra.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_order_tick_reject_soft.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_order_tick_validation.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_place_order_failure.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_registry.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_sim_submit_guard.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_symbol_match.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_tif_mapping.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_gateway_trader_base.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_get_order_finalized.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_grid_search_all_failed.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_heikin_ashi.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_history_depth_after_start.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_history_lookback_autogrow.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_hooks_functional_wrapper.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_hooks_inherited_via_base.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_indicator_declaration.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_indicator_declaration_review.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_indicator_dual_stream.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_indicator_duplicate_name.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_indicator_intrabar.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_indicator_live_web_example.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_indicator_multi_symbol_access.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_indicator_non_finite.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_indicator_owner_identity.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_indicator_recording.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_indicator_script.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_inspector.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_instrument_default_tick.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_instrument_fee_override.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_instrument_slippage.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_instrument_symbol_suffix_normalization.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_instruments_config_symbol_mismatch.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_lifecycle_hooks.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_lifecycle_review_fixes.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_auto_preload.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_broker_slot_routing.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_duration_wallclock.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_freq_injection.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_market_config_by_asset_type.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_mixed_market_broker.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_multi_slot_windows.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_paper_execution_params.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_preload_normalize.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_preload_runner.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_public_api.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runner.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runner_bounded_session.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runner_broker_bridge.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runner_broker_readiness.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runner_broker_recovery.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runner_broker_submitter.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runner_client_order_id.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runner_instrument_snapshots.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runner_lifecycle.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runner_no_market_data_warning.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runner_order_request_cache.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runner_sigterm_stop.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runner_stop_remap.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_runtime_config_dispatch.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_subscribe_forwards_to_gateway.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_live_summary_stop_reason.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_local_stop_book.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_local_stop_book_threadsafe.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_local_stop_scenario.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_log_sensitive_filter.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_lwc_drawings.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_lwc_indicators.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_lwc_review.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_merge_results.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_ml_rolling_training_threshold.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_multi_slot_ownership.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_multisymbol_cross_section_consistency.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_naive_timezone.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_normalize.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_oco_bracket_broker_live_scenario.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_on_bars.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_on_execution_report_noop.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_on_timer_suspension_deadlock.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_optimize_functional_params.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_optimize_params.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_option_expiry_settlement.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_option_fees.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_option_market_side_effects.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_order_api_return_values.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_order_audit.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_order_callback_dedupe.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_order_event_timing.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_order_event_traces.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_order_ledger_binding.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_order_receipt.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_order_receipt_backtest.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_order_target_lot_size_alignment.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_orders_df.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_params.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_params_adapter.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_parquet_stream.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_partial_filled_status.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_pickle_model_objects.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_plot_defaults.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_portfolio.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_position_effect_flip.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_pre_open_live_warns.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_precomputed_lookup.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_product_presets.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_quickstart_stream_consistency.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_reduce_only_sell_affordability.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_removed_wrappers.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_replay_live_end_to_end.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_replay_market_gateway.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_report_helpers.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_report_plot_extensions.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_result_analysis_extensions.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_review_minors_cleanup.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_run_live_indicator_stream.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_session_config.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_session_matching.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_session_resolver.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_signal_module.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_signal_port_injection.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_signal_sources_p3.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_sizer_auto_resize.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_slippage_bare_number.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_sort_determinism.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_source_trading_day.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_stock_tick_validation.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_stop_id_remap_scenario.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_stop_orders.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_stop_retry_client_order_id.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_custom_init_params.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_drawing.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_events_stop_hook.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_extras.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_freq_attribute.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_history_dual_stream.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_history_missing_symbol_warning.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_inspect.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_loader_candidates.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_loader_exports.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_loader_pickle.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_loader_plugins.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_loader_reload.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_ml_dual_stream.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_order_group_lock.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_params.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_session_api.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_sizing_broker_live_guard.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_stats.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_stats_parity.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_strategy_timers_indicators.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_stream_series_key.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_subscribe_live_warns.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_suspension_zero_volume_gtc_terminal.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_symbols_filtering.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_symbols_whitelist_rust.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_t_plus_one.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_talib_alignment.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_talib_backend.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_talib_compat.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_target_orders_core.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_tick_indicators.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_tick_input.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_trade_stream_bridge.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_trades_df.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_trading_day_lifecycle.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_utils_price.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_vectorized.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_version.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_viz_namespace.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_volume_limit.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_walk_forward_kwargs.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_warm_start_slippage_inherit.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_warmup_period_per_symbol.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_window_checkpoint.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_window_live_replay.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_window_sessions.py +0 -0
- {akquant-0.3.89 → akquant-0.3.91}/tests/test_window_subscriptions.py +0 -0
|
@@ -7,6 +7,47 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.91] - 2026-11-16
|
|
11
|
+
|
|
12
|
+
> 规则版本仍为 2.4.1,回测结果不变。
|
|
13
|
+
|
|
14
|
+
> 本版含破坏性变更:MCP 的 `prepare_data` 移除 `source="akshare"`,`akquant[mcp]` 不再附带 AKShare,详见下文。
|
|
15
|
+
|
|
16
|
+
### Removed
|
|
17
|
+
- **MCP 的 `prepare_data` 移除 `source="akshare"`,`akquant[mcp]` 不再依赖 AKShare(破坏性变更)**。AKQuant 的 MCP 不再联网取数:取数由 AKShare 的官方 MCP 服务 AKTools 负责,两边各做一件事,AKQuant 也不必再跟着 AKShare 的接口改名发版。
|
|
18
|
+
- 真实行情改为两步:用 AKTools 的 `save_data`(AKTools 0.1.12 起)把数据存成 CSV,再把它返回的路径连同 `symbol` 传给 `prepare_data`,即 `{"source": "file", "path": "<save_data 返回的 path>", "symbol": "600519"}`。没有接入 AKTools 时,先自行把数据存成 CSV 或 Parquet 放进项目目录。
|
|
19
|
+
- 仍传 `source="akshare"` 会报错,报错里写有上面的替代做法。
|
|
20
|
+
- `uvx --from "akquant[mcp]" akquant-mcp` 首次启动不再下载 AKShare 及其依赖。Python 环境里另外需要 AKShare 的(如运行联网示例),请自行 `pip install akshare`。
|
|
21
|
+
|
|
22
|
+
## [0.3.90] - 2026-11-15
|
|
23
|
+
|
|
24
|
+
> 规则版本仍为 2.4.1,回测结果不变。
|
|
25
|
+
|
|
26
|
+
> 本版含破坏性变更:移除 `fetch_akshare_symbol`,详见下文。
|
|
27
|
+
|
|
28
|
+
### Removed
|
|
29
|
+
- **移除 `aq.fetch_akshare_symbol` / `akquant.utils.fetch_akshare_symbol`(破坏性变更)**。它只是给 6 位代码补上市场前缀后转调 AKShare 的一个接口,而 AKShare 的接口名会变(见下条),内置这层转调只会让 AKQuant 跟着失效。AKQuant 不负责取数:用任何数据源拿到 DataFrame 后直接传给 `run_backtest(data=df)` 即可。原先的调用改成直接调 AKShare,代码要带市场前缀:
|
|
30
|
+
```python
|
|
31
|
+
import akshare as ak
|
|
32
|
+
|
|
33
|
+
df = ak.stock_zh_a_hist_sina(symbol="sh600000", start_date="20240101", end_date="20241231", adjust="qfq")
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Added
|
|
37
|
+
- **MCP 的 `prepare_data(source="file")` 可以直接读 AKTools 存下的数据文件**。AKTools(AKShare 的官方 MCP 服务)0.1.12 新增 `save_data` 工具,把接口的完整数据存成本机 CSV;AKQuant 的 MCP 现在除项目根目录外,还允许读 AKTools 的数据目录(环境变量 `AKTOOLS_DATA_DIR`,默认 `~/.aktools/data`,与 AKTools 的取法相同),助手可以“AKTools 取数存盘,再交给 AKQuant 回测”,不必把数据目录设在项目目录内。
|
|
38
|
+
- 放行只对数据文件生效,且仍只读 `.csv` 和 `.parquet`;策略文件等其余路径照旧只认项目根目录。
|
|
39
|
+
- 读 AKTools 目录里的文件时必须传 `symbol`(文件里已有标的列时除外):文件名是“接口名加参数哈希”,此前不传会把文件名当成标的名,现在直接报错并提示。项目目录内的文件不传 `symbol` 时仍用文件名,行为不变。
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
- **MCP 的 `prepare_data` 认中文列名**:`开盘`、`最高`、`最低`、`收盘`、`成交量`、`股票代码` 现在与英文列名等价,AKShare 东方财富行情接口的数据存成文件后可以直接读(此前报“缺少必需列”);`股票代码` 列在 CSV 中按文本读,`000001` 不会变成 `1`。列名改用 `run_backtest(data=df)` 的同一张别名表,因此标的列还认 `code`、`ticker`,成交量还认 `vol`。
|
|
43
|
+
- 行为变化:文件里有 `code` 或 `ticker` 列而没有 `symbol` 列时,现在用这一列作为标的,此前会忽略它、改用参数 `symbol` 或文件名。
|
|
44
|
+
- 成交量单位不做换算:东方财富行情接口的单位是“手”,需要按成交量做限制或计算时请先自行换算。
|
|
45
|
+
|
|
46
|
+
### Fixed
|
|
47
|
+
- **AKShare 1.20.45 起接口改名,MCP 的 `prepare_data(source="akshare")` 与多数联网示例失效**:`stock_zh_a_daily` 在 1.20.45 改名为 `stock_zh_a_daily_sina`、1.20.64 再改为 `stock_zh_a_hist_sina`,`tool_trade_date_hist_sina` 在 1.20.45 改名为 `calendar_trade_date_hist_sina`,旧名已被删除。
|
|
48
|
+
- MCP 的 AKShare 取数改在 MCP 模块内部实现,三代接口名都认,新旧版本的 AKShare 都能用;已装版本里一个都找不到时,报错会写明是接口名对不上,不再报成“请求失败”。
|
|
49
|
+
- 示例、文档与内置日历更新脚本统一改用新接口名,运行这些联网示例需要 AKShare 1.20.64 及以上(要求 Python 3.11.5 及以上);带离线合成数据的示例不受影响。
|
|
50
|
+
|
|
10
51
|
## [0.3.89] - 2026-11-14
|
|
11
52
|
|
|
12
53
|
> **规则版本 2.4.1**:把订单对象直接传给 `cancel_order` 的策略(如 `for o in self.get_open_orders(): self.cancel_order(o)`),回测结果会变——此前撤单不生效、订单照常挂着或成交,现在会被撤掉。其余策略的回测结果不变(本版的性能改动逐值不变)。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: akquant
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.91
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -36,7 +36,6 @@ Requires-Dist: scikit-learn>=1.0.0 ; extra == 'full'
|
|
|
36
36
|
Requires-Dist: torch>=2.0.0 ; extra == 'full'
|
|
37
37
|
Requires-Dist: quantstats>=0.0.60 ; extra == 'full'
|
|
38
38
|
Requires-Dist: mcp>=2.3,<3 ; extra == 'mcp'
|
|
39
|
-
Requires-Dist: akshare>=1.0.0 ; extra == 'mcp'
|
|
40
39
|
Requires-Dist: scikit-learn>=1.0.0 ; extra == 'ml'
|
|
41
40
|
Requires-Dist: torch>=2.0.0 ; extra == 'ml'
|
|
42
41
|
Requires-Dist: plotly>=5.0.0 ; extra == 'plot'
|
|
@@ -120,7 +119,7 @@ from akquant import Strategy
|
|
|
120
119
|
|
|
121
120
|
# 1. 准备数据
|
|
122
121
|
# 使用 akshare 获取 A 股历史数据 (需安装: pip install akshare)
|
|
123
|
-
df = ak.
|
|
122
|
+
df = ak.stock_zh_a_hist_sina(symbol="sh600000", start_date="20250212", end_date="20260212")
|
|
124
123
|
|
|
125
124
|
|
|
126
125
|
class MyStrategy(Strategy):
|
|
@@ -56,7 +56,7 @@ from akquant import Strategy
|
|
|
56
56
|
|
|
57
57
|
# 1. 准备数据
|
|
58
58
|
# 使用 akshare 获取 A 股历史数据 (需安装: pip install akshare)
|
|
59
|
-
df = ak.
|
|
59
|
+
df = ak.stock_zh_a_hist_sina(symbol="sh600000", start_date="20250212", end_date="20260212")
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
class MyStrategy(Strategy):
|
|
@@ -88,7 +88,7 @@ import pandas as pd
|
|
|
88
88
|
# 1. Download Data (Example: Forward Adjusted)
|
|
89
89
|
# Sina source, symbol needs a market prefix (sh/sz/bj); adjust="qfq" (forward adjusted)
|
|
90
90
|
# Returns English columns date/open/high/low/close/volume/...; volume is in shares
|
|
91
|
-
df = ak.
|
|
91
|
+
df = ak.stock_zh_a_hist_sina(symbol="sz000001", start_date="20200101", end_date="20231231", adjust="qfq")
|
|
92
92
|
|
|
93
93
|
# 2. Type Conversion
|
|
94
94
|
df['date'] = pd.to_datetime(df['date'])
|
|
@@ -156,14 +156,14 @@ Example response (showing parameter routing result):
|
|
|
156
156
|
* **Custom Indicators**:
|
|
157
157
|
* Demonstrates both the precompute style with `PrecomputedIndicator(name, fn)` and the incremental style with `indicator_factory`. Refer to the [Custom Indicator Guide](custom_indicator.md) and [60_custom_indicator_demo.py](https://github.com/akfamily/akquant/blob/main/examples/60_custom_indicator_demo.py).
|
|
158
158
|
|
|
159
|
-
### Fetching A-Share Daily Data with AKShare (
|
|
159
|
+
### Fetching A-Share Daily Data with AKShare (stock_zh_a_hist_sina)
|
|
160
160
|
|
|
161
161
|
```python
|
|
162
162
|
import akshare as ak
|
|
163
163
|
import pandas as pd
|
|
164
164
|
from akquant import run_backtest
|
|
165
165
|
|
|
166
|
-
df = ak.
|
|
166
|
+
df = ak.stock_zh_a_hist_sina(symbol="sz000001", adjust="qfq")
|
|
167
167
|
if "date" not in df.columns:
|
|
168
168
|
df = df.reset_index().rename(columns={"index": "date"})
|
|
169
169
|
df.columns = [c.lower() for c in df.columns]
|
|
@@ -117,11 +117,11 @@ Notes:
|
|
|
117
117
|
- **Replace `--root` with your own directory**, e.g. `/Users/<you>/akquant-demo` on macOS. In JSON, write Windows paths with forward slashes or escape `\` as `\\`. Without `--root` the server uses the directory the client starts it in, which differs between clients, so always pass it.
|
|
118
118
|
- **If AKQuant is already installed with pip** (`pip install "akquant[mcp]"`), you can replace `uvx --from "akquant[mcp]" akquant-mcp` with `akquant-mcp`; it must be on PATH, or use the absolute path of the executable inside your uv/venv environment.
|
|
119
119
|
- **Desktop apps can't find `uvx`** (e.g. `spawn uvx ENOENT`): Claude Desktop, Cursor and similar apps may not see your shell's PATH; replace `"command": "uvx"` with the full path of `uvx` (`where uvx` on Windows, `which uvx` on macOS and Linux).
|
|
120
|
-
- `akquant[mcp]` includes the MCP SDK
|
|
120
|
+
- `akquant[mcp]` includes only the MCP SDK, not AKShare: the AKQuant MCP server does not fetch data from the network. Real market data is fetched and saved to a file by AKTools, see [How data gets from AKTools to AKQuant](#aktools-handoff).
|
|
121
121
|
|
|
122
122
|
### Slow first start {: #first-start }
|
|
123
123
|
|
|
124
|
-
On first start `uvx` downloads AKQuant
|
|
124
|
+
On first start `uvx` downloads AKQuant and its dependencies (AKTools also downloads AKShare), which can exceed the client's timeout and show up as a connection timeout or startup failure. Run it once in a terminal to download everything, then restart the assistant:
|
|
125
125
|
|
|
126
126
|
```bash
|
|
127
127
|
uvx --from "akquant[mcp]" akquant-mcp --help
|
|
@@ -181,13 +181,25 @@ For DeepSeek Harness, add two rows to `cordis.patch.yml`:
|
|
|
181
181
|
args: ['--from', 'akquant[mcp]', 'akquant-mcp', '--root', '/path/to/akquant-demo']
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
+
### How data gets from AKTools to AKQuant {: #aktools-handoff }
|
|
185
|
+
|
|
186
|
+
The two servers cannot call each other; data is handed over through a local file:
|
|
187
|
+
|
|
188
|
+
1. The assistant calls AKTools' `save_data` (available since AKTools 0.1.12, stdio only), which writes an interface's full data to a CSV file. Files go to the AKTools data directory, `.aktools/data` under the user's home directory by default; set `AKTOOLS_DATA_DIR` to change it.
|
|
189
|
+
2. The assistant passes the file path returned by `save_data`, together with the symbol, to AKQuant's `prepare_data` (`source="file"`) and backtests as usual.
|
|
190
|
+
|
|
191
|
+
AKQuant reads the same `AKTOOLS_DATA_DIR` variable and falls back to `~/.aktools/data` as well, so no configuration is needed when both use the default. If you change the directory, set the same value in the `env` of both servers.
|
|
192
|
+
|
|
193
|
+
- `symbol` is required when reading a file from the AKTools directory: the file name is the interface name plus a parameter hash, not a symbol, and omitting it is an error.
|
|
194
|
+
- Prefer Sina or Tencent interfaces (such as `stock_zh_a_hist_sina`): volume is in shares. The Chinese column names of the Eastmoney quote interfaces (开盘, 最高, 最低, 收盘, 成交量, 股票代码) are recognized too, but their volume is in lots of 100 shares and AKQuant does not convert it.
|
|
195
|
+
|
|
184
196
|
Backtest results and suggestions are AI-generated, for learning and research only, and are not investment advice.
|
|
185
197
|
|
|
186
198
|
## Command-line options {: #options }
|
|
187
199
|
|
|
188
200
|
| Option | Default | Description |
|
|
189
201
|
|---|---|---|
|
|
190
|
-
| `--root` | The directory the client starts the server in | Project root. Strategy and data files must be inside it |
|
|
202
|
+
| `--root` | The directory the client starts the server in | Project root. Strategy and data files must be inside it; data files may also be in the AKTools data directory, see [How data gets from AKTools to AKQuant](#aktools-handoff) |
|
|
191
203
|
| `--max-runs` | 50 | How many recent backtest results to keep |
|
|
192
204
|
|
|
193
205
|
`akquant mcp` and `akquant-mcp` are the same command with the same options.
|
|
@@ -199,7 +211,7 @@ Backtest results and suggestions are AI-generated, for learning and research onl
|
|
|
199
211
|
| `search_api` / `get_api` | Look up API signatures and docs (runtime introspection, matches the installed version), including class members such as `Bar.close` and `BarBatch.missing` |
|
|
200
212
|
| `get_guide` | Strategy-writing notes: skeleton, orders, indicators, data format, market rules |
|
|
201
213
|
| `check_strategy` | Static check of a strategy file, without executing it: misspelled method names, keyword names, argument counts, and attributes that do not exist on callback arguments such as `bar` and `batch` |
|
|
202
|
-
| `prepare_data` | Prepare data: local CSV/Parquet
|
|
214
|
+
| `prepare_data` | Prepare data: local CSV/Parquet (including files saved by AKTools), synthetic |
|
|
203
215
|
| `run_backtest` | Run a backtest in a subprocess; returns core metrics, the first trades and structured errors (the failing strategy line and a fix hint) |
|
|
204
216
|
| `get_run_details` | Page through trades, orders, daily equity and logs |
|
|
205
217
|
|
|
@@ -221,4 +233,4 @@ Data cache and backtest results are stored in `<project root>/.akquant-mcp/` by
|
|
|
221
233
|
|
|
222
234
|
## Security {: #security }
|
|
223
235
|
|
|
224
|
-
This is a local development tool with **no sandbox**: `run_backtest` executes the strategy file in a subprocess, with the same trust as running `python strategy.py` yourself. Restricting paths to the project root only keeps the AI from reading other directories by mistake; it is not isolation. Only run strategies you or the assistant just wrote and reviewed; never run strategy files of unknown origin.
|
|
236
|
+
This is a local development tool with **no sandbox**: `run_backtest` executes the strategy file in a subprocess, with the same trust as running `python strategy.py` yourself. Restricting paths to the project root (data files may also be in the AKTools data directory, `.csv` and `.parquet` only) only keeps the AI from reading other directories by mistake; it is not isolation. Only run strategies you or the assistant just wrote and reviewed; never run strategy files of unknown origin.
|
|
@@ -132,7 +132,7 @@ def run_backtest(
|
|
|
132
132
|
* `trading_calendar`: List of trading days (`date` / string / `Timestamp`), default `None`. When omitted: China time zones use the built-in exchange calendar (the holiday schedule of the Chinese stock and futures exchanges, updated with each release; see `SessionResolver.builtin_calendar_range()` for its coverage), so holidays are not trading days; backtests additionally treat every date that has data as a trading day. For dates beyond the built-in coverage, and for custom session tables outside China time zones, backtests follow the data (a weekday on which no symbol has data is not a trading day), while live mode infers trading days from weekdays and warns once. `ALWAYS_OPEN` counts every day. When a calendar is given it takes precedence, and data timestamps outside the range it covers raise `ValueError`.
|
|
133
133
|
* `t_plus_one`: Enable T+1 trading rule. When omitted, the `broker_profile` setting is used (all three built-in A-share templates enable it); without a template it is False. If enabled, it forces usage of China Market Model.
|
|
134
134
|
* `slippage`: Global slippage (Default `None`, i.e. no slippage). Must be an explicit policy dict, e.g. `{"type": "percent", "value": 0.0001}` for 1bp (0.01%) percent slippage, or `{"type": "fixed", "value": 0.2}` for a fixed price offset. Bare numbers (including `0`) are no longer accepted and raise `TypeError`. To disable slippage, including overriding a `broker_profile` template, pass `{"type": "zero"}`; omitting it or passing `None` means no override (the template's slippage applies if a `broker_profile` is set, otherwise there is no slippage).
|
|
135
|
-
* `volume_limit_pct`: Max participation rate, default `None` (unlimited, same as 0). With 0.25 a single bar fills at most 25% of its volume, rounded down to whole lots; if that is less than one lot the bar fills nothing and the order stays open. An order whose remaining quantity is at most `volume × pct` still fills in one piece (this may be an odd lot, e.g. selling the last 50 shares); an IOC/FOK order whose floored cap is 0 is cancelled on that bar. **Bar volume must use the same unit as order quantity**: AKShare's Eastmoney `
|
|
135
|
+
* `volume_limit_pct`: Max participation rate, default `None` (unlimited, same as 0). With 0.25 a single bar fills at most 25% of its volume, rounded down to whole lots; if that is less than one lot the bar fills nothing and the order stays open. An order whose remaining quantity is at most `volume × pct` still fills in one piece (this may be an odd lot, e.g. selling the last 50 shares); an IOC/FOK order whose floored cap is 0 is cancelled on that bar. **Bar volume must use the same unit as order quantity**: AKShare's Eastmoney `stock_zh_a_hist_em` reports volume in lots (100 shares), multiply by 100 before enabling the limit; the Sina `stock_zh_a_hist_sina` already reports shares. The limit applies to bar matching only; tick-driven matching is not subject to it. For instruments with fractional quantities (crypto, forex), set `lot_size` (default 1), otherwise the capped quantity is floored to whole units.
|
|
136
136
|
* `warmup_period`: Strategy warmup period. Specifies the length of historical data (number of Bars) to preload for indicator calculation.
|
|
137
137
|
* `start_time` / `end_time`: Backtest start/end time. Naive strings or `Timestamp` values are interpreted in the current `timezone` before being converted to UTC for filtering.
|
|
138
138
|
* `catalog_path`: When `data` is omitted, load data from this directory using `ParquetDataCatalog` rules.
|
|
@@ -22,7 +22,7 @@ Install optional features as needed; they can be combined, e.g. `pip install "ak
|
|
|
22
22
|
|
|
23
23
|
| Extra | Contents |
|
|
24
24
|
|---|---|
|
|
25
|
-
| `mcp` | MCP server (MCP SDK
|
|
25
|
+
| `mcp` | MCP server (MCP SDK), so AI assistants can look up APIs, write strategies and run backtests; see [MCP Server](../guide/mcp.md) |
|
|
26
26
|
| `ml` | Machine learning: scikit-learn, PyTorch |
|
|
27
27
|
| `quantstats` | QuantStats performance reports |
|
|
28
28
|
| `signal-redis` | Redis Stream source for external signal ingestion |
|
|
@@ -28,7 +28,7 @@ import akshare as ak
|
|
|
28
28
|
from akquant import Strategy, run_backtest
|
|
29
29
|
|
|
30
30
|
# 1. Prepare Data (Using AKShare to get data; if needed, install it first via `uv pip install akshare`)
|
|
31
|
-
df = ak.
|
|
31
|
+
df = ak.stock_zh_a_hist_sina(symbol="sh600000", start_date="20250101", end_date="20260212")
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
# 2. Define Strategy
|
|
@@ -94,7 +94,7 @@ import pandas as pd
|
|
|
94
94
|
# 1. 下载数据 (以前复权为例)
|
|
95
95
|
# 新浪数据源,代码需带市场前缀 (sh/sz/bj); adjust="qfq" 前复权
|
|
96
96
|
# 返回英文列名 date/open/high/low/close/volume/...,成交量单位是“股”
|
|
97
|
-
df = ak.
|
|
97
|
+
df = ak.stock_zh_a_hist_sina(symbol="sz000001", start_date="20200101", end_date="20231231", adjust="qfq")
|
|
98
98
|
|
|
99
99
|
# 2. 类型转换
|
|
100
100
|
df['date'] = pd.to_datetime(df['date'])
|
|
@@ -162,14 +162,14 @@ Content-Type: application/json
|
|
|
162
162
|
* **自定义指标 (Custom Indicators)**:
|
|
163
163
|
* 展示如何同时使用 `PrecomputedIndicator(name, fn)` 的预计算模式与 `indicator_factory` 的增量模式。参考 [自定义指标指南](custom_indicator.md) 与 [60_custom_indicator_demo.py](https://github.com/akfamily/akquant/blob/main/examples/60_custom_indicator_demo.py)。
|
|
164
164
|
|
|
165
|
-
### 使用 AKShare 获取 A 股日线数据 (
|
|
165
|
+
### 使用 AKShare 获取 A 股日线数据 (stock_zh_a_hist_sina)
|
|
166
166
|
|
|
167
167
|
```python
|
|
168
168
|
import akshare as ak
|
|
169
169
|
import pandas as pd
|
|
170
170
|
from akquant import run_backtest
|
|
171
171
|
|
|
172
|
-
df = ak.
|
|
172
|
+
df = ak.stock_zh_a_hist_sina(symbol="sz000001", adjust="qfq")
|
|
173
173
|
if "date" not in df.columns:
|
|
174
174
|
df = df.reset_index().rename(columns={"index": "date"})
|
|
175
175
|
df.columns = [c.lower() for c in df.columns]
|
|
@@ -120,11 +120,11 @@ WorkBuddy、DeepSeek Harness、Codex、Claude Code 等能自己改配置的 AI
|
|
|
120
120
|
- **`--root` 换成你自己的目录**,例如 macOS 上的 `/Users/<用户名>/akquant-demo`。Windows 路径写进 JSON 时用正斜杠(如 `D:/akquant-demo`),或把 `\` 写成 `\\`。不传 `--root` 时取客户端启动服务的目录,各客户端不一样,建议总是显式传入。
|
|
121
121
|
- **已经用 pip 安装了 AKQuant**(`pip install "akquant[mcp]"`)时,可以把 `uvx --from "akquant[mcp]" akquant-mcp` 换成 `akquant-mcp`;它必须在 PATH 上,装在 uv/venv 环境里时请写可执行文件的绝对路径。
|
|
122
122
|
- **桌面应用报找不到 `uvx`**(如 `spawn uvx ENOENT`):Claude Desktop、Cursor 等不一定能读到命令行的 PATH,请把 `"command": "uvx"` 改为 `uvx` 的完整路径(Windows 上用 `where uvx` 查看,macOS 和 Linux 上用 `which uvx`)。
|
|
123
|
-
- `akquant[mcp]`
|
|
123
|
+
- `akquant[mcp]` 只包含 MCP SDK,不带 AKShare:AKQuant 的 MCP 不联网取数。真实行情由 AKTools 取回并存成文件,见[数据怎么从 AKTools 交给 AKQuant](#aktools-handoff)。
|
|
124
124
|
|
|
125
125
|
### 第一次启动很慢 {: #first-start }
|
|
126
126
|
|
|
127
|
-
第一次启动时 `uvx` 要下载 AKQuant
|
|
127
|
+
第一次启动时 `uvx` 要下载 AKQuant 等依赖(AKTools 还要下载 AKShare),可能超过客户端的等待时间,表现为连接超时或启动失败。可以先在命令行中运行一次,下载完成后再重启 AI 助手:
|
|
128
128
|
|
|
129
129
|
```bash
|
|
130
130
|
uvx --from "akquant[mcp]" akquant-mcp --help
|
|
@@ -184,13 +184,25 @@ DeepSeek Harness 在 `cordis.patch.yml` 里写两条:
|
|
|
184
184
|
args: ['--from', 'akquant[mcp]', 'akquant-mcp', '--root', '/path/to/akquant-demo']
|
|
185
185
|
```
|
|
186
186
|
|
|
187
|
+
### 数据怎么从 AKTools 交给 AKQuant {: #aktools-handoff }
|
|
188
|
+
|
|
189
|
+
两个服务不能直接互相调用,数据通过本机文件交接:
|
|
190
|
+
|
|
191
|
+
1. 助手调用 AKTools 的 `save_data`(AKTools 0.1.12 起提供,只在 stdio 方式下可用),把接口的完整数据存成 CSV。文件写在 AKTools 的数据目录,默认是用户目录下的 `.aktools/data`,可以用环境变量 `AKTOOLS_DATA_DIR` 修改。
|
|
192
|
+
2. 助手把 `save_data` 返回的文件路径和标的代码交给 AKQuant 的 `prepare_data`(`source="file"`),之后照常回测。
|
|
193
|
+
|
|
194
|
+
AKQuant 读同一个环境变量 `AKTOOLS_DATA_DIR`,未设置时同样取 `~/.aktools/data`,所以两边都用默认值时不需要任何配置。修改了这个目录时,要在两个服务的 `env` 里都设置成同一个值。
|
|
195
|
+
|
|
196
|
+
- 读取 AKTools 目录里的文件时必须传 `symbol`:文件名是“接口名加参数哈希”,不是标的代码,不传会报错。
|
|
197
|
+
- 取数时优先用新浪财经、腾讯的接口(如 `stock_zh_a_hist_sina`):成交量单位是“股”。东方财富行情接口的中文列名(开盘、最高、最低、收盘、成交量、股票代码)也能识别,但成交量单位是“手”,AKQuant 不做换算。
|
|
198
|
+
|
|
187
199
|
回测结果与改进建议由 AI 生成,仅供学习和研究,不构成投资建议。
|
|
188
200
|
|
|
189
201
|
## 命令行参数 {: #options }
|
|
190
202
|
|
|
191
203
|
| 参数 | 默认值 | 说明 |
|
|
192
204
|
|---|---|---|
|
|
193
|
-
| `--root` | 客户端启动服务的目录 |
|
|
205
|
+
| `--root` | 客户端启动服务的目录 | 项目根目录。策略文件和数据文件都必须位于这个目录内;数据文件另外允许 AKTools 的数据目录,见[数据怎么从 AKTools 交给 AKQuant](#aktools-handoff) |
|
|
194
206
|
| `--max-runs` | 50 | 保留最近多少次回测结果 |
|
|
195
207
|
|
|
196
208
|
`akquant mcp` 与 `akquant-mcp` 是同一个命令,参数相同。
|
|
@@ -202,7 +214,7 @@ DeepSeek Harness 在 `cordis.patch.yml` 里写两条:
|
|
|
202
214
|
| `search_api` / `get_api` | 查 API 签名与文档(运行时内省,与本机版本一致),包括 `Bar.close`、`BarBatch.missing` 这类类成员 |
|
|
203
215
|
| `get_guide` | 写策略要点:骨架、下单、指标、数据格式、市场规则 |
|
|
204
216
|
| `check_strategy` | 静态检查策略文件,不执行代码:拼错的方法名、参数名、实参个数,以及 `bar`、`batch` 等回调入参上不存在的属性 |
|
|
205
|
-
| `prepare_data` | 准备数据:本地 CSV/Parquet
|
|
217
|
+
| `prepare_data` | 准备数据:本地 CSV/Parquet(含 AKTools 存下的文件)、合成数据 |
|
|
206
218
|
| `run_backtest` | 在子进程中回测,返回核心指标、前几笔成交和结构化报错(出错的策略行号与修改提示) |
|
|
207
219
|
| `get_run_details` | 分页读取成交、委托、日频权益和日志 |
|
|
208
220
|
|
|
@@ -224,4 +236,4 @@ DeepSeek Harness 在 `cordis.patch.yml` 里写两条:
|
|
|
224
236
|
|
|
225
237
|
## 安全说明 {: #security }
|
|
226
238
|
|
|
227
|
-
这是本地开发工具,**不做沙箱**:`run_backtest` 在子进程中执行策略文件,信任程度与你自己运行 `python strategy.py`
|
|
239
|
+
这是本地开发工具,**不做沙箱**:`run_backtest` 在子进程中执行策略文件,信任程度与你自己运行 `python strategy.py` 相同。路径限制在项目根目录内(数据文件另外允许 AKTools 的数据目录,且只读 `.csv` 和 `.parquet`),只是为了防止 AI 误读其他目录,不是安全隔离。请只运行自己或助手刚写好、看过内容的策略,不要运行来源不明的策略文件。
|
|
@@ -380,7 +380,7 @@ import pandas as pd
|
|
|
380
380
|
# 下载 A 股历史日线数据 (平安银行),使用新浪数据源,代码需带市场前缀 sz/sh/bj
|
|
381
381
|
# adjust="qfq" 表示使用前复权数据,这在回测中非常重要
|
|
382
382
|
# 新浪接口已返回 AKQuant 需要的英文列名 (date/open/high/low/close/volume)
|
|
383
|
-
df = ak.
|
|
383
|
+
df = ak.stock_zh_a_hist_sina(symbol="sz000001", start_date="20230101", end_date="20231231", adjust="qfq")
|
|
384
384
|
|
|
385
385
|
# 格式转换:确保 date 列是 datetime 类型
|
|
386
386
|
df['date'] = pd.to_datetime(df['date'])
|
|
@@ -240,7 +240,7 @@ def run_from_checkpoint(
|
|
|
240
240
|
* `trading_calendar`: 交易日列表(`date` / 字符串 / `Timestamp`),默认 `None`。不传时:中国时区用内置的交易所日历(沪深及期货交易所的休市安排,随版本更新,覆盖范围见 `SessionResolver.builtin_calendar_range()`),节假日不算交易日;回测还会把数据里出现过行情的日期并入交易日。超出内置日历范围的日期、以及非中国时区的自定义时段表,回测以数据为准(所有标的都没有行情的工作日不算交易日),实盘按工作日推算并告警一次。`ALWAYS_OPEN` 每天都算。传了日历时以它为准,数据时刻超出所传日历覆盖范围时报 `ValueError`。
|
|
241
241
|
* `t_plus_one`: 是否启用 T+1 交易规则。不传时取 `broker_profile` 模板的设置(三个内置 A 股模板都开),没有模板时为 False。如果启用,将强制使用中国市场模型。
|
|
242
242
|
* `slippage`: 全局滑点 (默认 `None`,即不加滑点)。必须写成策略字典,例如 `{"type": "percent", "value": 0.0001}` 代表 1bp (0.01%) 的百分比滑点,或 `{"type": "fixed", "value": 0.2}` 代表固定价差。不再接受裸数字(含 `0`),传入会抛 `TypeError`。要关掉滑点(包括覆盖 `broker_profile` 模板里的滑点)传 `{"type": "zero"}`;不传或传 `None` 表示不覆盖,设了 `broker_profile` 时沿用模板的滑点,否则不加滑点。
|
|
243
|
-
* `volume_limit_pct`: 成交量限制比例,默认 `None`(不限制,等同 0)。设为 0.25 时单根 bar 最多成交该 bar 成交量的 25%,截断量按手数向下取整,不足一手则本根不成交、订单继续挂着。订单剩余量不超过 `成交量 × 比例` 时仍一次成交(可能是零股,比如卖出最后剩下的 50 股);IOC/FOK 订单若取整后的截断量为 0,当根撤销。**bar 的成交量必须与下单数量同单位**:AKShare 的东方财富接口 `
|
|
243
|
+
* `volume_limit_pct`: 成交量限制比例,默认 `None`(不限制,等同 0)。设为 0.25 时单根 bar 最多成交该 bar 成交量的 25%,截断量按手数向下取整,不足一手则本根不成交、订单继续挂着。订单剩余量不超过 `成交量 × 比例` 时仍一次成交(可能是零股,比如卖出最后剩下的 50 股);IOC/FOK 订单若取整后的截断量为 0,当根撤销。**bar 的成交量必须与下单数量同单位**:AKShare 的东方财富接口 `stock_zh_a_hist_em` 成交量单位是“手”,需先乘以 100 再开启量限;新浪接口 `stock_zh_a_hist_sina` 的单位已是“股”,无需换算。量限只作用于 bar 撮合,tick 驱动的撮合不受量限约束。数量可为小数的品种(加密货币、外汇)需设置 `lot_size`(默认 1),否则截断后的数量会向下取整为整数。
|
|
244
244
|
* `warmup_period`: 策略预热期。指定需要预加载的历史数据长度(Bar 数量),用于计算指标。
|
|
245
245
|
* `start_time` / `end_time`: 回测开始/结束时间。若传入 naive 时间字符串或 `Timestamp`,会按当前 `timezone` 解释,再转换为 UTC 参与过滤。
|
|
246
246
|
* `catalog_path`: 当 `data` 未显式传入时,可从该目录按 `ParquetDataCatalog` 规则加载数据。
|
|
@@ -22,7 +22,7 @@ pip install akquant
|
|
|
22
22
|
|
|
23
23
|
| 可选功能 | 内容 |
|
|
24
24
|
|---|---|
|
|
25
|
-
| `mcp` | MCP 服务(含 MCP SDK
|
|
25
|
+
| `mcp` | MCP 服务(含 MCP SDK),让 AI 助手查 API、写策略、跑回测,见 [MCP 服务](../guide/mcp.md) |
|
|
26
26
|
| `ml` | 机器学习:scikit-learn、PyTorch |
|
|
27
27
|
| `quantstats` | QuantStats 绩效报告 |
|
|
28
28
|
| `signal-redis` | 外部信号接入的 Redis Stream 信号源 |
|
|
@@ -28,7 +28,7 @@ import akshare as ak
|
|
|
28
28
|
from akquant import Strategy, run_backtest
|
|
29
29
|
|
|
30
30
|
# 1. 准备数据 (这里利用 AKShare 来获取数据;若尚未安装,可先执行 `uv pip install akshare`)
|
|
31
|
-
df = ak.
|
|
31
|
+
df = ak.stock_zh_a_hist_sina(symbol="sh600000", start_date="20250101", end_date="20260212")
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
# 2. 策略定义
|
|
@@ -78,11 +78,11 @@ $$ P_{adj} = P_{raw} \times \frac{P_{today}}{P_{ex-right}} $$
|
|
|
78
78
|
import akshare as ak
|
|
79
79
|
|
|
80
80
|
# 获取浦发银行 (600000) 的日线数据,前复权
|
|
81
|
-
df = ak.
|
|
81
|
+
df = ak.stock_zh_a_hist_sina(symbol="sh600000", start_date="20200101", end_date="20231231", adjust="qfq")
|
|
82
82
|
print(df.head())
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
新浪接口返回英文列名,成交量单位是“股”。东方财富接口 `
|
|
85
|
+
新浪接口返回英文列名,成交量单位是“股”。东方财富接口 `stock_zh_a_hist_em` 返回中文列名、成交量单位是“手”,且近期常被服务端断开连接,本书示例统一使用新浪源。
|
|
86
86
|
|
|
87
87
|
## 3.3 数据治理与 ETL 流程
|
|
88
88
|
|
|
@@ -205,7 +205,7 @@ ORDER BY (symbol, datetime);
|
|
|
205
205
|
|
|
206
206
|
**官方文档与工具**
|
|
207
207
|
|
|
208
|
-
- [AKShare 官方文档](https://akshare.akfamily.xyz/) —— 本章 `
|
|
208
|
+
- [AKShare 官方文档](https://akshare.akfamily.xyz/) —— 本章 `stock_zh_a_hist_sina` 等行情接口与复权参数 `adjust` 的权威说明,对照 3.1 与 3.2。
|
|
209
209
|
- [Apache Parquet 官方文档](https://parquet.apache.org/docs/) —— 列式存储格式说明,对照本章 3.3.2(数据存储)。
|
|
210
210
|
- [ClickHouse 官方文档](https://clickhouse.com/docs) —— 时序数据库建表与 MergeTree 引擎说明,对照本章 3.4.2。
|
|
211
211
|
- [pandas 官方文档:时间序列与重采样](https://pandas.pydata.org/docs/user_guide/timeseries.html) —— 频率转换与时间戳对齐参考,对照本章 3.2.2。
|
|
@@ -63,7 +63,7 @@ catalog = ParquetDataCatalog("./data_catalog")
|
|
|
63
63
|
|
|
64
64
|
symbols = ["sh600000", "sz300750"]
|
|
65
65
|
for symbol in symbols:
|
|
66
|
-
df = ak.
|
|
66
|
+
df = ak.stock_zh_a_hist_sina(
|
|
67
67
|
symbol=symbol,
|
|
68
68
|
start_date="20230101",
|
|
69
69
|
end_date="20230601",
|
|
@@ -286,7 +286,7 @@ engine.run("Rank(Ts_Mean(Close, 5))")
|
|
|
286
286
|
**官方文档与工具**
|
|
287
287
|
|
|
288
288
|
- [Polars 官方文档](https://docs.pola.rs/) —— 表达式(Expression)与惰性执行(Lazy API)是本章 14.2「表达式模式」与 14.8「Parser/Planner/Executor」机制的工程参照,其谓词下推、投影下推等查询优化思想正对应本章 14.6 关于嵌套表达式性能取舍的讨论。
|
|
289
|
-
- [AKShare 官方文档](https://akshare.akfamily.xyz/) —— 本章 14.3.1 准备最小数据所用行情接口(如 `
|
|
289
|
+
- [AKShare 官方文档](https://akshare.akfamily.xyz/) —— 本章 14.3.1 准备最小数据所用行情接口(如 `stock_zh_a_hist_sina`)的权威来源。
|
|
290
290
|
- [AKQuant 因子表达式引擎指南](../guide/factor.md) —— 算子清单、分区语义与排障速查的完整参考,配合本章 14.4「写作三板斧」与 14.6「调试与性能」使用。
|
|
291
291
|
|
|
292
292
|
**本书相关**
|
|
@@ -5,15 +5,15 @@ import akshare as ak
|
|
|
5
5
|
import pandas as pd
|
|
6
6
|
from akquant import Bar, Strategy
|
|
7
7
|
|
|
8
|
-
df_1 = ak.
|
|
8
|
+
df_1 = ak.stock_zh_a_hist_sina(
|
|
9
9
|
symbol="sh600000", start_date="20000101", end_date="20261231"
|
|
10
10
|
)
|
|
11
11
|
df_1["symbol"] = "600000"
|
|
12
|
-
df_2 = ak.
|
|
12
|
+
df_2 = ak.stock_zh_a_hist_sina(
|
|
13
13
|
symbol="sh600004", start_date="20000101", end_date="20261231"
|
|
14
14
|
)
|
|
15
15
|
df_2["symbol"] = "600004"
|
|
16
|
-
df_3 = ak.
|
|
16
|
+
df_3 = ak.stock_zh_a_hist_sina(
|
|
17
17
|
symbol="sh600006", start_date="20000101", end_date="20261231"
|
|
18
18
|
)
|
|
19
19
|
df_3["symbol"] = "600006"
|
|
@@ -54,7 +54,9 @@ if __name__ == "__main__":
|
|
|
54
54
|
END_DATE = "20261231"
|
|
55
55
|
INITIAL_CASH = 100_000.0
|
|
56
56
|
|
|
57
|
-
df = ak.
|
|
57
|
+
df = ak.stock_zh_a_hist_sina(
|
|
58
|
+
symbol=SYMBOL, start_date=START_DATE, end_date=END_DATE
|
|
59
|
+
)
|
|
58
60
|
df["symbol"] = SYMBOL
|
|
59
61
|
|
|
60
62
|
# from akquant.config import BacktestConfig, StrategyConfig, RiskConfig
|
|
@@ -82,7 +82,7 @@ if __name__ == "__main__":
|
|
|
82
82
|
print("Generating synthetic minute data for demonstration...")
|
|
83
83
|
|
|
84
84
|
# 1. Get Daily Data first
|
|
85
|
-
daily_df = ak.
|
|
85
|
+
daily_df = ak.stock_zh_a_hist_sina(
|
|
86
86
|
symbol=SYMBOL, start_date="20230101", end_date="20230131"
|
|
87
87
|
)
|
|
88
88
|
|
|
@@ -48,7 +48,7 @@ class AdjSignal(Strategy):
|
|
|
48
48
|
# ----------------------- 数据准备:AKShare -----------------------
|
|
49
49
|
|
|
50
50
|
# 1) 未复权日线(真实 close),用于撮合和估值
|
|
51
|
-
df_raw = ak.
|
|
51
|
+
df_raw = ak.stock_zh_a_hist_sina(symbol="sz000001", start_date="20200101")
|
|
52
52
|
if "date" not in df_raw.columns:
|
|
53
53
|
# 部分接口会把日期放在索引上,这里统一还原为列
|
|
54
54
|
df_raw = df_raw.reset_index().rename(columns={"index": "date"})
|
|
@@ -65,7 +65,7 @@ df_raw["symbol"] = "000001"
|
|
|
65
65
|
df_raw = df_raw[["date", "open", "high", "low", "close", "volume", "symbol"]]
|
|
66
66
|
|
|
67
67
|
# 2) 前复权日线(用于信号),重命名为 adj_close
|
|
68
|
-
df_adj = ak.
|
|
68
|
+
df_adj = ak.stock_zh_a_hist_sina(symbol="sz000001", adjust="qfq", start_date="20200101")
|
|
69
69
|
if "date" not in df_adj.columns:
|
|
70
70
|
df_adj = df_adj.reset_index().rename(columns={"index": "date"})
|
|
71
71
|
df_adj.columns = [c.lower() for c in df_adj.columns]
|
|
@@ -4,7 +4,9 @@ from akquant import Strategy
|
|
|
4
4
|
|
|
5
5
|
# 1. 准备数据
|
|
6
6
|
# 使用 akshare 获取 A 股历史数据 (需安装: pip install akshare)
|
|
7
|
-
df = ak.
|
|
7
|
+
df = ak.stock_zh_a_hist_sina(
|
|
8
|
+
symbol="sh600000", start_date="20250212", end_date="20260212"
|
|
9
|
+
)
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
class MyStrategy(Strategy):
|
|
@@ -33,7 +33,7 @@ def setup_data_with_akshare(catalog_path: Path) -> ParquetDataCatalog:
|
|
|
33
33
|
|
|
34
34
|
try:
|
|
35
35
|
# Fetch daily data (hfq = backward adjusted)
|
|
36
|
-
df = ak.
|
|
36
|
+
df = ak.stock_zh_a_hist_sina(
|
|
37
37
|
symbol=symbol, start_date=start_date, end_date=end_date, adjust="hfq"
|
|
38
38
|
)
|
|
39
39
|
|
|
@@ -15,8 +15,9 @@ We will:
|
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
import akquant # Import main package
|
|
18
|
+
import akshare as ak
|
|
18
19
|
from akquant import AssetType, Bar, Instrument, Strategy
|
|
19
|
-
from akquant.utils import
|
|
20
|
+
from akquant.utils import load_bar_from_df
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
class AggressiveBuyerStrategy(Strategy):
|
|
@@ -74,10 +75,15 @@ def main() -> None:
|
|
|
74
75
|
start_date = "20231001"
|
|
75
76
|
end_date = "20231101"
|
|
76
77
|
|
|
77
|
-
#
|
|
78
|
-
|
|
78
|
+
# The Sina interface needs a market prefix: sh for 6xxxxx, sz otherwise
|
|
79
|
+
ak_symbol = f"sh{symbol}" if symbol.startswith("6") else f"sz{symbol}"
|
|
79
80
|
try:
|
|
80
|
-
df =
|
|
81
|
+
df = ak.stock_zh_a_hist_sina(
|
|
82
|
+
symbol=ak_symbol,
|
|
83
|
+
start_date=start_date,
|
|
84
|
+
end_date=end_date,
|
|
85
|
+
adjust="qfq",
|
|
86
|
+
)
|
|
81
87
|
|
|
82
88
|
# Convert to Bars
|
|
83
89
|
# load_bar_from_df now automatically fixes timestamp scaling issues
|
|
@@ -145,7 +145,7 @@ def get_real_data(symbol: str, start_date: str, end_date: str) -> List[Bar]:
|
|
|
145
145
|
s_date = start_date.replace("-", "")
|
|
146
146
|
e_date = end_date.replace("-", "")
|
|
147
147
|
|
|
148
|
-
df = ak.
|
|
148
|
+
df = ak.stock_zh_a_hist_sina(symbol=symbol, start_date=s_date, end_date=e_date)
|
|
149
149
|
if df.empty:
|
|
150
150
|
print(f"Warning: No data found for {symbol}")
|
|
151
151
|
return []
|
|
@@ -161,7 +161,7 @@ def get_real_data(symbol: str, start_date: str, end_date: str) -> List[Bar]:
|
|
|
161
161
|
|
|
162
162
|
for _, row in df.iterrows():
|
|
163
163
|
# akshare date is already datetime.date or string
|
|
164
|
-
#
|
|
164
|
+
# stock_zh_a_hist_sina returns 'date' column as object (string) or datetime
|
|
165
165
|
# Bar 的时间戳是 UTC 纳秒: 日期须先按交易所时区本地化, 否则本地 0 点
|
|
166
166
|
# 会被当作 UTC 0 点(北京时间 08:00, 闭市)。只有日期的 bar 由
|
|
167
167
|
# run_backtest 改写到该交易日收盘(15:00)。
|
|
@@ -9,15 +9,15 @@ from akquant.config import BacktestConfig, RiskConfig, StrategyConfig
|
|
|
9
9
|
|
|
10
10
|
def load_data() -> dict[str, pd.DataFrame]:
|
|
11
11
|
"""Load multi-symbol daily bars from AKShare."""
|
|
12
|
-
df_1 = ak.
|
|
12
|
+
df_1 = ak.stock_zh_a_hist_sina(
|
|
13
13
|
symbol="sh600000", start_date="20000101", end_date="20261231"
|
|
14
14
|
)
|
|
15
15
|
df_1["symbol"] = "600000"
|
|
16
|
-
df_2 = ak.
|
|
16
|
+
df_2 = ak.stock_zh_a_hist_sina(
|
|
17
17
|
symbol="sh600004", start_date="20000101", end_date="20261231"
|
|
18
18
|
)
|
|
19
19
|
df_2["symbol"] = "600004"
|
|
20
|
-
df_3 = ak.
|
|
20
|
+
df_3 = ak.stock_zh_a_hist_sina(
|
|
21
21
|
symbol="sh600006", start_date="20000101", end_date="20261231"
|
|
22
22
|
)
|
|
23
23
|
df_3["symbol"] = "600006"
|
|
@@ -4,11 +4,11 @@ import argparse
|
|
|
4
4
|
from typing import cast
|
|
5
5
|
|
|
6
6
|
import akquant as aq
|
|
7
|
+
import akshare as ak
|
|
7
8
|
import numpy as np
|
|
8
9
|
import pandas as pd
|
|
9
10
|
from akquant import Bar, Strategy
|
|
10
11
|
from akquant import talib as ta
|
|
11
|
-
from akquant.utils import fetch_akshare_symbol
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def a_share_minute_index(start: str, periods: int) -> pd.DatetimeIndex:
|
|
@@ -60,7 +60,7 @@ def build_akshare_data(
|
|
|
60
60
|
adjust: str,
|
|
61
61
|
) -> pd.DataFrame:
|
|
62
62
|
"""Build AKShare daily OHLCV data for the playbook demo."""
|
|
63
|
-
df =
|
|
63
|
+
df = ak.stock_zh_a_hist_sina(
|
|
64
64
|
symbol=symbol,
|
|
65
65
|
start_date=start_date,
|
|
66
66
|
end_date=end_date,
|
|
@@ -172,7 +172,7 @@ def main() -> None:
|
|
|
172
172
|
min_commission=0.0,
|
|
173
173
|
timezone="Asia/Shanghai",
|
|
174
174
|
# 传入真实沪深交易日历: 不传时引擎按工作日推算, 节假日会被当成交易日
|
|
175
|
-
trading_calendar=ak.
|
|
175
|
+
trading_calendar=ak.calendar_trade_date_hist_sina()["trade_date"],
|
|
176
176
|
show_progress=False,
|
|
177
177
|
)
|
|
178
178
|
|
|
@@ -6,7 +6,7 @@ A股趋势跟踪策略示例 (Stock Trend Following Strategy).
|
|
|
6
6
|
本示例展示如何使用 AKShare 获取 A 股历史数据,并运行一个简单的双均线策略。
|
|
7
7
|
|
|
8
8
|
教学目标 (Learning Objectives):
|
|
9
|
-
1. 使用 `ak.
|
|
9
|
+
1. 使用 `ak.stock_zh_a_hist_sina` 获取特定股票的历史数据。
|
|
10
10
|
2. 使用 AKQuant 内置的 `self.get_history` 接口获取历史数据。
|
|
11
11
|
3. 实现双均线策略逻辑。
|
|
12
12
|
|
|
@@ -86,10 +86,10 @@ class DualMovingAverageStrategy(Strategy):
|
|
|
86
86
|
if __name__ == "__main__":
|
|
87
87
|
# 1. 准备数据
|
|
88
88
|
# 以平安银行 (sz000001) 为例
|
|
89
|
-
# 注意:ak.
|
|
89
|
+
# 注意:ak.stock_zh_a_hist_sina 需要带前缀 sh 或 sz
|
|
90
90
|
symbol = "sz000001"
|
|
91
91
|
|
|
92
|
-
df = ak.
|
|
92
|
+
df = ak.stock_zh_a_hist_sina(
|
|
93
93
|
symbol=symbol, start_date="20220101", end_date="20231231", adjust="qfq"
|
|
94
94
|
)
|
|
95
95
|
|