investing-algorithm-framework 7.2.0__tar.gz → 7.4.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.
Files changed (268) hide show
  1. investing_algorithm_framework-7.4.0/PKG-INFO +293 -0
  2. investing_algorithm_framework-7.4.0/README.md +256 -0
  3. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/__init__.py +8 -7
  4. investing_algorithm_framework-7.4.0/investing_algorithm_framework/app/analysis/__init__.py +11 -0
  5. investing_algorithm_framework-7.4.0/investing_algorithm_framework/app/analysis/permutation.py +116 -0
  6. investing_algorithm_framework-7.4.0/investing_algorithm_framework/app/analysis/ranking.py +280 -0
  7. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/app.py +400 -211
  8. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/ascii.py +30 -23
  9. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/backtest_report.py +22 -19
  10. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/tables/time_metrics_table.py +2 -2
  11. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/tables/trade_metrics_table.py +8 -5
  12. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/__init__.py +10 -12
  13. investing_algorithm_framework-7.4.0/investing_algorithm_framework/domain/backtesting/__init__.py +17 -0
  14. investing_algorithm_framework-7.4.0/investing_algorithm_framework/domain/backtesting/backtest.py +384 -0
  15. investing_algorithm_framework-7.4.0/investing_algorithm_framework/domain/backtesting/backtest_evaluation_focuss.py +116 -0
  16. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/backtesting/backtest_metrics.py +53 -13
  17. investing_algorithm_framework-7.4.0/investing_algorithm_framework/domain/backtesting/backtest_permutation_test.py +209 -0
  18. investing_algorithm_framework-7.4.0/investing_algorithm_framework/domain/backtesting/backtest_run.py +361 -0
  19. investing_algorithm_framework-7.4.0/investing_algorithm_framework/domain/backtesting/backtest_summary_metrics.py +250 -0
  20. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/base_model.py +0 -6
  21. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/order/order.py +4 -3
  22. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/position/position.py +9 -0
  23. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/utils/polars.py +0 -1
  24. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/data_providers/pandas.py +82 -39
  25. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/backtesting/backtest_service.py +65 -114
  26. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/data_providers/data_provider_service.py +59 -26
  27. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/__init__.py +6 -4
  28. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/exposure.py +62 -1
  29. investing_algorithm_framework-7.4.0/investing_algorithm_framework/services/metrics/generate.py +210 -0
  30. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/returns.py +26 -0
  31. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/pyproject.toml +1 -1
  32. investing_algorithm_framework-7.2.0/PKG-INFO +0 -429
  33. investing_algorithm_framework-7.2.0/README.md +0 -392
  34. investing_algorithm_framework-7.2.0/investing_algorithm_framework/app/analysis/__init__.py +0 -8
  35. investing_algorithm_framework-7.2.0/investing_algorithm_framework/app/analysis/ranking.py +0 -178
  36. investing_algorithm_framework-7.2.0/investing_algorithm_framework/domain/backtesting/__init__.py +0 -13
  37. investing_algorithm_framework-7.2.0/investing_algorithm_framework/domain/backtesting/backtest.py +0 -251
  38. investing_algorithm_framework-7.2.0/investing_algorithm_framework/domain/backtesting/backtest_position.py +0 -120
  39. investing_algorithm_framework-7.2.0/investing_algorithm_framework/domain/backtesting/backtest_results.py +0 -491
  40. investing_algorithm_framework-7.2.0/investing_algorithm_framework/services/metrics/generate.py +0 -155
  41. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/LICENSE +0 -0
  42. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/__init__.py +0 -0
  43. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/algorithm/__init__.py +0 -0
  44. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/algorithm/algorithm.py +0 -0
  45. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/algorithm/algorithm_factory.py +0 -0
  46. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/analysis/backtest_data_ranges.py +0 -0
  47. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/app_hook.py +0 -0
  48. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/context.py +0 -0
  49. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/eventloop.py +0 -0
  50. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/__init__.py +0 -0
  51. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/charts/__init__.py +0 -0
  52. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/charts/entry_exist_signals.py +0 -0
  53. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/charts/equity_curve_drawdown.py +0 -0
  54. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/charts/monthly_returns_heatmap.py +0 -0
  55. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/charts/ohlcv_data_completeness.py +0 -0
  56. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/charts/rolling_sharp_ratio.py +0 -0
  57. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/charts/yearly_returns_barchart.py +0 -0
  58. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/generate.py +0 -0
  59. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/tables/__init__.py +0 -0
  60. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/tables/key_metrics_table.py +0 -0
  61. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/tables/stop_loss_table.py +0 -0
  62. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/tables/trades_table.py +0 -0
  63. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/tables/utils.py +0 -0
  64. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/reporting/templates/report_template.html.j2 +0 -0
  65. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/stateless/__init__.py +0 -0
  66. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/stateless/action_handlers/__init__.py +0 -0
  67. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/stateless/action_handlers/action_handler_strategy.py +0 -0
  68. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/stateless/action_handlers/check_online_handler.py +0 -0
  69. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/stateless/action_handlers/run_strategy_handler.py +0 -0
  70. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/stateless/exception_handler.py +0 -0
  71. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/strategy.py +0 -0
  72. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/task.py +0 -0
  73. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/__init__.py +0 -0
  74. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/controllers/__init__.py +0 -0
  75. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/controllers/orders.py +0 -0
  76. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/controllers/portfolio.py +0 -0
  77. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/controllers/positions.py +0 -0
  78. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/create_app.py +0 -0
  79. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/error_handler.py +0 -0
  80. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/responses.py +0 -0
  81. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/run_strategies.py +0 -0
  82. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/schemas/__init__.py +0 -0
  83. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/schemas/order.py +0 -0
  84. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/schemas/portfolio.py +0 -0
  85. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/schemas/position.py +0 -0
  86. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/app/web/setup_cors.py +0 -0
  87. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/__init__.py +0 -0
  88. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/cli.py +0 -0
  89. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/deploy_to_aws_lambda.py +0 -0
  90. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/deploy_to_azure_function.py +0 -0
  91. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/initialize_app.py +0 -0
  92. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/.gitignore.template +0 -0
  93. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/app.py.template +0 -0
  94. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/app_aws_lambda_function.py.template +0 -0
  95. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/app_azure_function.py.template +0 -0
  96. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/app_web.py.template +0 -0
  97. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/aws_lambda_dockerfile.template +0 -0
  98. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/aws_lambda_dockerignore.template +0 -0
  99. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/aws_lambda_readme.md.template +0 -0
  100. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/aws_lambda_requirements.txt.template +0 -0
  101. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/azure_function_function_app.py.template +0 -0
  102. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/azure_function_host.json.template +0 -0
  103. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/azure_function_local.settings.json.template +0 -0
  104. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/azure_function_requirements.txt.template +0 -0
  105. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/data_providers.py.template +0 -0
  106. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/env.example.template +0 -0
  107. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/env_azure_function.example.template +0 -0
  108. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/market_data_providers.py.template +0 -0
  109. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/readme.md.template +0 -0
  110. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/requirements.txt.template +0 -0
  111. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/run_backtest.py.template +0 -0
  112. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/cli/templates/strategy.py.template +0 -0
  113. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/create_app.py +0 -0
  114. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/dependency_container.py +0 -0
  115. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/backtesting/backtest_date_range.py +0 -0
  116. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/config.py +0 -0
  117. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/constants.py +0 -0
  118. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/data_provider.py +0 -0
  119. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/data_structures.py +0 -0
  120. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/decimal_parsing.py +0 -0
  121. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/exceptions.py +0 -0
  122. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/__init__.py +0 -0
  123. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/app_mode.py +0 -0
  124. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/data/__init__.py +0 -0
  125. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/data/data_source.py +0 -0
  126. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/data/data_type.py +0 -0
  127. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/event.py +0 -0
  128. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/market/__init__.py +0 -0
  129. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/market/market_credential.py +0 -0
  130. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/order/__init__.py +0 -0
  131. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/order/order_side.py +0 -0
  132. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/order/order_status.py +0 -0
  133. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/order/order_type.py +0 -0
  134. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/portfolio/__init__.py +0 -0
  135. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/portfolio/portfolio.py +0 -0
  136. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/portfolio/portfolio_configuration.py +0 -0
  137. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/portfolio/portfolio_snapshot.py +0 -0
  138. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/position/__init__.py +0 -0
  139. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/position/position_snapshot.py +0 -0
  140. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/snapshot_interval.py +0 -0
  141. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/strategy_profile.py +0 -0
  142. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/time_frame.py +0 -0
  143. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/time_interval.py +0 -0
  144. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/time_unit.py +0 -0
  145. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/tracing/__init__.py +0 -0
  146. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/tracing/trace.py +0 -0
  147. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/trade/__init__.py +0 -0
  148. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/trade/trade.py +0 -0
  149. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/trade/trade_risk_type.py +0 -0
  150. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/trade/trade_status.py +0 -0
  151. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/trade/trade_stop_loss.py +0 -0
  152. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/models/trade/trade_take_profit.py +0 -0
  153. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/order_executor.py +0 -0
  154. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/portfolio_provider.py +0 -0
  155. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/services/__init__.py +0 -0
  156. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/services/market_credential_service.py +0 -0
  157. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/services/observable.py +0 -0
  158. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/services/observer.py +0 -0
  159. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/services/portfolios/__init__.py +0 -0
  160. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/services/portfolios/portfolio_sync_service.py +0 -0
  161. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/services/rounding_service.py +0 -0
  162. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/services/state_handler.py +0 -0
  163. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/stateless_actions.py +0 -0
  164. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/strategy.py +0 -0
  165. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/utils/__init__.py +0 -0
  166. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/utils/csv.py +0 -0
  167. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/utils/custom_tqdm.py +0 -0
  168. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/utils/dates.py +0 -0
  169. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/utils/jupyter_notebook_detection.py +0 -0
  170. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/utils/random.py +0 -0
  171. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/utils/signatures.py +0 -0
  172. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/utils/stoppable_thread.py +0 -0
  173. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/domain/utils/synchronized.py +0 -0
  174. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/download_data.py +0 -0
  175. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/__init__.py +0 -0
  176. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/data_providers/__init__.py +0 -0
  177. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/data_providers/ccxt.py +0 -0
  178. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/data_providers/csv.py +0 -0
  179. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/database/__init__.py +0 -0
  180. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/database/sql_alchemy.py +0 -0
  181. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/__init__.py +0 -0
  182. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/decimal_parser.py +0 -0
  183. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/model_extension.py +0 -0
  184. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/order/__init__.py +0 -0
  185. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/order/order.py +0 -0
  186. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/order/order_metadata.py +0 -0
  187. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/order_trade_association.py +0 -0
  188. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/portfolio/__init__.py +0 -0
  189. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/portfolio/portfolio_snapshot.py +0 -0
  190. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/portfolio/sql_portfolio.py +0 -0
  191. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/position/__init__.py +0 -0
  192. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/position/position.py +0 -0
  193. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/position/position_snapshot.py +0 -0
  194. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/trades/__init__.py +0 -0
  195. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/trades/trade.py +0 -0
  196. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/trades/trade_stop_loss.py +0 -0
  197. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/models/trades/trade_take_profit.py +0 -0
  198. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/order_executors/__init__.py +0 -0
  199. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/order_executors/backtest_oder_executor.py +0 -0
  200. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/order_executors/ccxt_order_executor.py +0 -0
  201. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/portfolio_providers/__init__.py +0 -0
  202. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/portfolio_providers/ccxt_portfolio_provider.py +0 -0
  203. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/repositories/__init__.py +0 -0
  204. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/repositories/order_metadata_repository.py +0 -0
  205. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/repositories/order_repository.py +0 -0
  206. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/repositories/portfolio_repository.py +0 -0
  207. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/repositories/portfolio_snapshot_repository.py +0 -0
  208. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/repositories/position_repository.py +0 -0
  209. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/repositories/position_snapshot_repository.py +0 -0
  210. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/repositories/repository.py +0 -0
  211. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/repositories/trade_repository.py +0 -0
  212. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/repositories/trade_stop_loss_repository.py +0 -0
  213. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/repositories/trade_take_profit_repository.py +0 -0
  214. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/services/__init__.py +0 -0
  215. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/services/aws/__init__.py +0 -0
  216. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/services/aws/state_handler.py +0 -0
  217. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/services/azure/__init__.py +0 -0
  218. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/services/azure/state_handler.py +0 -0
  219. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/services/performance_service/__init__.py +0 -0
  220. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/services/performance_service/backtest_performance_service.py +0 -0
  221. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/services/performance_service/performance_service.py +0 -0
  222. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/unit_of_work/in_memory.py +0 -0
  223. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/infrastructure/unit_of_work/sqlalchemy.py +0 -0
  224. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/__init__.py +0 -0
  225. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/backtesting/__init__.py +0 -0
  226. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/configuration_service.py +0 -0
  227. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/data_providers/__init__.py +0 -0
  228. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/market_credential_service.py +0 -0
  229. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/alpha.py +0 -0
  230. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/beta.py +0 -0
  231. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/cagr.py +0 -0
  232. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/calmar_ratio.py +0 -0
  233. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/drawdown.py +0 -0
  234. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/equity_curve.py +0 -0
  235. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/mean_daily_return.py +0 -0
  236. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/price_efficiency.py +0 -0
  237. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/profit_factor.py +0 -0
  238. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/recovery.py +0 -0
  239. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/risk_free_rate.py +0 -0
  240. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/sharpe_ratio.py +0 -0
  241. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/sortino_ratio.py +0 -0
  242. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/standard_deviation.py +0 -0
  243. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/treynor_ratio.py +0 -0
  244. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/ulcer.py +0 -0
  245. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/value_at_risk.py +0 -0
  246. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/volatility.py +0 -0
  247. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/metrics/win_rate.py +0 -0
  248. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/order_service/__init__.py +0 -0
  249. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/order_service/order_backtest_service.py +0 -0
  250. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/order_service/order_executor_lookup.py +0 -0
  251. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/order_service/order_service.py +0 -0
  252. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/portfolios/__init__.py +0 -0
  253. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/portfolios/backtest_portfolio_service.py +0 -0
  254. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/portfolios/portfolio_configuration_service.py +0 -0
  255. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/portfolios/portfolio_provider_lookup.py +0 -0
  256. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/portfolios/portfolio_service.py +0 -0
  257. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/portfolios/portfolio_snapshot_service.py +0 -0
  258. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/portfolios/portfolio_sync_service.py +0 -0
  259. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/positions/__init__.py +0 -0
  260. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/positions/position_service.py +0 -0
  261. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/positions/position_snapshot_service.py +0 -0
  262. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/repository_service.py +0 -0
  263. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/trade_order_evaluator/__init__.py +0 -0
  264. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/trade_order_evaluator/backtest_trade_oder_evaluator.py +0 -0
  265. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/trade_order_evaluator/default_trade_order_evaluator.py +0 -0
  266. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/trade_order_evaluator/trade_order_evaluator.py +0 -0
  267. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/trade_service/__init__.py +0 -0
  268. {investing_algorithm_framework-7.2.0 → investing_algorithm_framework-7.4.0}/investing_algorithm_framework/services/trade_service/trade_service.py +0 -0
