백테스팅 목록 아이템 삭제 기능추가

This commit is contained in:
Macbook
2026-06-12 00:43:07 +09:00
parent 423c60183e
commit 0d338fffe4
9 changed files with 244 additions and 34 deletions
+10
View File
@@ -1348,6 +1348,16 @@ export async function deleteBacktestResult(id: number): Promise<void> {
await request(`/backtest-results/${id}`, { method: 'DELETE' });
}
/** 모의·가상투자 체결 이력 일괄 삭제 (실시간 매매 목록 그룹 제거) */
export async function deletePaperTradesBatch(ids: number[]): Promise<number> {
if (ids.length === 0) return 0;
const res = await request<{ deleted?: number }>('/paper/trades/batch', {
method: 'DELETE',
body: JSON.stringify({ ids }),
});
return res?.deleted ?? 0;
}
// ─────────────────────────────────────────────────────────────────────────────
// 실시간 전략 체크 설정 API
// ─────────────────────────────────────────────────────────────────────────────