Skip to content

Commit 182db91

Browse files
committed
Fix error message
1 parent f56ae1f commit 182db91

File tree

1 file changed

+10
-2
lines changed
  • investing_algorithm_framework/infrastructure/data_providers

1 file changed

+10
-2
lines changed

investing_algorithm_framework/infrastructure/data_providers/ccxt.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,15 +445,19 @@ def get_backtest_data(
445445
f"the available data "
446446
f"{self._start_date_data_source} "
447447
f"- {self._end_date_data_source}."
448-
f" for data source {data_source.identifier}.",
448+
f" for data source {data_source.identifier}."
449+
f" Data source file path: "
450+
f"{self.get_data_source_file_path()}"
449451
)
450452

451453
raise OperationalException(
452454
f"Request data date {backtest_start_date} "
453455
f"is before the range of "
454456
f"the available data "
455457
f"{self._start_date_data_source} "
456-
f"- {self._end_date_data_source}.",
458+
f"- {self._end_date_data_source}."
459+
f" Data source file path: "
460+
f"{self.get_data_source_file_path()}"
457461
)
458462

459463
if backtest_end_date > self._end_date_data_source:
@@ -466,6 +470,8 @@ def get_backtest_data(
466470
f"{self._start_date_data_source} "
467471
f"- {self._end_date_data_source}."
468472
f" for data source {data_source.identifier}."
473+
f" Data source file path: "
474+
f"{self.get_data_source_file_path()}"
469475
)
470476

471477
raise OperationalException(
@@ -474,6 +480,8 @@ def get_backtest_data(
474480
f"the available data "
475481
f"{self._start_date_data_source} "
476482
f"- {self._end_date_data_source}."
483+
f" Data source file path: "
484+
f"{self.get_data_source_file_path()}"
477485
)
478486

479487
data = self.data.filter(

0 commit comments

Comments
 (0)