public class WalletApi extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
WalletApi.APIgetTotalBalanceRequest |
class |
WalletApi.APIgetTradeFeeRequest |
class |
WalletApi.APIlistDepositsRequest |
class |
WalletApi.APIlistSavedAddressRequest |
class |
WalletApi.APIlistSubAccountBalancesRequest |
class |
WalletApi.APIlistSubAccountCrossMarginBalancesRequest |
class |
WalletApi.APIlistSubAccountFuturesBalancesRequest |
class |
WalletApi.APIlistSubAccountMarginBalancesRequest |
class |
WalletApi.APIlistSubAccountTransfersRequest |
class |
WalletApi.APIlistWithdrawalsRequest |
class |
WalletApi.APIlistWithdrawStatusRequest |
| Constructor and Description |
|---|
WalletApi() |
WalletApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
DepositAddress |
getDepositAddress(String currency)
Generate currency deposit address
|
okhttp3.Call |
getDepositAddressAsync(String currency,
ApiCallback<DepositAddress> _callback)
Generate currency deposit address (asynchronously)
|
okhttp3.Call |
getDepositAddressCall(String currency,
ApiCallback _callback)
Build call for getDepositAddress
|
ApiResponse<DepositAddress> |
getDepositAddressWithHttpInfo(String currency)
Generate currency deposit address
|
WalletApi.APIgetTotalBalanceRequest |
getTotalBalance()
Retrieve user's total balances
This endpoint returns an approximate sum of exchanged amount from all currencies to input currency for each account.The exchange rate and account balance could have been cached for at most 1 minute.
|
WalletApi.APIgetTradeFeeRequest |
getTradeFee()
Retrieve personal trading fee
|
List<CurrencyChain> |
listCurrencyChains(String currency)
List chains supported for specified currency
|
okhttp3.Call |
listCurrencyChainsAsync(String currency,
ApiCallback<List<CurrencyChain>> _callback)
List chains supported for specified currency (asynchronously)
|
okhttp3.Call |
listCurrencyChainsCall(String currency,
ApiCallback _callback)
Build call for listCurrencyChains
|
ApiResponse<List<CurrencyChain>> |
listCurrencyChainsWithHttpInfo(String currency)
List chains supported for specified currency
|
WalletApi.APIlistDepositsRequest |
listDeposits()
Retrieve deposit records
Record time range cannot exceed 30 days
|
WalletApi.APIlistSavedAddressRequest |
listSavedAddress(String currency)
Query saved address
|
WalletApi.APIlistSubAccountBalancesRequest |
listSubAccountBalances()
Retrieve sub account balances
|
WalletApi.APIlistSubAccountCrossMarginBalancesRequest |
listSubAccountCrossMarginBalances()
Query subaccount's cross_margin account info
|
WalletApi.APIlistSubAccountFuturesBalancesRequest |
listSubAccountFuturesBalances()
Query sub accounts' futures account balances
|
WalletApi.APIlistSubAccountMarginBalancesRequest |
listSubAccountMarginBalances()
Query sub accounts' margin balances
|
WalletApi.APIlistSubAccountTransfersRequest |
listSubAccountTransfers()
Retrieve transfer records between main and sub accounts
Record time range cannot exceed 30 days > Note: only records after 2020-04-10 can be retrieved
|
WalletApi.APIlistWithdrawalsRequest |
listWithdrawals()
Retrieve withdrawal records
Record time range cannot exceed 30 days
|
WalletApi.APIlistWithdrawStatusRequest |
listWithdrawStatus()
Retrieve withdrawal status
|
void |
setApiClient(ApiClient apiClient) |
void |
subAccountToSubAccount(SubAccountToSubAccount subAccountToSubAccount)
Sub-account transfers to sub-account
|
okhttp3.Call |
subAccountToSubAccountAsync(SubAccountToSubAccount subAccountToSubAccount,
ApiCallback<Void> _callback)
Sub-account transfers to sub-account (asynchronously)
|
okhttp3.Call |
subAccountToSubAccountCall(SubAccountToSubAccount subAccountToSubAccount,
ApiCallback _callback)
Build call for subAccountToSubAccount
|
ApiResponse<Void> |
subAccountToSubAccountWithHttpInfo(SubAccountToSubAccount subAccountToSubAccount)
Sub-account transfers to sub-account
|
TransactionID |
transfer(Transfer transfer)
Transfer between trading accounts
Transfer between different accounts.
|
okhttp3.Call |
transferAsync(Transfer transfer,
ApiCallback<TransactionID> _callback)
Transfer between trading accounts (asynchronously)
Transfer between different accounts.
|
okhttp3.Call |
transferCall(Transfer transfer,
ApiCallback _callback)
Build call for transfer
|
ApiResponse<TransactionID> |
transferWithHttpInfo(Transfer transfer)
Transfer between trading accounts
Transfer between different accounts.
|
void |
transferWithSubAccount(SubAccountTransfer subAccountTransfer)
Transfer between main and sub accounts
Support transferring with sub user's spot or futures account.
|
okhttp3.Call |
transferWithSubAccountAsync(SubAccountTransfer subAccountTransfer,
ApiCallback<Void> _callback)
Transfer between main and sub accounts (asynchronously)
Support transferring with sub user's spot or futures account.
|
okhttp3.Call |
transferWithSubAccountCall(SubAccountTransfer subAccountTransfer,
ApiCallback _callback)
Build call for transferWithSubAccount
|
ApiResponse<Void> |
transferWithSubAccountWithHttpInfo(SubAccountTransfer subAccountTransfer)
Transfer between main and sub accounts
Support transferring with sub user's spot or futures account.
|
public WalletApi()
public WalletApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call listCurrencyChainsCall(String currency, ApiCallback _callback) throws ApiException
currency - Currency name (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public List<CurrencyChain> listCurrencyChains(String currency) throws ApiException
currency - Currency name (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public ApiResponse<List<CurrencyChain>> listCurrencyChainsWithHttpInfo(String currency) throws ApiException
currency - Currency name (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call listCurrencyChainsAsync(String currency, ApiCallback<List<CurrencyChain>> _callback) throws ApiException
currency - Currency name (required)_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 | Successfully retrieved | - |
public okhttp3.Call getDepositAddressCall(String currency, ApiCallback _callback) throws ApiException
currency - Currency name (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Address successfully generated | - |
public DepositAddress getDepositAddress(String currency) throws ApiException
currency - Currency name (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Address successfully generated | - |
public ApiResponse<DepositAddress> getDepositAddressWithHttpInfo(String currency) throws ApiException
currency - Currency name (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Address successfully generated | - |
public okhttp3.Call getDepositAddressAsync(String currency, ApiCallback<DepositAddress> _callback) throws ApiException
currency - Currency name (required)_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 | Address successfully generated | - |
public WalletApi.APIlistWithdrawalsRequest listWithdrawals()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public WalletApi.APIlistDepositsRequest listDeposits()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call transferCall(Transfer transfer, ApiCallback _callback) throws ApiException
transfer - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Balance transferred | - |
public TransactionID transfer(Transfer transfer) throws ApiException
transfer - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Balance transferred | - |
public ApiResponse<TransactionID> transferWithHttpInfo(Transfer transfer) throws ApiException
transfer - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Balance transferred | - |
public okhttp3.Call transferAsync(Transfer transfer, ApiCallback<TransactionID> _callback) throws ApiException
transfer - (required)_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 | Balance transferred | - |
public WalletApi.APIlistSubAccountTransfersRequest listSubAccountTransfers()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call transferWithSubAccountCall(SubAccountTransfer subAccountTransfer, ApiCallback _callback) throws ApiException
subAccountTransfer - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 204 | Balance transferred | - |
public void transferWithSubAccount(SubAccountTransfer subAccountTransfer) throws ApiException
subAccountTransfer - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 204 | Balance transferred | - |
public ApiResponse<Void> transferWithSubAccountWithHttpInfo(SubAccountTransfer subAccountTransfer) throws ApiException
subAccountTransfer - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 204 | Balance transferred | - |
public okhttp3.Call transferWithSubAccountAsync(SubAccountTransfer subAccountTransfer, ApiCallback<Void> _callback) throws ApiException
subAccountTransfer - (required)_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 |
| 204 | Balance transferred | - |
public okhttp3.Call subAccountToSubAccountCall(SubAccountToSubAccount subAccountToSubAccount, ApiCallback _callback) throws ApiException
subAccountToSubAccount - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 204 | Balance transferred | - |
public void subAccountToSubAccount(SubAccountToSubAccount subAccountToSubAccount) throws ApiException
subAccountToSubAccount - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 204 | Balance transferred | - |
public ApiResponse<Void> subAccountToSubAccountWithHttpInfo(SubAccountToSubAccount subAccountToSubAccount) throws ApiException
subAccountToSubAccount - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 204 | Balance transferred | - |
public okhttp3.Call subAccountToSubAccountAsync(SubAccountToSubAccount subAccountToSubAccount, ApiCallback<Void> _callback) throws ApiException
subAccountToSubAccount - (required)_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 |
| 204 | Balance transferred | - |
public WalletApi.APIlistWithdrawStatusRequest listWithdrawStatus()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public WalletApi.APIlistSubAccountBalancesRequest listSubAccountBalances()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public WalletApi.APIlistSubAccountMarginBalancesRequest listSubAccountMarginBalances()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public WalletApi.APIlistSubAccountFuturesBalancesRequest listSubAccountFuturesBalances()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public WalletApi.APIlistSubAccountCrossMarginBalancesRequest listSubAccountCrossMarginBalances()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public WalletApi.APIlistSavedAddressRequest listSavedAddress(String currency)
currency - Currency (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public WalletApi.APIgetTradeFeeRequest getTradeFee()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public WalletApi.APIgetTotalBalanceRequest getTotalBalance()
| Status Code | Description | Response Headers |
| 200 | Request is valid and is successfully responded | - |
Copyright © 2023. All rights reserved.