mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Only load one strategy from historic result
This commit is contained in:
parent
bef7202554
commit
4f744a402d
|
@ -18,7 +18,7 @@
|
|||
:key="idx"
|
||||
class="d-flex justify-content-between align-items-center py-1 mb-1"
|
||||
button
|
||||
@click="getBacktestHistoryResult(res.filename)"
|
||||
@click="getBacktestHistoryResult(res)"
|
||||
>
|
||||
<strong>{{ res.strategy }}</strong>
|
||||
backtested on: {{ timestampms(res.backtest_start_time * 1000) }}
|
||||
|
|
|
@ -1067,9 +1067,9 @@ export function createBotSubStore(botId: string, botName: string) {
|
|||
const result = await api.get<BacktestHistoryEntry[]>('/backtest/history');
|
||||
commit('setBacktestHistory', result.data);
|
||||
},
|
||||
async [BotStoreActions.getBacktestHistoryResult]({ commit }, filename: string) {
|
||||
async [BotStoreActions.getBacktestHistoryResult]({ commit }, payload: BacktestHistoryEntry) {
|
||||
const result = await api.get<BacktestStatus>('/backtest/history/result', {
|
||||
params: { filename: filename },
|
||||
params: { filename: payload.filename, strategy: payload.strategy },
|
||||
});
|
||||
if (result.data.backtest_result) {
|
||||
commit('updateBacktestResult', result.data.backtest_result);
|
||||
|
|
Loading…
Reference in New Issue
Block a user