From 36037d7b2b93528ed3a2ef0e09e72e3e78aaf4b6 Mon Sep 17 00:00:00 2001 From: romysaputrasihananda Date: Thu, 11 Jun 2026 16:18:09 +0700 Subject: [PATCH] fix(web/trades): use 2026-06-01 as deals date_from to avoid bridge response limit Co-Authored-By: Claude Sonnet 4.6 --- web/app/api/deals/route.ts | 2 +- web/app/trades/page.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/api/deals/route.ts b/web/app/api/deals/route.ts index dabe322..7f99772 100644 --- a/web/app/api/deals/route.ts +++ b/web/app/api/deals/route.ts @@ -6,7 +6,7 @@ export const dynamic = "force-dynamic"; export async function GET(req: NextRequest) { const { searchParams } = req.nextUrl; - const dateFrom = searchParams.get("date_from") ?? "2025-01-01T00:00:00"; + const dateFrom = searchParams.get("date_from") ?? "2026-06-01T00:00:00"; const dateTo = searchParams.get("date_to") ?? new Date().toISOString().slice(0, 19); const symbol = searchParams.get("symbol") ?? undefined; try { diff --git a/web/app/trades/page.tsx b/web/app/trades/page.tsx index 78b6ea2..88a99fe 100644 --- a/web/app/trades/page.tsx +++ b/web/app/trades/page.tsx @@ -15,7 +15,7 @@ export default async function TradesPage() { const now = new Date().toISOString().slice(0, 19); [account, deals] = await Promise.all([ getAccount(), - getDeals("2025-01-01T00:00:00", now), + getDeals("2026-06-01T00:00:00", now), ]); } catch { error = true; }