Add hub TP profit field, 2-decimal options PnL, and exchange mark price display.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-08 17:22:26 +08:00
parent e3e53ff7f5
commit 279648de56
8 changed files with 58 additions and 7 deletions
@@ -920,6 +920,7 @@ function formatOrderMarkDisplay(o){
const hasMark = markRaw !== null && markRaw !== undefined && markRaw !== "" && Number.isFinite(markNum) && markNum > 0;
if(hasMark){
if(row.exchange_mark_price_display && row.exchange_mark_price_display !== "-") return row.exchange_mark_price_display;
if(row.price_display && row.price_display !== "-") return row.price_display;
return markNum.toFixed(6);
}
if(row.price_display && row.price_display !== "-") return row.price_display;