mirror of
https://github.com/freqtrade/frequi.git
synced 2024-09-20 09:31:10 +00:00
Allow requests without timerange
This commit is contained in:
parent
8d5450d901
commit
225a740cc9
|
@ -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', {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user