feat: add priceDecimals to MakerEngine and OffsetMakerEngine for improved price formatting in MakerApp and OffsetMakerApp

This commit is contained in:
discountry
2025-11-12 21:24:16 +08:00
parent 9ca35584b5
commit f48371ccd8
4 changed files with 15 additions and 6 deletions
+2
View File
@@ -41,6 +41,7 @@ export interface MakerEngineSnapshot {
topBid: number | null;
topAsk: number | null;
spread: number | null;
priceDecimals: number;
position: PositionSnapshot;
pnl: number;
accountUnrealized: number;
@@ -599,6 +600,7 @@ export class MakerEngine {
topBid: topBid,
topAsk: topAsk,
spread,
priceDecimals: this.getPriceDecimals(),
position,
pnl,
accountUnrealized: this.accountUnrealized,