public class SubAccountApi.APIlistSubAccountsRequest extends Object
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Call |
buildCall(ApiCallback _callback)
Build call for listSubAccounts
|
List<SubAccount> |
execute()
Execute listSubAccounts request
|
okhttp3.Call |
executeAsync(ApiCallback<List<SubAccount>> _callback)
Execute listSubAccounts request (asynchronously)
|
ApiResponse<List<SubAccount>> |
executeWithHttpInfo()
Execute listSubAccounts request with HTTP info returned
|
SubAccountApi.APIlistSubAccountsRequest |
type(String type)
Set type
|
public SubAccountApi.APIlistSubAccountsRequest type(String type)
type - `0` to list all types of sub-accounts (currently supporting cross margin accounts and sub-accounts). `1` to list sub-accounts only. If no parameter is passed, only sub-accounts will be listed by default. (optional)public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
_callback - ApiCallback API callbackApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public List<SubAccount> execute() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public ApiResponse<List<SubAccount>> executeWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call executeAsync(ApiCallback<List<SubAccount>> _callback) throws ApiException
_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
Copyright © 2023. All rights reserved.