Allow requests without timerange

This commit is contained in:
Matthias 2023-04-10 18:20:09 +02:00
parent 8d5450d901
commit 225a740cc9
2 changed files with 2 additions and 1 deletions

View File

@ -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', {

View File

@ -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;
};