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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user