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() |
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 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.