public class FlashSwapApi.APIlistFlashSwapOrdersRequest extends Object
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Call |
buildCall(ApiCallback _callback)
Build call for listFlashSwapOrders
|
FlashSwapApi.APIlistFlashSwapOrdersRequest |
buyCurrency(String buyCurrency)
Set buyCurrency
|
List<FlashSwapOrder> |
execute()
Execute listFlashSwapOrders request
|
okhttp3.Call |
executeAsync(ApiCallback<List<FlashSwapOrder>> _callback)
Execute listFlashSwapOrders request (asynchronously)
|
ApiResponse<List<FlashSwapOrder>> |
executeWithHttpInfo()
Execute listFlashSwapOrders request with HTTP info returned
|
FlashSwapApi.APIlistFlashSwapOrdersRequest |
limit(Integer limit)
Set limit
|
FlashSwapApi.APIlistFlashSwapOrdersRequest |
page(Integer page)
Set page
|
FlashSwapApi.APIlistFlashSwapOrdersRequest |
reverse(Boolean reverse)
Set reverse
|
FlashSwapApi.APIlistFlashSwapOrdersRequest |
sellCurrency(String sellCurrency)
Set sellCurrency
|
FlashSwapApi.APIlistFlashSwapOrdersRequest |
status(Integer status)
Set status
|
public FlashSwapApi.APIlistFlashSwapOrdersRequest status(Integer status)
status - Flash swap order status `1` - success `2` - failure (optional)public FlashSwapApi.APIlistFlashSwapOrdersRequest sellCurrency(String sellCurrency)
sellCurrency - Currency to sell which can be retrieved from supported currency list API `GET /flash_swap/currencies` (optional)public FlashSwapApi.APIlistFlashSwapOrdersRequest buyCurrency(String buyCurrency)
buyCurrency - Currency to buy which can be retrieved from supported currency list API `GET /flash_swap/currencies` (optional)public FlashSwapApi.APIlistFlashSwapOrdersRequest reverse(Boolean reverse)
reverse - If results are sorted by id in reverse order. Default to `true` - `true`: sort by id in descending order(recent first) - `false`: sort by id in ascending order(oldest first) (optional)public FlashSwapApi.APIlistFlashSwapOrdersRequest limit(Integer limit)
limit - Maximum number of records to be returned in a single list (optional, default to 100)public FlashSwapApi.APIlistFlashSwapOrdersRequest page(Integer page)
page - Page number (optional, default to 1)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<FlashSwapOrder> 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<FlashSwapOrder>> 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<FlashSwapOrder>> _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 © 2023. All rights reserved.