public class PortfolioApi extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
PortfolioApi.APIlistPortfolioAccountsRequest |
class |
PortfolioApi.APIlistPortfolioLoanInterestRecordsRequest |
class |
PortfolioApi.APIlistPortfolioLoanRecordsRequest |
class |
PortfolioApi.APIlistPortfolioUniLoanInterestRecordsRequest |
| Constructor and Description |
|---|
PortfolioApi() |
PortfolioApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
createPortfolioLoan(PortfolioLoan portfolioLoan)
Borrow or repay
When borrowing, it is essential to ensure that the borrowed amount is not below the minimum borrowing threshold for the specific cryptocurrency and does not exceed the maximum borrowing limit set by the platform and the user.
|
okhttp3.Call |
createPortfolioLoanAsync(PortfolioLoan portfolioLoan,
ApiCallback<Void> _callback)
Borrow or repay (asynchronously)
When borrowing, it is essential to ensure that the borrowed amount is not below the minimum borrowing threshold for the specific cryptocurrency and does not exceed the maximum borrowing limit set by the platform and the user.
|
okhttp3.Call |
createPortfolioLoanCall(PortfolioLoan portfolioLoan,
ApiCallback _callback)
Build call for createPortfolioLoan
|
ApiResponse<Void> |
createPortfolioLoanWithHttpInfo(PortfolioLoan portfolioLoan)
Borrow or repay
When borrowing, it is essential to ensure that the borrowed amount is not below the minimum borrowing threshold for the specific cryptocurrency and does not exceed the maximum borrowing limit set by the platform and the user.
|
ApiClient |
getApiClient() |
PortfolioBorrowable |
getPortfolioBorrowable(String currency)
Retrieve the maximum borrowable amount for the account.
|
okhttp3.Call |
getPortfolioBorrowableAsync(String currency,
ApiCallback<PortfolioBorrowable> _callback)
Retrieve the maximum borrowable amount for the account.
|
okhttp3.Call |
getPortfolioBorrowableCall(String currency,
ApiCallback _callback)
Build call for getPortfolioBorrowable
|
ApiResponse<PortfolioBorrowable> |
getPortfolioBorrowableWithHttpInfo(String currency)
Retrieve the maximum borrowable amount for the account.
|
PortfolioTransferable |
getPortfolioTransferable(String currency)
Retrieve the maximum amount that can be transferred out from the account
|
okhttp3.Call |
getPortfolioTransferableAsync(String currency,
ApiCallback<PortfolioTransferable> _callback)
Retrieve the maximum amount that can be transferred out from the account (asynchronously)
|
okhttp3.Call |
getPortfolioTransferableCall(String currency,
ApiCallback _callback)
Build call for getPortfolioTransferable
|
ApiResponse<PortfolioTransferable> |
getPortfolioTransferableWithHttpInfo(String currency)
Retrieve the maximum amount that can be transferred out from the account
|
Map<String,Boolean> |
listAccountPortfolioMode()
Retrieve the account's portfolio mode
cross_margin - cross margin
|
okhttp3.Call |
listAccountPortfolioModeAsync(ApiCallback<Map<String,Boolean>> _callback)
Retrieve the account's portfolio mode (asynchronously)
cross_margin - cross margin
|
okhttp3.Call |
listAccountPortfolioModeCall(ApiCallback _callback)
Build call for listAccountPortfolioMode
|
ApiResponse<Map<String,Boolean>> |
listAccountPortfolioModeWithHttpInfo()
Retrieve the account's portfolio mode
cross_margin - cross margin
|
PortfolioApi.APIlistPortfolioAccountsRequest |
listPortfolioAccounts()
Get portfolio account information
The assets of each currency in the account will be adjusted according to their liquidity, defined by corresponding adjustment coefficients, and then uniformly converted to USD to calculate the total asset value and position value of the account.
|
PortfolioApi.APIlistPortfolioLoanInterestRecordsRequest |
listPortfolioLoanInterestRecords()
List interest records
|
PortfolioApi.APIlistPortfolioLoanRecordsRequest |
listPortfolioLoanRecords()
Get load records
|
PortfolioApi.APIlistPortfolioUniLoanInterestRecordsRequest |
listPortfolioUniLoanInterestRecords()
List loans
|
Map<String,Boolean> |
setAccountPortfolioMode(PortfolioMode portfolioMode)
Configure the account's portfolio mode.
|
okhttp3.Call |
setAccountPortfolioModeAsync(PortfolioMode portfolioMode,
ApiCallback<Map<String,Boolean>> _callback)
Configure the account's portfolio mode.
|
okhttp3.Call |
setAccountPortfolioModeCall(PortfolioMode portfolioMode,
ApiCallback _callback)
Build call for setAccountPortfolioMode
|
ApiResponse<Map<String,Boolean>> |
setAccountPortfolioModeWithHttpInfo(PortfolioMode portfolioMode)
Configure the account's portfolio mode.
|
void |
setApiClient(ApiClient apiClient) |
public PortfolioApi()
public PortfolioApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public PortfolioApi.APIlistPortfolioAccountsRequest listPortfolioAccounts()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call listAccountPortfolioModeCall(ApiCallback _callback) throws ApiException
_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public Map<String,Boolean> listAccountPortfolioMode() 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 | Successfully retrieved | - |
public ApiResponse<Map<String,Boolean>> listAccountPortfolioModeWithHttpInfo() 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 | Successfully retrieved | - |
public okhttp3.Call listAccountPortfolioModeAsync(ApiCallback<Map<String,Boolean>> _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 | Successfully retrieved | - |
public okhttp3.Call setAccountPortfolioModeCall(PortfolioMode portfolioMode, ApiCallback _callback) throws ApiException
portfolioMode - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Success | - |
public Map<String,Boolean> setAccountPortfolioMode(PortfolioMode portfolioMode) throws ApiException
portfolioMode - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Success | - |
public ApiResponse<Map<String,Boolean>> setAccountPortfolioModeWithHttpInfo(PortfolioMode portfolioMode) throws ApiException
portfolioMode - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Success | - |
public okhttp3.Call setAccountPortfolioModeAsync(PortfolioMode portfolioMode, ApiCallback<Map<String,Boolean>> _callback) throws ApiException
portfolioMode - (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 | Success | - |
public okhttp3.Call getPortfolioBorrowableCall(String currency, ApiCallback _callback) throws ApiException
currency - Retrieve data of the specified currency (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public PortfolioBorrowable getPortfolioBorrowable(String currency) throws ApiException
currency - Retrieve data of the specified currency (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<PortfolioBorrowable> getPortfolioBorrowableWithHttpInfo(String currency) throws ApiException
currency - Retrieve data of the specified currency (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 getPortfolioBorrowableAsync(String currency, ApiCallback<PortfolioBorrowable> _callback) throws ApiException
currency - Retrieve data of the specified currency (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 getPortfolioTransferableCall(String currency, ApiCallback _callback) throws ApiException
currency - Retrieve data of the specified currency (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public PortfolioTransferable getPortfolioTransferable(String currency) throws ApiException
currency - Retrieve data of the specified currency (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<PortfolioTransferable> getPortfolioTransferableWithHttpInfo(String currency) throws ApiException
currency - Retrieve data of the specified currency (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 getPortfolioTransferableAsync(String currency, ApiCallback<PortfolioTransferable> _callback) throws ApiException
currency - Retrieve data of the specified currency (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 PortfolioApi.APIlistPortfolioUniLoanInterestRecordsRequest listPortfolioUniLoanInterestRecords()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call createPortfolioLoanCall(PortfolioLoan portfolioLoan, ApiCallback _callback) throws ApiException
portfolioLoan - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 204 | Operated successfully | - |
public void createPortfolioLoan(PortfolioLoan portfolioLoan) throws ApiException
portfolioLoan - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 204 | Operated successfully | - |
public ApiResponse<Void> createPortfolioLoanWithHttpInfo(PortfolioLoan portfolioLoan) throws ApiException
portfolioLoan - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 204 | Operated successfully | - |
public okhttp3.Call createPortfolioLoanAsync(PortfolioLoan portfolioLoan, ApiCallback<Void> _callback) throws ApiException
portfolioLoan - (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 | Operated successfully | - |
public PortfolioApi.APIlistPortfolioLoanRecordsRequest listPortfolioLoanRecords()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public PortfolioApi.APIlistPortfolioLoanInterestRecordsRequest listPortfolioLoanInterestRecords()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
Copyright © 2023. All rights reserved.