From ec6a8fc64dc9ae6e4d9c7e8b9ef734dc51cb2eec Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Feb 2026 06:22:32 +0000 Subject: [PATCH] fix: rename signal-history API to avoid route conflict + restart backfill --- backend/main.py | 2 +- frontend/app/signals/page.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/main.py b/backend/main.py index 8940139..db6d9b1 100644 --- a/backend/main.py +++ b/backend/main.py @@ -461,7 +461,7 @@ async def get_market_indicators(user: dict = Depends(get_current_user)): return result -@app.get("/api/signals/history") +@app.get("/api/signals/signal-history") async def get_signal_history( symbol: str = "BTC", limit: int = 50, diff --git a/frontend/app/signals/page.tsx b/frontend/app/signals/page.tsx index d9af84b..0ef8ee1 100644 --- a/frontend/app/signals/page.tsx +++ b/frontend/app/signals/page.tsx @@ -181,7 +181,7 @@ function SignalHistory({ symbol }: { symbol: Symbol }) { useEffect(() => { const fetchData = async () => { try { - const res = await authFetch(`/api/signals/history?symbol=${symbol}&limit=20`); + const res = await authFetch(`/api/signals/signal-history?symbol=${symbol}&limit=20`); if (!res.ok) return; const json = await res.json(); setData(json.data || []);