Account List
Interface Description
Function description: Paginate to query the account list and return account information.
Applicable objects: Customers who connect with webull through an open platform.
request URL: /app/subscriptions/list
request method: GET
Frequency limit: The calling frequency of each App ID is limited to 20 times in 30 seconds.
Request Parameters
Parameter | Type | Required fields | Describe | Example value |
---|---|---|---|---|
subscription_id | String | No | The order ID of the last piece of data, if no parameter is passed, the first 100 pieces of data are queried by default | 1643264151319 |
Response Parameter
Parameter | Type | Describe | Example value |
---|---|---|---|
subscription_id | String | Third Party Subscription ID | 1643264151319 |
user_id | String | User ID | 1111702234 |
account_id | String | Webull account ID (required for subsequent transactions and account balance query) | QJHO3P1PR9425Q6UAT7QLJTEKB |
account_number | String | Brokerage account | 5MV06064 |
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_app_subscriptions(subscription_id)
if response.status_code == 200:
app_subscriptions = response.json()
HttpApiConfig apiConfig = HttpApiConfig.builder()
.appKey(Env.APP_KEY)
.appSecret(Env.APP_SECRET)
.regionId(Region.us.name())
.build();
TradeApiService apiService = new TradeHttpApiService(apiConfig);
List<Account> accounts = apiService.getAccountList(subscriptionId);
Response Example
[{
'subscription_id': '1646884438608',
'user_id': '1940003393',
'account_id': '7THGGKDQ5SRN2SFORREFD54DO9',
'account_number': '5MV06064'
}]