diff --git a/src/main-client.ts b/src/main-client.ts index e04c860b..d5dbdcee 100644 --- a/src/main-client.ts +++ b/src/main-client.ts @@ -1165,13 +1165,13 @@ export class MainClient extends BaseRestClient { **/ getFlexibleSavingProducts( - params: SimpleEarnProductListParams, + params?: SimpleEarnProductListParams, ): Promise { return this.getPrivate(`/sapi/v1/simple-earn/flexible/list`, params); } getSimpleEarnLockedProductList( - params: SimpleEarnProductListParams, + params?: SimpleEarnProductListParams, ): Promise { return this.getPrivate(`/sapi/v1/simple-earn/locked/list`, params); } @@ -1201,22 +1201,19 @@ export class MainClient extends BaseRestClient { } getFlexibleProductPosition( - params: SimpleEarnFlexibleProductPositionParams, + params?: SimpleEarnFlexibleProductPositionParams, ): Promise { return this.getPrivate(`/sapi/v1/simple-earn/flexible/position`, params); } getLockedProductPosition( - params: SimpleEarnLockedProductPositionParams, + params?: SimpleEarnLockedProductPositionParams, ): Promise { return this.getPrivate(`/sapi/v1/simple-earn/locked/position`, params); } - getSimpleEarnAccount(params: { - recvWindow?: number; - timestamp: number; - }): Promise { - return this.getPrivate(`/sapi/v1/simple-earn/account`, params); + getSimpleEarnAccount(): Promise { + return this.getPrivate(`/sapi/v1/simple-earn/account`); } /** diff --git a/src/types/simpleEarn.ts b/src/types/simpleEarn.ts index 76ac3c14..5e7edbf6 100644 --- a/src/types/simpleEarn.ts +++ b/src/types/simpleEarn.ts @@ -83,8 +83,11 @@ export interface SimpleEarnFlexibleProductPositionParams { size?: number; } -export interface SimpleEarnLockedProductPositionParams - extends SimpleEarnFlexibleProductPositionParams { +export interface SimpleEarnLockedProductPositionParams { + asset?: string; + productId?: string; + current?: number; + size?: number; positionId?: string; }