diff --git a/src/main-client.ts b/src/main-client.ts index 4ed67e8..fc9d907 100644 --- a/src/main-client.ts +++ b/src/main-client.ts @@ -205,7 +205,7 @@ import { DelegationHistoryParams, DelistScheduleResponse, WithdrawAddress, - AccountInfoResponse, + AccountInfo, ManagedSubAccountSnapshotParams, ManagedSubAccountSnapshotResponse, ManagedSubAccountTransferLogParams, @@ -697,7 +697,7 @@ export class MainClient extends BaseRestClient { return this.getPrivate('sapi/v1/capital/withdraw/address/list'); } - getAccountInfo(): Promise { + getAccountInfo(): Promise { return this.getPrivate('sapi/v1/account/info'); } diff --git a/src/types/spot.ts b/src/types/spot.ts index 38d7a05..7b295d5 100644 --- a/src/types/spot.ts +++ b/src/types/spot.ts @@ -634,12 +634,12 @@ export type OrderResponseTypeFor< > = RT extends 'ACK' ? OrderResponseACK : RT extends 'RESULT' - ? OrderResponseResult - : RT extends 'FULL' - ? OrderResponseFull - : T extends 'MARKET' | 'LIMIT' - ? OrderResponseFull - : OrderResponseACK; + ? OrderResponseResult + : RT extends 'FULL' + ? OrderResponseFull + : T extends 'MARKET' | 'LIMIT' + ? OrderResponseFull + : OrderResponseACK; export interface OrderResponseACK { symbol: string; @@ -2082,7 +2082,7 @@ export interface WithdrawAddress { whiteStatus: boolean; } -export interface AccountInfoResponse { +export interface AccountInfo { vipLevel: number; isMarginEnabled: boolean; isFutureEnabled: boolean;