diff --git a/src/components/ftbot/FreqaiModelSelect.vue b/src/components/ftbot/FreqaiModelSelect.vue
new file mode 100644
index 0000000000..68470fbc08
--- /dev/null
+++ b/src/components/ftbot/FreqaiModelSelect.vue
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
diff --git a/src/stores/ftbot.ts b/src/stores/ftbot.ts
index e40190e9b3..ae6638dc14 100644
--- a/src/stores/ftbot.ts
+++ b/src/stores/ftbot.ts
@@ -41,6 +41,7 @@ import { showAlert } from './alerts';
import { useWebSocket } from '@vueuse/core';
import { FTWsMessage, FtWsMessageTypes } from '@/types/wsMessageTypes';
import { showNotification } from '@/shared/notifications';
+import { FreqAIModelListResult } from '../types/types';
export function createBotSubStore(botId: string, botName: string) {
const userService = useUserService(botId);
@@ -81,6 +82,7 @@ export function createBotSubStore(botId: string, botName: string) {
historyStatus: LoadingStatus.loading,
strategyPlotConfig: undefined as PlotConfig | undefined,
strategyList: [] as string[],
+ freqaiModelList: [] as string[],
strategy: {} as StrategyResult,
pairlist: [] as string[],
currentLocks: undefined as LockResponse | undefined,
@@ -432,6 +434,16 @@ export function createBotSubStore(botId: string, botName: string) {
return Promise.reject(error);
}
},
+ async getFreqAIModelList() {
+ try {
+ const { data } = await api.get('/freqaimodels');
+ this.freqaiModelList = data.freqaimodels;
+ return Promise.resolve(data);
+ } catch (error) {
+ console.error(error);
+ return Promise.reject(error);
+ }
+ },
async getAvailablePairs(payload: AvailablePairPayload) {
try {
const { data } = await api.get('/available_pairs', {
diff --git a/src/types/backtest.ts b/src/types/backtest.ts
index efb3b5097b..7b8b0f82e5 100644
--- a/src/types/backtest.ts
+++ b/src/types/backtest.ts
@@ -11,6 +11,11 @@ export interface BacktestPayload {
stake_amount?: string;
dry_run_wallet?: number;
enable_protections?: boolean;
+ backtest_cache?: string;
+ freqaimodel?: string;
+ freqai?: {
+ identifier: string;
+ };
}
export interface PairResult {
diff --git a/src/types/types.ts b/src/types/types.ts
index 546455b3a4..a6088c419b 100644
--- a/src/types/types.ts
+++ b/src/types/types.ts
@@ -175,6 +175,10 @@ export interface StrategyResult {
code: string;
}
+export interface FreqAIModelListResult {
+ freqaimodels: string[];
+}
+
export interface AvailablePairPayload {
timeframe?: string;
stake_currency?: string;
diff --git a/src/views/Backtesting.vue b/src/views/Backtesting.vue
index bba56556cd..4ab024a97f 100644
--- a/src/views/Backtesting.vue
+++ b/src/views/Backtesting.vue
@@ -101,7 +101,7 @@
Strategy
-
+
+
+
+
+
+
+
+
+ Enable FreqAI:
+
+
+
+
+
+
+
+
+
+
+
+