diff --git a/src/stores/ftbot.ts b/src/stores/ftbot.ts index f0a44ac6..87837b72 100644 --- a/src/stores/ftbot.ts +++ b/src/stores/ftbot.ts @@ -356,7 +356,7 @@ export function createBotSubStore(botId: string, botName: string) { }); }, getPairHistory(payload: PairHistoryPayload) { - if (payload.pair && payload.timeframe && payload.timerange) { + if (payload.pair && payload.timeframe) { this.historyStatus = LoadingStatus.loading; return api .get('/pair_history', { diff --git a/src/views/Backtesting.vue b/src/views/Backtesting.vue index 147c8e24..dcfa162e 100644 --- a/src/views/Backtesting.vue +++ b/src/views/Backtesting.vue @@ -379,6 +379,7 @@ const selectBacktestResult = () => { botStore.activeBot.getStrategy(strategy.value); selectedTimeframe.value = botStore.activeBot.selectedBacktestResult.timeframe; selectedDetailTimeframe.value = botStore.activeBot.selectedBacktestResult.timeframe_detail || ''; + // TODO: maybe this should not use timerange, but the actual backtest start/end results instead? timerange.value = botStore.activeBot.selectedBacktestResult.timerange; };