From 15b619efa0cd8fb71726fdc2d8676e98ea904909 Mon Sep 17 00:00:00 2001 From: Mukan Erkin Date: Sun, 19 Apr 2026 20:56:46 +0300 Subject: [PATCH] fix(ui): refresh positions on buy/sell log events Co-Authored-By: Claude Sonnet 4.6 --- src/web/bot.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/bot.html b/src/web/bot.html index e6aa704..93b4722 100644 --- a/src/web/bot.html +++ b/src/web/bot.html @@ -630,7 +630,7 @@ function connectLogSSE() { if (log.id <= lastLogId) return; lastLogId = log.id; appendLog(log); - if (log.level === 'trade') { loadPositions(); loadClosed(); } + if (log.level === 'buy' || log.level === 'sell' || log.level === 'trade') { loadPositions(); loadClosed(); } }); logSource.onopen = () => { document.getElementById('log-dot').style.background = 'var(--green)';