public class EarnUniApi extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
EarnUniApi.APIlistUniInterestRecordsRequest |
class |
EarnUniApi.APIlistUniLendRecordsRequest |
class |
EarnUniApi.APIlistUserUniLendsRequest |
| Constructor and Description |
|---|
EarnUniApi() |
EarnUniApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeUniLend(PatchUniLend patchUniLend)
Amend lending order
Currently only supports amending the minimum interest rate (hour)
|
okhttp3.Call |
changeUniLendAsync(PatchUniLend patchUniLend,
ApiCallback<Void> _callback)
Amend lending order (asynchronously)
Currently only supports amending the minimum interest rate (hour)
|
okhttp3.Call |
changeUniLendCall(PatchUniLend patchUniLend,
ApiCallback _callback)
Build call for changeUniLend
|
ApiResponse<Void> |
changeUniLendWithHttpInfo(PatchUniLend patchUniLend)
Amend lending order
Currently only supports amending the minimum interest rate (hour)
|
void |
createUniLend(CreateUniLend createUniLend)
Lend or redeem
`Lending`: The minimum interest rate is required in lending.
|
okhttp3.Call |
createUniLendAsync(CreateUniLend createUniLend,
ApiCallback<Void> _callback)
Lend or redeem (asynchronously)
`Lending`: The minimum interest rate is required in lending.
|
okhttp3.Call |
createUniLendCall(CreateUniLend createUniLend,
ApiCallback _callback)
Build call for createUniLend
|
ApiResponse<Void> |
createUniLendWithHttpInfo(CreateUniLend createUniLend)
Lend or redeem
`Lending`: The minimum interest rate is required in lending.
|
ApiClient |
getApiClient() |
UniCurrency |
getUniCurrency(String currency)
Get currency detail for lending
|
okhttp3.Call |
getUniCurrencyAsync(String currency,
ApiCallback<UniCurrency> _callback)
Get currency detail for lending (asynchronously)
|
okhttp3.Call |
getUniCurrencyCall(String currency,
ApiCallback _callback)
Build call for getUniCurrency
|
ApiResponse<UniCurrency> |
getUniCurrencyWithHttpInfo(String currency)
Get currency detail for lending
|
UniLendInterest |
getUniInterest(String currency)
Get the user's total interest income of specified currency
|
okhttp3.Call |
getUniInterestAsync(String currency,
ApiCallback<UniLendInterest> _callback)
Get the user's total interest income of specified currency (asynchronously)
|
okhttp3.Call |
getUniInterestCall(String currency,
ApiCallback _callback)
Build call for getUniInterest
|
ApiResponse<UniLendInterest> |
getUniInterestWithHttpInfo(String currency)
Get the user's total interest income of specified currency
|
List<UniCurrency> |
listUniCurrencies()
List currencies for lending
|
okhttp3.Call |
listUniCurrenciesAsync(ApiCallback<List<UniCurrency>> _callback)
List currencies for lending (asynchronously)
|
okhttp3.Call |
listUniCurrenciesCall(ApiCallback _callback)
Build call for listUniCurrencies
|
ApiResponse<List<UniCurrency>> |
listUniCurrenciesWithHttpInfo()
List currencies for lending
|
EarnUniApi.APIlistUniInterestRecordsRequest |
listUniInterestRecords()
List interest records
|
EarnUniApi.APIlistUniLendRecordsRequest |
listUniLendRecords()
List records of lending
|
EarnUniApi.APIlistUserUniLendsRequest |
listUserUniLends()
List user's lending orders
|
void |
setApiClient(ApiClient apiClient) |
public EarnUniApi()
public EarnUniApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call listUniCurrenciesCall(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 List<UniCurrency> listUniCurrencies() 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<List<UniCurrency>> listUniCurrenciesWithHttpInfo() 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 listUniCurrenciesAsync(ApiCallback<List<UniCurrency>> _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 getUniCurrencyCall(String currency, ApiCallback _callback) throws ApiException
currency - 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 UniCurrency getUniCurrency(String currency) throws ApiException
currency - 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<UniCurrency> getUniCurrencyWithHttpInfo(String currency) throws ApiException
currency - 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 getUniCurrencyAsync(String currency, ApiCallback<UniCurrency> _callback) throws ApiException
currency - 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 EarnUniApi.APIlistUserUniLendsRequest listUserUniLends()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call createUniLendCall(CreateUniLend createUniLend, ApiCallback _callback) throws ApiException
createUniLend - (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 createUniLend(CreateUniLend createUniLend) throws ApiException
createUniLend - (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> createUniLendWithHttpInfo(CreateUniLend createUniLend) throws ApiException
createUniLend - (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 createUniLendAsync(CreateUniLend createUniLend, ApiCallback<Void> _callback) throws ApiException
createUniLend - (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 changeUniLendCall(PatchUniLend patchUniLend, ApiCallback _callback) throws ApiException
patchUniLend - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 204 | Updated | - |
public void changeUniLend(PatchUniLend patchUniLend) throws ApiException
patchUniLend - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 204 | Updated | - |
public ApiResponse<Void> changeUniLendWithHttpInfo(PatchUniLend patchUniLend) throws ApiException
patchUniLend - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 204 | Updated | - |
public okhttp3.Call changeUniLendAsync(PatchUniLend patchUniLend, ApiCallback<Void> _callback) throws ApiException
patchUniLend - (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 | Updated | - |
public EarnUniApi.APIlistUniLendRecordsRequest listUniLendRecords()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call getUniInterestCall(String currency, ApiCallback _callback) throws ApiException
currency - 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 UniLendInterest getUniInterest(String currency) throws ApiException
currency - 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<UniLendInterest> getUniInterestWithHttpInfo(String currency) throws ApiException
currency - 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 getUniInterestAsync(String currency, ApiCallback<UniLendInterest> _callback) throws ApiException
currency - 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 EarnUniApi.APIlistUniInterestRecordsRequest listUniInterestRecords()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
Copyright © 2023. All rights reserved.