investing-algorithm-framework 6.9.1__py3-none-any.whl → 7.19.15__py3-none-any.whl
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.
Potentially problematic release.
This version of investing-algorithm-framework might be problematic. Click here for more details.
- investing_algorithm_framework/__init__.py +147 -44
- investing_algorithm_framework/app/__init__.py +23 -6
- investing_algorithm_framework/app/algorithm/algorithm.py +5 -41
- investing_algorithm_framework/app/algorithm/algorithm_factory.py +17 -10
- investing_algorithm_framework/app/analysis/__init__.py +15 -0
- investing_algorithm_framework/app/analysis/backtest_data_ranges.py +121 -0
- investing_algorithm_framework/app/analysis/backtest_utils.py +107 -0
- investing_algorithm_framework/app/analysis/permutation.py +116 -0
- investing_algorithm_framework/app/analysis/ranking.py +297 -0
- investing_algorithm_framework/app/app.py +1322 -707
- investing_algorithm_framework/app/context.py +196 -88
- investing_algorithm_framework/app/eventloop.py +590 -0
- investing_algorithm_framework/app/reporting/__init__.py +16 -5
- investing_algorithm_framework/app/reporting/ascii.py +57 -202
- investing_algorithm_framework/app/reporting/backtest_report.py +284 -170
- investing_algorithm_framework/app/reporting/charts/__init__.py +10 -2
- investing_algorithm_framework/app/reporting/charts/entry_exist_signals.py +66 -0
- investing_algorithm_framework/app/reporting/charts/equity_curve.py +37 -0
- investing_algorithm_framework/app/reporting/charts/equity_curve_drawdown.py +11 -26
- investing_algorithm_framework/app/reporting/charts/line_chart.py +11 -0
- investing_algorithm_framework/app/reporting/charts/ohlcv_data_completeness.py +51 -0
- investing_algorithm_framework/app/reporting/charts/rolling_sharp_ratio.py +1 -1
- investing_algorithm_framework/app/reporting/generate.py +100 -114
- investing_algorithm_framework/app/reporting/tables/key_metrics_table.py +40 -32
- investing_algorithm_framework/app/reporting/tables/time_metrics_table.py +34 -27
- investing_algorithm_framework/app/reporting/tables/trade_metrics_table.py +23 -19
- investing_algorithm_framework/app/reporting/tables/trades_table.py +1 -1
- investing_algorithm_framework/app/reporting/tables/utils.py +1 -0
- investing_algorithm_framework/app/reporting/templates/report_template.html.j2 +10 -16
- investing_algorithm_framework/app/strategy.py +315 -175
- investing_algorithm_framework/app/task.py +5 -3
- investing_algorithm_framework/cli/cli.py +30 -12
- investing_algorithm_framework/cli/deploy_to_aws_lambda.py +131 -34
- investing_algorithm_framework/cli/initialize_app.py +20 -1
- investing_algorithm_framework/cli/templates/app_aws_lambda_function.py.template +18 -6
- investing_algorithm_framework/cli/templates/aws_lambda_dockerfile.template +22 -0
- investing_algorithm_framework/cli/templates/aws_lambda_dockerignore.template +92 -0
- investing_algorithm_framework/cli/templates/aws_lambda_requirements.txt.template +2 -2
- investing_algorithm_framework/cli/templates/azure_function_requirements.txt.template +1 -1
- investing_algorithm_framework/create_app.py +3 -5
- investing_algorithm_framework/dependency_container.py +25 -39
- investing_algorithm_framework/domain/__init__.py +45 -38
- investing_algorithm_framework/domain/backtesting/__init__.py +21 -0
- investing_algorithm_framework/domain/backtesting/backtest.py +503 -0
- investing_algorithm_framework/domain/backtesting/backtest_date_range.py +96 -0
- investing_algorithm_framework/domain/backtesting/backtest_evaluation_focuss.py +242 -0
- investing_algorithm_framework/domain/backtesting/backtest_metrics.py +459 -0
- investing_algorithm_framework/domain/backtesting/backtest_permutation_test.py +275 -0
- investing_algorithm_framework/domain/backtesting/backtest_run.py +605 -0
- investing_algorithm_framework/domain/backtesting/backtest_summary_metrics.py +162 -0
- investing_algorithm_framework/domain/backtesting/combine_backtests.py +280 -0
- investing_algorithm_framework/domain/config.py +27 -0
- investing_algorithm_framework/domain/constants.py +6 -34
- investing_algorithm_framework/domain/data_provider.py +200 -56
- investing_algorithm_framework/domain/exceptions.py +34 -1
- investing_algorithm_framework/domain/models/__init__.py +10 -19
- investing_algorithm_framework/domain/models/base_model.py +0 -6
- investing_algorithm_framework/domain/models/data/__init__.py +7 -0
- investing_algorithm_framework/domain/models/data/data_source.py +214 -0
- investing_algorithm_framework/domain/models/{market_data_type.py → data/data_type.py} +7 -7
- investing_algorithm_framework/domain/models/market/market_credential.py +6 -0
- investing_algorithm_framework/domain/models/order/order.py +34 -13
- investing_algorithm_framework/domain/models/order/order_status.py +1 -1
- investing_algorithm_framework/domain/models/order/order_type.py +1 -1
- investing_algorithm_framework/domain/models/portfolio/portfolio.py +14 -1
- investing_algorithm_framework/domain/models/portfolio/portfolio_configuration.py +5 -1
- investing_algorithm_framework/domain/models/portfolio/portfolio_snapshot.py +51 -11
- investing_algorithm_framework/domain/models/position/__init__.py +2 -1
- investing_algorithm_framework/domain/models/position/position.py +9 -0
- investing_algorithm_framework/domain/models/position/position_size.py +41 -0
- investing_algorithm_framework/domain/models/risk_rules/__init__.py +7 -0
- investing_algorithm_framework/domain/models/risk_rules/stop_loss_rule.py +51 -0
- investing_algorithm_framework/domain/models/risk_rules/take_profit_rule.py +55 -0
- investing_algorithm_framework/domain/models/snapshot_interval.py +0 -1
- investing_algorithm_framework/domain/models/strategy_profile.py +19 -151
- investing_algorithm_framework/domain/models/time_frame.py +7 -0
- investing_algorithm_framework/domain/models/time_interval.py +33 -0
- investing_algorithm_framework/domain/models/time_unit.py +63 -1
- investing_algorithm_framework/domain/models/trade/__init__.py +0 -2
- investing_algorithm_framework/domain/models/trade/trade.py +56 -32
- investing_algorithm_framework/domain/models/trade/trade_status.py +8 -2
- investing_algorithm_framework/domain/models/trade/trade_stop_loss.py +106 -41
- investing_algorithm_framework/domain/models/trade/trade_take_profit.py +161 -99
- investing_algorithm_framework/domain/order_executor.py +19 -0
- investing_algorithm_framework/domain/portfolio_provider.py +20 -1
- investing_algorithm_framework/domain/services/__init__.py +0 -13
- investing_algorithm_framework/domain/strategy.py +1 -29
- investing_algorithm_framework/domain/utils/__init__.py +5 -1
- investing_algorithm_framework/domain/utils/custom_tqdm.py +22 -0
- investing_algorithm_framework/domain/utils/jupyter_notebook_detection.py +19 -0
- investing_algorithm_framework/domain/utils/polars.py +17 -14
- investing_algorithm_framework/download_data.py +40 -10
- investing_algorithm_framework/infrastructure/__init__.py +13 -25
- investing_algorithm_framework/infrastructure/data_providers/__init__.py +7 -4
- investing_algorithm_framework/infrastructure/data_providers/ccxt.py +811 -546
- investing_algorithm_framework/infrastructure/data_providers/csv.py +433 -122
- investing_algorithm_framework/infrastructure/data_providers/pandas.py +599 -0
- investing_algorithm_framework/infrastructure/database/__init__.py +6 -2
- investing_algorithm_framework/infrastructure/database/sql_alchemy.py +81 -0
- investing_algorithm_framework/infrastructure/models/__init__.py +0 -13
- investing_algorithm_framework/infrastructure/models/order/order.py +9 -3
- investing_algorithm_framework/infrastructure/models/trades/trade_stop_loss.py +27 -8
- investing_algorithm_framework/infrastructure/models/trades/trade_take_profit.py +21 -7
- investing_algorithm_framework/infrastructure/order_executors/__init__.py +2 -0
- investing_algorithm_framework/infrastructure/order_executors/backtest_oder_executor.py +28 -0
- investing_algorithm_framework/infrastructure/repositories/repository.py +16 -2
- investing_algorithm_framework/infrastructure/repositories/trade_repository.py +2 -2
- investing_algorithm_framework/infrastructure/repositories/trade_stop_loss_repository.py +6 -0
- investing_algorithm_framework/infrastructure/repositories/trade_take_profit_repository.py +6 -0
- investing_algorithm_framework/infrastructure/services/__init__.py +0 -4
- investing_algorithm_framework/services/__init__.py +105 -8
- investing_algorithm_framework/services/backtesting/backtest_service.py +536 -476
- investing_algorithm_framework/services/configuration_service.py +14 -4
- investing_algorithm_framework/services/data_providers/__init__.py +5 -0
- investing_algorithm_framework/services/data_providers/data_provider_service.py +850 -0
- investing_algorithm_framework/{app/reporting → services}/metrics/__init__.py +48 -17
- investing_algorithm_framework/{app/reporting → services}/metrics/drawdown.py +10 -10
- investing_algorithm_framework/{app/reporting → services}/metrics/equity_curve.py +2 -2
- investing_algorithm_framework/{app/reporting → services}/metrics/exposure.py +60 -2
- investing_algorithm_framework/services/metrics/generate.py +358 -0
- investing_algorithm_framework/{app/reporting → services}/metrics/profit_factor.py +36 -0
- investing_algorithm_framework/{app/reporting → services}/metrics/recovery.py +2 -2
- investing_algorithm_framework/{app/reporting → services}/metrics/returns.py +146 -147
- investing_algorithm_framework/services/metrics/risk_free_rate.py +28 -0
- investing_algorithm_framework/{app/reporting/metrics/sharp_ratio.py → services/metrics/sharpe_ratio.py} +6 -10
- investing_algorithm_framework/{app/reporting → services}/metrics/sortino_ratio.py +3 -7
- investing_algorithm_framework/services/metrics/trades.py +500 -0
- investing_algorithm_framework/services/metrics/volatility.py +97 -0
- investing_algorithm_framework/{app/reporting → services}/metrics/win_rate.py +70 -3
- investing_algorithm_framework/services/order_service/order_backtest_service.py +21 -31
- investing_algorithm_framework/services/order_service/order_service.py +9 -71
- investing_algorithm_framework/services/portfolios/portfolio_provider_lookup.py +0 -2
- investing_algorithm_framework/services/portfolios/portfolio_service.py +3 -13
- investing_algorithm_framework/services/portfolios/portfolio_snapshot_service.py +62 -96
- investing_algorithm_framework/services/portfolios/portfolio_sync_service.py +0 -3
- investing_algorithm_framework/services/repository_service.py +5 -2
- investing_algorithm_framework/services/trade_order_evaluator/__init__.py +9 -0
- investing_algorithm_framework/services/trade_order_evaluator/backtest_trade_oder_evaluator.py +113 -0
- investing_algorithm_framework/services/trade_order_evaluator/default_trade_order_evaluator.py +51 -0
- investing_algorithm_framework/services/trade_order_evaluator/trade_order_evaluator.py +80 -0
- investing_algorithm_framework/services/trade_service/__init__.py +7 -1
- investing_algorithm_framework/services/trade_service/trade_service.py +51 -29
- investing_algorithm_framework/services/trade_service/trade_stop_loss_service.py +39 -0
- investing_algorithm_framework/services/trade_service/trade_take_profit_service.py +41 -0
- investing_algorithm_framework-7.19.15.dist-info/METADATA +537 -0
- {investing_algorithm_framework-6.9.1.dist-info → investing_algorithm_framework-7.19.15.dist-info}/RECORD +159 -148
- investing_algorithm_framework/app/reporting/evaluation.py +0 -243
- investing_algorithm_framework/app/reporting/metrics/risk_free_rate.py +0 -8
- investing_algorithm_framework/app/reporting/metrics/volatility.py +0 -69
- investing_algorithm_framework/cli/templates/requirements_azure_function.txt.template +0 -3
- investing_algorithm_framework/domain/models/backtesting/__init__.py +0 -9
- investing_algorithm_framework/domain/models/backtesting/backtest_date_range.py +0 -47
- investing_algorithm_framework/domain/models/backtesting/backtest_position.py +0 -120
- investing_algorithm_framework/domain/models/backtesting/backtest_reports_evaluation.py +0 -0
- investing_algorithm_framework/domain/models/backtesting/backtest_results.py +0 -440
- investing_algorithm_framework/domain/models/data_source.py +0 -21
- investing_algorithm_framework/domain/models/date_range.py +0 -64
- investing_algorithm_framework/domain/models/trade/trade_risk_type.py +0 -34
- investing_algorithm_framework/domain/models/trading_data_types.py +0 -48
- investing_algorithm_framework/domain/models/trading_time_frame.py +0 -223
- investing_algorithm_framework/domain/services/market_data_sources.py +0 -543
- investing_algorithm_framework/domain/services/market_service.py +0 -153
- investing_algorithm_framework/domain/services/observable.py +0 -51
- investing_algorithm_framework/domain/services/observer.py +0 -19
- investing_algorithm_framework/infrastructure/models/market_data_sources/__init__.py +0 -16
- investing_algorithm_framework/infrastructure/models/market_data_sources/ccxt.py +0 -746
- investing_algorithm_framework/infrastructure/models/market_data_sources/csv.py +0 -270
- investing_algorithm_framework/infrastructure/models/market_data_sources/pandas.py +0 -312
- investing_algorithm_framework/infrastructure/services/market_service/__init__.py +0 -5
- investing_algorithm_framework/infrastructure/services/market_service/ccxt_market_service.py +0 -471
- investing_algorithm_framework/infrastructure/services/performance_service/__init__.py +0 -7
- investing_algorithm_framework/infrastructure/services/performance_service/backtest_performance_service.py +0 -2
- investing_algorithm_framework/infrastructure/services/performance_service/performance_service.py +0 -322
- investing_algorithm_framework/services/market_data_source_service/__init__.py +0 -10
- investing_algorithm_framework/services/market_data_source_service/backtest_market_data_source_service.py +0 -269
- investing_algorithm_framework/services/market_data_source_service/data_provider_service.py +0 -350
- investing_algorithm_framework/services/market_data_source_service/market_data_source_service.py +0 -377
- investing_algorithm_framework/services/strategy_orchestrator_service.py +0 -296
- investing_algorithm_framework-6.9.1.dist-info/METADATA +0 -440
- /investing_algorithm_framework/{app/reporting → services}/metrics/alpha.py +0 -0
- /investing_algorithm_framework/{app/reporting → services}/metrics/beta.py +0 -0
- /investing_algorithm_framework/{app/reporting → services}/metrics/cagr.py +0 -0
- /investing_algorithm_framework/{app/reporting → services}/metrics/calmar_ratio.py +0 -0
- /investing_algorithm_framework/{app/reporting → services}/metrics/mean_daily_return.py +0 -0
- /investing_algorithm_framework/{app/reporting → services}/metrics/price_efficiency.py +0 -0
- /investing_algorithm_framework/{app/reporting → services}/metrics/standard_deviation.py +0 -0
- /investing_algorithm_framework/{app/reporting → services}/metrics/treynor_ratio.py +0 -0
- /investing_algorithm_framework/{app/reporting → services}/metrics/ulcer.py +0 -0
- /investing_algorithm_framework/{app/reporting → services}/metrics/value_at_risk.py +0 -0
- {investing_algorithm_framework-6.9.1.dist-info → investing_algorithm_framework-7.19.15.dist-info}/LICENSE +0 -0
- {investing_algorithm_framework-6.9.1.dist-info → investing_algorithm_framework-7.19.15.dist-info}/WHEEL +0 -0
- {investing_algorithm_framework-6.9.1.dist-info → investing_algorithm_framework-7.19.15.dist-info}/entry_points.txt +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import pandas as pd
|
|
2
2
|
|
|
3
|
+
from investing_algorithm_framework.domain import DEFAULT_DATETIME_FORMAT
|
|
3
4
|
from .utils import safe_format, safe_format_date, safe_format_percentage
|
|
4
5
|
|
|
5
6
|
|
|
@@ -64,40 +65,42 @@ def highlight_win_loss_ratio(row):
|
|
|
64
65
|
|
|
65
66
|
|
|
66
67
|
def create_html_trade_metrics_table(results, report):
|
|
67
|
-
copy_results = results.copy()
|
|
68
|
-
|
|
69
|
-
copy_results['Trades per
|
|
70
|
-
copy_results['
|
|
71
|
-
|
|
68
|
+
copy_results = results.to_dict().copy()
|
|
69
|
+
string_format = "{:.2f}"
|
|
70
|
+
copy_results['Trades per Year'] = safe_format(copy_results['trades_per_year'], string_format)
|
|
71
|
+
copy_results['Trades per Day'] = safe_format(copy_results['trade_per_day'], string_format)
|
|
72
|
+
copy_results['Exposure Ratio'] = safe_format(copy_results['exposure_ratio'],string_format)
|
|
73
|
+
copy_results["Cumulative Exposure"] = safe_format(copy_results['cumulative_exposure'],string_format)
|
|
74
|
+
best_trade = copy_results['best_trade']
|
|
72
75
|
|
|
73
76
|
if best_trade is None:
|
|
74
77
|
copy_results["Best Trade"] = "N/A"
|
|
75
78
|
copy_results['Best Trade Date'] = "N/A"
|
|
76
79
|
else:
|
|
77
|
-
copy_results['Best Trade'] = f"{
|
|
78
|
-
copy_results['Best Trade Date'] =
|
|
79
|
-
|
|
80
|
-
worst_trade = copy_results['Worst Trade']
|
|
80
|
+
copy_results['Best Trade'] = f"{best_trade['net_gain']:.2f} {report.trading_symbol}"
|
|
81
|
+
copy_results['Best Trade Date'] = safe_format_date(best_trade["opened_at"], format_str=DEFAULT_DATETIME_FORMAT)
|
|
82
|
+
worst_trade = copy_results['worst_trade']
|
|
81
83
|
|
|
82
84
|
if worst_trade is None:
|
|
83
85
|
copy_results["Worst Trade"] = "N/A"
|
|
84
86
|
copy_results['Worst Trade Date'] = "N/A"
|
|
85
87
|
else:
|
|
86
|
-
copy_results['Worst Trade'] = f"{
|
|
87
|
-
copy_results['Worst Trade Date'] =
|
|
88
|
+
copy_results['Worst Trade'] = f"{worst_trade['net_gain']:.2f} {report.trading_symbol}"
|
|
89
|
+
copy_results['Worst Trade Date'] = safe_format_date(worst_trade['opened_at'], format_str=DEFAULT_DATETIME_FORMAT)
|
|
88
90
|
|
|
89
|
-
copy_results['Trades Average Gain'] = f"{copy_results['
|
|
90
|
-
copy_results['Trades Average Loss'] = f"{copy_results['
|
|
91
|
-
copy_results['Average Trade Duration'] = f"{copy_results['
|
|
92
|
-
copy_results['Number of Trades'] = f"{copy_results['
|
|
93
|
-
copy_results['Win Rate'] = f"{copy_results['
|
|
94
|
-
copy_results['Win/Loss Ratio'] = f"{copy_results['
|
|
91
|
+
copy_results['Trades Average Gain'] = f"{safe_format(copy_results['average_trade_gain'], string_format)} {report.trading_symbol} {copy_results['trades_average_gain_percentage']:.2f}%"
|
|
92
|
+
copy_results['Trades Average Loss'] = f"{safe_format(copy_results['average_trade_loss'], string_format)} {report.trading_symbol} {copy_results['trades_average_loss_percentage']:.2f}%"
|
|
93
|
+
copy_results['Average Trade Duration'] = f"{copy_results['average_trade_duration']:.2f} hours"
|
|
94
|
+
copy_results['Number of Trades'] = f"{copy_results['number_of_trades']}"
|
|
95
|
+
copy_results['Win Rate'] = f"{copy_results['win_rate']:.2f}%"
|
|
96
|
+
copy_results['Win/Loss Ratio'] = f"{copy_results['win_loss_ratio']:.2f}"
|
|
95
97
|
|
|
96
98
|
stats = {
|
|
97
99
|
"Metric": [
|
|
98
100
|
"Trades per Year",
|
|
99
101
|
"Trade per Day",
|
|
100
|
-
"Exposure
|
|
102
|
+
"Exposure Ratio",
|
|
103
|
+
"Cumulative Exposure",
|
|
101
104
|
"Trades Average Gain",
|
|
102
105
|
"Trades Average Loss",
|
|
103
106
|
"Best Trade",
|
|
@@ -112,7 +115,8 @@ def create_html_trade_metrics_table(results, report):
|
|
|
112
115
|
"Value": [
|
|
113
116
|
copy_results['Trades per Year'],
|
|
114
117
|
copy_results['Trades per Day'],
|
|
115
|
-
copy_results['Exposure
|
|
118
|
+
copy_results['Exposure Ratio'],
|
|
119
|
+
copy_results['Cumulative Exposure'],
|
|
116
120
|
copy_results['Trades Average Gain'],
|
|
117
121
|
copy_results['Trades Average Loss'],
|
|
118
122
|
copy_results['Best Trade'],
|
|
@@ -53,7 +53,7 @@ def create_html_trades_table(report):
|
|
|
53
53
|
# Create a DataFrame from the trades, with the attributes id, net_gain, net_gain_percentage, entry_time, exit_time, duration, and symbol
|
|
54
54
|
selection = {
|
|
55
55
|
'Trade': [f"{trade.id} {trade.target_symbol}/{trade.trading_symbol}" for trade in trades],
|
|
56
|
-
'Net Gain': [f"{trade.
|
|
56
|
+
'Net Gain': [f"{trade.change:.2f} {report.trading_symbol} ({trade.percentage_change:.2f}%)" for trade in trades],
|
|
57
57
|
'Entry (Price, Date)': [f"{trade.open_price} {trade.opened_at.strftime('%Y-%m-%d %H:%M:%S')}" for trade in trades],
|
|
58
58
|
'Exit (Price, Date)': [get_exit(trade) for trade in trades],
|
|
59
59
|
'Duration': [f"{trade.duration:.2f} hours" for trade in trades],
|
|
@@ -98,6 +98,8 @@
|
|
|
98
98
|
<button class="tablink active" onclick="openTab(event, 'Overview')">Overview</button>
|
|
99
99
|
<button class="tablink" onclick="openTab(event, 'Trades')">Trades</button>
|
|
100
100
|
<button class="tablink" onclick="openTab(event, 'Positions and orders')">Positions and Orders</button>
|
|
101
|
+
<button class="tablink" onclick="openTab(event, 'DataAnalysis')">Data Analysis</button>
|
|
102
|
+
|
|
101
103
|
</div>
|
|
102
104
|
|
|
103
105
|
<div id="Overview" class="tabcontent active">
|
|
@@ -116,32 +118,20 @@
|
|
|
116
118
|
</div>
|
|
117
119
|
</div>
|
|
118
120
|
<div class="grid-container">
|
|
119
|
-
<div class="metrics-table">
|
|
120
|
-
<h2>Performance Metrics</h2>
|
|
121
|
-
{{ key_metrics_table_html | safe }}
|
|
122
|
-
<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
|
|
123
|
-
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
|
|
124
|
-
<script>
|
|
125
|
-
$(document).ready(function() {
|
|
126
|
-
$('.stats-table').DataTable({
|
|
127
|
-
paging: true,
|
|
128
|
-
pageLength: 10,
|
|
129
|
-
searching: true, // Enable search box
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
</script>
|
|
133
|
-
</div>
|
|
134
121
|
<div class="metrics-table">
|
|
135
122
|
<h2>Time Metrics</h2>
|
|
136
123
|
{{ time_metrics_table_html | safe }}
|
|
137
124
|
</div>
|
|
125
|
+
<div class="metrics-table">
|
|
126
|
+
<h2>Performance Metrics</h2>
|
|
127
|
+
{{ key_metrics_table_html | safe }}
|
|
128
|
+
</div>
|
|
138
129
|
<div class="metrics-table">
|
|
139
130
|
<h2>Trade Metrics</h2>
|
|
140
131
|
{{ trades_metrics_table_html | safe }}
|
|
141
132
|
</div>
|
|
142
133
|
</div>
|
|
143
134
|
</div>
|
|
144
|
-
|
|
145
135
|
<div id="Trades" class="tabcontent">
|
|
146
136
|
{{ trades_table_html | safe }}
|
|
147
137
|
{% raw %}
|
|
@@ -156,5 +146,9 @@
|
|
|
156
146
|
</script>
|
|
157
147
|
{% endraw %}
|
|
158
148
|
</div>
|
|
149
|
+
<div id="DataAnalysis" class="tabcontent">
|
|
150
|
+
<h2>OHLCV Data Completeness Charts</h2>
|
|
151
|
+
{{ data_completeness_charts_html | safe }}
|
|
152
|
+
</div>
|
|
159
153
|
</body>
|
|
160
154
|
</html>
|