Futures candles should go into a subdirectory

This commit is contained in:
Matthias
2021-12-03 07:04:53 +01:00
parent fae7167bf3
commit 7baf11a497
6 changed files with 26 additions and 6 deletions

View File

@@ -254,7 +254,8 @@ def list_available_pairs(timeframe: Optional[str] = None, stake_currency: Option
dh = get_datahandler(config['datadir'], config.get('dataformat_ohlcv', None))
pair_interval = dh.ohlcv_get_available_data(config['datadir'])
# TODO-lev: xmatt to decide: use candle-type or market mode for this endpoint??
pair_interval = dh.ohlcv_get_available_data(config['datadir'], 'spot')
if timeframe:
pair_interval = [pair for pair in pair_interval if pair[1] == timeframe]