public class FuturesApi.APIgetMyTradesRequest extends Object
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Call |
buildCall(ApiCallback _callback)
Build call for getMyTrades
|
FuturesApi.APIgetMyTradesRequest |
contract(String contract)
Set contract
|
List<MyFuturesTrade> |
execute()
Execute getMyTrades request
|
okhttp3.Call |
executeAsync(ApiCallback<List<MyFuturesTrade>> _callback)
Execute getMyTrades request (asynchronously)
|
ApiResponse<List<MyFuturesTrade>> |
executeWithHttpInfo()
Execute getMyTrades request with HTTP info returned
|
FuturesApi.APIgetMyTradesRequest |
lastId(String lastId)
Set lastId
|
FuturesApi.APIgetMyTradesRequest |
limit(Integer limit)
Set limit
|
FuturesApi.APIgetMyTradesRequest |
offset(Integer offset)
Set offset
|
FuturesApi.APIgetMyTradesRequest |
order(Long order)
Set order
|
public FuturesApi.APIgetMyTradesRequest contract(String contract)
contract - Futures contract, return related data only if specified (optional)public FuturesApi.APIgetMyTradesRequest order(Long order)
order - Futures order ID, return related data only if specified (optional)public FuturesApi.APIgetMyTradesRequest limit(Integer limit)
limit - Maximum number of records to be returned in a single list (optional, default to 100)public FuturesApi.APIgetMyTradesRequest offset(Integer offset)
offset - List offset, starting from 0 (optional, default to 0)public FuturesApi.APIgetMyTradesRequest lastId(String lastId)
lastId - Specify the starting point for this list based on a previously retrieved id This parameter is deprecated. If you need to iterate through and retrieve more records, we recommend using 'GET /futures/{settle}/my_trades_timerange'. (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 | * X-Pagination-Limit - Request limit specified * X-Pagination-Offset - Request offset specified |
public List<MyFuturesTrade> 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 | * X-Pagination-Limit - Request limit specified * X-Pagination-Offset - Request offset specified |
public ApiResponse<List<MyFuturesTrade>> 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 | * X-Pagination-Limit - Request limit specified * X-Pagination-Offset - Request offset specified |
public okhttp3.Call executeAsync(ApiCallback<List<MyFuturesTrade>> _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 | * X-Pagination-Limit - Request limit specified * X-Pagination-Offset - Request offset specified |
Copyright © 2023. All rights reserved.