Skip to content
Account Profile & Status

Update Account Trade Permission

Updates the trading permissions of a securities account.

Request parameters

  • Required: account_no (securities account), changes (permission changes).
  • changes is a list that specifies, item by item, which trading permissions to grant or revoke.
  • See the field descriptions for each field's format, value range, and business meaning.

Business notes

Adjusts the account's trading permissions according to each entry in changes, granting or revoking specific trading capabilities.

Risk warning

This operation changes what the account is allowed to trade. Confirm the target account and the change items before calling.

Result

On success, the permission changes are applied. Refer to the 200 response definition for the resulting state.

POSThttps://b-api.lbkrs.com/v1/whaleapi/account/update_account_trade_permission

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Permission

account.update_trade_permission

The Broker ACCESS_TOKEN must be granted the permission above, or the call will be rejected.

Request body application/json

account_nostringrequired

account_no

account_no is the securities account number (such as L6VQEU00121996). It differs from the customer ID member_id and the internal securities account ID aaid.

changesarray<object>required

changes

Child attributes
permission_typestringrequired

permission_type. otc.US, stock.HK)

permission_statusstringrequired

permission_status. close / open)

Responses

HTTP 200Successful response
HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs