investing-algorithm-framework 9.0.0a20__tar.gz → 9.1.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.
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/PKG-INFO +215 -79
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/README.md +213 -77
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/__init__.py +169 -42
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/analysis/markdown.py +149 -63
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/__init__.py +2 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/app.py +142 -122
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/app/confluence_scoring_strategy.py +312 -0
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/app/confluence_signal_support.py +195 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/context.py +80 -29
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/eventloop.py +137 -16
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/backtest_report.py +24 -5
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/templates/dashboard.js +50 -56
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/strategy.py +62 -124
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/schemas/run_report.py +7 -3
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/__init__.py +36 -8
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/backtest_run_configuration.py +28 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/backtest_summary_metrics.py +83 -9
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/backtest_utils.py +161 -4
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/bundle.py +73 -23
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/combine_backtests.py +187 -57
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/history.py +25 -5
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/records.py +119 -5
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/domain/backtesting/run_report_storage.py +104 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/config.py +21 -2
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/data_provider.py +19 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/exceptions.py +24 -0
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/domain/indicators.py +520 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/__init__.py +7 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/confluence.py +69 -30
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/confluence_frame.py +95 -3
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/confluence_native.py +4 -0
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/domain/models/confluence_score.py +926 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/position/position_size.py +11 -1
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/risk_rules/cooldown_rule.py +25 -16
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/risk_rules/scaling_rule.py +27 -2
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/risk_rules/stop_loss_rule.py +19 -5
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/risk_rules/take_profit_rule.py +18 -1
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/domain/models/run_report.py +307 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/signal_series.py +17 -3
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/domain/models/time_frame.py +139 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/trade/trade_stop_loss.py +1 -1
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/native_event.py +1 -1
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/optimization.py +150 -1
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/services/rounding_service.py +4 -5
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/domain/utils/amounts.py +16 -0
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/domain/utils/cash.py +12 -0
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/domain/utils/custom_tqdm.py +52 -0
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/domain/utils/immutable.py +26 -0
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/domain/utils/rule_symbols.py +19 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/data_providers/ccxt.py +26 -1
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/database/sql_alchemy.py +11 -1
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/run_report/run_report.py +40 -5
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/trades/trade.py +1 -1
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/event_memory.py +26 -5
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/event_snapshot_archive.py +70 -18
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/trade_repository.py +4 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/backtesting/backtest_service.py +261 -86
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/backtesting/event_backtest_service.py +26 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/backtesting/optimization.py +232 -3
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/backtesting/vector_backtest_service.py +332 -86
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/backtesting/vector_native.py +13 -2
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/backtesting/vector_session_index.py +4 -1
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/backtest_index/sqlite_index.py +3 -1
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/services/confluence_indicator_engine.py +247 -0
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/services/confluence_reporting.py +98 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/data_providers/data_provider_service.py +75 -26
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/services/data_providers/prepared_market_data.py +195 -0
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/services/indicator_engine.py +1304 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/drawdown.py +24 -24
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/generate.py +13 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/returns.py +11 -1
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/sharpe_ratio.py +2 -1
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/value_at_risk.py +5 -16
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/order_service/order_service.py +140 -19
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/portfolios/portfolio_configuration_service.py +9 -1
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/run_reports/run_report_service.py +1 -1
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/services/run_reports/snapshot.py +409 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/strategy_phases/__init__.py +2 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/strategy_phases/default.py +5 -1
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/services/strategy_phases/evaluate_indicators.py +37 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/strategy_phases/record_cooldown.py +56 -40
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/strategy_phases/resolve_conflicts.py +43 -7
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/strategy_phases/size_positions.py +27 -7
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/trade_order_evaluator/trade_order_evaluator.py +36 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/trade_service/trade_service.py +50 -9
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/testing/__init__.py +12 -0
- investing_algorithm_framework-9.1.0/investing_algorithm_framework/testing/scenario.py +1799 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/pyproject.toml +3 -2
- investing_algorithm_framework-9.0.0a20/investing_algorithm_framework/domain/models/run_report.py +0 -199
- investing_algorithm_framework-9.0.0a20/investing_algorithm_framework/domain/models/time_frame.py +0 -178
- investing_algorithm_framework-9.0.0a20/investing_algorithm_framework/domain/utils/custom_tqdm.py +0 -33
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/LICENSE +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/analysis/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/analysis/backtest_data_ranges.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/analysis/backtest_window_analysis.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/analysis/bundle_inspection.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/analysis/ranking.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/analysis/robustness.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/analysis/top_selection.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/algorithm/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/algorithm/algorithm.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/algorithm/algorithm_factory.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/algorithm_runner.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/app_hook.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/native_schedule.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/ascii.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/charts/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/charts/_finterion_render.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/charts/entry_exist_signals.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/charts/equity_curve.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/charts/equity_curve_drawdown.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/charts/monthly_returns_heatmap.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/charts/ohlcv_data_completeness.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/charts/rolling_sharp_ratio.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/charts/yearly_returns_barchart.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/generate.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/tables/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/tables/key_metrics_table.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/tables/stop_loss_table.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/tables/time_metrics_table.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/tables/trade_metrics_table.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/tables/trades_table.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/tables/utils.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/templates/dashboard.css +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/templates/dashboard_template.html.j2 +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/reporting/templates/report_template.html.j2 +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/stateless/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/stateless/action_handlers/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/stateless/action_handlers/action_handler_strategy.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/stateless/action_handlers/check_online_handler.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/stateless/action_handlers/run_strategy_handler.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/stateless/exception_handler.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/task.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/controllers/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/controllers/algorithm.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/controllers/orders.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/controllers/portfolio.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/controllers/positions.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/controllers/run_reports.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/controllers/trades.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/create_app.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/error_handler.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/responses.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/run_strategies.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/schemas/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/schemas/order.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/schemas/portfolio.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/schemas/portfolio_order_cost.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/schemas/portfolio_order_cost_specification.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/schemas/position.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/schemas/trade.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/app/web/setup_cors.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/cli.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/deploy_to_aws_lambda.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/deploy_to_azure_function.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/index_command.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/initialize_app.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/mcp_server.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/migrate_store_command.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/.gitignore.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/app.py.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/app_aws_lambda_function.py.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/app_azure_function.py.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/app_web.py.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/aws_lambda_dockerfile.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/aws_lambda_dockerignore.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/aws_lambda_readme.md.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/aws_lambda_requirements.txt.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/azure_function_function_app.py.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/azure_function_host.json.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/azure_function_local.settings.json.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/azure_function_requirements.txt.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/data_providers.py.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/env.example.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/env_azure_function.example.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/market_data_providers.py.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/readme.md.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/requirements.txt.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/run_backtest.py.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/templates/strategy.py.template +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/cli/validate_backtest_checkpoints.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/create_app.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/dependency_container.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/algorithm_id.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/backtest.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/backtest_date_range.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/backtest_engine.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/backtest_evaluation_focuss.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/backtest_index_row.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/backtest_metrics.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/backtest_monte_carlo_test.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/backtest_run.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/backtest_window.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/consistency.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/execution_config.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/record_schemas.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/study.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/templates/backtest.html +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/templates/finterion-dark.png +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/templates/finterion-light.png +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/backtesting/universe.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/blotter.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/constants.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/data_structures.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/datetime_parsing.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/decimal_parsing.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/fx.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/app_mode.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/base_model.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/conflict_policy.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/data/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/data/data_source.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/data/data_type.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/decision_trace.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/event.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/market/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/market/market_credential.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/order/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/order/order.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/order/order_side.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/order/order_status.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/order/order_type.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/portfolio/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/portfolio/paper_trading_mode.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/portfolio/portfolio.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/portfolio/portfolio_configuration.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/portfolio/portfolio_snapshot.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/portfolio/position_mode.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/portfolio/sync.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/position/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/position/position.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/position/position_snapshot.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/risk_rules/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/risk_rules/exposure_rule.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/risk_rules/trading_cost.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/scheduling/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/scheduling/date_rule.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/scheduling/schedule.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/scheduling/scheduled_function.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/scheduling/time_rule.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/score_card.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/signal.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/signal_helpers.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/snapshot_interval.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/strategy_profile.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/time_interval.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/time_unit.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/tracing/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/tracing/trace.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/trade/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/trade/trade.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/trade/trade_status.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/models/trade/trade_take_profit.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/order_executor.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/pipeline/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/pipeline/custom_factor.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/pipeline/factor.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/pipeline/factors/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/pipeline/factors/builtin.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/pipeline/filter.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/pipeline/pipeline.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/portfolio_provider.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/services/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/services/market_credential_service.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/services/portfolios/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/services/portfolios/portfolio_sync_service.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/services/state_handler.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/stateless_actions.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/strategy.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/utils/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/utils/csv.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/utils/dates.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/utils/jupyter_notebook_detection.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/utils/polars.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/utils/random.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/utils/signatures.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/utils/stoppable_thread.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/domain/utils/synchronized.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/download_data.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/data_providers/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/data_providers/alpha_vantage.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/data_providers/base_url.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/data_providers/csv.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/data_providers/csv_url.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/data_providers/json_url.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/data_providers/ohlcv_base.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/data_providers/pandas.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/data_providers/parquet_url.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/data_providers/polygon.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/data_providers/yahoo.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/database/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/decimal_parser.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/model_extension.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/order/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/order/order.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/order/trade_allocation.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/order_trade_association.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/portfolio/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/portfolio/portfolio_snapshot.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/portfolio/sql_portfolio.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/position/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/position/position.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/position/position_snapshot.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/run_report/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/trades/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/trades/trade_stop_loss.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/models/trades/trade_take_profit.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/order_executors/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/order_executors/ccxt_order_executor.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/order_executors/paper_trading_order_executor.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/portfolio_providers/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/portfolio_providers/ccxt_portfolio_provider.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/portfolio_providers/paper_trading_portfolio_provider.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/order_repository.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/portfolio_repository.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/portfolio_snapshot_repository.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/position_repository.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/position_snapshot_repository.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/repository.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/run_report_repository.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/trade_allocation_repository.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/trade_stop_loss_repository.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/repositories/trade_take_profit_repository.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/aws/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/aws/state_handler.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/azure/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/azure/state_handler.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/backtesting/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/backtesting/event_workers.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/backtesting/schedule_generation.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/infrastructure/services/backtesting/vector_resources.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/notebook/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/notebook/magic.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/backtest_index/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/backtest_store/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/backtest_store/base.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/backtest_store/decompose.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/backtest_store/local_dir_store.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/backtest_store/local_tiered_store.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/backtest_store/recording.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/backtest_store/streaming.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/configuration_service.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/data_providers/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/data_providers/data.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/executors/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/executors/base.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/executors/limit.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/executors/market.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/market_credential_service.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/_returns_helper.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/alpha.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/beta.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/cagr.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/calmar_ratio.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/consistency.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/equity_curve.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/exposure.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/inputs.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/mae_mfe.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/mean_daily_return.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/native.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/omega_ratio.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/price_efficiency.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/profit_factor.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/recovery.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/risk_free_rate.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/sortino_ratio.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/standard_deviation.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/trades.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/treynor_ratio.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/ulcer.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/volatility.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/metrics/win_rate.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/native_accounting.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/order_service/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/order_service/order_backtest_service.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/order_service/order_executor_lookup.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/pipeline/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/pipeline/pipeline_engine.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/pipeline/vector_pipeline_engine.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/portfolios/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/portfolios/backtest_portfolio_service.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/portfolios/broker_balance_tracker.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/portfolios/portfolio_provider_lookup.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/portfolios/portfolio_service.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/portfolios/portfolio_snapshot_service.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/portfolios/portfolio_sync_service.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/positions/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/positions/position_service.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/positions/position_snapshot_service.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/repository_service.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/run_reports/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/strategy_phases/apply_risk_budget.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/strategy_phases/attach_risk_rules.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/strategy_phases/base.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/strategy_phases/collect_signals.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/strategy_phases/emit_orders.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/strategy_phases/evaluate_pipelines.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/strategy_phases/phase_state.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/trade_hooks/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/trade_hooks/trade_hook_dispatcher.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/trade_order_evaluator/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/trade_order_evaluator/backtest_trade_oder_evaluator.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/trade_order_evaluator/default_trade_order_evaluator.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/trade_order_evaluator/native.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/trade_service/__init__.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/trade_service/trade_stop_loss_service.py +0 -0
- {investing_algorithm_framework-9.0.0a20 → investing_algorithm_framework-9.1.0}/investing_algorithm_framework/services/trade_service/trade_take_profit_service.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: investing-algorithm-framework
|
|
3
|
-
Version: 9.0
|
|
3
|
+
Version: 9.1.0
|
|
4
4
|
Summary: A framework for creating trading bots
|
|
5
5
|
Author: MDUYN
|
|
6
6
|
Requires-Python: >=3.10,<4.0
|
|
@@ -26,7 +26,7 @@ Requires-Dist: boto3 (>=1.38.41,<2.0.0) ; extra == "aws" or extra == "all"
|
|
|
26
26
|
Requires-Dist: ccxt (>=4.2.48)
|
|
27
27
|
Requires-Dist: dependency-injector (>=4.40.0)
|
|
28
28
|
Requires-Dist: fastapi (>=0.110.0)
|
|
29
|
-
Requires-Dist: finterion-charts (==1.
|
|
29
|
+
Requires-Dist: finterion-charts (==1.5.0)
|
|
30
30
|
Requires-Dist: ipython (>=8.0.0) ; extra == "notebook" or extra == "all"
|
|
31
31
|
Requires-Dist: jinja2 (>=3.1.6)
|
|
32
32
|
Requires-Dist: marshmallow (>=3.5.0)
|
|
@@ -90,20 +90,24 @@ trading workflow. Define a strategy once, explore it with vector backtests,
|
|
|
90
90
|
validate it in an event-driven simulation, inspect the results in an interactive
|
|
91
91
|
dashboard, and run the same strategy in paper or live trading.
|
|
92
92
|
|
|
93
|
-
> **v9.
|
|
93
|
+
> **v9.1 is now available.**
|
|
94
94
|
>
|
|
95
95
|
> ```bash
|
|
96
|
-
> pip install investing-algorithm-framework==9.0
|
|
96
|
+
> pip install investing-algorithm-framework==9.1.0
|
|
97
97
|
> ```
|
|
98
98
|
>
|
|
99
|
-
> See the [v9.
|
|
100
|
-
> and [
|
|
99
|
+
> See the [v9.1 changelog](CHANGELOG.md#910---2026-11-28)
|
|
100
|
+
> and [v9.0 migration notes](docusaurus/blog/2026-08-02-v9.0-release.md).
|
|
101
|
+
> This README targets **v9 and later**;
|
|
102
|
+
> its APIs and examples may not work with earlier versions.
|
|
101
103
|
|
|
102
104
|
### Feature Highlights
|
|
103
105
|
|
|
106
|
+
- 🧠 **[Advanced strategy definitions](#3-confluence-scoring-declare-indicators-and-decisions):** Combine declarative indicators and data streams, confluence-scored entry and exit decisions, and position sizing and risk rules.
|
|
104
107
|
- 🔁 **[Long and short trading](https://coding-kitties.github.io/investing-algorithm-framework/Getting%20Started/orders):** Define entry and exit signals once and run the same strategy in vector backtests, event-driven backtests, paper trading, and live trading.
|
|
105
108
|
- ⚡ **[Vector backtesting](https://coding-kitties.github.io/investing-algorithm-framework/Getting%20Started/vector-backtesting):** Evaluate signals and sweep thousands of strategy variants quickly with Polars-powered execution.
|
|
106
109
|
- 🏃 **[Event-driven backtesting](https://coding-kitties.github.io/investing-algorithm-framework/Getting%20Started/event-backtesting):** Validate candidates bar by bar with realistic orders, fills, costs, and portfolio management.
|
|
110
|
+
- 🧪 **[A first-class, scenario-based strategy testing framework](docusaurus/docs/Getting%20Started/testing-framework.md):** Seed portfolio and market conditions, advance scheduled bars, and assert signals, orders, fills, sizing, risk rules, and cooldowns with Python testing frameworks. See the [runnable reference](examples/testing_framework/example.py).
|
|
107
111
|
- 🪟 **[Studies, universes, and backtest windows](https://coding-kitties.github.io/investing-algorithm-framework/Getting%20Started/studies):** Define the assets, assumptions, and rolling, anchored, holdout, walk-forward, time-OOS, or universe-OOS periods for each experiment.
|
|
108
112
|
- 🗂️ **[Open Backtest Format](https://coding-kitties.github.io/investing-algorithm-framework/Getting%20Started/open-backtest-format):** Keep complete vector and event results in portable, versioned `.obtf` bundles.
|
|
109
113
|
- 🗄️ **[Tiered storage and indexing](https://coding-kitties.github.io/investing-algorithm-framework/Getting%20Started/backtest-storage):** Rank and filter 10,000+ backtests through SQLite without decoding full result bundles.
|
|
@@ -125,91 +129,223 @@ dashboard, and run the same strategy in paper or live trading.
|
|
|
125
129
|
<summary><strong>Strategy Definition</strong></summary>
|
|
126
130
|
<br>
|
|
127
131
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
132
|
+
There are three ways to define a strategy: use `TradingStrategy` for direct
|
|
133
|
+
orders or custom signals, or its `ConfluenceScoringStrategy` subclass for
|
|
134
|
+
declarative indicator-driven decisions. All declare their data and schedule;
|
|
135
|
+
choose how much of the trading logic you want to manage yourself:
|
|
136
|
+
|
|
137
|
+
> **Recommended: start with `ConfluenceScoringStrategy`.** We recommend it over
|
|
138
|
+
> the other two approaches because it:
|
|
139
|
+
> - Provides both event and vector signal hooks, avoiding duplicated signal logic.
|
|
140
|
+
> - Keeps indicator calculations, scoring rules, and thresholds declarative.
|
|
141
|
+
> - Records explainable decision traces in event mode.
|
|
142
|
+
> - Uses the shared sizing, risk, execution, and cooldown pipeline.
|
|
143
|
+
>
|
|
144
|
+
> Use custom signals or direct orders as escape hatches when your strategy needs
|
|
145
|
+
> behavior that the declarative API cannot express.
|
|
146
|
+
|
|
147
|
+
| Style | Define | Execution modes |
|
|
148
|
+
| --- | --- | --- |
|
|
149
|
+
| **Direct orders** | Override `run_strategy` and place orders through `Context`. | Event backtests, paper, and live trading |
|
|
150
|
+
| **Custom signals** | Implement `generate_signals` and `generate_signal_series`; let the framework size and execute orders. | Both backtest engines, paper, and live trading |
|
|
151
|
+
| **Confluence scoring (recommended)** | Subclass `ConfluenceScoringStrategy` and declare indicators and scored entry/exit cards. | Both backtest engines, paper, and live trading |
|
|
152
|
+
|
|
153
|
+
### 1. Direct orders: control the event loop
|
|
154
|
+
|
|
155
|
+
> **No vector backtesting:** this approach supports event-driven backtests,
|
|
156
|
+
> paper trading, and live trading only. Use custom signals or confluence cards
|
|
157
|
+
> below if you need vector backtesting.
|
|
158
|
+
|
|
159
|
+
Use `run_strategy` when you need direct control over order conditions, sizing,
|
|
160
|
+
and routing. This replaces the default signal-processing pipeline: declaring
|
|
161
|
+
strategy risk rules alone does not apply that pipeline to your custom orders.
|
|
131
162
|
|
|
132
163
|
```python
|
|
133
|
-
from
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
condition, PositionSize
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
def create_confluence_card(name, rsi_operator, rsi_value, cross_column):
|
|
143
|
-
return ConfluenceCard(
|
|
144
|
-
name=name,
|
|
145
|
-
primary=PrimaryGroup(name="RSI reversal", rules=(ScoreRule(
|
|
146
|
-
name=f"RSI {rsi_operator.value} {rsi_value}",
|
|
147
|
-
expression=condition("rsi", rsi_operator, value=rsi_value), points=3,
|
|
148
|
-
),), minimum_matches=1),
|
|
149
|
-
secondary=(EvidenceGroup(name="EMA confirmation", rules=(ScoreRule(
|
|
150
|
-
name="Recent EMA cross",
|
|
151
|
-
expression=condition(cross_column, Operator.GT, value=0), points=2,
|
|
152
|
-
),), minimum_score=2),),
|
|
153
|
-
minimum_score=5,
|
|
154
|
-
)
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
class RSIEMACrossoverStrategy(TradingStrategy):
|
|
164
|
+
from investing_algorithm_framework import (
|
|
165
|
+
DataSource, OrderSide, Schedule, TimeUnit, TradingStrategy,
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
class DirectOrderStrategy(TradingStrategy):
|
|
158
170
|
schedule = Schedule.every(2, TimeUnit.HOUR)
|
|
159
171
|
symbols = ["BTC"]
|
|
160
172
|
data_sources = [DataSource(
|
|
161
|
-
identifier="BTC_ohlcv", symbol="BTC/EUR", data_type=
|
|
162
|
-
|
|
173
|
+
identifier="BTC_ohlcv", symbol="BTC/EUR", data_type="OHLCV", time_frame="2h",
|
|
174
|
+
market="BITVAVO", pandas=True, warmup_window=30,
|
|
163
175
|
)]
|
|
164
176
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
+
def run_strategy(self, context, data):
|
|
178
|
+
frame = data["BTC_ohlcv"]
|
|
179
|
+
price = float(frame["Close"].iloc[-1])
|
|
180
|
+
average = float(frame["Close"].rolling(20).mean().iloc[-1])
|
|
181
|
+
|
|
182
|
+
if price > average and not context.has_position("BTC"):
|
|
183
|
+
context.create_limit_order(
|
|
184
|
+
target_symbol="BTC", price=price, order_side=OrderSide.BUY,
|
|
185
|
+
percentage_of_portfolio=20,
|
|
186
|
+
)
|
|
187
|
+
elif price < average and context.has_position("BTC"):
|
|
188
|
+
context.create_limit_order(
|
|
189
|
+
target_symbol="BTC", price=price, order_side=OrderSide.SELL,
|
|
190
|
+
percentage_of_position=100,
|
|
191
|
+
)
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
The vector engine does not call `run_strategy`. For vector backtesting, express
|
|
195
|
+
the strategy as signal series instead.
|
|
196
|
+
|
|
197
|
+
### 2. Custom signals: share logic across both engines
|
|
198
|
+
|
|
199
|
+
Emit trading intent rather than orders. The framework applies its normal
|
|
200
|
+
conflict resolution, sizing, risk, execution, and cooldown phases.
|
|
201
|
+
|
|
202
|
+
```python
|
|
203
|
+
from investing_algorithm_framework import (
|
|
204
|
+
DataSource, PositionSize, Schedule, SignalSide, TimeUnit, TradingStrategy,
|
|
205
|
+
signal_series_from_column, signals_from_column,
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
class MovingAverageSignalStrategy(TradingStrategy):
|
|
210
|
+
schedule = Schedule.every(2, TimeUnit.HOUR)
|
|
211
|
+
symbols = ["BTC"]
|
|
212
|
+
data_sources = [DataSource(
|
|
213
|
+
identifier="BTC_ohlcv", symbol="BTC/EUR", data_type="OHLCV", time_frame="2h",
|
|
214
|
+
market="BITVAVO", pandas=True, warmup_window=30,
|
|
177
215
|
)]
|
|
178
|
-
|
|
179
|
-
CooldownRule(symbol="BTC", trigger="sell", blocks="buy", bars=12),
|
|
180
|
-
CooldownRule(trigger="any", blocks="any", bars=2),
|
|
181
|
-
]
|
|
216
|
+
position_sizes = [PositionSize(symbol="BTC", percentage_of_portfolio=20)]
|
|
182
217
|
|
|
183
|
-
|
|
184
|
-
signal_cards = {
|
|
185
|
-
SignalSide.OPEN_LONG: create_confluence_card(
|
|
186
|
-
"Open long", Operator.LT, 30, "recent_crossover"),
|
|
187
|
-
SignalSide.CLOSE_LONG: create_confluence_card(
|
|
188
|
-
"Close long", Operator.GTE, 70, "recent_crossunder"),
|
|
189
|
-
SignalSide.OPEN_SHORT: create_confluence_card(
|
|
190
|
-
"Open short", Operator.GTE, 70, "recent_crossunder"),
|
|
191
|
-
SignalSide.CLOSE_SHORT: create_confluence_card(
|
|
192
|
-
"Close short", Operator.LT, 30, "recent_crossover"),
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
def prepare_signal_data(self, data):
|
|
196
|
-
"""Prepare the same card inputs for every execution mode."""
|
|
218
|
+
def _with_signals(self, data):
|
|
197
219
|
frame = data["BTC_ohlcv"].copy()
|
|
198
|
-
|
|
199
|
-
frame =
|
|
200
|
-
frame =
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
frame
|
|
205
|
-
|
|
220
|
+
average = frame["Close"].rolling(20).mean()
|
|
221
|
+
frame["open_long"] = frame["Close"] > average
|
|
222
|
+
frame["close_long"] = frame["Close"] < average
|
|
223
|
+
return frame
|
|
224
|
+
|
|
225
|
+
def generate_signals(self, context, data):
|
|
226
|
+
frame = self._with_signals(data)
|
|
227
|
+
yield from signals_from_column(
|
|
228
|
+
frame, "open_long", side=SignalSide.OPEN_LONG, symbol="BTC",
|
|
229
|
+
)
|
|
230
|
+
yield from signals_from_column(
|
|
231
|
+
frame, "close_long", side=SignalSide.CLOSE_LONG, symbol="BTC",
|
|
232
|
+
)
|
|
233
|
+
|
|
234
|
+
def generate_signal_series(self, data):
|
|
235
|
+
frame = self._with_signals(data)
|
|
236
|
+
yield signal_series_from_column(
|
|
237
|
+
frame, "open_long", side=SignalSide.OPEN_LONG, symbol="BTC",
|
|
238
|
+
)
|
|
239
|
+
yield signal_series_from_column(
|
|
240
|
+
frame, "close_long", side=SignalSide.CLOSE_LONG, symbol="BTC",
|
|
241
|
+
)
|
|
206
242
|
```
|
|
207
243
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
244
|
+
`generate_signals` evaluates the latest bar for event backtests, paper trading,
|
|
245
|
+
and live trading. `generate_signal_series` evaluates the full window for vector
|
|
246
|
+
backtests. Implement both to support both engines, sharing indicator logic to
|
|
247
|
+
keep their decisions consistent.
|
|
248
|
+
|
|
249
|
+
### 3. Confluence scoring: declare indicators and decisions
|
|
250
|
+
|
|
251
|
+
Inherit from `ConfluenceScoringStrategy` and declare `indicator_configs` plus
|
|
252
|
+
`confluence_cards`. The base class calculates the indicators and supplies both
|
|
253
|
+
signal hooks: no custom `prepare_signal_data`, `generate_signals`, or
|
|
254
|
+
`generate_signal_series` is needed.
|
|
255
|
+
|
|
256
|
+
This example uses `pyindicators` (`pip install pyindicators`). Pass its indicator
|
|
257
|
+
function as `calculate`, and declare the parameters and output columns explicitly.
|
|
258
|
+
Precomputation is appropriate here because RSI uses only present and past data.
|
|
259
|
+
|
|
260
|
+
```python
|
|
261
|
+
from pyindicators import rsi
|
|
262
|
+
|
|
263
|
+
from investing_algorithm_framework import (
|
|
264
|
+
ConfluenceScoringStrategy, ConfluenceScoreConfig, CooldownRule,
|
|
265
|
+
DataSource, IndicatorConfig, IndicatorRule, PositionSize, Schedule,
|
|
266
|
+
SignalSide, StopLossRule, TakeProfitRule, TimeUnit,
|
|
267
|
+
)
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
class RSIConfluenceStrategy(ConfluenceScoringStrategy):
|
|
271
|
+
schedule = Schedule.every(2, TimeUnit.HOUR)
|
|
272
|
+
symbols = ["BTC"]
|
|
273
|
+
data_sources = [
|
|
274
|
+
DataSource(
|
|
275
|
+
identifier="BTC_ohlcv",
|
|
276
|
+
symbol="BTC/EUR",
|
|
277
|
+
data_type="OHLCV",
|
|
278
|
+
time_frame="2h",
|
|
279
|
+
market="BITVAVO",
|
|
280
|
+
pandas=True,
|
|
281
|
+
warmup_window=100,
|
|
282
|
+
)
|
|
283
|
+
]
|
|
284
|
+
|
|
285
|
+
indicator_configs = [
|
|
286
|
+
IndicatorConfig(
|
|
287
|
+
id="rsi",
|
|
288
|
+
calculate=rsi,
|
|
289
|
+
timeframe="2h",
|
|
290
|
+
data_source="BTC_ohlcv",
|
|
291
|
+
parameters={
|
|
292
|
+
"source_column": "Close", "period": 14, "result_column": "rsi",
|
|
293
|
+
},
|
|
294
|
+
output_columns=["rsi"],
|
|
295
|
+
minimum_history=15,
|
|
296
|
+
history="continuous",
|
|
297
|
+
execution="precompute",
|
|
298
|
+
),
|
|
299
|
+
]
|
|
300
|
+
confluence_cards = [
|
|
301
|
+
ConfluenceScoreConfig(
|
|
302
|
+
id=name,
|
|
303
|
+
side=side,
|
|
304
|
+
symbols=["BTC"],
|
|
305
|
+
rules={"rsi_threshold": IndicatorRule(
|
|
306
|
+
indicator_id="rsi",
|
|
307
|
+
output_column="rsi",
|
|
308
|
+
threshold=threshold,
|
|
309
|
+
comparison=comparison,
|
|
310
|
+
group_weights={"primary": 1},
|
|
311
|
+
lookback_period=1,
|
|
312
|
+
)},
|
|
313
|
+
group_aggregation={"primary": "sum"},
|
|
314
|
+
group_thresholds={"primary": 1},
|
|
315
|
+
)
|
|
316
|
+
for name, side, threshold, comparison in (
|
|
317
|
+
("long_entry", SignalSide.OPEN_LONG, 30, "le"),
|
|
318
|
+
("long_exit", SignalSide.CLOSE_LONG, 70, "ge"),
|
|
319
|
+
("short_entry", SignalSide.OPEN_SHORT, 70, "ge"),
|
|
320
|
+
("short_exit", SignalSide.CLOSE_SHORT, 30, "le"),
|
|
321
|
+
)
|
|
322
|
+
]
|
|
323
|
+
|
|
324
|
+
position_sizes = [PositionSize(symbol="BTC", percentage_of_portfolio=20)]
|
|
325
|
+
stop_losses = [
|
|
326
|
+
StopLossRule(
|
|
327
|
+
symbol="BTC",
|
|
328
|
+
percentage_threshold=5,
|
|
329
|
+
sell_percentage=100,
|
|
330
|
+
)
|
|
331
|
+
]
|
|
332
|
+
take_profits = [
|
|
333
|
+
TakeProfitRule(
|
|
334
|
+
symbol="BTC",
|
|
335
|
+
percentage_threshold=10,
|
|
336
|
+
sell_percentage=100,
|
|
337
|
+
)
|
|
338
|
+
]
|
|
339
|
+
cooldowns = [CooldownRule(trigger="any", blocks="any", bars=2)]
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
The framework evaluates each card's explicit `side` and score threshold, then
|
|
343
|
+
routes qualifying signals through the same sizing, risk, execution, and cooldown
|
|
344
|
+
pipeline as custom signals. Event mode also records decision traces. The four
|
|
345
|
+
cards above cover long entry and exit plus short entry and cover.
|
|
346
|
+
|
|
347
|
+
See the [declarative confluence strategy example](examples/framework_features/two_hour_confluence_strategy.py)
|
|
348
|
+
for callable indicators, staged scale-ins, and execution-engine limitations.
|
|
213
349
|
|
|
214
350
|
Fees and slippage belong to the portfolio or backtest study because they describe
|
|
215
351
|
a venue or scenario rather than signal logic.
|