fix(gate-bot): format mark price with exchange symbol precision

Use price_to_precision in price_snapshot so live mark price matches entry/SL display instead of fixed 8 decimals.
This commit is contained in:
dekun
2026-06-04 16:33:09 +08:00
parent 88fc21e278
commit 3d55aa0975
3 changed files with 36 additions and 1 deletions
+1 -1
View File
@@ -1867,7 +1867,7 @@ function refreshPriceSnapshotConditional(){
else if(o.price_display) disp = o.price_display;
else {
const px = hasMark ? Number(o.exchange_mark_price) : Number(o.price);
disp = Number.isFinite(px) ? px.toFixed(hasMark ? 8 : 6) : "-";
disp = Number.isFinite(px) ? String(px) : "-";
}
pEl.innerText = disp;
const pxNum = hasMark ? Number(o.exchange_mark_price) : Number(o.price);