fix: rename signal-history API to avoid route conflict + restart backfill

This commit is contained in:
root 2026-02-28 06:22:32 +00:00
parent 424cb993f8
commit ec6a8fc64d
2 changed files with 2 additions and 2 deletions

View File

@ -461,7 +461,7 @@ async def get_market_indicators(user: dict = Depends(get_current_user)):
return result return result
@app.get("/api/signals/history") @app.get("/api/signals/signal-history")
async def get_signal_history( async def get_signal_history(
symbol: str = "BTC", symbol: str = "BTC",
limit: int = 50, limit: int = 50,

View File

@ -181,7 +181,7 @@ function SignalHistory({ symbol }: { symbol: Symbol }) {
useEffect(() => { useEffect(() => {
const fetchData = async () => { const fetchData = async () => {
try { 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; if (!res.ok) return;
const json = await res.json(); const json = await res.json();
setData(json.data || []); setData(json.data || []);