Skip to content

Commit 974aff3

Browse files
committed
Add missing data sources
1 parent ed5f74d commit 974aff3

File tree

5 files changed

+2511
-3
lines changed

5 files changed

+2511
-3
lines changed

investing_algorithm_framework/infrastructure/models/market_data_sources/ccxt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def prepare_data(
112112
os.mkdir(self.backtest_data_directory)
113113

114114
file_path = self._create_file_path()
115-
115+
print(self._data_source_exists(file_path))
116116
if not self._data_source_exists(file_path):
117117
if not os.path.isfile(file_path):
118118
try:

tests/infrastructure/market_data_sources/test_ccxt_ohlcv_backtest_market_data_source.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ def test_right_columns(self):
108108
self.assertEqual(200, data_source.window_size)
109109
self.assertEqual(csv_file_path, data_source._create_file_path())
110110

111-
# def test_start_date(self):
111+
112+
# def test_start_date(self):
112113
# start_date = datetime(2023, 12, 1)
113114
# file_name = "OHLCV_BTC-EUR_BINANCE_15m_2023-12-" \
114115
# "01:00:00_2023-12-25:00:00.csv"

0 commit comments

Comments
 (0)