aether-quant 0.9.0__tar.gz → 0.10.0__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.
- {aether_quant-0.9.0 → aether_quant-0.10.0}/.github/workflows/ci.yml +5 -2
- {aether_quant-0.9.0 → aether_quant-0.10.0}/.gitignore +19 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/PKG-INFO +1 -1
- {aether_quant-0.9.0 → aether_quant-0.10.0}/README.md +60 -46
- {aether_quant-0.9.0 → aether_quant-0.10.0}/aether_quant.egg-info/PKG-INFO +1 -1
- {aether_quant-0.9.0 → aether_quant-0.10.0}/aether_quant.egg-info/SOURCES.txt +11 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/aether_quant.egg-info/scm_file_list.json +298 -287
- aether_quant-0.10.0/aether_quant.egg-info/scm_version.json +8 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/aq_cli.py +96 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/config.json +35 -10
- aether_quant-0.10.0/cpp_inference_ext/README.md +60 -0
- aether_quant-0.10.0/cpp_inference_ext/pyproject.toml +3 -0
- aether_quant-0.10.0/cpp_inference_ext/setup.py +31 -0
- aether_quant-0.10.0/cpp_inference_ext/src/linear_batched.cpp +62 -0
- aether_quant-0.10.0/data/reference/futures_contract_specs.json +45 -0
- aether_quant-0.10.0/data/reference/sector_mapping.json +32 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/development/Changelog.md +415 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/development/Problems.md +864 -88
- {aether_quant-0.9.0 → aether_quant-0.10.0}/development/v2_architecture.md +17 -8
- aether_quant-0.10.0/execution/README.md +339 -0
- aether_quant-0.10.0/execution/__init__.py +54 -0
- aether_quant-0.10.0/execution/order_gate.py +227 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/experience/simulated_portfolio.py +27 -2
- {aether_quant-0.9.0 → aether_quant-0.10.0}/features/bond_features.py +10 -1
- {aether_quant-0.9.0 → aether_quant-0.10.0}/inference/README.md +51 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/inference/__init__.py +13 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/inference/exported_model.py +233 -14
- aether_quant-0.10.0/inference/parallel_inference.py +138 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/lean.json +1 -1
- {aether_quant-0.9.0 → aether_quant-0.10.0}/liquidity/README.md +9 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/main.py +877 -112
- {aether_quant-0.9.0 → aether_quant-0.10.0}/portfolio/README.md +39 -20
- {aether_quant-0.9.0 → aether_quant-0.10.0}/portfolio/book_construction.py +95 -45
- aether_quant-0.10.0/portfolio/options_strategy.py +349 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/requirements/requirements-dev.txt +10 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/risk/README.md +65 -2
- {aether_quant-0.9.0 → aether_quant-0.10.0}/risk/asset_class_router.py +114 -5
- aether_quant-0.10.0/scripts/README.md +42 -0
- aether_quant-0.10.0/scripts/profile_inference.py +327 -0
- aether_quant-0.10.0/scripts/profile_subsystems.py +409 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_aq_cli.py +250 -0
- aether_quant-0.10.0/tests/test_asset_class_router.py +235 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_exported_model.py +251 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_lean_backtest_ml_coverage.py +85 -14
- aether_quant-0.10.0/tests/test_options_strategy.py +418 -0
- aether_quant-0.10.0/tests/test_order_gate.py +317 -0
- aether_quant-0.10.0/tests/test_parallel_inference.py +256 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_portfolio_book_construction.py +111 -0
- aether_quant-0.10.0/tests/test_profile_inference.py +134 -0
- aether_quant-0.10.0/tests/test_profile_subsystems.py +83 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_simulated_portfolio.py +64 -0
- aether_quant-0.9.0/aether_quant.egg-info/scm_version.json +0 -8
- aether_quant-0.9.0/execution/README.md +0 -109
- aether_quant-0.9.0/execution/__init__.py +0 -28
- aether_quant-0.9.0/execution/order_gate.py +0 -75
- aether_quant-0.9.0/portfolio/options_strategy.py +0 -157
- aether_quant-0.9.0/scripts/README.md +0 -32
- aether_quant-0.9.0/scripts/profile_inference.py +0 -165
- aether_quant-0.9.0/tests/test_asset_class_router.py +0 -117
- aether_quant-0.9.0/tests/test_options_strategy.py +0 -201
- aether_quant-0.9.0/tests/test_order_gate.py +0 -124
- {aether_quant-0.9.0 → aether_quant-0.10.0}/.dockerignore +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/.env.compose.example +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/.env.live.example +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/.gitattributes +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/.github/workflows/release.yml +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/Dockerfile +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/Dockerfile.retraining_worker +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/Dockerfile.workers +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/LICENSE +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/aether_quant.egg-info/dependency_links.txt +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/aether_quant.egg-info/entry_points.txt +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/aether_quant.egg-info/top_level.txt +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/analyzer/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/analyzer/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/analyzer/market_analyzer.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/backtests/.gitkeep +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data/alternative/estimize/consensus/aapl/.keep +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data/alternative/estimize/estimate/.keep +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data/alternative/estimize/release/.keep +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data/alternative/sec/aapl/.keep +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data/alternative/trading-economics/.keep +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data/alternative/trading-economics/calendar/.keep +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data/alternative/trading-economics/earnings/.keep +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data/alternative/trading-economics/indicator/.keep +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data_pipeline/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data_pipeline/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data_pipeline/fetch.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data_pipeline/fred_backfill.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data_pipeline/ib_backfill.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data_pipeline/v2_manifest.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/data_pipeline/yfinance_backfill.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/development/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/development/backtest_equity_chart.png +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/development/infrastructure.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/development/logo.png +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/docker-compose.yml +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/execution/config_cache.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/execution/live_credentials.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/execution/live_credentials_io.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/execution/paper_readiness.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/execution/paper_readiness_io.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/execution/paper_readiness_report.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/execution/paper_readiness_scheduler.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/execution/runtime_config_io.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/experience/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/experience/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/experience/observation_metrics.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/experience/postgres_worker.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/experience/redis_queue.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/experts/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/experts/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/experts/expert_datasets.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/features/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/features/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/features/derivatives_macro_features.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/features/macro_features.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/features/options_greeks.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/features/technical_indicators.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/generate_backtest_report.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/liquidity/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/liquidity/market_liquidity.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/gating_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/gating_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/gating_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/multitask_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/multitask_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/multitask_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/sequence_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/sequence_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/sequence_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/gating-only-05c572c8-9566-4152-805c-fa57142a3f8c/gating_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/gating-only-05c572c8-9566-4152-805c-fa57142a3f8c/gating_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/gating-only-05c572c8-9566-4152-805c-fa57142a3f8c/gating_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/gating-only-0cb50d98-39c9-4cde-bcdd-c174bf126426/gating_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/gating-only-0cb50d98-39c9-4cde-bcdd-c174bf126426/gating_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/gating-only-0cb50d98-39c9-4cde-bcdd-c174bf126426/gating_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/gating-only-26218402-34d9-4a0a-add8-ee5d50dd0459/gating_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/gating-only-26218402-34d9-4a0a-add8-ee5d50dd0459/gating_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/gating-only-26218402-34d9-4a0a-add8-ee5d50dd0459/gating_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/multitask-only-8c59799d-c7f1-40be-9c76-8f5eefdac6d9/multitask_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/multitask-only-8c59799d-c7f1-40be-9c76-8f5eefdac6d9/multitask_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/multitask-only-8c59799d-c7f1-40be-9c76-8f5eefdac6d9/multitask_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/multitask-only-f5708084-512b-4484-a47b-0720f9c1460c/multitask_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/multitask-only-f5708084-512b-4484-a47b-0720f9c1460c/multitask_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/multitask-only-f5708084-512b-4484-a47b-0720f9c1460c/multitask_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/sequence-only-d649549b-9527-4e55-b61e-cd1e26cf8ca6/sequence_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/sequence-only-d649549b-9527-4e55-b61e-cd1e26cf8ca6/sequence_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/sequence-only-d649549b-9527-4e55-b61e-cd1e26cf8ca6/sequence_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage123-1783709428/gating_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage123-1783709428/gating_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage123-1783709428/gating_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage123-1783709428/multitask_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage123-1783709428/multitask_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage123-1783709428/multitask_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage4-1783711025/gating_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage4-1783711025/gating_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage4-1783711025/gating_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage4-1783711025/multitask_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage4-1783711025/multitask_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage4-1783711025/multitask_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage5-1783715333/sequence_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage5-1783715333/sequence_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/stage5-1783715333/sequence_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/v1/multitask_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/v1/multitask_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/v1/multitask_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/v1/sequence_feature_schema.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/v1/sequence_model.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/ml/versions/v1/sequence_training_metrics.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/moe/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/moe/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/moe/gating.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/monitoring/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/monitoring/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/monitoring/api_server.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/monitoring/assets_status.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/monitoring/neural_network_state.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/notifications/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/notifications/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/notifications/postgres_telegram.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/notifications/telegram_alerts.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/notifications/telegram_client.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/notifications/telegram_worker.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/performance/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/performance/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/performance/postgres_triggers.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/performance/rank_ic_monitor.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/performance/trigger_worker.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/performance/triggers.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/portfolio/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/pyproject.toml +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/regime/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/regime/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/regime/market_regime.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/requirements/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/requirements/requirements-retraining-worker.txt +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/requirements/requirements-runtime.txt +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/requirements/requirements-workers.txt +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/requirements/requirements.txt +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/retraining/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/retraining/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/retraining/artifacts.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/retraining/backtest_gate.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/retraining/lean_backtest.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/retraining/orchestrator.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/retraining/planning.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/retraining/postgres_registry.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/retraining/status_export.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/retraining/validation_gate.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/retraining/vault_client.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/retraining/vault_commands.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/retraining/worker.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/risk/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/risk/futures_risk.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/risk/manual_override.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/risk/position_sizing.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/risk_controls.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/setup.cfg +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_assets_status.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_backtest_gate.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_bond_features.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_config_cache.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_derivatives_macro_features.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_experience_queue.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_expert_datasets.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_expert_models.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_fetch.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_fred_backfill.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_futures_risk.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_gating_network.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_generate_backtest_report.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_ib_backfill.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_lean_backtest.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_learned_topology.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_live_credentials.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_live_credentials_io.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_macro_features.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_manual_override.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_market_analyzer.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_market_liquidity.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_market_regime.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_market_topology.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_neural_network_state.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_observation_metrics.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_options_greeks.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_paper_readiness.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_paper_readiness_io.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_paper_readiness_report.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_paper_readiness_scheduler.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_position_sizing.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_postgres_telegram.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_postgres_triggers.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_postgres_worker.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_rank_ic_monitor.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_retraining_artifacts.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_retraining_orchestrator.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_retraining_planning.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_retraining_postgres_registry.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_retraining_worker.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_risk_controls.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_runtime_config_io.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_status_export.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_technical_indicators.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_telegram_alerts.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_telegram_client.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_telegram_worker.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_asset_class_context_features.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_bond_features.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_cross_sectional_features.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_derivatives_macro_features.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_gating.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_indicators.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_macro_features.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_multitask.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_multitask_architecture.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_pipeline.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_ranking_validation.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_sequence.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_sequence_architecture.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_topology.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_train_walk_forward_windows.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_trigger_worker.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_triggers.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_v2_pipeline_manifest.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_validation_gate.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_vault_client.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_vault_commands.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/tests/test_yfinance_backfill.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/topology/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/topology/__init__.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/topology/learned_topology.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/topology/market_topology.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/train.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/train_gating.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/train_multitask.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/train_sequence.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/train_topology.py +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/visualization/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/.gitignore +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/.oxlintrc.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/README.md +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/index.html +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/overview_v2_12.png +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/package-lock.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/package.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/public/favicon.svg +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/public/icons.svg +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/risk_v2_12.png +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/App.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/api/client.ts +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/api/hooks.ts +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/heatmap/AssetHeatmap.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/layout/AppShell.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/layout/Panel.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/monitoring/AssetsStatusPanel.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/monitoring/CountTable.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/monitoring/MonitoringFeeds.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/monitoring/ObservationPanel.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/monitoring/PaperReadinessPanel.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/monitoring/PerformanceTriggersPanel.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/monitoring/RawStateViewer.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/monitoring/RetrainingStatusPanel.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/neuralnet/NeuralNetworkScene3D.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/neuralnet/NeuralNetworkStatsPanel.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/risk/AssetSizingTable.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/risk/DerivativesMacroPanel.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/risk/LiquidityTable.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/risk/RiskBar.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/risk/RiskCore.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/risk/StrategyRiskCards.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/scene3d/Scene3D.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/scorecards/Scorecards.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/signals/Badge.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/signals/PositionsList.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/signals/SignalBoard.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/topology/ClusterList.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/topology/TopologyLearningPanel.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/topology/TopologyScene3D.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/tracing/AssetPerformancePanel.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/tracing/BacktestEquityPanel.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/tracing/DivergingBarChart.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/tracing/LineChart.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/tracing/MetricsSnapshotPanel.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/components/tracing/ObservationEquityPanel.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/index.css +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/lib/downsample.ts +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/lib/format.ts +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/main.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/pages/NeuralNetworkPage.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/pages/Overview.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/pages/RiskPage.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/pages/TopologyPage.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/pages/TracingPage.tsx +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/types/state.ts +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/src/types/tracing.ts +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/tsconfig.app.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/tsconfig.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/tsconfig.node.json +0 -0
- {aether_quant-0.9.0 → aether_quant-0.10.0}/webui/vite.config.ts +0 -0
|
@@ -20,8 +20,11 @@ jobs:
|
|
|
20
20
|
|
|
21
21
|
- name: Run tests
|
|
22
22
|
run: pytest
|
|
23
|
-
# tests/test_lean_backtest_ml_coverage.py self-skips:
|
|
24
|
-
#
|
|
23
|
+
# tests/test_lean_backtest_ml_coverage.py self-skips: this runner
|
|
24
|
+
# does have the `lean` binary (installed via requirements-dev.txt),
|
|
25
|
+
# but not a usable local Lean Data folder (data/** is gitignored -
|
|
26
|
+
# see .gitignore) that a real `lean backtest .` needs just to boot,
|
|
27
|
+
# regardless of universe/config. See development/Problems.md#10.
|
|
25
28
|
|
|
26
29
|
webui:
|
|
27
30
|
runs-on: ubuntu-latest
|
|
@@ -43,6 +43,14 @@ data/**
|
|
|
43
43
|
!data/**/.keep
|
|
44
44
|
!data/**/.gitkeep
|
|
45
45
|
|
|
46
|
+
# Exception: small, hand-authored reference/config JSON files that this
|
|
47
|
+
# codebase documents as "checked in" and reads at runtime/test time (not
|
|
48
|
+
# bulk market data) - see tests/test_futures_risk.py, tests/test_ib_backfill.py,
|
|
49
|
+
# tests/test_train_cross_sectional_features.py, and development/Problems.md#10.
|
|
50
|
+
# The blanket data/** rule above silently excluded these from every fresh
|
|
51
|
+
# clone (including CI), which is why the tests reading them failed there.
|
|
52
|
+
!data/reference/*.json
|
|
53
|
+
|
|
46
54
|
# Lean object store / local runtime output
|
|
47
55
|
storage/
|
|
48
56
|
objectstore/
|
|
@@ -100,3 +108,14 @@ webui/dist/
|
|
|
100
108
|
|
|
101
109
|
# scripts/profile_inference.py's pstats dump - regenerable output, not source
|
|
102
110
|
scripts/profile_inference_output*.txt
|
|
111
|
+
scripts/profile_subsystems_output*.txt
|
|
112
|
+
|
|
113
|
+
# cpp_inference_ext/'s compiled build artifacts - regenerable via
|
|
114
|
+
# `pip install -e cpp_inference_ext/`, never source. The .pyd itself is
|
|
115
|
+
# also gitignored (never a hard dependency - the whole point is that
|
|
116
|
+
# most checkouts run without it, falling back to NumPy).
|
|
117
|
+
cpp_inference_ext/build/
|
|
118
|
+
cpp_inference_ext/*.egg-info/
|
|
119
|
+
cpp_inference_ext/*.pyd
|
|
120
|
+
cpp_inference_ext/*.so
|
|
121
|
+
cpp_inference_ext/install_log*.txt
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<p align="center">
|
|
12
12
|
<img src="https://img.shields.io/badge/python-3.10%2B-FF8C00?style=flat-square&labelColor=1A1A1A&logo=python&logoColor=white" alt="Python 3.10+">
|
|
13
13
|
<img src="https://img.shields.io/badge/%F0%9F%93%84%20license-PolyForm%20Noncommercial%201.0.0-8B5CF6?style=flat-square&labelColor=1A1A1A" alt="License: PolyForm Noncommercial 1.0.0">
|
|
14
|
-
<!-- AQ:TEST_BADGE_START --><img src="https://img.shields.io/badge/tests-
|
|
14
|
+
<!-- AQ:TEST_BADGE_START --><img src="https://img.shields.io/badge/tests-1304%2F1304%20passing-brightgreen?style=flat-square&labelColor=1A1A1A" alt="1304 of 1304 tests passing"><!-- AQ:TEST_BADGE_END -->
|
|
15
15
|
<img src="https://img.shields.io/pypi/v/aether-quant?style=flat-square&labelColor=1A1A1A&color=FF8C00&logo=pypi&logoColor=white" alt="PyPI version">
|
|
16
16
|
<img src="https://img.shields.io/badge/docker-ghcr.io%2Faether--quant-2496ED?style=flat-square&labelColor=1A1A1A&logo=docker&logoColor=white" alt="Docker image on GHCR">
|
|
17
17
|
</p>
|
|
@@ -60,11 +60,10 @@ features) but remain **data-empty until an Interactive Brokers key is
|
|
|
60
60
|
connected** (`phase_v2.ib.enabled` — see `aq ib status`/`aq assets
|
|
61
61
|
status`). Remaining, still-open items:
|
|
62
62
|
|
|
63
|
-
- **
|
|
64
|
-
- **
|
|
65
|
-
-
|
|
66
|
-
- **
|
|
67
|
-
- **Disabling an asset class doesn't liquidate existing positions in it** — it only stops opening/managing new ones (`aq config set phase_v2.*.enabled`).
|
|
63
|
+
- **Nothing in this repo has been run against a real Lean backtest yet** — verified only via unit tests and Lean's own type stubs, not a real Lean runtime. Run one before trusting any of this in paper trading (see "run it yourself" below); in particular: **real limit orders** (`phase_v2.limit_orders`, off by default) rest on unverified Lean API naming assumptions (PascalCase method/enum casing, `OrderStatus.Filled`, `on_order_event` dispatch — see `execution/README.md`'s "Real limit orders" section for the full prioritized list), and the **2-leg vertical options spread** (`phase_v2.options_risk.spread_strategy: "vertical"`, `development/Problems.md` #38 — single-leg remains the default; straddles/strangles/iron condors/butterflies are still not implemented at all) has the largest verification list of any feature this session — zero prior combo-order usage in this codebase before this pass (see `risk/README.md`'s verification list).
|
|
64
|
+
- **IB is unverified end-to-end** — futures margin uses a static reference file rather than live IB margin, and the IB connection itself has never been tested against a real Gateway (`aq ib status`/`aq assets status` report readiness only, not a live-tested connection).
|
|
65
|
+
- **`main.py::_build_model_input()`'s own feature-build cost (~15 `self.*` state reads) is still unmeasured** — `aq profile` now covers regime/topology/liquidity/gating/analyzer and the pure indicator primitives it calls (`--regime`/`--topology`/`--liquidity`/`--gating`/`--analyzer`/`--indicators`), but not the bound method itself; found in the process that `build_market_topology()`'s per-bar cost is comparable to or larger than the entire per-symbol inference total across the whole universe (see `development/Problems.md` #36).
|
|
66
|
+
- **Inference tail latency (p99 routinely 3-5x the p50) is investigated but not fixed** — `aq profile --bucket-report`/`--no-gc` (`development/Problems.md` #37) ruled out a warmup effect and found real, reproduced evidence that GC pauses materially drive worst-case (max) latency specifically. `gc.freeze()` after model load is a documented candidate fix, deliberately not implemented — it needs real-backtest validation of its interaction with Lean's own GC boundary that this pass doesn't have.
|
|
68
67
|
|
|
69
68
|
## Table of Contents
|
|
70
69
|
|
|
@@ -83,6 +82,7 @@ status`). Remaining, still-open items:
|
|
|
83
82
|
- [`aq train`](#aq-train)
|
|
84
83
|
- [`aq test`](#aq-test)
|
|
85
84
|
- [`aq backtest`](#aq-backtest)
|
|
85
|
+
- [`aq profile`](#aq-profile)
|
|
86
86
|
- [`aq report`](#aq-report)
|
|
87
87
|
- [`aq api`](#aq-api)
|
|
88
88
|
- [`aq webui`](#aq-webui)
|
|
@@ -450,6 +450,7 @@ aether-quant/
|
|
|
450
450
|
├── risk/ # Dynamic position sizing, leverage, drawdown controls
|
|
451
451
|
├── execution/ # Order gating, paper/live broker readiness, config caching
|
|
452
452
|
├── inference/ # Vectorized neural-network forward-pass interpreter
|
|
453
|
+
├── cpp_inference_ext/ # Optional C++/pybind11 accelerator (builds the "cpp_inference" module)
|
|
453
454
|
├── experience/ # Redis -> PostgreSQL observation/decision history pipeline
|
|
454
455
|
├── performance/ # Performance trigger system (drawdown, Sharpe, regime-shift, ...)
|
|
455
456
|
├── retraining/ # Controlled retraining: plan/train/validate/backtest/promote
|
|
@@ -494,6 +495,7 @@ and how it's wired in — this table is the index.
|
|
|
494
495
|
| `experts/` | Bullish, bearish, sideways, and volatility expert models | [README](experts/README.md) |
|
|
495
496
|
| `features/` | Shared feature-computation functions, called from both `train.py` and `main.py` for train/inference parity | [README](features/README.md) |
|
|
496
497
|
| `inference/` | Vectorized forward-pass interpreter for the exported neural networks | [README](inference/README.md) |
|
|
498
|
+
| `cpp_inference_ext/` | Optional C++/pybind11 accelerator (builds the `cpp_inference` module, never a hard dependency) — a separate top-level folder name from the module it builds, deliberately, to avoid a namespace-package collision with the installed package | [README](cpp_inference_ext/README.md) |
|
|
497
499
|
| `liquidity/` | Liquidity and market-impact engine | [README](liquidity/README.md) |
|
|
498
500
|
| `ml/` | Model & dataset artifacts, including versioned retraining candidates | [README](ml/README.md) |
|
|
499
501
|
| `moe/` | Mixture-of-Experts gating network | [README](moe/README.md) |
|
|
@@ -507,7 +509,7 @@ and how it's wired in — this table is the index.
|
|
|
507
509
|
| `risk/` | Dynamic position sizing, leverage caps, drawdown-aware sizing | [README](risk/README.md) |
|
|
508
510
|
| `scripts/` | Standalone dev tooling (e.g. the inference-hot-path profiler) | [README](scripts/README.md) |
|
|
509
511
|
| `storage/` | Reserved placeholder for future persistent artifact storage | [README](storage/README.md) |
|
|
510
|
-
| `tests/` | Pytest suite conventions (<!-- AQ:TEST_COUNT_START -->
|
|
512
|
+
| `tests/` | Pytest suite conventions (<!-- AQ:TEST_COUNT_START -->1304<!-- AQ:TEST_COUNT_END --> tests) | [README](tests/README.md) |
|
|
511
513
|
| `topology/` | 3D market topology — deterministic SMACOF embedding + learned overlay | [README](topology/README.md) |
|
|
512
514
|
| `visualization/` | Shared runtime-state JSON/CSV exports | [README](visualization/README.md) |
|
|
513
515
|
| `webui/` | React/Vite dashboard (Overview, Risk, Topology, Neural Network, Tracing) | [README](webui/README.md) |
|
|
@@ -615,7 +617,7 @@ genuinely halted trading exactly as designed.
|
|
|
615
617
|
|
|
616
618
|
## Test Suite
|
|
617
619
|
|
|
618
|
-
<!-- AQ:TEST_COUNT_START -->
|
|
620
|
+
<!-- AQ:TEST_COUNT_START -->1304<!-- AQ:TEST_COUNT_END --> tests, one file per source module, run via:
|
|
619
621
|
|
|
620
622
|
```powershell
|
|
621
623
|
aq test
|
|
@@ -696,6 +698,51 @@ aq backtest
|
|
|
696
698
|
```
|
|
697
699
|
Runs `lean backtest .` and refreshes this README's [Backtest Results](#backtest-results) section.
|
|
698
700
|
|
|
701
|
+
#### `aq profile`
|
|
702
|
+
```text
|
|
703
|
+
aq profile [--iterations N] [--sort cumulative] [--batched]
|
|
704
|
+
aq profile [--iterations N] [--sort cumulative] [--regime] [--topology] [--learned-topology] [--liquidity] [--gating] [--analyzer] [--indicators]
|
|
705
|
+
```
|
|
706
|
+
Default (no `--<subsystem>` flags): profiles `main.py`'s per-bar
|
|
707
|
+
inference hot path (`inference/exported_model.py`) against real exported
|
|
708
|
+
model weights (never synthetic ones) with a synthetic-but-correctly-
|
|
709
|
+
shaped input workload — a real `lean backtest .` run takes over an hour,
|
|
710
|
+
so this is how the hot path gets profiled repeatably in seconds/minutes
|
|
711
|
+
instead. Reports both a `pstats` breakdown and independent wall-clock
|
|
712
|
+
tail-latency percentiles (p50/p95/p99/max) to
|
|
713
|
+
`scripts/profile_inference_output.txt` and stdout. `--batched` uses the
|
|
714
|
+
batched expert-inference path (with its precomputed weight/stack caches)
|
|
715
|
+
instead of a per-expert loop — the real, optimized production path. See
|
|
716
|
+
`development/Problems.md` for what this found and fixed (weight-array/
|
|
717
|
+
stack caching, `_conv1d_causal` vectorization, expert-loop batching — a
|
|
718
|
+
combined -89.2% reduction in profiled cost).
|
|
719
|
+
|
|
720
|
+
Any `--<subsystem>` flag instead profiles `main.py`'s per-bar subsystems
|
|
721
|
+
that inference profiling never covered — `regime`
|
|
722
|
+
(`regime/market_regime.py`), `topology`/`learned-topology`
|
|
723
|
+
(`topology/market_topology.py`/`topology/learned_topology.py`),
|
|
724
|
+
`liquidity` (`liquidity/market_liquidity.py`), `gating` (`moe/gating.py`),
|
|
725
|
+
`analyzer` (`analyzer/market_analyzer.py`), and `indicators` (the 7 pure
|
|
726
|
+
functions in `features/technical_indicators.py`, each reported
|
|
727
|
+
independently so a dominant one doesn't get averaged away) — wraps
|
|
728
|
+
`scripts/profile_subsystems.py`, writing to
|
|
729
|
+
`scripts/profile_subsystems_output.txt`. Combinable (`aq profile --regime
|
|
730
|
+
--gating`). Uses its own, much lower default iteration count (200, not
|
|
731
|
+
10000) — `build_market_topology()` alone costs ~500-600ms per call at
|
|
732
|
+
this project's real ~30-symbol universe, so 10,000 iterations of it would
|
|
733
|
+
take over an hour; `--iterations` overrides this. `--batched` combined
|
|
734
|
+
with any `--<subsystem>` flag is rejected (exit 1) — batching has no
|
|
735
|
+
meaning for these pure functions.
|
|
736
|
+
|
|
737
|
+
`main.py::_build_model_input()` itself (feature engineering) is
|
|
738
|
+
deliberately NOT profiled — it's a bound method reading ~15 pieces of
|
|
739
|
+
`self.*` state, not cleanly synthesizable the way the other subsystems
|
|
740
|
+
were; `--indicators` profiles its underlying pure primitives instead, a
|
|
741
|
+
documented partial-coverage choice. See `development/Problems.md` for
|
|
742
|
+
what this pass found — most notably that `build_market_topology()`'s
|
|
743
|
+
per-bar cost is comparable to or larger than the *entire* per-bar
|
|
744
|
+
inference total across the whole symbol universe, previously invisible.
|
|
745
|
+
|
|
699
746
|
#### `aq report`
|
|
700
747
|
```text
|
|
701
748
|
aq report <backtest-folder> <result-id>
|
|
@@ -949,42 +996,9 @@ git status
|
|
|
949
996
|
|
|
950
997
|
## Roadmap
|
|
951
998
|
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
- `AAPL`
|
|
957
|
-
- `SPY`
|
|
958
|
-
- `QQQ`
|
|
959
|
-
- `BTCUSD`
|
|
960
|
-
|
|
961
|
-
Shared V1 data coverage:
|
|
962
|
-
|
|
963
|
-
- Start: `2014-12-01`
|
|
964
|
-
- End: `2018-08-13`
|
|
965
|
-
- Resolution: `Daily`
|
|
966
|
-
|
|
967
|
-
First windows:
|
|
968
|
-
|
|
969
|
-
- Training: `2014-12-01` to `2017-06-30`
|
|
970
|
-
- Validation: `2017-07-01` to `2017-12-31`
|
|
971
|
-
- Backtest: `2018-01-01` to `2018-08-13`
|
|
972
|
-
|
|
973
|
-
First target definition:
|
|
974
|
-
|
|
975
|
-
- Target type: next day's direction
|
|
976
|
-
- Label: `1` if the next close-to-close return is positive, else `0`
|
|
977
|
-
|
|
978
|
-
First feature ideas:
|
|
979
|
-
|
|
980
|
-
- 1d, 5d, and 20d returns
|
|
981
|
-
- 5d and 20d volatility
|
|
982
|
-
- 5d and 20d momentum
|
|
983
|
-
- Daily range and open-close range
|
|
984
|
-
- Volume change
|
|
985
|
-
|
|
986
|
-
Detailed phase results (Phase 2 through Phase 10, Phase V2-1 through Phase
|
|
987
|
-
V2-15, Visualization Unification) live in
|
|
999
|
+
V1's universe/data-window/target/feature details, and detailed phase
|
|
1000
|
+
results (Phase 2 through Phase 10, Phase V2-1 through Phase V2-15,
|
|
1001
|
+
Visualization Unification), live in
|
|
988
1002
|
[`development/Changelog.md`](development/Changelog.md) to keep this README short.
|
|
989
1003
|
|
|
990
1004
|
### V3 — 🔜 Incoming Soon
|
|
@@ -996,7 +1010,7 @@ architecture docs already identify:
|
|
|
996
1010
|
|
|
997
1011
|
- **Tick/L1-L2 market data pipeline** — replacing the daily Lean zip files with a genuinely higher-frequency data source and storage layer.
|
|
998
1012
|
- **A shorter-horizon model** — a new model operating at sub-second/tick granularity with a much shorter prediction horizon, not a retrained version of today's daily classifier.
|
|
999
|
-
- **
|
|
1013
|
+
- **Limit-order/queue-position-aware execution** — **delivered**, config-gated (`phase_v2.limit_orders`, default off): real `LimitOrder()` support for every asset class, replacing today's `SetHoldings`/`MarketOrder` market fills. Partial-fill/queue-position modeling beyond Lean's own `OrderTicket` semantics remains out of scope. See `execution/README.md`'s "Real limit orders" section — including a real fill-simulator (delivered alongside the slippage half of this item, same section's "Real fill slippage") and an explicit, unresolved-until-a-real-backtest list of Lean API naming assumptions this feature depends on.
|
|
1000
1014
|
- **A low-latency, event-driven runtime** — replacing the daily-bar `on_data()` callback and the 30s+ polling background workers with something closer to a real-time event loop.
|
|
1001
1015
|
- **Real broker/exchange connectivity beyond paper trading** — building on the credential/readiness groundwork V2-21/V2-22 already laid.
|
|
1002
1016
|
- **Continuous / online retraining** — moving beyond today's offline, cooldown-gated batch retraining pipeline.
|
|
@@ -1026,7 +1040,7 @@ completed backtest or live IB Gateway test yet), and
|
|
|
1026
1040
|
---
|
|
1027
1041
|
|
|
1028
1042
|
<p align="center">
|
|
1029
|
-
Built by <strong>Leon Schwarzkopf</strong> —
|
|
1043
|
+
Built by <strong>Leon Schwarzkopf</strong> — <a href="mailto:leonschwarzkopf08@gmail.com">leonschwarzkopf08@gmail.com</a>
|
|
1030
1044
|
</p>
|
|
1031
1045
|
|
|
1032
1046
|
---
|
|
@@ -34,6 +34,10 @@ analyzer/README.md
|
|
|
34
34
|
analyzer/__init__.py
|
|
35
35
|
analyzer/market_analyzer.py
|
|
36
36
|
backtests/.gitkeep
|
|
37
|
+
cpp_inference_ext/README.md
|
|
38
|
+
cpp_inference_ext/pyproject.toml
|
|
39
|
+
cpp_inference_ext/setup.py
|
|
40
|
+
cpp_inference_ext/src/linear_batched.cpp
|
|
37
41
|
data/alternative/estimize/consensus/aapl/.keep
|
|
38
42
|
data/alternative/estimize/estimate/.keep
|
|
39
43
|
data/alternative/estimize/release/.keep
|
|
@@ -42,6 +46,8 @@ data/alternative/trading-economics/.keep
|
|
|
42
46
|
data/alternative/trading-economics/calendar/.keep
|
|
43
47
|
data/alternative/trading-economics/earnings/.keep
|
|
44
48
|
data/alternative/trading-economics/indicator/.keep
|
|
49
|
+
data/reference/futures_contract_specs.json
|
|
50
|
+
data/reference/sector_mapping.json
|
|
45
51
|
data_pipeline/README.md
|
|
46
52
|
data_pipeline/__init__.py
|
|
47
53
|
data_pipeline/fetch.py
|
|
@@ -86,6 +92,7 @@ features/technical_indicators.py
|
|
|
86
92
|
inference/README.md
|
|
87
93
|
inference/__init__.py
|
|
88
94
|
inference/exported_model.py
|
|
95
|
+
inference/parallel_inference.py
|
|
89
96
|
liquidity/README.md
|
|
90
97
|
liquidity/__init__.py
|
|
91
98
|
liquidity/market_liquidity.py
|
|
@@ -192,6 +199,7 @@ risk/manual_override.py
|
|
|
192
199
|
risk/position_sizing.py
|
|
193
200
|
scripts/README.md
|
|
194
201
|
scripts/profile_inference.py
|
|
202
|
+
scripts/profile_subsystems.py
|
|
195
203
|
tests/README.md
|
|
196
204
|
tests/test_aq_cli.py
|
|
197
205
|
tests/test_asset_class_router.py
|
|
@@ -230,11 +238,14 @@ tests/test_paper_readiness.py
|
|
|
230
238
|
tests/test_paper_readiness_io.py
|
|
231
239
|
tests/test_paper_readiness_report.py
|
|
232
240
|
tests/test_paper_readiness_scheduler.py
|
|
241
|
+
tests/test_parallel_inference.py
|
|
233
242
|
tests/test_portfolio_book_construction.py
|
|
234
243
|
tests/test_position_sizing.py
|
|
235
244
|
tests/test_postgres_telegram.py
|
|
236
245
|
tests/test_postgres_triggers.py
|
|
237
246
|
tests/test_postgres_worker.py
|
|
247
|
+
tests/test_profile_inference.py
|
|
248
|
+
tests/test_profile_subsystems.py
|
|
238
249
|
tests/test_rank_ic_monitor.py
|
|
239
250
|
tests/test_retraining_artifacts.py
|
|
240
251
|
tests/test_retraining_orchestrator.py
|