@@ -0,0 +1,293 @@
1
+ Metadata-Version: 2.1
2
+ Name: investing-algorithm-framework
3
+ Version: 7.4.0
4
+ Summary: A framework for creating trading bots
5
+ Author: MDUYN
6
+ Requires-Python: >=3.10
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.10
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Requires-Dist: Flask (>=3.1.0)
12
+ Requires-Dist: Flask-Cors (>=3.0.9,<5.0.0)
13
+ Requires-Dist: Flask-Migrate (>=2.6.0)
14
+ Requires-Dist: SQLAlchemy (>=2.0.18)
15
+ Requires-Dist: azure-identity (>=1.19.0,<2.0.0)
16
+ Requires-Dist: azure-mgmt-resource (>=23.2.0,<24.0.0)
17
+ Requires-Dist: azure-mgmt-storage (>=21.2.1,<22.0.0)
18
+ Requires-Dist: azure-mgmt-web (>=7.3.1,<8.0.0)
19
+ Requires-Dist: azure-storage-blob (>=12.24.0,<13.0.0)
20
+ Requires-Dist: boto3 (>=1.38.41,<2.0.0)
21
+ Requires-Dist: ccxt (>=4.2.48)
22
+ Requires-Dist: dependency-injector (>=4.40.0)
23
+ Requires-Dist: jupyter (>=1.0.0)
24
+ Requires-Dist: marshmallow (>=3.5.0)
25
+ Requires-Dist: plotly (>=6.1.2,<7.0.0)
26
+ Requires-Dist: polars[numpy,pandas] (>=0.20.10)
27
+ Requires-Dist: pyarrow (>=19.0.1)
28
+ Requires-Dist: python-dateutil (>=2.8.2)
29
+ Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
30
+ Requires-Dist: schedule (>=1.1.0)
31
+ Requires-Dist: tabulate (>=0.9.0)
32
+ Requires-Dist: tqdm (>=4.66.1)
33
+ Requires-Dist: wrapt (>=1.16.0)
34
+ Requires-Dist: yfinance (>=0.2.61,<0.3.0)
35
+ Description-Content-Type: text/markdown
36
+
37
+ <div align="center"> <h1><a href="https://coding-kitties.github.io/investing-algorithm-framework/" target="_blank">Investing Algorithm Framework</a></h1> <p><b>Rapidly build, backtest, and deploy quantitative strategies and trading bots</b></p> <a target="_blank" href="https://coding-kitties.github.io/investing-algorithm-framework/">📖 View Documentation</a> | <a href="https://coding-kitties.github.io/investing-algorithm-framework/Getting%20Started/installation">🚀 Getting Started</a> </div>
38
+
39
+ ---
40
+
41
+ <div align="center"> <a href="https://coding-kitties.github.io/investing-algorithm-framework/">
42
+ <a target="_blank" href="https://discord.gg/dQsRmGZP"><img src="https://img.shields.io/discord/1345358169777635410.svg?color=7289da&label=TradeBotLab%20Discord&logo=discord&style=flat"></a>
43
+ <img src="https://img.shields.io/badge/docs-website-brightgreen"></a> <a href="https://github.com/coding-kitties/investing-algorithm-framework/actions/workflows/publish.yml"><img src="https://github.com/coding-kitties/investing-algorithm-framework/actions/workflows/publish.yml/badge.svg"></a> <a href="https://github.com/coding-kitties/investing-algorithm-framework/actions/workflows/test.yml"><img src="https://github.com/coding-kitties/investing-algorithm-framework/actions/workflows/test.yml/badge.svg"></a> <a href="https://pepy.tech/project/investing-algorithm-framework"><img src="https://pepy.tech/badge/investing-algorithm-framework"></a> <a href="https://pypi.org/project/investing-algorithm-framework/"><img src="https://img.shields.io/pypi/v/investing-algorithm-framework.svg"></a> <a href="https://www.reddit.com/r/InvestingBots/"><img src="https://img.shields.io/reddit/subreddit-subscribers/investingbots?style=social"></a> <a href="https://github.com/coding-kitties/investing-algorithm-framework/stargazers"><img src="https://img.shields.io/github/stars/coding-kitties/investing-algorithm-framework.svg?style=social&label=Star"></a>
44
+ </div>
45
+
46
+ > If you like what we do, consider starring, sharing and contributing!
47
+
48
+ <div align="center">
49
+ <img src="static/showcase.svg" alt="Investing Algorithm Framework Logo" style="height: 50vh; max-height: 750px;">
50
+ </div>
51
+
52
+ The Investing Algorithm Framework is a Python-based framework built to streamline the entire lifecycle of quantitative trading strategies from signal generation and backtesting to live deployment.
53
+ It offers a complete quantitative workflow, featuring two dedicated backtesting engines:
54
+
55
+ * A vectorized backtest engine for fast signal research and prototyping
56
+
57
+ * An event-based backtest engine for realistic and accurate strategy evaluation
58
+
59
+ The framework supports live trading across multiple exchanges and offers flexible deployment options, including Azure Functions and AWS Lambda.
60
+ Designed for extensibility, it allows you to integrate custom strategies, data providers, and order executors, enabling support for any exchange or broker.
61
+ It natively supports multiple data formats, including OHLCV, ticker, and custom datasets with seamless compatibility for both Pandas and Polars DataFrames.
62
+
63
+
64
+
65
+ ## Sponsors
66
+
67
+ <a href="https://www.finterion.com/" target="_blank">
68
+ <picture style="height: 30px;">
69
+ <source media="(prefers-color-scheme: dark)" srcset="static/sponsors/finterion-dark.png">
70
+ <source media="(prefers-color-scheme: light)" srcset="static/sponsors/finterion-light.png">
71
+ <img src="static/sponsors/finterion-light.png" alt="Finterion Logo" width="200px" height="50px">
72
+ </picture>
73
+ </a>
74
+
75
+
76
+ ## 🌟 Features
77
+
78
+ - [x] Python 3.10+: Cross-platform support for Windows, macOS, and Linux.
79
+ - [x] Event-Driven Backtest Engine: Accurate and realistic backtesting with event-driven architecture.
80
+ - [x] Vectorized Backtest Engine: Fast signal research and prototyping with vectorized operations.
81
+ - [x] Permutation testing: Run permutation tests to evaluate the strategy statistical significance.
82
+ - [x] Backtest Reporting: Generate detailed reports to analyse and compare backtests.
83
+ - [x] Live Trading: Execute trades in real-time with support for multiple exchanges via ccxt.
84
+ - [x] Portfolio Management: Manage portfolios, trades, and positions with persistence via SQLite.
85
+ - [x] Market Data Sources: Fetch OHLCV, ticker, and custom data with support for Polars and Pandas.
86
+ - [x] Azure Functions Support: Deploy trading bots to Azure.
87
+ - [x] AWS Lambda Support: Deploy trading bots to AWS Lambda.
88
+ - [x] Web API: Interact with your bot via REST API.
89
+ - [x] PyIndicators Integration: Perform technical analysis directly on your dataframes.
90
+ - [x] Extensibility: Add custom strategies, data providers, order executors so you can connect your trading bot to your favorite exchange or broker.
91
+
92
+ ## 🚀 Quickstart
93
+
94
+ Installation
95
+ Install the framework via [PyPI](https://pypi.org/project/investing-algorithm-framework/):
96
+
97
+ 1. First install the framework using `pip`. The Investing Algorithm Framework is hosted on [PyPi].
98
+
99
+ ```bash
100
+ pip install investing-algorithm-framework
101
+ ```
102
+
103
+ Run the following command to set up your project:
104
+
105
+ ```bash
106
+ investing-algorithm-framewor init
107
+ ```
108
+
109
+ For a web-enabled version:
110
+
111
+ ```bash
112
+ investing-algorithm-framework init --web
113
+ ```
114
+
115
+ This will create:
116
+
117
+ * app.py: The entry point for your bot.
118
+ * strategy.py: A sample strategy file to get started.
119
+
120
+ > Note: Keep the app.py file as is. You can modify strategy.py and add additional files to build your bot.
121
+ > You can always change the app to the web version by changing the `app.py` file.
122
+
123
+ ---
124
+
125
+ ## 📈 Example: A Simple Trading Bot
126
+ The following example trading bot implements a simple moving average strategy.
127
+ The strategy will use data from bitvavo exchange and will calculate
128
+ the 20, 50 and 100 period exponential moving averages (EMA) and the
129
+ 14 period relative strength index (RSI).
130
+
131
+ > This example uses [PyIndicators](https://github.com/coding-kitties/pyindicators) for technical analysis.
132
+ > This dependency is not part of the framework, but is used to perform technical analysis on the dataframes.
133
+ > You can install it using pip: pip install pyindicators.
134
+
135
+ ```python
136
+ import logging.config
137
+ from dotenv import load_dotenv
138
+
139
+ from pyindicators import ema, rsi, crossunder, crossover, is_above
140
+
141
+ from investing_algorithm_framework import create_app, TimeUnit, Context, BacktestDateRange, \
142
+ DEFAULT_LOGGING_CONFIG, TradingStrategy, SnapshotInterval, BacktestReport, DataSource
143
+
144
+ load_dotenv()
145
+ logging.config.dictConfig(DEFAULT_LOGGING_CONFIG)
146
+ logger = logging.getLogger(__name__)
147
+
148
+ app = create_app()
149
+ # Registered bitvavo market, credentials are read from .env file by default
150
+ app.add_market(market="BITVAVO", trading_symbol="EUR", initial_balance=100)
151
+
152
+ class MyStrategy(TradingStrategy):
153
+ interval = 2
154
+ time_unit = TimeUnit.HOUR
155
+ data_sources = [
156
+ DataSource(data_type="OHLCV", market="bitvavo", symbol="BTC/EUR", window_size=200, time_frame="2h", identifier="BTC-ohlcv", pandas=True),
157
+ ]
158
+ symbols = ["BTC/EUR"]
159
+
160
+ def run_strategy(self, context: Context, data):
161
+
162
+ if context.has_open_orders(target_symbol="BTC"):
163
+ logger.info("There are open orders, skipping strategy iteration.")
164
+ return
165
+
166
+ data = data["BTC-ohlcv"]
167
+ data = ema(data, source_column="Close", period=20, result_column="ema_20")
168
+ data = ema(data, source_column="Close", period=50, result_column="ema_50")
169
+ data = ema(data, source_column="Close", period=100, result_column="ema_100")
170
+ data = crossunder(data, first_column="ema_50", second_column="ema_100", result_column="crossunder_50_20")
171
+ data = crossover(data, first_column="ema_50", second_column="ema_100", result_column="crossover_50_20")
172
+ data = rsi(data, source_column="Close", period=14, result_column="rsi_14")
173
+
174
+ if context.has_position("BTC") and self.sell_signal(data):
175
+ context.create_limit_sell_order(
176
+ "BTC", percentage_of_position=100, price=data["Close"].iloc[-1]
177
+ )
178
+ return
179
+
180
+ if not context.has_position("BTC") and self.buy_signal(data):
181
+ context.create_limit_buy_order(
182
+ "BTC", percentage_of_portfolio=20, price=data["Close"].iloc[-1]
183
+ )
184
+ return
185
+
186
+ def buy_signal(self, data) -> bool:
187
+ return False
188
+
189
+ def sell_signal(self, data) -> bool:
190
+ return False
191
+
192
+ date_range = BacktestDateRange(
193
+ start_date="2023-08-24 00:00:00", end_date="2023-12-02 00:00:00"
194
+ )
195
+ app.add_strategy(MyStrategy)
196
+
197
+ if __name__ == "__main__":
198
+ # Run the backtest with a daily snapshot interval for end-of-day granular reporting
199
+ backtest = app.run_backtest(
200
+ backtest_date_range=date_range, initial_amount=100, snapshot_interval=SnapshotInterval.DAILY
201
+ )
202
+ backtest_report = BacktestReport(backtests=[backtest])
203
+ backtest_report.show()
204
+ ```
205
+
206
+ > You can find more examples [here](./examples) folder.
207
+
208
+ ## 📚 Documentation
209
+ Comprehensive documentation is available at [github pages](https://coding-kitties.github.io/investing-algorithm-framework/).
210
+
211
+ ## 🛠️ Development
212
+
213
+ Local Development
214
+
215
+ Clone the repository and install dependencies using Poetry:
216
+
217
+ The framework is built with poetry. To install the framework for local development, you can run the following commands:
218
+
219
+ > Make sure you have poetry installed. If you don't have poetry installed, you can find installation instructions [here](https://python-poetry.org/docs/#installation)
220
+
221
+ ```bash
222
+ git clone http
223
+ cd investing-algorithm-framework
224
+ poetry install
225
+ ```
226
+
227
+ ### Running tests
228
+
229
+ To run the tests, you can run the following command:
230
+
231
+ ```bash
232
+ # In the root of the project
233
+ python -m unittest discover -s tests
234
+ ```
235
+
236
+ ## ⚠️ Disclaimer
237
+
238
+ If you use this framework for your investments, do not risk money
239
+ which you are afraid to lose, until you have clear understanding how the framework works. We can't stress this enough:
240
+
241
+ BEFORE YOU START USING MONEY WITH THE FRAMEWORK, MAKE SURE THAT YOU TESTED
242
+ YOUR COMPONENTS THOROUGHLY. USE THE SOFTWARE AT YOUR OWN RISK.
243
+ THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR INVESTMENT RESULTS.
244
+
245
+ Also, make sure that you read the source code of any plugin you use or
246
+ implementation of an algorithm made with this framework.
247
+
248
+ We welcome contributions! Check out the project board and issues to get started.
249
+
250
+ ## Documentation
251
+
252
+ All the documentation can be found online
253
+ at the [documentation webstie](https://coding-kitties.github.io/investing-algorithm-framework/)
254
+
255
+ In most cases, you'll probably never have to change code on this repo directly
256
+ if you are building your algorithm/bot. But if you do, check out the
257
+ contributing page at the website.
258
+
259
+ If you'd like to chat with investing-algorithm-framework users
260
+ and developers, [join us on Slack](https://inv-algo-framework.slack.com) or [join us on reddit](https://www.reddit.com/r/InvestingBots/)
261
+
262
+ ## 🤝 Contributing
263
+
264
+ The investing algorithm framework is a community driven project.
265
+ We welcome you to participate, contribute and together help build the future trading bots developed in python.
266
+
267
+ To get started, please read the [contributing guide](https://coding-kitties.github.io/investing-algorithm-framework/Contributing&20Guide/contributing).
268
+
269
+ Feel like the framework is missing a feature? We welcome your pull requests!
270
+ If you want to contribute to the project roadmap, please take a look at the [project board](https://github.com/coding-kitties/investing-algorithm-framework/projects?query=is%3Aopen).
271
+ You can pick up a task by assigning yourself to it.
272
+
273
+ **Note** before starting any major new feature work, *please open an issue describing what you are planning to do*.
274
+ This will ensure that interested parties can give valuable feedback on the feature, and let others know that you are working on it.
275
+
276
+ **Important:** Always create your feature or hotfix against the `develop` branch, not `main`.
277
+
278
+ ## 📬 Support
279
+
280
+ * [Reddit Community](https://www.reddit.com/r/InvestingBots/)
281
+ * [Discord Community](https://discord.gg/dQsRmGZP")
282
+
283
+
284
+ ## 🏆 Acknowledgements
285
+
286
+ We want to thank all contributors to this project. A full list of all the people that contributed to the project can be
287
+ found [here](https://github.com/investing-algorithms/investing-algorithm-framework/blob/master/AUTHORS.md)
288
+
289
+ ### [Bugs / Issues](https://github.com/investing-algorithms/investing-algorithm-framework/issues?q=is%3Aissue)
290
+
291
+ If you discover a bug in the framework, please [search our issue tracker](https://github.com/investing-algorithms/investing-algorithm-framework/issues?q=is%3Aissue)
292
+ first. If it hasn't been reported, please [create a new issue](https://github.com/investing-algorithms/investing-algorithm-framework/issues/new).
293
+
@@ -0,0 +1,256 @@
1
+ <div align="center"> <h1><a href="https://coding-kitties.github.io/investing-algorithm-framework/" target="_blank">Investing Algorithm Framework</a></h1> <p><b>Rapidly build, backtest, and deploy quantitative strategies and trading bots</b></p> <a target="_blank" href="https://coding-kitties.github.io/investing-algorithm-framework/">📖 View Documentation</a> | <a href="https://coding-kitties.github.io/investing-algorithm-framework/Getting%20Started/installation">🚀 Getting Started</a> </div>
2
+
3
+ ---
4
+
5
+ <div align="center"> <a href="https://coding-kitties.github.io/investing-algorithm-framework/">
6
+ <a target="_blank" href="https://discord.gg/dQsRmGZP"><img src="https://img.shields.io/discord/1345358169777635410.svg?color=7289da&label=TradeBotLab%20Discord&logo=discord&style=flat"></a>
7
+ <img src="https://img.shields.io/badge/docs-website-brightgreen"></a> <a href="https://github.com/coding-kitties/investing-algorithm-framework/actions/workflows/publish.yml"><img src="https://github.com/coding-kitties/investing-algorithm-framework/actions/workflows/publish.yml/badge.svg"></a> <a href="https://github.com/coding-kitties/investing-algorithm-framework/actions/workflows/test.yml"><img src="https://github.com/coding-kitties/investing-algorithm-framework/actions/workflows/test.yml/badge.svg"></a> <a href="https://pepy.tech/project/investing-algorithm-framework"><img src="https://pepy.tech/badge/investing-algorithm-framework"></a> <a href="https://pypi.org/project/investing-algorithm-framework/"><img src="https://img.shields.io/pypi/v/investing-algorithm-framework.svg"></a> <a href="https://www.reddit.com/r/InvestingBots/"><img src="https://img.shields.io/reddit/subreddit-subscribers/investingbots?style=social"></a> <a href="https://github.com/coding-kitties/investing-algorithm-framework/stargazers"><img src="https://img.shields.io/github/stars/coding-kitties/investing-algorithm-framework.svg?style=social&label=Star"></a>
8
+ </div>
9
+
10
+ > If you like what we do, consider starring, sharing and contributing!
11
+
12
+ <div align="center">
13
+ <img src="static/showcase.svg" alt="Investing Algorithm Framework Logo" style="height: 50vh; max-height: 750px;">
14
+ </div>
15
+
16
+ The Investing Algorithm Framework is a Python-based framework built to streamline the entire lifecycle of quantitative trading strategies from signal generation and backtesting to live deployment.
17
+ It offers a complete quantitative workflow, featuring two dedicated backtesting engines:
18
+
19
+ * A vectorized backtest engine for fast signal research and prototyping
20
+
21
+ * An event-based backtest engine for realistic and accurate strategy evaluation
22
+
23
+ The framework supports live trading across multiple exchanges and offers flexible deployment options, including Azure Functions and AWS Lambda.
24
+ Designed for extensibility, it allows you to integrate custom strategies, data providers, and order executors, enabling support for any exchange or broker.
25
+ It natively supports multiple data formats, including OHLCV, ticker, and custom datasets with seamless compatibility for both Pandas and Polars DataFrames.
26
+
27
+
28
+
29
+ ## Sponsors
30
+
31
+ <a href="https://www.finterion.com/" target="_blank">
32
+ <picture style="height: 30px;">
33
+ <source media="(prefers-color-scheme: dark)" srcset="static/sponsors/finterion-dark.png">
34
+ <source media="(prefers-color-scheme: light)" srcset="static/sponsors/finterion-light.png">
35
+ <img src="static/sponsors/finterion-light.png" alt="Finterion Logo" width="200px" height="50px">
36
+ </picture>
37
+ </a>
38
+
39
+
40
+ ## 🌟 Features
41
+
42
+ - [x] Python 3.10+: Cross-platform support for Windows, macOS, and Linux.
43
+ - [x] Event-Driven Backtest Engine: Accurate and realistic backtesting with event-driven architecture.
44
+ - [x] Vectorized Backtest Engine: Fast signal research and prototyping with vectorized operations.
45
+ - [x] Permutation testing: Run permutation tests to evaluate the strategy statistical significance.
46
+ - [x] Backtest Reporting: Generate detailed reports to analyse and compare backtests.
47
+ - [x] Live Trading: Execute trades in real-time with support for multiple exchanges via ccxt.
48
+ - [x] Portfolio Management: Manage portfolios, trades, and positions with persistence via SQLite.
49
+ - [x] Market Data Sources: Fetch OHLCV, ticker, and custom data with support for Polars and Pandas.
50
+ - [x] Azure Functions Support: Deploy trading bots to Azure.
51
+ - [x] AWS Lambda Support: Deploy trading bots to AWS Lambda.
52
+ - [x] Web API: Interact with your bot via REST API.
53
+ - [x] PyIndicators Integration: Perform technical analysis directly on your dataframes.
54
+ - [x] Extensibility: Add custom strategies, data providers, order executors so you can connect your trading bot to your favorite exchange or broker.
55
+
56
+ ## 🚀 Quickstart
57
+
58
+ Installation
59
+ Install the framework via [PyPI](https://pypi.org/project/investing-algorithm-framework/):
60
+
61
+ 1. First install the framework using `pip`. The Investing Algorithm Framework is hosted on [PyPi].
62
+
63
+ ```bash
64
+ pip install investing-algorithm-framework
65
+ ```
66
+
67
+ Run the following command to set up your project:
68
+
69
+ ```bash
70
+ investing-algorithm-framewor init
71
+ ```
72
+
73
+ For a web-enabled version:
74
+
75
+ ```bash
76
+ investing-algorithm-framework init --web
77
+ ```
78
+
79
+ This will create:
80
+
81
+ * app.py: The entry point for your bot.
82
+ * strategy.py: A sample strategy file to get started.
83
+
84
+ > Note: Keep the app.py file as is. You can modify strategy.py and add additional files to build your bot.
85
+ > You can always change the app to the web version by changing the `app.py` file.
86
+
87
+ ---
88
+
89
+ ## 📈 Example: A Simple Trading Bot
90
+ The following example trading bot implements a simple moving average strategy.
91
+ The strategy will use data from bitvavo exchange and will calculate
92
+ the 20, 50 and 100 period exponential moving averages (EMA) and the
93
+ 14 period relative strength index (RSI).
94
+
95
+ > This example uses [PyIndicators](https://github.com/coding-kitties/pyindicators) for technical analysis.
96
+ > This dependency is not part of the framework, but is used to perform technical analysis on the dataframes.
97
+ > You can install it using pip: pip install pyindicators.
98
+
99
+ ```python
100
+ import logging.config
101
+ from dotenv import load_dotenv
102
+
103
+ from pyindicators import ema, rsi, crossunder, crossover, is_above
104
+
105
+ from investing_algorithm_framework import create_app, TimeUnit, Context, BacktestDateRange, \
106
+ DEFAULT_LOGGING_CONFIG, TradingStrategy, SnapshotInterval, BacktestReport, DataSource
107
+
108
+ load_dotenv()
109
+ logging.config.dictConfig(DEFAULT_LOGGING_CONFIG)
110
+ logger = logging.getLogger(__name__)
111
+
112
+ app = create_app()
113
+ # Registered bitvavo market, credentials are read from .env file by default
114
+ app.add_market(market="BITVAVO", trading_symbol="EUR", initial_balance=100)
115
+
116
+ class MyStrategy(TradingStrategy):
117
+ interval = 2
118
+ time_unit = TimeUnit.HOUR
119
+ data_sources = [
120
+ DataSource(data_type="OHLCV", market="bitvavo", symbol="BTC/EUR", window_size=200, time_frame="2h", identifier="BTC-ohlcv", pandas=True),
121
+ ]
122
+ symbols = ["BTC/EUR"]
123
+
124
+ def run_strategy(self, context: Context, data):
125
+
126
+ if context.has_open_orders(target_symbol="BTC"):
127
+ logger.info("There are open orders, skipping strategy iteration.")
128
+ return
129
+
130
+ data = data["BTC-ohlcv"]
131
+ data = ema(data, source_column="Close", period=20, result_column="ema_20")
132
+ data = ema(data, source_column="Close", period=50, result_column="ema_50")
133
+ data = ema(data, source_column="Close", period=100, result_column="ema_100")
134
+ data = crossunder(data, first_column="ema_50", second_column="ema_100", result_column="crossunder_50_20")
135
+ data = crossover(data, first_column="ema_50", second_column="ema_100", result_column="crossover_50_20")
136
+ data = rsi(data, source_column="Close", period=14, result_column="rsi_14")
137
+
138
+ if context.has_position("BTC") and self.sell_signal(data):
139
+ context.create_limit_sell_order(
140
+ "BTC", percentage_of_position=100, price=data["Close"].iloc[-1]
141
+ )
142
+ return
143
+
144
+ if not context.has_position("BTC") and self.buy_signal(data):
145
+ context.create_limit_buy_order(
146
+ "BTC", percentage_of_portfolio=20, price=data["Close"].iloc[-1]
147
+ )
148
+ return
149
+
150
+ def buy_signal(self, data) -> bool:
151
+ return False
152
+
153
+ def sell_signal(self, data) -> bool:
154
+ return False
155
+
156
+ date_range = BacktestDateRange(
157
+ start_date="2023-08-24 00:00:00", end_date="2023-12-02 00:00:00"
158
+ )
159
+ app.add_strategy(MyStrategy)
160
+
161
+ if __name__ == "__main__":
162
+ # Run the backtest with a daily snapshot interval for end-of-day granular reporting
163
+ backtest = app.run_backtest(
164
+ backtest_date_range=date_range, initial_amount=100, snapshot_interval=SnapshotInterval.DAILY
165
+ )
166
+ backtest_report = BacktestReport(backtests=[backtest])
167
+ backtest_report.show()
168
+ ```
169
+
170
+ > You can find more examples [here](./examples) folder.
171
+
172
+ ## 📚 Documentation
173
+ Comprehensive documentation is available at [github pages](https://coding-kitties.github.io/investing-algorithm-framework/).
174
+
175
+ ## 🛠️ Development
176
+
177
+ Local Development
178
+
179
+ Clone the repository and install dependencies using Poetry:
180
+
181
+ The framework is built with poetry. To install the framework for local development, you can run the following commands:
182
+
183
+ > Make sure you have poetry installed. If you don't have poetry installed, you can find installation instructions [here](https://python-poetry.org/docs/#installation)
184
+
185
+ ```bash
186
+ git clone http
187
+ cd investing-algorithm-framework
188
+ poetry install
189
+ ```
190
+
191
+ ### Running tests
192
+
193
+ To run the tests, you can run the following command:
194
+
195
+ ```bash
196
+ # In the root of the project
197
+ python -m unittest discover -s tests
198
+ ```
199
+
200
+ ## ⚠️ Disclaimer
201
+
202
+ If you use this framework for your investments, do not risk money
203
+ which you are afraid to lose, until you have clear understanding how the framework works. We can't stress this enough:
204
+
205
+ BEFORE YOU START USING MONEY WITH THE FRAMEWORK, MAKE SURE THAT YOU TESTED
206
+ YOUR COMPONENTS THOROUGHLY. USE THE SOFTWARE AT YOUR OWN RISK.
207
+ THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR INVESTMENT RESULTS.
208
+
209
+ Also, make sure that you read the source code of any plugin you use or
210
+ implementation of an algorithm made with this framework.
211
+
212
+ We welcome contributions! Check out the project board and issues to get started.
213
+
214
+ ## Documentation
215
+
216
+ All the documentation can be found online
217
+ at the [documentation webstie](https://coding-kitties.github.io/investing-algorithm-framework/)
218
+
219
+ In most cases, you'll probably never have to change code on this repo directly
220
+ if you are building your algorithm/bot. But if you do, check out the
221
+ contributing page at the website.
222
+
223
+ If you'd like to chat with investing-algorithm-framework users
224
+ and developers, [join us on Slack](https://inv-algo-framework.slack.com) or [join us on reddit](https://www.reddit.com/r/InvestingBots/)
225
+
226
+ ## 🤝 Contributing
227
+
228
+ The investing algorithm framework is a community driven project.
229
+ We welcome you to participate, contribute and together help build the future trading bots developed in python.
230
+
231
+ To get started, please read the [contributing guide](https://coding-kitties.github.io/investing-algorithm-framework/Contributing&20Guide/contributing).
232
+
233
+ Feel like the framework is missing a feature? We welcome your pull requests!
234
+ If you want to contribute to the project roadmap, please take a look at the [project board](https://github.com/coding-kitties/investing-algorithm-framework/projects?query=is%3Aopen).
235
+ You can pick up a task by assigning yourself to it.
236
+
237
+ **Note** before starting any major new feature work, *please open an issue describing what you are planning to do*.
238
+ This will ensure that interested parties can give valuable feedback on the feature, and let others know that you are working on it.
239
+
240
+ **Important:** Always create your feature or hotfix against the `develop` branch, not `main`.
241
+
242
+ ## 📬 Support
243
+
244
+ * [Reddit Community](https://www.reddit.com/r/InvestingBots/)
245
+ * [Discord Community](https://discord.gg/dQsRmGZP")
246
+
247
+
248
+ ## 🏆 Acknowledgements
249
+
250
+ We want to thank all contributors to this project. A full list of all the people that contributed to the project can be
251
+ found [here](https://github.com/investing-algorithms/investing-algorithm-framework/blob/master/AUTHORS.md)
252
+
253
+ ### [Bugs / Issues](https://github.com/investing-algorithms/investing-algorithm-framework/issues?q=is%3Aissue)
254
+
255
+ If you discover a bug in the framework, please [search our issue tracker](https://github.com/investing-algorithms/investing-algorithm-framework/issues?q=is%3Aissue)
256
+ first. If it hasn't been reported, please [create a new issue](https://github.com/investing-algorithms/investing-algorithm-framework/issues/new).
@@ -16,9 +16,9 @@ from .domain import ApiException, \
16
16
  Trade, SYMBOLS, RESERVED_BALANCES, APP_MODE, AppMode, DATETIME_FORMAT, \
17
17
  BacktestDateRange, convert_polars_to_pandas, \
18
18
  DEFAULT_LOGGING_CONFIG, DataType, DataProvider, \
19
- BacktestResult, TradeStatus, TradeRiskType, \
19
+ TradeStatus, TradeRiskType, \
20
20
  APPLICATION_DIRECTORY, DataSource, OrderExecutor, PortfolioProvider, \
21
- SnapshotInterval, AWS_S3_STATE_BUCKET_NAME
21
+ SnapshotInterval, AWS_S3_STATE_BUCKET_NAME, BacktestEvaluationFocus
22
22
  from .infrastructure import AzureBlobStorageStateHandler, \
23
23
  CSVOHLCVDataProvider, CCXTOHLCVDataProvider, PandasOHLCVDataProvider, \
24
24
  AWSS3StorageStateHandler
@@ -30,7 +30,7 @@ from .services.metrics import get_annual_volatility, get_sortino_ratio, \
30
30
  get_profit_factor, get_cumulative_profit_factor_series, \
31
31
  get_rolling_profit_factor_series, get_cagr, \
32
32
  get_standard_deviation_returns, get_standard_deviation_downside_returns, \
33
- get_max_drawdown_absolute, get_total_return, get_exposure, \
33
+ get_max_drawdown_absolute, get_total_return, get_exposure_ratio, \
34
34
  get_average_trade_duration, get_win_rate, get_win_loss_ratio, \
35
35
  get_calmar_ratio, get_trade_frequency, get_yearly_returns, \
36
36
  get_monthly_returns, get_best_year, get_best_month, get_worst_year, \
@@ -41,7 +41,7 @@ from .services.metrics import get_annual_volatility, get_sortino_ratio, \
41
41
  get_trades_per_year, get_average_monthly_return_losing_months, \
42
42
  get_average_monthly_return_winning_months, get_percentage_winning_years, \
43
43
  get_rolling_sharpe_ratio, create_backtest_metrics, get_growth, \
44
- get_growth_percentage
44
+ get_growth_percentage, get_cumulative_exposure
45
45
 
46
46
 
47
47
  __all__ = [
@@ -75,7 +75,6 @@ __all__ = [
75
75
  "AppMode",
76
76
  "DATETIME_FORMAT",
77
77
  "Backtest",
78
- "BacktestResult",
79
78
  "BacktestDateRange",
80
79
  "convert_polars_to_pandas",
81
80
  "AzureBlobStorageStateHandler",
@@ -118,7 +117,8 @@ __all__ = [
118
117
  "get_standard_deviation_downside_returns",
119
118
  "get_max_drawdown_absolute",
120
119
  "get_total_return",
121
- "get_exposure",
120
+ "get_exposure_ratio",
121
+ "get_cumulative_exposure",
122
122
  "get_average_trade_duration",
123
123
  "get_win_rate",
124
124
  "get_win_loss_ratio",
@@ -162,5 +162,6 @@ __all__ = [
162
162
  "create_weights",
163
163
  "get_entry_and_exit_signals",
164
164
  "get_growth",
165
- "get_growth_percentage"
165
+ "get_growth_percentage",
166
+ "BacktestEvaluationFocus"
166
167
  ]
@@ -0,0 +1,11 @@
1
+ from .backtest_data_ranges import select_backtest_date_ranges
2
+ from .ranking import rank_results, create_weights, combine_backtest_metrics
3
+ from .permutation import create_ohlcv_permutation
4
+
5
+ __all__ = [
6
+ "select_backtest_date_ranges",
7
+ "rank_results",
8
+ "create_weights",
9
+ "create_ohlcv_permutation",
10
+ "combine_backtest_metrics"
11
+ ]