diff --git a/src/rest-client-v5.ts b/src/rest-client-v5.ts index d0ab3fa3..dfbb08b8 100644 --- a/src/rest-client-v5.ts +++ b/src/rest-client-v5.ts @@ -185,8 +185,8 @@ import { UpdateApiKeyResultV5, VIPMarginDataV5, VaspEntityV5, - VipBorrowableCoinListV5, - VipCollateralCoinListV5, + VipBorrowableCoinsV5, + VipCollateralCoinsV5, WalletBalanceV5, WithdrawParamsV5, WithdrawalRecordV5, @@ -2050,7 +2050,7 @@ export class RestClientV5 extends BaseRestClient { currency?: string; }): Promise< APIResponseV3WithTime<{ - vipCoinList: VipCollateralCoinListV5[]; + vipCoinList: VipCollateralCoinsV5[]; }> > { return this.get('/v5/crypto-loan/collateral-data', params); @@ -2066,7 +2066,7 @@ export class RestClientV5 extends BaseRestClient { currency?: string; }): Promise< APIResponseV3WithTime<{ - vipCoinList: VipBorrowableCoinListV5[]; + vipCoinList: VipBorrowableCoinsV5[]; }> > { return this.get('/v5/crypto-loan/loanable-data', params); diff --git a/src/types/response/v5-crypto-loan.ts b/src/types/response/v5-crypto-loan.ts index b0582804..e379de79 100644 --- a/src/types/response/v5-crypto-loan.ts +++ b/src/types/response/v5-crypto-loan.ts @@ -7,7 +7,7 @@ export interface CollateralCoinV5 { maxLimit: string; } -export interface VipCollateralCoinListV5 { +export interface VipCollateralCoinsV5 { list: CollateralCoinV5[]; vipLevel: string; } @@ -25,7 +25,7 @@ export interface BorrowableCoinV5 { minBorrowingAmount: string; } -export interface VipBorrowableCoinListV5 { +export interface VipBorrowableCoinsV5 { list: BorrowableCoinV5[]; vipLevel: string; } @@ -81,12 +81,12 @@ export interface CompletedLoanOrderV5 { status: number; } export interface LoanLTVAdjustmentHistoryV5 { - collateralCurrency: string; - orderId: string; - adjustId: string; - adjustTime: string; - preLTV: string; - afterLTV: string; - direction: number; - amount: string; - } + collateralCurrency: string; + orderId: string; + adjustId: string; + adjustTime: string; + preLTV: string; + afterLTV: string; + direction: number; + amount: string; +}