diff --git a/backend/main.py b/backend/main.py index 06055a0..38fb6d7 100644 --- a/backend/main.py +++ b/backend/main.py @@ -711,13 +711,13 @@ async def paper_positions( if strategy == "all": rows = await async_fetch( "SELECT id, symbol, direction, score, tier, strategy, entry_price, entry_ts, " - "tp1_price, tp2_price, sl_price, tp1_hit, status, atr_at_entry, score_factors " + "tp1_price, tp2_price, sl_price, tp1_hit, status, atr_at_entry, score_factors, risk_distance " "FROM paper_trades WHERE status IN ('active','tp1_hit') ORDER BY entry_ts DESC" ) else: rows = await async_fetch( "SELECT id, symbol, direction, score, tier, strategy, entry_price, entry_ts, " - "tp1_price, tp2_price, sl_price, tp1_hit, status, atr_at_entry, score_factors " + "tp1_price, tp2_price, sl_price, tp1_hit, status, atr_at_entry, score_factors, risk_distance " "FROM paper_trades WHERE status IN ('active','tp1_hit') AND strategy = $1 ORDER BY entry_ts DESC", strategy, )