Skip to content

Commit

Permalink
chore(): small type update
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ-Cro committed Oct 15, 2024
1 parent f7e829e commit 599ba5a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/rest-client-v5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ import {
UpdateApiKeyResultV5,
VIPMarginDataV5,
VaspEntityV5,
VipBorrowableCoinListV5,
VipCollateralCoinListV5,
VipBorrowableCoinsV5,
VipCollateralCoinsV5,
WalletBalanceV5,
WithdrawParamsV5,
WithdrawalRecordV5,
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down
22 changes: 11 additions & 11 deletions src/types/response/v5-crypto-loan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface CollateralCoinV5 {
maxLimit: string;
}

export interface VipCollateralCoinListV5 {
export interface VipCollateralCoinsV5 {
list: CollateralCoinV5[];
vipLevel: string;
}
Expand All @@ -25,7 +25,7 @@ export interface BorrowableCoinV5 {
minBorrowingAmount: string;
}

export interface VipBorrowableCoinListV5 {
export interface VipBorrowableCoinsV5 {
list: BorrowableCoinV5[];
vipLevel: string;
}
Expand Down Expand Up @@ -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;
}

0 comments on commit 599ba5a

Please sign in to comment.