public class CollateralLoanApi extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
CollateralLoanApi.APIlistCollateralCurrenciesRequest |
class |
CollateralLoanApi.APIlistCollateralLoanOrdersRequest |
class |
CollateralLoanApi.APIlistCollateralRecordsRequest |
class |
CollateralLoanApi.APIlistRepayRecordsRequest |
| Constructor and Description |
|---|
CollateralLoanApi() |
CollateralLoanApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
OrderResp |
createCollateralLoan(CreateCollateralOrder createCollateralOrder)
Place order
|
okhttp3.Call |
createCollateralLoanAsync(CreateCollateralOrder createCollateralOrder,
ApiCallback<OrderResp> _callback)
Place order (asynchronously)
|
okhttp3.Call |
createCollateralLoanCall(CreateCollateralOrder createCollateralOrder,
ApiCallback _callback)
Build call for createCollateralLoan
|
ApiResponse<OrderResp> |
createCollateralLoanWithHttpInfo(CreateCollateralOrder createCollateralOrder)
Place order
|
ApiClient |
getApiClient() |
CollateralOrder |
getCollateralLoanOrderDetail(Long orderId)
Get a single order
|
okhttp3.Call |
getCollateralLoanOrderDetailAsync(Long orderId,
ApiCallback<CollateralOrder> _callback)
Get a single order (asynchronously)
|
okhttp3.Call |
getCollateralLoanOrderDetailCall(Long orderId,
ApiCallback _callback)
Build call for getCollateralLoanOrderDetail
|
ApiResponse<CollateralOrder> |
getCollateralLoanOrderDetailWithHttpInfo(Long orderId)
Get a single order
|
UserLtvInfo |
getUserLtvInfo(String collateralCurrency,
String borrowCurrency)
Query user's collateralization ratio
|
okhttp3.Call |
getUserLtvInfoAsync(String collateralCurrency,
String borrowCurrency,
ApiCallback<UserLtvInfo> _callback)
Query user's collateralization ratio (asynchronously)
|
okhttp3.Call |
getUserLtvInfoCall(String collateralCurrency,
String borrowCurrency,
ApiCallback _callback)
Build call for getUserLtvInfo
|
ApiResponse<UserLtvInfo> |
getUserLtvInfoWithHttpInfo(String collateralCurrency,
String borrowCurrency)
Query user's collateralization ratio
|
UserTotalAmount |
getUserTotalAmount()
Query the total borrowing and collateral amount for the user
|
okhttp3.Call |
getUserTotalAmountAsync(ApiCallback<UserTotalAmount> _callback)
Query the total borrowing and collateral amount for the user (asynchronously)
|
okhttp3.Call |
getUserTotalAmountCall(ApiCallback _callback)
Build call for getUserTotalAmount
|
ApiResponse<UserTotalAmount> |
getUserTotalAmountWithHttpInfo()
Query the total borrowing and collateral amount for the user
|
CollateralLoanApi.APIlistCollateralCurrenciesRequest |
listCollateralCurrencies()
Query supported borrowing and collateral currencies
|
CollateralLoanApi.APIlistCollateralLoanOrdersRequest |
listCollateralLoanOrders()
List Orders
|
CollateralLoanApi.APIlistCollateralRecordsRequest |
listCollateralRecords()
Query collateral adjustment records
|
CollateralLoanApi.APIlistRepayRecordsRequest |
listRepayRecords(String source)
Repayment history
|
void |
operateCollateral(CollateralAlign collateralAlign)
Increase or redeem collateral
|
okhttp3.Call |
operateCollateralAsync(CollateralAlign collateralAlign,
ApiCallback<Void> _callback)
Increase or redeem collateral (asynchronously)
|
okhttp3.Call |
operateCollateralCall(CollateralAlign collateralAlign,
ApiCallback _callback)
Build call for operateCollateral
|
ApiResponse<Void> |
operateCollateralWithHttpInfo(CollateralAlign collateralAlign)
Increase or redeem collateral
|
RepayResp |
repayCollateralLoan(RepayLoan repayLoan)
Repayment
|
okhttp3.Call |
repayCollateralLoanAsync(RepayLoan repayLoan,
ApiCallback<RepayResp> _callback)
Repayment (asynchronously)
|
okhttp3.Call |
repayCollateralLoanCall(RepayLoan repayLoan,
ApiCallback _callback)
Build call for repayCollateralLoan
|
ApiResponse<RepayResp> |
repayCollateralLoanWithHttpInfo(RepayLoan repayLoan)
Repayment
|
void |
setApiClient(ApiClient apiClient) |
public CollateralLoanApi()
public CollateralLoanApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public CollateralLoanApi.APIlistCollateralLoanOrdersRequest listCollateralLoanOrders()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call createCollateralLoanCall(CreateCollateralOrder createCollateralOrder, ApiCallback _callback) throws ApiException
createCollateralOrder - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Success | - |
public OrderResp createCollateralLoan(CreateCollateralOrder createCollateralOrder) throws ApiException
createCollateralOrder - (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<OrderResp> createCollateralLoanWithHttpInfo(CreateCollateralOrder createCollateralOrder) throws ApiException
createCollateralOrder - (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 createCollateralLoanAsync(CreateCollateralOrder createCollateralOrder, ApiCallback<OrderResp> _callback) throws ApiException
createCollateralOrder - (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 getCollateralLoanOrderDetailCall(Long orderId, ApiCallback _callback) throws ApiException
orderId - Order ID returned on successful order creation (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Success | - |
public CollateralOrder getCollateralLoanOrderDetail(Long orderId) throws ApiException
orderId - Order ID returned on successful order creation (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<CollateralOrder> getCollateralLoanOrderDetailWithHttpInfo(Long orderId) throws ApiException
orderId - Order ID returned on successful order creation (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 getCollateralLoanOrderDetailAsync(Long orderId, ApiCallback<CollateralOrder> _callback) throws ApiException
orderId - Order ID returned on successful order creation (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 repayCollateralLoanCall(RepayLoan repayLoan, ApiCallback _callback) throws ApiException
repayLoan - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Operated successfully | - |
public RepayResp repayCollateralLoan(RepayLoan repayLoan) throws ApiException
repayLoan - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Operated successfully | - |
public ApiResponse<RepayResp> repayCollateralLoanWithHttpInfo(RepayLoan repayLoan) throws ApiException
repayLoan - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Operated successfully | - |
public okhttp3.Call repayCollateralLoanAsync(RepayLoan repayLoan, ApiCallback<RepayResp> _callback) throws ApiException
repayLoan - (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 | Operated successfully | - |
public CollateralLoanApi.APIlistRepayRecordsRequest listRepayRecords(String source)
source - Operation type: repay - Regular repayment, liquidate - Liquidation (required)| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public CollateralLoanApi.APIlistCollateralRecordsRequest listCollateralRecords()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call operateCollateralCall(CollateralAlign collateralAlign, ApiCallback _callback) throws ApiException
collateralAlign - (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 operateCollateral(CollateralAlign collateralAlign) throws ApiException
collateralAlign - (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> operateCollateralWithHttpInfo(CollateralAlign collateralAlign) throws ApiException
collateralAlign - (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 operateCollateralAsync(CollateralAlign collateralAlign, ApiCallback<Void> _callback) throws ApiException
collateralAlign - (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 okhttp3.Call getUserTotalAmountCall(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 UserTotalAmount getUserTotalAmount() 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<UserTotalAmount> getUserTotalAmountWithHttpInfo() 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 getUserTotalAmountAsync(ApiCallback<UserTotalAmount> _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 getUserLtvInfoCall(String collateralCurrency, String borrowCurrency, ApiCallback _callback) throws ApiException
collateralCurrency - Collateral (required)borrowCurrency - Borrowed 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 UserLtvInfo getUserLtvInfo(String collateralCurrency, String borrowCurrency) throws ApiException
collateralCurrency - Collateral (required)borrowCurrency - Borrowed 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<UserLtvInfo> getUserLtvInfoWithHttpInfo(String collateralCurrency, String borrowCurrency) throws ApiException
collateralCurrency - Collateral (required)borrowCurrency - Borrowed 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 getUserLtvInfoAsync(String collateralCurrency, String borrowCurrency, ApiCallback<UserLtvInfo> _callback) throws ApiException
collateralCurrency - Collateral (required)borrowCurrency - Borrowed 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 CollateralLoanApi.APIlistCollateralCurrenciesRequest listCollateralCurrencies()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
Copyright © 2023. All rights reserved.