Skip to content

Commit

Permalink
add enablePortfolioMarginTrading in getApiKeyPermissionResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
bfoltyn committed Oct 4, 2024
1 parent 236e24f commit 4b69bb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/modules/restful/wallet/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ export interface getApiKeyPermissionResponse {
enableFutures: boolean;
enableMargin: boolean;
enableSpotAndMarginTrading: boolean;
tradingAuthorityExpirationTime: number;
tradingAuthorityExpirationTime?: number;
enablePortfolioMarginTrading: boolean;
}

export interface oneClickArrivalDepositApplyOptions {
Expand Down
3 changes: 2 additions & 1 deletion tests/mock_values/restful/wallet/getApiKeyPermission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ export const mockResponse: RestWalletTypes.getApiKeyPermissionResponse = {
'enableFutures': false,
'enableMargin': false,
'enableSpotAndMarginTrading': false,
'tradingAuthorityExpirationTime': 1628985600000
'tradingAuthorityExpirationTime': 1628985600000,
'enablePortfolioMarginTrading': false
};

0 comments on commit 4b69bb4

Please sign in to comment.