feat: add minBaseAmount and minQuoteAmount to ExchangePrecision and LighterGateway for improved trading logic

This commit is contained in:
discountry
2025-12-07 21:52:35 +08:00
parent 180f47b6e0
commit 2cb6c4fef1
3 changed files with 102 additions and 21 deletions
+4
View File
@@ -1722,6 +1722,8 @@ export class LighterGateway {
priceDecimals: number;
sizeDecimals: number;
marketId: number | null;
minBaseAmount: number | null;
minQuoteAmount: number | null;
}> {
await this.loadMetadata();
if (this.priceDecimals == null || this.sizeDecimals == null) {
@@ -1735,6 +1737,8 @@ export class LighterGateway {
priceDecimals: this.priceDecimals,
sizeDecimals: this.sizeDecimals,
marketId: this.marketId ?? null,
minBaseAmount: this.minBaseAmount ?? null,
minQuoteAmount: this.minQuoteAmount ?? null,
};
}