Skip to main content

Account Detail

Interface Description

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

  • URL: /account/profile

  • Method: GET

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

Request Parameters

ParameterTypeRequired fieldsDescriptionExample value
account_idStringYesAccount IDco393b0ab01

Response Parameter

ParameterTypeDescriptionExample value
account_numberStringUser's crypto account5MV06064
account_typeStringAccount type item: refer to the dictionary value AccountType for the value.CRYPTO
account_statusStringAccountStatus

Request Example

from webullpaysdktrade.api import API
from webullpaysdkcore.client import ApiClient
from webullpaysdkcore.common.region import Region

your_app_key = "<your_app_key>"
your_app_secret = "<your_app_secret>"
account_id = "account_id"

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()
print(account_profile)

Response Example

{
"account_number": "CF53W03JO",
"account_type": "CRYPTO",
"account_status": "NORMAL"
}

Exception Example

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