| Modifier and Type | Method and Description |
|---|---|
okhttp3.Call |
buildCall(ApiCallback _callback)
Build call for listLoans
|
MarginApi.APIlistLoansRequest |
currency(String currency)
Set currency
|
MarginApi.APIlistLoansRequest |
currencyPair(String currencyPair)
Set currencyPair
|
List<Loan> |
execute()
Execute listLoans request
|
okhttp3.Call |
executeAsync(ApiCallback<List<Loan>> _callback)
Execute listLoans request (asynchronously)
|
ApiResponse<List<Loan>> |
executeWithHttpInfo()
Execute listLoans request with HTTP info returned
|
MarginApi.APIlistLoansRequest |
limit(Integer limit)
Set limit
|
MarginApi.APIlistLoansRequest |
page(Integer page)
Set page
|
MarginApi.APIlistLoansRequest |
reverseSort(Boolean reverseSort)
Set reverseSort
|
MarginApi.APIlistLoansRequest |
sortBy(String sortBy)
Set sortBy
|
public MarginApi.APIlistLoansRequest currency(String currency)
currency - Retrieved specified currency related data (optional)public MarginApi.APIlistLoansRequest currencyPair(String currencyPair)
currencyPair - Currency pair (optional)public MarginApi.APIlistLoansRequest sortBy(String sortBy)
sortBy - Specify which field is used to sort. `create_time` or `rate` is supported. Default to `create_time` (optional)public MarginApi.APIlistLoansRequest reverseSort(Boolean reverseSort)
reverseSort - Whether to sort in descending order. Default to `true` (optional)public MarginApi.APIlistLoansRequest page(Integer page)
page - Page number (optional, default to 1)public MarginApi.APIlistLoansRequest limit(Integer limit)
limit - Maximum number of records returned in one list (optional, default to 100)public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
_callback - ApiCallback API callbackApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public List<Loan> execute() 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 | List retrieved | - |
public ApiResponse<List<Loan>> executeWithHttpInfo() 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 | List retrieved | - |
public okhttp3.Call executeAsync(ApiCallback<List<Loan>> _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 | List retrieved | - |
Copyright © 2021. All rights reserved.