Align tests to have futures data in futures/ directory

This commit is contained in:
Matthias
2021-12-03 07:20:00 +01:00
parent 7baf11a497
commit b578e31255
9 changed files with 45 additions and 19 deletions

View File

@@ -50,6 +50,7 @@ class HDF5DataHandler(IDataHandler):
"""
if candle_type:
datadir = datadir.joinpath('futures')
candle_type = f"-{candle_type}"
else:
candle_type = ""

View File

@@ -200,7 +200,8 @@ class IDataHandler(ABC):
if candle_type:
datadir = datadir.joinpath('futures')
candle_type = f"-{candle_type}"
filename = datadir.joinpath(f'{pair_s}-{timeframe}{candle_type}.{cls._get_file_extension()}')
filename = datadir.joinpath(
f'{pair_s}-{timeframe}{candle_type}.{cls._get_file_extension()}')
return filename
@classmethod

View File

@@ -50,6 +50,7 @@ class JsonDataHandler(IDataHandler):
:return: List of Pairs
"""
if candle_type:
datadir = datadir.joinpath('futures')
candle_type = f"-{candle_type}"
else:
candle_type = ""