feat: implement getPrecision method in AsterExchangeAdapter and enhance AsterGateway for precision handling in order normalization

This commit is contained in:
discountry
2025-11-04 22:10:45 +08:00
parent 1832c4c13e
commit 078b201d15
3 changed files with 255 additions and 1 deletions
+29
View File
@@ -336,6 +336,35 @@ export interface AsterSpotExchangeFilter {
[key: string]: string | number | boolean | undefined;
}
export interface AsterFuturesSymbolFilter {
filterType: string;
tickSize?: string;
stepSize?: string;
minPrice?: string;
maxPrice?: string;
minQty?: string;
maxQty?: string;
[key: string]: string | number | boolean | undefined;
}
export interface AsterFuturesSymbolInfo {
symbol: string;
pair?: string;
contractType?: string;
pricePrecision?: number;
quantityPrecision?: number;
baseAssetPrecision?: number;
quotePrecision?: number;
underlyingType?: string;
filters?: AsterFuturesSymbolFilter[];
}
export interface AsterFuturesExchangeInfo {
timezone?: string;
serverTime?: number;
symbols?: AsterFuturesSymbolInfo[];
}
export interface AsterSpotAssetInfo {
asset: string;
}