From 4a730bb515d08ceb9c387348278a3e114598a0c0 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 20 Dec 2022 19:44:14 +0100 Subject: [PATCH] Allow setting identifier via UI --- src/types/backtest.ts | 3 +++ src/views/Backtesting.vue | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/src/types/backtest.ts b/src/types/backtest.ts index cb1a8d9a..7b8b0f82 100644 --- a/src/types/backtest.ts +++ b/src/types/backtest.ts @@ -13,6 +13,9 @@ export interface BacktestPayload { enable_protections?: boolean; backtest_cache?: string; freqaimodel?: string; + freqai?: { + identifier: string; + }; } export interface PairResult { diff --git a/src/views/Backtesting.vue b/src/views/Backtesting.vue index 222a09cd..4ab024a9 100644 --- a/src/views/Backtesting.vue +++ b/src/views/Backtesting.vue @@ -220,6 +220,18 @@ + + + { } if (freqAI.value.enabled) { btPayload.freqaimodel = freqAI.value.model; + if (freqAI.value.identifier !== '') { + btPayload.freqai = { identifier: freqAI.value.identifier }; + } } botStore.activeBot.startBacktest(btPayload);