diff --git a/backend/main.py b/backend/main.py index 2517927..36f6632 100644 --- a/backend/main.py +++ b/backend/main.py @@ -426,11 +426,13 @@ async def get_signal_latest(user: dict = Depends(get_current_user)): result = {} for sym in ["BTCUSDT", "ETHUSDT"]: row = await async_fetchrow( - "SELECT to_jsonb(si) AS data FROM signal_indicators si WHERE symbol = $1 ORDER BY ts DESC LIMIT 1", + "SELECT ts, cvd_fast, cvd_mid, cvd_day, cvd_fast_slope, atr_5m, atr_percentile, " + "vwap_30m, price, p95_qty, p99_qty, score, signal " + "FROM signal_indicators WHERE symbol = $1 ORDER BY ts DESC LIMIT 1", sym ) if row: - result[sym.replace("USDT", "")] = row["data"] + result[sym.replace("USDT", "")] = row return result