public class MarginUniApi extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
MarginUniApi.APIlistUniLoanInterestRecordsRequest |
class |
MarginUniApi.APIlistUniLoanRecordsRequest |
class |
MarginUniApi.APIlistUniLoansRequest |
| Constructor and Description |
|---|
MarginUniApi() |
MarginUniApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
createUniLoan(CreateUniLoan createUniLoan)
Borrow or repay
|
okhttp3.Call |
createUniLoanAsync(CreateUniLoan createUniLoan,
ApiCallback<Void> _callback)
Borrow or repay (asynchronously)
|
okhttp3.Call |
createUniLoanCall(CreateUniLoan createUniLoan,
ApiCallback _callback)
Build call for createUniLoan
|
ApiResponse<Void> |
createUniLoanWithHttpInfo(CreateUniLoan createUniLoan)
Borrow or repay
|
ApiClient |
getApiClient() |
Map<String,String> |
getMarginUniEstimateRate(List<String> currencies)
Estimate interest Rate
Please note that the interest rates are subject to change based on the borrowing and lending demand, and therefore, the provided rates may not be entirely accurate.
|
okhttp3.Call |
getMarginUniEstimateRateAsync(List<String> currencies,
ApiCallback<Map<String,String>> _callback)
Estimate interest Rate (asynchronously)
Please note that the interest rates are subject to change based on the borrowing and lending demand, and therefore, the provided rates may not be entirely accurate.
|
okhttp3.Call |
getMarginUniEstimateRateCall(List<String> currencies,
ApiCallback _callback)
Build call for getMarginUniEstimateRate
|
ApiResponse<Map<String,String>> |
getMarginUniEstimateRateWithHttpInfo(List<String> currencies)
Estimate interest Rate
Please note that the interest rates are subject to change based on the borrowing and lending demand, and therefore, the provided rates may not be entirely accurate.
|
MaxUniBorrowable |
getUniBorrowable(String currency,
String currencyPair)
Get maximum borrowable
|
okhttp3.Call |
getUniBorrowableAsync(String currency,
String currencyPair,
ApiCallback<MaxUniBorrowable> _callback)
Get maximum borrowable (asynchronously)
|
okhttp3.Call |
getUniBorrowableCall(String currency,
String currencyPair,
ApiCallback _callback)
Build call for getUniBorrowable
|
ApiResponse<MaxUniBorrowable> |
getUniBorrowableWithHttpInfo(String currency,
String currencyPair)
Get maximum borrowable
|
UniCurrencyPair |
getUniCurrencyPair(String currencyPair)
Get detail of lending market
|
okhttp3.Call |
getUniCurrencyPairAsync(String currencyPair,
ApiCallback<UniCurrencyPair> _callback)
Get detail of lending market (asynchronously)
|
okhttp3.Call |
getUniCurrencyPairCall(String currencyPair,
ApiCallback _callback)
Build call for getUniCurrencyPair
|
ApiResponse<UniCurrencyPair> |
getUniCurrencyPairWithHttpInfo(String currencyPair)
Get detail of lending market
|
List<UniCurrencyPair> |
listUniCurrencyPairs()
List lending markets
|
okhttp3.Call |
listUniCurrencyPairsAsync(ApiCallback<List<UniCurrencyPair>> _callback)
List lending markets (asynchronously)
|
okhttp3.Call |
listUniCurrencyPairsCall(ApiCallback _callback)
Build call for listUniCurrencyPairs
|
ApiResponse<List<UniCurrencyPair>> |
listUniCurrencyPairsWithHttpInfo()
List lending markets
|
MarginUniApi.APIlistUniLoanInterestRecordsRequest |
listUniLoanInterestRecords()
List interest records
|
MarginUniApi.APIlistUniLoanRecordsRequest |
listUniLoanRecords()
Get load records
|
MarginUniApi.APIlistUniLoansRequest |
listUniLoans()
List loans
|
void |
setApiClient(ApiClient apiClient) |
public MarginUniApi()
public MarginUniApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call listUniCurrencyPairsCall(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<UniCurrencyPair> listUniCurrencyPairs() 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<UniCurrencyPair>> listUniCurrencyPairsWithHttpInfo() 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 listUniCurrencyPairsAsync(ApiCallback<List<UniCurrencyPair>> _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 getUniCurrencyPairCall(String currencyPair, ApiCallback _callback) throws ApiException
currencyPair - Currency pair (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public UniCurrencyPair getUniCurrencyPair(String currencyPair) throws ApiException
currencyPair - Currency pair (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<UniCurrencyPair> getUniCurrencyPairWithHttpInfo(String currencyPair) throws ApiException
currencyPair - Currency pair (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 getUniCurrencyPairAsync(String currencyPair, ApiCallback<UniCurrencyPair> _callback) throws ApiException
currencyPair - Currency pair (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 getMarginUniEstimateRateCall(List<String> currencies, ApiCallback _callback) throws ApiException
currencies - An array of up to 10 specifying the 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 Map<String,String> getMarginUniEstimateRate(List<String> currencies) throws ApiException
currencies - An array of up to 10 specifying the 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<Map<String,String>> getMarginUniEstimateRateWithHttpInfo(List<String> currencies) throws ApiException
currencies - An array of up to 10 specifying the 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 getMarginUniEstimateRateAsync(List<String> currencies, ApiCallback<Map<String,String>> _callback) throws ApiException
currencies - An array of up to 10 specifying the 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 MarginUniApi.APIlistUniLoansRequest listUniLoans()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call createUniLoanCall(CreateUniLoan createUniLoan, ApiCallback _callback) throws ApiException
createUniLoan - (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 createUniLoan(CreateUniLoan createUniLoan) throws ApiException
createUniLoan - (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> createUniLoanWithHttpInfo(CreateUniLoan createUniLoan) throws ApiException
createUniLoan - (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 createUniLoanAsync(CreateUniLoan createUniLoan, ApiCallback<Void> _callback) throws ApiException
createUniLoan - (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 MarginUniApi.APIlistUniLoanRecordsRequest listUniLoanRecords()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public MarginUniApi.APIlistUniLoanInterestRecordsRequest listUniLoanInterestRecords()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public okhttp3.Call getUniBorrowableCall(String currency, String currencyPair, ApiCallback _callback) throws ApiException
currency - Retrieve data of the specified currency (required)currencyPair - Currency pair (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public MaxUniBorrowable getUniBorrowable(String currency, String currencyPair) throws ApiException
currency - Retrieve data of the specified currency (required)currencyPair - Currency pair (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<MaxUniBorrowable> getUniBorrowableWithHttpInfo(String currency, String currencyPair) throws ApiException
currency - Retrieve data of the specified currency (required)currencyPair - Currency pair (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 getUniBorrowableAsync(String currency, String currencyPair, ApiCallback<MaxUniBorrowable> _callback) throws ApiException
currency - Retrieve data of the specified currency (required)currencyPair - Currency pair (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 | - |
Copyright © 2023. All rights reserved.