diff --git a/frontend/src/api/backtest.ts b/frontend/src/api/backtest.ts index 0feb593..c0a24d1 100644 --- a/frontend/src/api/backtest.ts +++ b/frontend/src/api/backtest.ts @@ -107,13 +107,16 @@ export interface TaskListItem { start: string end: string instance?: string + instance_id?: number | null created_at?: string finished_at?: string duration_s?: number | null } -export async function getTasks(type?: string): Promise { - const { data } = await apiClient.get<{ tasks: TaskListItem[] }>('/task', { params: type ? { type } : {} }) +export async function getTasks(type?: string, instance?: number): Promise { + const { data } = await apiClient.get<{ tasks: TaskListItem[] }>('/task', { + params: { ...(type ? { type } : {}), ...(instance ? { instance } : {}) }, + }) return data.tasks } diff --git a/frontend/src/api/paper.ts b/frontend/src/api/paper.ts index 2ce7e7e..487c953 100644 --- a/frontend/src/api/paper.ts +++ b/frontend/src/api/paper.ts @@ -9,6 +9,7 @@ export interface StrategyCfg { } export interface PaperCreate { + name?: string mode: string interval: string symbols: string[] diff --git a/frontend/src/components/MonacoDiff.vue b/frontend/src/components/MonacoDiff.vue index e6166e8..dd067cd 100644 --- a/frontend/src/components/MonacoDiff.vue +++ b/frontend/src/components/MonacoDiff.vue @@ -1,7 +1,7 @@ diff --git a/frontend/src/views/backtest/History.vue b/frontend/src/views/backtest/History.vue index 8a19004..7e6324a 100644 --- a/frontend/src/views/backtest/History.vue +++ b/frontend/src/views/backtest/History.vue @@ -1,16 +1,21 @@