mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-10 08:48:07 +00:00
feat: add minBaseAmount and minQuoteAmount to ExchangePrecision and LighterGateway for improved trading logic
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user