Account List(v2)
Interface Description
Function description: Query the account list and return account information.
Applicable objects: Customers who connect with webull through an open platform.
request URL:
/openapi/account/list
request method: GET
Frequency limit: The calling frequency of each AppId is limited to 20 times in 30 seconds.
Response parameter
Parameter | Type | Describe | Example value |
---|---|---|---|
account_id | String | Webull account ID (required for subsequent transactions and account balance query) | 863417315629211648 |
account_number | String | Brokerage account | CJP0036727 |
account_type | String | Account type item: refer to the dictionary value AccountType | CASH |
user_id | String | User ID | 1111702234 |
Request example
- Python
- Java
from webullsdkcore.client import ApiClient
from webullsdktrade.api import API
api_client = ApiClient(your_app_key, your_app_secret, Region.JP.value)
api = API(api_client)
res = api.account_v2.get_account_list()
if res.status_code == 200:
print("account_list=" + json.dumps(res.json(), indent=4))
HttpApiConfig apiConfig = HttpApiConfig.builder()
.appKey(Env.APP_KEY)
.appSecret(Env.APP_SECRET)
.regionId(Region.jp.name())
.build();
TradeApiService apiService = new TradeHttpApiService(apiConfig);
List<Account> accounts = apiService.listAccount();