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
Parameter | Type | Required fields | Description | Example value |
---|---|---|---|---|
account_id | String | Yes | Account ID | 20150320010101001 |
Response Parameter
Parameter | Type | Description | Example value |
---|---|---|---|
account_number | String | User's brokerage account | 5MV06064 |
account_type | String | Account type item: refer to the dictionary value AccountType for the value. | CASH |
account_status | String | Account Status | NORMAL-Normal;CANCELING-Account closing;CONVERTING-Account type is changing;CANCELED-Account closed |
Request Example
- Python
- Java
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()
HttpApiConfig apiConfig = HttpApiConfig.builder()
.appKey(Env.APP_KEY)
.appSecret(Env.APP_SECRET)
.regionId(Region.us.name())
.build();
TradeApiService apiService = new TradeHttpApiService(apiConfig);
AccountDetail accountDetail = apiService.getAccountDetail(accountId);
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\""
}