Skip to content

Commit

Permalink
Add missing data sources
Browse files Browse the repository at this point in the history
  • Loading branch information
MDUYN committed Feb 9, 2024
1 parent ed5f74d commit 974aff3
Show file tree
Hide file tree
Showing 5 changed files with 2,511 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def prepare_data(
os.mkdir(self.backtest_data_directory)

file_path = self._create_file_path()

print(self._data_source_exists(file_path))
if not self._data_source_exists(file_path):
if not os.path.isfile(file_path):
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def test_right_columns(self):
self.assertEqual(200, data_source.window_size)
self.assertEqual(csv_file_path, data_source._create_file_path())

# def test_start_date(self):

# def test_start_date(self):
# start_date = datetime(2023, 12, 1)
# file_name = "OHLCV_BTC-EUR_BINANCE_15m_2023-12-" \
# "01:00:00_2023-12-25:00:00.csv"
Expand Down
Loading

0 comments on commit 974aff3

Please sign in to comment.