mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-02 18:13:04 +00:00
use trading_mode to determine trades file location
This commit is contained in:
@@ -277,9 +277,8 @@ class IDataHandler(ABC):
|
||||
@classmethod
|
||||
def _pair_trades_filename(cls, datadir: Path, pair: str, trading_mode: TradingMode) -> Path:
|
||||
pair_s = misc.pair_to_filename(pair)
|
||||
if ':' in pair:
|
||||
if trading_mode == TradingMode.FUTURES:
|
||||
# Futures pair ...
|
||||
# TODO: this should not rely on ";" in the pairname.
|
||||
datadir = datadir.joinpath('futures')
|
||||
|
||||
filename = datadir.joinpath(f'{pair_s}-trades.{cls._get_file_extension()}')
|
||||
|
||||
Reference in New Issue
Block a user