mark price test ohlcv_get_pairs

This commit is contained in:
Sam Germain
2021-11-19 04:55:50 -06:00
parent 91a11d01e9
commit 843ca22a56
4 changed files with 114 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ class HDF5DataHandler(IDataHandler):
candle_type = ""
_tmp = [re.search(r'^(\S+)(?=\-' + timeframe + candle_type + '.h5)', p.name)
for p in datadir.glob(f"*{timeframe}.h5")]
for p in datadir.glob(f"*{timeframe}{candle_type}.h5")]
# Check if regex found something and only return these results
return [match[0].replace('_', '/') for match in _tmp if match]

View File

@@ -54,7 +54,7 @@ class JsonDataHandler(IDataHandler):
candle_type = ""
_tmp = [re.search(r'^(\S+)(?=\-' + timeframe + candle_type + '.json)', p.name)
for p in datadir.glob(f"*{timeframe}.{cls._get_file_extension()}")]
for p in datadir.glob(f"*{timeframe}{candle_type}.{cls._get_file_extension()}")]
# Check if regex found something and only return these results
return [match[0].replace('_', '/') for match in _tmp if match]