Skip to content

Commit

Permalink
Merge branch 'master' into Update181124
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ-Cro committed Nov 18, 2024
2 parents af74b8f + 7c6f271 commit 406d99a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ import {
GetBnsolRateHistoryReq,
PortfolioMarginProSpanAccountInfo,
PortfolioMarginProAccountBalance,
SimpleEarnRedeemFlexibleProductParams,
} from './types/spot';

import {
Expand Down Expand Up @@ -2920,9 +2921,7 @@ export class MainClient extends BaseRestClient {
return this.postPrivate(`sapi/v1/simple-earn/locked/subscribe`, params);
}

redeemFlexibleProduct(params: {
positionId: string;
}): Promise<SimpleEarnRedeemResponse> {
redeemFlexibleProduct(params: SimpleEarnRedeemFlexibleProductParams): Promise<SimpleEarnRedeemResponse> {
return this.postPrivate(`sapi/v1/simple-earn/flexible/redeem`, params);
}

Expand Down
8 changes: 8 additions & 0 deletions src/types/spot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4893,6 +4893,14 @@ export interface SimpleEarnSubscribeLockedProductResponse {
positionId: string;
success: boolean;
}

export interface SimpleEarnRedeemFlexibleProductParams {
productId: string;
redeemAll?: boolean;
amount?: number;
destAccount?: 'SPOT' | 'FUND' ;
}

export interface SimpleEarnRedeemResponse {
success: boolean;
redeemId: string;
Expand Down

0 comments on commit 406d99a

Please sign in to comment.