public class OptionsApi.APIlistOptionsTradesRequest extends Object
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Call |
buildCall(ApiCallback _callback)
Build call for listOptionsTrades
|
OptionsApi.APIlistOptionsTradesRequest |
contract(String contract)
Set contract
|
List<FuturesTrade> |
execute()
Execute listOptionsTrades request
|
okhttp3.Call |
executeAsync(ApiCallback<List<FuturesTrade>> _callback)
Execute listOptionsTrades request (asynchronously)
|
ApiResponse<List<FuturesTrade>> |
executeWithHttpInfo()
Execute listOptionsTrades request with HTTP info returned
|
OptionsApi.APIlistOptionsTradesRequest |
from(Long from)
Set from
|
OptionsApi.APIlistOptionsTradesRequest |
limit(Integer limit)
Set limit
|
OptionsApi.APIlistOptionsTradesRequest |
offset(Integer offset)
Set offset
|
OptionsApi.APIlistOptionsTradesRequest |
to(Long to)
Set to
|
OptionsApi.APIlistOptionsTradesRequest |
type(String type)
Set type
|
public OptionsApi.APIlistOptionsTradesRequest contract(String contract)
contract - Options contract name (optional)public OptionsApi.APIlistOptionsTradesRequest type(String type)
type - `C` is call, while `P` is put (optional)public OptionsApi.APIlistOptionsTradesRequest limit(Integer limit)
limit - Maximum number of records to be returned in a single list (optional, default to 100)public OptionsApi.APIlistOptionsTradesRequest offset(Integer offset)
offset - List offset, starting from 0 (optional, default to 0)public OptionsApi.APIlistOptionsTradesRequest from(Long from)
from - Start timestamp (optional)public OptionsApi.APIlistOptionsTradesRequest to(Long to)
to - End timestamp (optional)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<FuturesTrade> 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<FuturesTrade>> 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<FuturesTrade>> _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.