Account List
Interface Description
Function description: to query the account list and return account information.
URL: /app/subscriptions/list
Method: GET
Rate limit: The calling frequency of each App ID is limited to 10 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 |
account_id | String | Webull Pay Account ID (required for subsequent transactions and account balance query) | co393b0ab01 |
account_number | String | Webull Pay crypto account | 5MV06064 |
Request Example
- Python
- Java
from webullpaysdktrade.api import API
from webullpaysdkcore.client import ApiClient
from webullpaysdkcore.common.region import Region
subscription_id = ""
your_app_key = "<your_app_key>"
your_app_secret = "<your_app_secret>"
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()
print(app_subscriptions)
HttpApiConfig apiConfig = HttpApiConfig.builder()
.appKey("<your_app_key>")
.appSecret("<your_app_secret>")
.regionId(Region.us.name())
.build();
TradeApiService apiService = new TradeHttpApiService(apiConfig);
List<Account> accounts = apiService.getAccountList("");
//print
System.out.println(JsonSerializer.toJson(accounts, SerializeConfig.builder().underscoresToCamel(true).build()));
Response Example
[
{
"subscription_id": "1646884438608",
"account_id": "co393b0ab01",
"account_number": "5MV06064"
}
]