Skip to main content

Account Detail

Interface Description

  • Function description: Query account details according to account ID, which only contains static information.

  • Applicable objects: Customers who connect to webull through the OpenApi development platform.

  • Request URL: /account/profile

  • Request method: GET

  • Frequency limit: The calling frequency of each AppId is limited to 10 times in 30 seconds.

Request Parameters

ParameterTypeRequired fieldsDescriptionExample value
account_idStringYesAccount ID20150320010101001

Response Parameter

ParameterTypeDescriptionExample value
account_numberStringUser's brokerage account19071234
account_typeStringAccount type item: refer to the dictionary value AccountTypefor the value.CASH
account_statusStringAccount StatusNORMAL-Normal;CANCELING-Account closing;CONVERTING-Account type is changing;CANCELED-Account closed

Request Example

from webullsdktrade.api import API
from webullsdkcore.client import ApiClient
from webullsdkcore.common.region import Region

api_client = ApiClient(your_app_key, your_app_secret, Region.HK.value)
api = API(api_client)
response = api.account.get_account_profile(account_id)
if response.status_code == 200:
account_profile = response.json()

Response Example

{
"account_number": "10000029",
"account_type": "MARGIN",
"account_status": "NORMAL"
}

Exception Example

{
"error_code": "INVALID_TOKEN",
"message": "401 UNAUTHORIZED \"app_id and account_id not related\""
}