Further enhance pair retrieval

This commit is contained in:
Matthias
2021-11-28 15:03:55 +01:00
parent 8d70672bee
commit 7faa7539b4
4 changed files with 30 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ class HDF5DataHandler(IDataHandler):
cls._OHLCV_REGEX, p.name
) for p in datadir.glob("*.h5")
]
return [(match[1].replace('_', '/'), match[2], match[3]) for match in _tmp
return [(cls.rebuild_pair_from_filename(match[1]), match[2], match[3]) for match in _tmp
if match and len(match.groups()) > 1]
@classmethod