Remove SPOT_ candletype

This commit is contained in:
Matthias
2021-12-08 14:35:15 +01:00
parent d89cbda7b8
commit 9b9d61c6d6
19 changed files with 115 additions and 112 deletions

View File

@@ -54,7 +54,7 @@ class HDF5DataHandler(IDataHandler):
:return: List of Pairs
"""
candle = ""
if candle_type not in (CandleType.SPOT, CandleType.SPOT_):
if candle_type != CandleType.SPOT:
datadir = datadir.joinpath('futures')
candle = f"-{candle_type}"

View File

@@ -193,7 +193,7 @@ class IDataHandler(ABC):
) -> Path:
pair_s = misc.pair_to_filename(pair)
candle = ""
if candle_type not in (CandleType.SPOT, CandleType.SPOT_):
if candle_type != CandleType.SPOT:
datadir = datadir.joinpath('futures')
candle = f"-{candle_type}"
filename = datadir.joinpath(

View File

@@ -55,7 +55,7 @@ class JsonDataHandler(IDataHandler):
:return: List of Pairs
"""
candle = ""
if candle_type not in (CandleType.SPOT, CandleType.SPOT_):
if candle_type != CandleType.SPOT:
datadir = datadir.joinpath('futures')
candle = f"-{candle_type}"