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 integrate into Webull through Webull OpenAPI.

  • Request URL: /account/profile

  • Request method: GET

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

Request Parameters

ParameterTypeRequired fieldsDescriptionExample value
account_idStringYesAccount ID20150320010101001

Response Parameter

ParameterTypeDescriptionExample value
account_numberStringUser's brokerage account5MV06064
account_typeStringAccount type item: refer to the dictionary value AccountType for 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.US.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": "5MV06064",
"account_type": "MARGIN",
"account_status": "NORMAL"
}

Exception Example

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