賬戶詳情
接口說明
- 功能說明:根據賬戶id查詢賬戶詳情,只包含靜態信息。 
- 適用對象:通過OpenApi開發平台對接webull的客戶。 
- 請求URL:/account/profile 
- 請求方式:GET 
- 頻次限制:每個AppId調用頻次限制為30秒10次。 
請求參數
| 參數 | 類型 | 是否必填 | 描述 | 示例值 | 
|---|---|---|---|---|
| account_id | String | 是 | 賬戶id | 20150320010101001 | 
響應參數
| 參數 | 類型 | 描述 | 示例值 | 
|---|---|---|---|
| account_number | String | 用戶的券商賬號 | 19071234 | 
| account_type | String | 賬戶類項,取值參考字典值AccountType | CASH | 
| account_status | String | 賬戶狀態 | NORMAL-正常;CANCELING-銷戶中;CONVERTING-賬戶類型變更中;CANCELED-已銷戶 | 
請求示例
- 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);