Update hdf5 to not raise naturalNaming warnings

This commit is contained in:
Matthias
2022-03-27 16:38:12 +02:00
parent 84777e255e
commit 30cff1bd2c
4 changed files with 7 additions and 3 deletions

View File

@@ -206,7 +206,9 @@ class HDF5DataHandler(IDataHandler):
@classmethod
def _pair_ohlcv_key(cls, pair: str, timeframe: str) -> str:
return f"{pair}/ohlcv/tf_{timeframe}"
# Escape futures pairs to avoid warnings
pair_esc = pair.replace(':', '_')
return f"{pair_esc}/ohlcv/tf_{timeframe}"
@classmethod
def _pair_trades_key(cls, pair: str) -> str: