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
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 | 19071234 |
account_type | String | Account type item: refer to the dictionary value AccountTypefor 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.HK.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.hk.name())
.build();
TradeApiService apiService = new TradeHttpApiService(apiConfig);
AccountDetail accountDetail = apiService.getAccountDetail(accountId);