public class FuturesApi.APIlistFuturesCandlesticksRequest extends Object
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Call |
buildCall(ApiCallback _callback)
Build call for listFuturesCandlesticks
|
List<FuturesCandlestick> |
execute()
Execute listFuturesCandlesticks request
|
okhttp3.Call |
executeAsync(ApiCallback<List<FuturesCandlestick>> _callback)
Execute listFuturesCandlesticks request (asynchronously)
|
ApiResponse<List<FuturesCandlestick>> |
executeWithHttpInfo()
Execute listFuturesCandlesticks request with HTTP info returned
|
FuturesApi.APIlistFuturesCandlesticksRequest |
from(Long from)
Set from
|
FuturesApi.APIlistFuturesCandlesticksRequest |
interval(String interval)
Set interval
|
FuturesApi.APIlistFuturesCandlesticksRequest |
limit(Integer limit)
Set limit
|
FuturesApi.APIlistFuturesCandlesticksRequest |
to(Long to)
Set to
|
public FuturesApi.APIlistFuturesCandlesticksRequest from(Long from)
from - Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified (optional)public FuturesApi.APIlistFuturesCandlesticksRequest to(Long to)
to - End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time (optional)public FuturesApi.APIlistFuturesCandlesticksRequest limit(Integer limit)
limit - Maximum recent data points to return. `limit` is conflicted with `from` and `to`. If either `from` or `to` is specified, request will be rejected. (optional, default to 100)public FuturesApi.APIlistFuturesCandlesticksRequest interval(String interval)
interval - Interval time between data points. Note that `1w` means natual week(Mon-Sun), while `7d` means every 7d since unix 0 (optional, default to 5m)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 | Successfully retrieved | - |
public List<FuturesCandlestick> 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 | Successfully retrieved | - |
public ApiResponse<List<FuturesCandlestick>> 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 | Successfully retrieved | - |
public okhttp3.Call executeAsync(ApiCallback<List<FuturesCandlestick>> _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 | - |
Copyright © 2023. All rights reserved.