public class FuturesApi extends Object
| Constructor and Description |
|---|
FuturesApi() |
FuturesApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
FuturesOrder |
amendFuturesOrder(String settle,
String orderId,
FuturesOrderAmendment futuresOrderAmendment)
Amend an order
|
okhttp3.Call |
amendFuturesOrderAsync(String settle,
String orderId,
FuturesOrderAmendment futuresOrderAmendment,
ApiCallback<FuturesOrder> _callback)
Amend an order (asynchronously)
|
okhttp3.Call |
amendFuturesOrderCall(String settle,
String orderId,
FuturesOrderAmendment futuresOrderAmendment,
ApiCallback _callback)
Build call for amendFuturesOrder
|
ApiResponse<FuturesOrder> |
amendFuturesOrderWithHttpInfo(String settle,
String orderId,
FuturesOrderAmendment futuresOrderAmendment)
Amend an order
|
FuturesOrder |
cancelFuturesOrder(String settle,
String orderId)
Cancel a single order
|
okhttp3.Call |
cancelFuturesOrderAsync(String settle,
String orderId,
ApiCallback<FuturesOrder> _callback)
Cancel a single order (asynchronously)
|
okhttp3.Call |
cancelFuturesOrderCall(String settle,
String orderId,
ApiCallback _callback)
Build call for cancelFuturesOrder
|
List<FuturesOrder> |
cancelFuturesOrders(String settle,
String contract,
String side)
Cancel all `open` orders matched
Zero-filled order cannot be retrieved 10 minutes after order cancellation
|
okhttp3.Call |
cancelFuturesOrdersAsync(String settle,
String contract,
String side,
ApiCallback<List<FuturesOrder>> _callback)
Cancel all `open` orders matched (asynchronously)
Zero-filled order cannot be retrieved 10 minutes after order cancellation
|
okhttp3.Call |
cancelFuturesOrdersCall(String settle,
String contract,
String side,
ApiCallback _callback)
Build call for cancelFuturesOrders
|
ApiResponse<List<FuturesOrder>> |
cancelFuturesOrdersWithHttpInfo(String settle,
String contract,
String side)
Cancel all `open` orders matched
Zero-filled order cannot be retrieved 10 minutes after order cancellation
|
ApiResponse<FuturesOrder> |
cancelFuturesOrderWithHttpInfo(String settle,
String orderId)
Cancel a single order
|
FuturesPriceTriggeredOrder |
cancelPriceTriggeredOrder(String settle,
String orderId)
cancel a price-triggered order
|
okhttp3.Call |
cancelPriceTriggeredOrderAsync(String settle,
String orderId,
ApiCallback<FuturesPriceTriggeredOrder> _callback)
cancel a price-triggered order (asynchronously)
|
okhttp3.Call |
cancelPriceTriggeredOrderCall(String settle,
String orderId,
ApiCallback _callback)
Build call for cancelPriceTriggeredOrder
|
List<FuturesPriceTriggeredOrder> |
cancelPriceTriggeredOrderList(String settle,
String contract)
Cancel all open orders
|
okhttp3.Call |
cancelPriceTriggeredOrderListAsync(String settle,
String contract,
ApiCallback<List<FuturesPriceTriggeredOrder>> _callback)
Cancel all open orders (asynchronously)
|
okhttp3.Call |
cancelPriceTriggeredOrderListCall(String settle,
String contract,
ApiCallback _callback)
Build call for cancelPriceTriggeredOrderList
|
ApiResponse<List<FuturesPriceTriggeredOrder>> |
cancelPriceTriggeredOrderListWithHttpInfo(String settle,
String contract)
Cancel all open orders
|
ApiResponse<FuturesPriceTriggeredOrder> |
cancelPriceTriggeredOrderWithHttpInfo(String settle,
String orderId)
cancel a price-triggered order
|
TriggerTime |
countdownCancelAllFutures(String settle,
CountdownCancelAllFuturesTask countdownCancelAllFuturesTask)
Countdown cancel orders
When the timeout set by the user is reached, if there is no cancel or set a new countdown, the related pending orders will be automatically cancelled.
|
okhttp3.Call |
countdownCancelAllFuturesAsync(String settle,
CountdownCancelAllFuturesTask countdownCancelAllFuturesTask,
ApiCallback<TriggerTime> _callback)
Countdown cancel orders (asynchronously)
When the timeout set by the user is reached, if there is no cancel or set a new countdown, the related pending orders will be automatically cancelled.
|
okhttp3.Call |
countdownCancelAllFuturesCall(String settle,
CountdownCancelAllFuturesTask countdownCancelAllFuturesTask,
ApiCallback _callback)
Build call for countdownCancelAllFutures
|
ApiResponse<TriggerTime> |
countdownCancelAllFuturesWithHttpInfo(String settle,
CountdownCancelAllFuturesTask countdownCancelAllFuturesTask)
Countdown cancel orders
When the timeout set by the user is reached, if there is no cancel or set a new countdown, the related pending orders will be automatically cancelled.
|
List<BatchFuturesOrder> |
createBatchFuturesOrder(String settle,
List<FuturesOrder> futuresOrder)
Create a batch of futures orders
- Up to 10 orders per request - If any of the order's parameters are missing or in the wrong format, all of them will not be executed, and a http status 400 error will be returned directly - If the parameters are checked and passed, all are executed.
|
okhttp3.Call |
createBatchFuturesOrderAsync(String settle,
List<FuturesOrder> futuresOrder,
ApiCallback<List<BatchFuturesOrder>> _callback)
Create a batch of futures orders (asynchronously)
- Up to 10 orders per request - If any of the order's parameters are missing or in the wrong format, all of them will not be executed, and a http status 400 error will be returned directly - If the parameters are checked and passed, all are executed.
|
okhttp3.Call |
createBatchFuturesOrderCall(String settle,
List<FuturesOrder> futuresOrder,
ApiCallback _callback)
Build call for createBatchFuturesOrder
|
ApiResponse<List<BatchFuturesOrder>> |
createBatchFuturesOrderWithHttpInfo(String settle,
List<FuturesOrder> futuresOrder)
Create a batch of futures orders
- Up to 10 orders per request - If any of the order's parameters are missing or in the wrong format, all of them will not be executed, and a http status 400 error will be returned directly - If the parameters are checked and passed, all are executed.
|
FuturesOrder |
createFuturesOrder(String settle,
FuturesOrder futuresOrder)
Create a futures order
- Creating futures orders requires `size`, which is number of contracts instead of currency amount.
|
okhttp3.Call |
createFuturesOrderAsync(String settle,
FuturesOrder futuresOrder,
ApiCallback<FuturesOrder> _callback)
Create a futures order (asynchronously)
- Creating futures orders requires `size`, which is number of contracts instead of currency amount.
|
okhttp3.Call |
createFuturesOrderCall(String settle,
FuturesOrder futuresOrder,
ApiCallback _callback)
Build call for createFuturesOrder
|
ApiResponse<FuturesOrder> |
createFuturesOrderWithHttpInfo(String settle,
FuturesOrder futuresOrder)
Create a futures order
- Creating futures orders requires `size`, which is number of contracts instead of currency amount.
|
TriggerOrderResponse |
createPriceTriggeredOrder(String settle,
FuturesPriceTriggeredOrder futuresPriceTriggeredOrder)
Create a price-triggered order
|
okhttp3.Call |
createPriceTriggeredOrderAsync(String settle,
FuturesPriceTriggeredOrder futuresPriceTriggeredOrder,
ApiCallback<TriggerOrderResponse> _callback)
Create a price-triggered order (asynchronously)
|
okhttp3.Call |
createPriceTriggeredOrderCall(String settle,
FuturesPriceTriggeredOrder futuresPriceTriggeredOrder,
ApiCallback _callback)
Build call for createPriceTriggeredOrder
|
ApiResponse<TriggerOrderResponse> |
createPriceTriggeredOrderWithHttpInfo(String settle,
FuturesPriceTriggeredOrder futuresPriceTriggeredOrder)
Create a price-triggered order
|
ApiClient |
getApiClient() |
List<Position> |
getDualModePosition(String settle,
String contract)
Retrieve position detail in dual mode
|
okhttp3.Call |
getDualModePositionAsync(String settle,
String contract,
ApiCallback<List<Position>> _callback)
Retrieve position detail in dual mode (asynchronously)
|
okhttp3.Call |
getDualModePositionCall(String settle,
String contract,
ApiCallback _callback)
Build call for getDualModePosition
|
ApiResponse<List<Position>> |
getDualModePositionWithHttpInfo(String settle,
String contract)
Retrieve position detail in dual mode
|
Contract |
getFuturesContract(String settle,
String contract)
Get a single contract
|
okhttp3.Call |
getFuturesContractAsync(String settle,
String contract,
ApiCallback<Contract> _callback)
Get a single contract (asynchronously)
|
okhttp3.Call |
getFuturesContractCall(String settle,
String contract,
ApiCallback _callback)
Build call for getFuturesContract
|
ApiResponse<Contract> |
getFuturesContractWithHttpInfo(String settle,
String contract)
Get a single contract
|
FuturesOrder |
getFuturesOrder(String settle,
String orderId)
Get a single order
Zero-filled order cannot be retrieved 10 minutes after order cancellation
|
okhttp3.Call |
getFuturesOrderAsync(String settle,
String orderId,
ApiCallback<FuturesOrder> _callback)
Get a single order (asynchronously)
Zero-filled order cannot be retrieved 10 minutes after order cancellation
|
okhttp3.Call |
getFuturesOrderCall(String settle,
String orderId,
ApiCallback _callback)
Build call for getFuturesOrder
|
ApiResponse<FuturesOrder> |
getFuturesOrderWithHttpInfo(String settle,
String orderId)
Get a single order
Zero-filled order cannot be retrieved 10 minutes after order cancellation
|
FuturesIndexConstituents |
getIndexConstituents(String settle,
String index)
Get index constituents
|
okhttp3.Call |
getIndexConstituentsAsync(String settle,
String index,
ApiCallback<FuturesIndexConstituents> _callback)
Get index constituents (asynchronously)
|
okhttp3.Call |
getIndexConstituentsCall(String settle,
String index,
ApiCallback _callback)
Build call for getIndexConstituents
|
ApiResponse<FuturesIndexConstituents> |
getIndexConstituentsWithHttpInfo(String settle,
String index)
Get index constituents
|
FuturesApi.APIgetMyTradesRequest |
getMyTrades(String settle)
List personal trading history
|
FuturesApi.APIgetMyTradesWithTimeRangeRequest |
getMyTradesWithTimeRange(String settle)
List personal trading history by time range
|
Position |
getPosition(String settle,
String contract)
Get single position
|
okhttp3.Call |
getPositionAsync(String settle,
String contract,
ApiCallback<Position> _callback)
Get single position (asynchronously)
|
okhttp3.Call |
getPositionCall(String settle,
String contract,
ApiCallback _callback)
Build call for getPosition
|
ApiResponse<Position> |
getPositionWithHttpInfo(String settle,
String contract)
Get single position
|
FuturesPriceTriggeredOrder |
getPriceTriggeredOrder(String settle,
String orderId)
Get a price-triggered order
|
okhttp3.Call |
getPriceTriggeredOrderAsync(String settle,
String orderId,
ApiCallback<FuturesPriceTriggeredOrder> _callback)
Get a price-triggered order (asynchronously)
|
okhttp3.Call |
getPriceTriggeredOrderCall(String settle,
String orderId,
ApiCallback _callback)
Build call for getPriceTriggeredOrder
|
ApiResponse<FuturesPriceTriggeredOrder> |
getPriceTriggeredOrderWithHttpInfo(String settle,
String orderId)
Get a price-triggered order
|
FuturesApi.APIlistAutoDeleveragesRequest |
listAutoDeleverages(String settle)
List Auto-Deleveraging History
|
FuturesApi.APIlistContractStatsRequest |
listContractStats(String settle,
String contract)
Futures stats
|
FuturesApi.APIlistFuturesAccountBookRequest |
listFuturesAccountBook(String settle)
Query account book
|
FuturesAccount |
listFuturesAccounts(String settle)
Query futures account
|
okhttp3.Call |
listFuturesAccountsAsync(String settle,
ApiCallback<FuturesAccount> _callback)
Query futures account (asynchronously)
|
okhttp3.Call |
listFuturesAccountsCall(String settle,
ApiCallback _callback)
Build call for listFuturesAccounts
|
ApiResponse<FuturesAccount> |
listFuturesAccountsWithHttpInfo(String settle)
Query futures account
|
FuturesApi.APIlistFuturesCandlesticksRequest |
listFuturesCandlesticks(String settle,
String contract)
Get futures candlesticks
Return specified contract candlesticks.
|
List<Contract> |
listFuturesContracts(String settle)
List all futures contracts
|
okhttp3.Call |
listFuturesContractsAsync(String settle,
ApiCallback<List<Contract>> _callback)
List all futures contracts (asynchronously)
|
okhttp3.Call |
listFuturesContractsCall(String settle,
ApiCallback _callback)
Build call for listFuturesContracts
|
ApiResponse<List<Contract>> |
listFuturesContractsWithHttpInfo(String settle)
List all futures contracts
|
FuturesApi.APIlistFuturesFundingRateHistoryRequest |
listFuturesFundingRateHistory(String settle,
String contract)
Funding rate history
|
FuturesApi.APIlistFuturesInsuranceLedgerRequest |
listFuturesInsuranceLedger(String settle)
Futures insurance balance history
|
FuturesApi.APIlistFuturesOrderBookRequest |
listFuturesOrderBook(String settle,
String contract)
Futures order book
Bids will be sorted by price from high to low, while asks sorted reversely
|
FuturesApi.APIlistFuturesOrdersRequest |
listFuturesOrders(String settle,
String contract,
String status)
List futures orders
Zero-filled order cannot be retrieved 10 minutes after order cancellation
|
FuturesApi.APIlistFuturesPremiumIndexRequest |
listFuturesPremiumIndex(String settle,
String contract)
Premium Index K-Line
Maximum of 1000 points can be returned in a query.
|
FuturesApi.APIlistFuturesTickersRequest |
listFuturesTickers(String settle)
List futures tickers
|
FuturesApi.APIlistFuturesTradesRequest |
listFuturesTrades(String settle,
String contract)
Futures trading history
|
FuturesApi.APIlistLiquidatedOrdersRequest |
listLiquidatedOrders(String settle)
Retrieve liquidation history
Interval between `from` and `to` cannot exceeds 3600.
|
FuturesApi.APIlistLiquidatesRequest |
listLiquidates(String settle)
List liquidation history
|
FuturesApi.APIlistPositionCloseRequest |
listPositionClose(String settle)
List position close history
|
List<Position> |
listPositions(String settle)
List all positions of a user
|
okhttp3.Call |
listPositionsAsync(String settle,
ApiCallback<List<Position>> _callback)
List all positions of a user (asynchronously)
|
okhttp3.Call |
listPositionsCall(String settle,
ApiCallback _callback)
Build call for listPositions
|
ApiResponse<List<Position>> |
listPositionsWithHttpInfo(String settle)
List all positions of a user
|
FuturesApi.APIlistPriceTriggeredOrdersRequest |
listPriceTriggeredOrders(String settle,
String status)
List all auto orders
|
void |
setApiClient(ApiClient apiClient) |
FuturesAccount |
setDualMode(String settle,
Boolean dualMode)
Enable or disable dual mode
Before setting dual mode, make sure all positions are closed and no orders are open
|
okhttp3.Call |
setDualModeAsync(String settle,
Boolean dualMode,
ApiCallback<FuturesAccount> _callback)
Enable or disable dual mode (asynchronously)
Before setting dual mode, make sure all positions are closed and no orders are open
|
okhttp3.Call |
setDualModeCall(String settle,
Boolean dualMode,
ApiCallback _callback)
Build call for setDualMode
|
ApiResponse<FuturesAccount> |
setDualModeWithHttpInfo(String settle,
Boolean dualMode)
Enable or disable dual mode
Before setting dual mode, make sure all positions are closed and no orders are open
|
List<Position> |
updateDualModePositionLeverage(String settle,
String contract,
String leverage,
String crossLeverageLimit)
Update position leverage in dual mode
|
okhttp3.Call |
updateDualModePositionLeverageAsync(String settle,
String contract,
String leverage,
String crossLeverageLimit,
ApiCallback<List<Position>> _callback)
Update position leverage in dual mode (asynchronously)
|
okhttp3.Call |
updateDualModePositionLeverageCall(String settle,
String contract,
String leverage,
String crossLeverageLimit,
ApiCallback _callback)
Build call for updateDualModePositionLeverage
|
ApiResponse<List<Position>> |
updateDualModePositionLeverageWithHttpInfo(String settle,
String contract,
String leverage,
String crossLeverageLimit)
Update position leverage in dual mode
|
List<Position> |
updateDualModePositionMargin(String settle,
String contract,
String change,
String dualSide)
Update position margin in dual mode
|
okhttp3.Call |
updateDualModePositionMarginAsync(String settle,
String contract,
String change,
String dualSide,
ApiCallback<List<Position>> _callback)
Update position margin in dual mode (asynchronously)
|
okhttp3.Call |
updateDualModePositionMarginCall(String settle,
String contract,
String change,
String dualSide,
ApiCallback _callback)
Build call for updateDualModePositionMargin
|
ApiResponse<List<Position>> |
updateDualModePositionMarginWithHttpInfo(String settle,
String contract,
String change,
String dualSide)
Update position margin in dual mode
|
List<Position> |
updateDualModePositionRiskLimit(String settle,
String contract,
String riskLimit)
Update position risk limit in dual mode
|
okhttp3.Call |
updateDualModePositionRiskLimitAsync(String settle,
String contract,
String riskLimit,
ApiCallback<List<Position>> _callback)
Update position risk limit in dual mode (asynchronously)
|
okhttp3.Call |
updateDualModePositionRiskLimitCall(String settle,
String contract,
String riskLimit,
ApiCallback _callback)
Build call for updateDualModePositionRiskLimit
|
ApiResponse<List<Position>> |
updateDualModePositionRiskLimitWithHttpInfo(String settle,
String contract,
String riskLimit)
Update position risk limit in dual mode
|
Position |
updatePositionLeverage(String settle,
String contract,
String leverage,
String crossLeverageLimit)
Update position leverage
|
okhttp3.Call |
updatePositionLeverageAsync(String settle,
String contract,
String leverage,
String crossLeverageLimit,
ApiCallback<Position> _callback)
Update position leverage (asynchronously)
|
okhttp3.Call |
updatePositionLeverageCall(String settle,
String contract,
String leverage,
String crossLeverageLimit,
ApiCallback _callback)
Build call for updatePositionLeverage
|
ApiResponse<Position> |
updatePositionLeverageWithHttpInfo(String settle,
String contract,
String leverage,
String crossLeverageLimit)
Update position leverage
|
Position |
updatePositionMargin(String settle,
String contract,
String change)
Update position margin
|
okhttp3.Call |
updatePositionMarginAsync(String settle,
String contract,
String change,
ApiCallback<Position> _callback)
Update position margin (asynchronously)
|
okhttp3.Call |
updatePositionMarginCall(String settle,
String contract,
String change,
ApiCallback _callback)
Build call for updatePositionMargin
|
ApiResponse<Position> |
updatePositionMarginWithHttpInfo(String settle,
String contract,
String change)
Update position margin
|
Position |
updatePositionRiskLimit(String settle,
String contract,
String riskLimit)
Update position risk limit
|
okhttp3.Call |
updatePositionRiskLimitAsync(String settle,
String contract,
String riskLimit,
ApiCallback<Position> _callback)
Update position risk limit (asynchronously)
|
okhttp3.Call |
updatePositionRiskLimitCall(String settle,
String contract,
String riskLimit,
ApiCallback _callback)
Build call for updatePositionRiskLimit
|
ApiResponse<Position> |
updatePositionRiskLimitWithHttpInfo(String settle,
String contract,
String riskLimit)
Update position risk limit
|
public FuturesApi()
public FuturesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call listFuturesContractsCall(String settle, ApiCallback _callback) throws ApiException
settle - Settle currency (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public List<Contract> listFuturesContracts(String settle) throws ApiException
settle - Settle currency (required)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<Contract>> listFuturesContractsWithHttpInfo(String settle) throws ApiException
settle - Settle currency (required)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 listFuturesContractsAsync(String settle, ApiCallback<List<Contract>> _callback) throws ApiException
settle - Settle currency (required)_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 | - |
public okhttp3.Call getFuturesContractCall(String settle, String contract, ApiCallback _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Contract information | - |
public Contract getFuturesContract(String settle, String contract) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Contract information | - |
public ApiResponse<Contract> getFuturesContractWithHttpInfo(String settle, String contract) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Contract information | - |
public okhttp3.Call getFuturesContractAsync(String settle, String contract, ApiCallback<Contract> _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)_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 | Contract information | - |
public FuturesApi.APIlistFuturesOrderBookRequest listFuturesOrderBook(String settle, String contract)
settle - Settle currency (required)contract - Futures contract (required)| Status Code | Description | Response Headers |
| 200 | Order book retrieved | - |
public FuturesApi.APIlistFuturesTradesRequest listFuturesTrades(String settle, String contract)
settle - Settle currency (required)contract - Futures contract (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public FuturesApi.APIlistFuturesCandlesticksRequest listFuturesCandlesticks(String settle, String contract)
settle - Settle currency (required)contract - Futures contract (required)| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public FuturesApi.APIlistFuturesPremiumIndexRequest listFuturesPremiumIndex(String settle, String contract)
settle - Settle currency (required)contract - Futures contract (required)| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public FuturesApi.APIlistFuturesTickersRequest listFuturesTickers(String settle)
settle - Settle currency (required)| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public FuturesApi.APIlistFuturesFundingRateHistoryRequest listFuturesFundingRateHistory(String settle, String contract)
settle - Settle currency (required)contract - Futures contract (required)| Status Code | Description | Response Headers |
| 200 | History retrieved | - |
public FuturesApi.APIlistFuturesInsuranceLedgerRequest listFuturesInsuranceLedger(String settle)
settle - Settle currency (required)| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public FuturesApi.APIlistContractStatsRequest listContractStats(String settle, String contract)
settle - Settle currency (required)contract - Futures contract (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call getIndexConstituentsCall(String settle, String index, ApiCallback _callback) throws ApiException
settle - Settle currency (required)index - Index name (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public FuturesIndexConstituents getIndexConstituents(String settle, String index) throws ApiException
settle - Settle currency (required)index - Index name (required)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<FuturesIndexConstituents> getIndexConstituentsWithHttpInfo(String settle, String index) throws ApiException
settle - Settle currency (required)index - Index name (required)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 getIndexConstituentsAsync(String settle, String index, ApiCallback<FuturesIndexConstituents> _callback) throws ApiException
settle - Settle currency (required)index - Index name (required)_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 | - |
public FuturesApi.APIlistLiquidatedOrdersRequest listLiquidatedOrders(String settle)
settle - Settle currency (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call listFuturesAccountsCall(String settle, ApiCallback _callback) throws ApiException
settle - Settle currency (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public FuturesAccount listFuturesAccounts(String settle) throws ApiException
settle - Settle currency (required)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<FuturesAccount> listFuturesAccountsWithHttpInfo(String settle) throws ApiException
settle - Settle currency (required)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 listFuturesAccountsAsync(String settle, ApiCallback<FuturesAccount> _callback) throws ApiException
settle - Settle currency (required)_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 | - |
public FuturesApi.APIlistFuturesAccountBookRequest listFuturesAccountBook(String settle)
settle - Settle currency (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call listPositionsCall(String settle, ApiCallback _callback) throws ApiException
settle - Settle currency (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public List<Position> listPositions(String settle) throws ApiException
settle - Settle currency (required)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<Position>> listPositionsWithHttpInfo(String settle) throws ApiException
settle - Settle currency (required)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 listPositionsAsync(String settle, ApiCallback<List<Position>> _callback) throws ApiException
settle - Settle currency (required)_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 | - |
public okhttp3.Call getPositionCall(String settle, String contract, ApiCallback _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Position information | - |
public Position getPosition(String settle, String contract) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Position information | - |
public ApiResponse<Position> getPositionWithHttpInfo(String settle, String contract) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Position information | - |
public okhttp3.Call getPositionAsync(String settle, String contract, ApiCallback<Position> _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)_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 | Position information | - |
public okhttp3.Call updatePositionMarginCall(String settle, String contract, String change, ApiCallback _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)change - Margin change. Use positive number to increase margin, negative number otherwise. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Position information | - |
public Position updatePositionMargin(String settle, String contract, String change) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)change - Margin change. Use positive number to increase margin, negative number otherwise. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Position information | - |
public ApiResponse<Position> updatePositionMarginWithHttpInfo(String settle, String contract, String change) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)change - Margin change. Use positive number to increase margin, negative number otherwise. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Position information | - |
public okhttp3.Call updatePositionMarginAsync(String settle, String contract, String change, ApiCallback<Position> _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)change - Margin change. Use positive number to increase margin, negative number otherwise. (required)_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 | Position information | - |
public okhttp3.Call updatePositionLeverageCall(String settle, String contract, String leverage, String crossLeverageLimit, ApiCallback _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (required)crossLeverageLimit - Cross margin leverage(valid only when `leverage` is 0) (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Position information | - |
public Position updatePositionLeverage(String settle, String contract, String leverage, String crossLeverageLimit) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (required)crossLeverageLimit - Cross margin leverage(valid only when `leverage` is 0) (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Position information | - |
public ApiResponse<Position> updatePositionLeverageWithHttpInfo(String settle, String contract, String leverage, String crossLeverageLimit) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (required)crossLeverageLimit - Cross margin leverage(valid only when `leverage` is 0) (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Position information | - |
public okhttp3.Call updatePositionLeverageAsync(String settle, String contract, String leverage, String crossLeverageLimit, ApiCallback<Position> _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (required)crossLeverageLimit - Cross margin leverage(valid only when `leverage` is 0) (optional)_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 | Position information | - |
public okhttp3.Call updatePositionRiskLimitCall(String settle, String contract, String riskLimit, ApiCallback _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)riskLimit - New position risk limit (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Position information | - |
public Position updatePositionRiskLimit(String settle, String contract, String riskLimit) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)riskLimit - New position risk limit (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Position information | - |
public ApiResponse<Position> updatePositionRiskLimitWithHttpInfo(String settle, String contract, String riskLimit) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)riskLimit - New position risk limit (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Position information | - |
public okhttp3.Call updatePositionRiskLimitAsync(String settle, String contract, String riskLimit, ApiCallback<Position> _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)riskLimit - New position risk limit (required)_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 | Position information | - |
public okhttp3.Call setDualModeCall(String settle, Boolean dualMode, ApiCallback _callback) throws ApiException
settle - Settle currency (required)dualMode - Whether to enable dual mode (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Updated | - |
public FuturesAccount setDualMode(String settle, Boolean dualMode) throws ApiException
settle - Settle currency (required)dualMode - Whether to enable dual mode (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Updated | - |
public ApiResponse<FuturesAccount> setDualModeWithHttpInfo(String settle, Boolean dualMode) throws ApiException
settle - Settle currency (required)dualMode - Whether to enable dual mode (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Updated | - |
public okhttp3.Call setDualModeAsync(String settle, Boolean dualMode, ApiCallback<FuturesAccount> _callback) throws ApiException
settle - Settle currency (required)dualMode - Whether to enable dual mode (required)_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 | Updated | - |
public okhttp3.Call getDualModePositionCall(String settle, String contract, ApiCallback _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public List<Position> getDualModePosition(String settle, String contract) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)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<Position>> getDualModePositionWithHttpInfo(String settle, String contract) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)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 getDualModePositionAsync(String settle, String contract, ApiCallback<List<Position>> _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)_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 | - |
public okhttp3.Call updateDualModePositionMarginCall(String settle, String contract, String change, String dualSide, ApiCallback _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)change - Margin change. Use positive number to increase margin, negative number otherwise. (required)dualSide - Long or short position (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public List<Position> updateDualModePositionMargin(String settle, String contract, String change, String dualSide) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)change - Margin change. Use positive number to increase margin, negative number otherwise. (required)dualSide - Long or short position (required)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<Position>> updateDualModePositionMarginWithHttpInfo(String settle, String contract, String change, String dualSide) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)change - Margin change. Use positive number to increase margin, negative number otherwise. (required)dualSide - Long or short position (required)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 updateDualModePositionMarginAsync(String settle, String contract, String change, String dualSide, ApiCallback<List<Position>> _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)change - Margin change. Use positive number to increase margin, negative number otherwise. (required)dualSide - Long or short position (required)_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 | - |
public okhttp3.Call updateDualModePositionLeverageCall(String settle, String contract, String leverage, String crossLeverageLimit, ApiCallback _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (required)crossLeverageLimit - Cross margin leverage(valid only when `leverage` is 0) (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public List<Position> updateDualModePositionLeverage(String settle, String contract, String leverage, String crossLeverageLimit) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (required)crossLeverageLimit - Cross margin leverage(valid only when `leverage` is 0) (optional)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<Position>> updateDualModePositionLeverageWithHttpInfo(String settle, String contract, String leverage, String crossLeverageLimit) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (required)crossLeverageLimit - Cross margin leverage(valid only when `leverage` is 0) (optional)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 updateDualModePositionLeverageAsync(String settle, String contract, String leverage, String crossLeverageLimit, ApiCallback<List<Position>> _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (required)crossLeverageLimit - Cross margin leverage(valid only when `leverage` is 0) (optional)_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 | - |
public okhttp3.Call updateDualModePositionRiskLimitCall(String settle, String contract, String riskLimit, ApiCallback _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)riskLimit - New position risk limit (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public List<Position> updateDualModePositionRiskLimit(String settle, String contract, String riskLimit) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)riskLimit - New position risk limit (required)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<Position>> updateDualModePositionRiskLimitWithHttpInfo(String settle, String contract, String riskLimit) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)riskLimit - New position risk limit (required)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 updateDualModePositionRiskLimitAsync(String settle, String contract, String riskLimit, ApiCallback<List<Position>> _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)riskLimit - New position risk limit (required)_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 | - |
public FuturesApi.APIlistFuturesOrdersRequest listFuturesOrders(String settle, String contract, String status)
settle - Settle currency (required)contract - Futures contract (required)status - Only list the orders with this status (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | * X-Pagination-Limit - Request limit specified * X-Pagination-Offset - Request offset specified |
public okhttp3.Call createFuturesOrderCall(String settle, FuturesOrder futuresOrder, ApiCallback _callback) throws ApiException
settle - Settle currency (required)futuresOrder - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 201 | Order details | - |
public FuturesOrder createFuturesOrder(String settle, FuturesOrder futuresOrder) throws ApiException
settle - Settle currency (required)futuresOrder - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Order details | - |
public ApiResponse<FuturesOrder> createFuturesOrderWithHttpInfo(String settle, FuturesOrder futuresOrder) throws ApiException
settle - Settle currency (required)futuresOrder - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Order details | - |
public okhttp3.Call createFuturesOrderAsync(String settle, FuturesOrder futuresOrder, ApiCallback<FuturesOrder> _callback) throws ApiException
settle - Settle currency (required)futuresOrder - (required)_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 |
| 201 | Order details | - |
public okhttp3.Call cancelFuturesOrdersCall(String settle, String contract, String side, ApiCallback _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)side - All bids or asks. Both included if not specified (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | All orders matched cancelled | - |
public List<FuturesOrder> cancelFuturesOrders(String settle, String contract, String side) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)side - All bids or asks. Both included if not specified (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | All orders matched cancelled | - |
public ApiResponse<List<FuturesOrder>> cancelFuturesOrdersWithHttpInfo(String settle, String contract, String side) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)side - All bids or asks. Both included if not specified (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | All orders matched cancelled | - |
public okhttp3.Call cancelFuturesOrdersAsync(String settle, String contract, String side, ApiCallback<List<FuturesOrder>> _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)side - All bids or asks. Both included if not specified (optional)_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 | All orders matched cancelled | - |
public okhttp3.Call createBatchFuturesOrderCall(String settle, List<FuturesOrder> futuresOrder, ApiCallback _callback) throws ApiException
settle - Settle currency (required)futuresOrder - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Request is completed | - |
public List<BatchFuturesOrder> createBatchFuturesOrder(String settle, List<FuturesOrder> futuresOrder) throws ApiException
settle - Settle currency (required)futuresOrder - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Request is completed | - |
public ApiResponse<List<BatchFuturesOrder>> createBatchFuturesOrderWithHttpInfo(String settle, List<FuturesOrder> futuresOrder) throws ApiException
settle - Settle currency (required)futuresOrder - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Request is completed | - |
public okhttp3.Call createBatchFuturesOrderAsync(String settle, List<FuturesOrder> futuresOrder, ApiCallback<List<BatchFuturesOrder>> _callback) throws ApiException
settle - Settle currency (required)futuresOrder - (required)_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 | Request is completed | - |
public okhttp3.Call getFuturesOrderCall(String settle, String orderId, ApiCallback _callback) throws ApiException
settle - Settle currency (required)orderId - Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID can only be checked when the order is in orderbook. When the order is finished, it can be checked within 60 seconds after the end of the order. After that, only order ID is accepted. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Order details | - |
public FuturesOrder getFuturesOrder(String settle, String orderId) throws ApiException
settle - Settle currency (required)orderId - Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID can only be checked when the order is in orderbook. When the order is finished, it can be checked within 60 seconds after the end of the order. After that, only order ID is accepted. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order details | - |
public ApiResponse<FuturesOrder> getFuturesOrderWithHttpInfo(String settle, String orderId) throws ApiException
settle - Settle currency (required)orderId - Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID can only be checked when the order is in orderbook. When the order is finished, it can be checked within 60 seconds after the end of the order. After that, only order ID is accepted. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order details | - |
public okhttp3.Call getFuturesOrderAsync(String settle, String orderId, ApiCallback<FuturesOrder> _callback) throws ApiException
settle - Settle currency (required)orderId - Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID can only be checked when the order is in orderbook. When the order is finished, it can be checked within 60 seconds after the end of the order. After that, only order ID is accepted. (required)_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 | Order details | - |
public okhttp3.Call amendFuturesOrderCall(String settle, String orderId, FuturesOrderAmendment futuresOrderAmendment, ApiCallback _callback) throws ApiException
settle - Settle currency (required)orderId - Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID can only be checked when the order is in orderbook. When the order is finished, it can be checked within 60 seconds after the end of the order. After that, only order ID is accepted. (required)futuresOrderAmendment - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Order details | - |
public FuturesOrder amendFuturesOrder(String settle, String orderId, FuturesOrderAmendment futuresOrderAmendment) throws ApiException
settle - Settle currency (required)orderId - Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID can only be checked when the order is in orderbook. When the order is finished, it can be checked within 60 seconds after the end of the order. After that, only order ID is accepted. (required)futuresOrderAmendment - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order details | - |
public ApiResponse<FuturesOrder> amendFuturesOrderWithHttpInfo(String settle, String orderId, FuturesOrderAmendment futuresOrderAmendment) throws ApiException
settle - Settle currency (required)orderId - Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID can only be checked when the order is in orderbook. When the order is finished, it can be checked within 60 seconds after the end of the order. After that, only order ID is accepted. (required)futuresOrderAmendment - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order details | - |
public okhttp3.Call amendFuturesOrderAsync(String settle, String orderId, FuturesOrderAmendment futuresOrderAmendment, ApiCallback<FuturesOrder> _callback) throws ApiException
settle - Settle currency (required)orderId - Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID can only be checked when the order is in orderbook. When the order is finished, it can be checked within 60 seconds after the end of the order. After that, only order ID is accepted. (required)futuresOrderAmendment - (required)_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 | Order details | - |
public okhttp3.Call cancelFuturesOrderCall(String settle, String orderId, ApiCallback _callback) throws ApiException
settle - Settle currency (required)orderId - Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID can only be checked when the order is in orderbook. When the order is finished, it can be checked within 60 seconds after the end of the order. After that, only order ID is accepted. (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Order details | - |
public FuturesOrder cancelFuturesOrder(String settle, String orderId) throws ApiException
settle - Settle currency (required)orderId - Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID can only be checked when the order is in orderbook. When the order is finished, it can be checked within 60 seconds after the end of the order. After that, only order ID is accepted. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order details | - |
public ApiResponse<FuturesOrder> cancelFuturesOrderWithHttpInfo(String settle, String orderId) throws ApiException
settle - Settle currency (required)orderId - Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID can only be checked when the order is in orderbook. When the order is finished, it can be checked within 60 seconds after the end of the order. After that, only order ID is accepted. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order details | - |
public okhttp3.Call cancelFuturesOrderAsync(String settle, String orderId, ApiCallback<FuturesOrder> _callback) throws ApiException
settle - Settle currency (required)orderId - Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID can only be checked when the order is in orderbook. When the order is finished, it can be checked within 60 seconds after the end of the order. After that, only order ID is accepted. (required)_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 | Order details | - |
public FuturesApi.APIgetMyTradesRequest getMyTrades(String settle)
settle - Settle currency (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | * X-Pagination-Limit - Request limit specified * X-Pagination-Offset - Request offset specified |
public FuturesApi.APIgetMyTradesWithTimeRangeRequest getMyTradesWithTimeRange(String settle)
settle - Settle currency (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | * X-Pagination-Limit - Request limit specified * X-Pagination-Offset - Request offset specified |
public FuturesApi.APIlistPositionCloseRequest listPositionClose(String settle)
settle - Settle currency (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public FuturesApi.APIlistLiquidatesRequest listLiquidates(String settle)
settle - Settle currency (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public FuturesApi.APIlistAutoDeleveragesRequest listAutoDeleverages(String settle)
settle - Settle currency (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call countdownCancelAllFuturesCall(String settle, CountdownCancelAllFuturesTask countdownCancelAllFuturesTask, ApiCallback _callback) throws ApiException
settle - Settle currency (required)countdownCancelAllFuturesTask - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Set countdown successfully | - |
public TriggerTime countdownCancelAllFutures(String settle, CountdownCancelAllFuturesTask countdownCancelAllFuturesTask) throws ApiException
settle - Settle currency (required)countdownCancelAllFuturesTask - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Set countdown successfully | - |
public ApiResponse<TriggerTime> countdownCancelAllFuturesWithHttpInfo(String settle, CountdownCancelAllFuturesTask countdownCancelAllFuturesTask) throws ApiException
settle - Settle currency (required)countdownCancelAllFuturesTask - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Set countdown successfully | - |
public okhttp3.Call countdownCancelAllFuturesAsync(String settle, CountdownCancelAllFuturesTask countdownCancelAllFuturesTask, ApiCallback<TriggerTime> _callback) throws ApiException
settle - Settle currency (required)countdownCancelAllFuturesTask - (required)_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 | Set countdown successfully | - |
public FuturesApi.APIlistPriceTriggeredOrdersRequest listPriceTriggeredOrders(String settle, String status)
settle - Settle currency (required)status - Only list the orders with this status (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call createPriceTriggeredOrderCall(String settle, FuturesPriceTriggeredOrder futuresPriceTriggeredOrder, ApiCallback _callback) throws ApiException
settle - Settle currency (required)futuresPriceTriggeredOrder - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 201 | Order created | - |
public TriggerOrderResponse createPriceTriggeredOrder(String settle, FuturesPriceTriggeredOrder futuresPriceTriggeredOrder) throws ApiException
settle - Settle currency (required)futuresPriceTriggeredOrder - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Order created | - |
public ApiResponse<TriggerOrderResponse> createPriceTriggeredOrderWithHttpInfo(String settle, FuturesPriceTriggeredOrder futuresPriceTriggeredOrder) throws ApiException
settle - Settle currency (required)futuresPriceTriggeredOrder - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 201 | Order created | - |
public okhttp3.Call createPriceTriggeredOrderAsync(String settle, FuturesPriceTriggeredOrder futuresPriceTriggeredOrder, ApiCallback<TriggerOrderResponse> _callback) throws ApiException
settle - Settle currency (required)futuresPriceTriggeredOrder - (required)_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 |
| 201 | Order created | - |
public okhttp3.Call cancelPriceTriggeredOrderListCall(String settle, String contract, ApiCallback _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Batch cancellation request accepted. Query order status by listing orders | - |
public List<FuturesPriceTriggeredOrder> cancelPriceTriggeredOrderList(String settle, String contract) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Batch cancellation request accepted. Query order status by listing orders | - |
public ApiResponse<List<FuturesPriceTriggeredOrder>> cancelPriceTriggeredOrderListWithHttpInfo(String settle, String contract) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Batch cancellation request accepted. Query order status by listing orders | - |
public okhttp3.Call cancelPriceTriggeredOrderListAsync(String settle, String contract, ApiCallback<List<FuturesPriceTriggeredOrder>> _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)_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 | Batch cancellation request accepted. Query order status by listing orders | - |
public okhttp3.Call getPriceTriggeredOrderCall(String settle, String orderId, ApiCallback _callback) throws ApiException
settle - Settle currency (required)orderId - Retrieve the data of the order with the specified ID (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Auto order detail | - |
public FuturesPriceTriggeredOrder getPriceTriggeredOrder(String settle, String orderId) throws ApiException
settle - Settle currency (required)orderId - Retrieve the data of the order with the specified ID (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Auto order detail | - |
public ApiResponse<FuturesPriceTriggeredOrder> getPriceTriggeredOrderWithHttpInfo(String settle, String orderId) throws ApiException
settle - Settle currency (required)orderId - Retrieve the data of the order with the specified ID (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Auto order detail | - |
public okhttp3.Call getPriceTriggeredOrderAsync(String settle, String orderId, ApiCallback<FuturesPriceTriggeredOrder> _callback) throws ApiException
settle - Settle currency (required)orderId - Retrieve the data of the order with the specified ID (required)_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 | Auto order detail | - |
public okhttp3.Call cancelPriceTriggeredOrderCall(String settle, String orderId, ApiCallback _callback) throws ApiException
settle - Settle currency (required)orderId - Retrieve the data of the order with the specified ID (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Auto order detail | - |
public FuturesPriceTriggeredOrder cancelPriceTriggeredOrder(String settle, String orderId) throws ApiException
settle - Settle currency (required)orderId - Retrieve the data of the order with the specified ID (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Auto order detail | - |
public ApiResponse<FuturesPriceTriggeredOrder> cancelPriceTriggeredOrderWithHttpInfo(String settle, String orderId) throws ApiException
settle - Settle currency (required)orderId - Retrieve the data of the order with the specified ID (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Auto order detail | - |
public okhttp3.Call cancelPriceTriggeredOrderAsync(String settle, String orderId, ApiCallback<FuturesPriceTriggeredOrder> _callback) throws ApiException
settle - Settle currency (required)orderId - Retrieve the data of the order with the specified ID (required)_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 | Auto order detail | - |
Copyright © 2023. All rights reserved.