Resolve position average entry from CTP trades and PnL instead of stale monitor cache.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -216,11 +216,9 @@
|
||||
data.quotes.forEach(function (q) {
|
||||
var card = findPosCardByKey(q.key || q.position_key);
|
||||
if (!card) return;
|
||||
var entryEl = card.querySelector('.pos-q-entry');
|
||||
var markEl = card.querySelector('.pos-q-mark');
|
||||
var pnlEl = card.querySelector('.pos-q-pnl');
|
||||
var pnlWrap = card.querySelector('.pos-q-pnl-wrap');
|
||||
if (entryEl && q.entry_price != null) entryEl.textContent = fmtNum(q.entry_price);
|
||||
if (markEl && q.mark_price != null) markEl.textContent = fmtNum(q.mark_price);
|
||||
if (pnlEl && q.float_pnl != null) {
|
||||
var pnl = q.float_pnl;
|
||||
|
||||
Reference in New Issue
Block a user