def _pair_data_filename(cls, datadir: Path, pair: str, timeframe: str, candle_type: CandleType) -> Path: pair_s = misc.pair_to_filename(pair) candle = "" if candle_type != CandleType.SPOT: datadir = datadir.joinpath('futures') candle = f"-{candle_type}" filename = datadir.joinpath( f'{pair_s}-{timeframe}{candle}.{cls._get_file_extension()}') return filename
def generate_plot_filename(pair: str, timeframe: str) -> str: """ Generate filenames per pair/timeframe to be used for storing plots """ pair_s = pair_to_filename(pair) file_name = 'freqtrade-plot-' + pair_s + '-' + timeframe + '.html' logger.info('Generate plot file for %s', pair) return file_name
def test_pair_to_filename(pair, expected_result): pair_s = pair_to_filename(pair) assert pair_s == expected_result
def _pair_trades_filename(cls, datadir: Path, pair: str) -> Path: pair_s = misc.pair_to_filename(pair) filename = datadir.joinpath(f'{pair_s}-trades.h5') return filename
def _pair_data_filename(cls, datadir: Path, pair: str, timeframe: str) -> Path: pair_s = misc.pair_to_filename(pair) filename = datadir.joinpath(f'{pair_s}-{timeframe}.h5') return filename
def _pair_trades_filename(cls, datadir: Path, pair: str) -> Path: pair_s = misc.pair_to_filename(pair) filename = datadir.joinpath( f'{pair_s}-trades.{cls._get_file_extension()}') return filename
def _pair_data_filename(cls, datadir: Path, pair: str, timeframe: str) -> Path: pair_s = misc.pair_to_filename(pair) filename = datadir.joinpath( f'{pair_s}-{timeframe}.{cls._get_file_extension()}') return filename