public class FuturesApi extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
FuturesApi.APIgetMyTradesRequest |
class |
FuturesApi.APIlistContractStatsRequest |
class |
FuturesApi.APIlistFuturesAccountBookRequest |
class |
FuturesApi.APIlistFuturesCandlesticksRequest |
class |
FuturesApi.APIlistFuturesFundingRateHistoryRequest |
class |
FuturesApi.APIlistFuturesInsuranceLedgerRequest |
class |
FuturesApi.APIlistFuturesOrderBookRequest |
class |
FuturesApi.APIlistFuturesOrdersRequest |
class |
FuturesApi.APIlistFuturesTickersRequest |
class |
FuturesApi.APIlistFuturesTradesRequest |
class |
FuturesApi.APIlistLiquidatedOrdersRequest |
class |
FuturesApi.APIlistLiquidatesRequest |
class |
FuturesApi.APIlistPositionCloseRequest |
class |
FuturesApi.APIlistPriceTriggeredOrdersRequest |
| Constructor and Description |
|---|
FuturesApi() |
FuturesApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
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-fill order cannot be retrieved 60 seconds after cancellation
|
okhttp3.Call |
cancelFuturesOrdersAsync(String settle,
String contract,
String side,
ApiCallback<List<FuturesOrder>> _callback)
Cancel all `open` orders matched (asynchronously)
Zero-fill order cannot be retrieved 60 seconds after 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-fill order cannot be retrieved 60 seconds after cancellation
|
ApiResponse<FuturesOrder> |
cancelFuturesOrderWithHttpInfo(String settle,
String orderId)
Cancel a single order
|
FuturesPriceTriggeredOrder |
cancelPriceTriggeredOrder(String settle,
String orderId)
Cancel a single order
|
okhttp3.Call |
cancelPriceTriggeredOrderAsync(String settle,
String orderId,
ApiCallback<FuturesPriceTriggeredOrder> _callback)
Cancel a single 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 single order
|
FuturesOrder |
createFuturesOrder(String settle,
FuturesOrder futuresOrder)
Create a futures order
Zero-fill order cannot be retrieved 60 seconds after cancellation
|
okhttp3.Call |
createFuturesOrderAsync(String settle,
FuturesOrder futuresOrder,
ApiCallback<FuturesOrder> _callback)
Create a futures order (asynchronously)
Zero-fill order cannot be retrieved 60 seconds after cancellation
|
okhttp3.Call |
createFuturesOrderCall(String settle,
FuturesOrder futuresOrder,
ApiCallback _callback)
Build call for createFuturesOrder
|
ApiResponse<FuturesOrder> |
createFuturesOrderWithHttpInfo(String settle,
FuturesOrder futuresOrder)
Create a futures order
Zero-fill order cannot be retrieved 60 seconds after cancellation
|
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-fill order cannot be retrieved 60 seconds after cancellation
|
okhttp3.Call |
getFuturesOrderAsync(String settle,
String orderId,
ApiCallback<FuturesOrder> _callback)
Get a single order (asynchronously)
Zero-fill order cannot be retrieved 60 seconds after 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-fill order cannot be retrieved 60 seconds after cancellation
|
FuturesApi.APIgetMyTradesRequest |
getMyTrades(String settle)
List personal trading history
|
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 single order
|
okhttp3.Call |
getPriceTriggeredOrderAsync(String settle,
String orderId,
ApiCallback<FuturesPriceTriggeredOrder> _callback)
Get a single order (asynchronously)
|
okhttp3.Call |
getPriceTriggeredOrderCall(String settle,
String orderId,
ApiCallback _callback)
Build call for getPriceTriggeredOrder
|
ApiResponse<FuturesPriceTriggeredOrder> |
getPriceTriggeredOrderWithHttpInfo(String settle,
String orderId)
Get a single order
|
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-fill order cannot be retrieved 60 seconds after cancellation
|
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)
Update position leverage in dual mode
|
okhttp3.Call |
updateDualModePositionLeverageAsync(String settle,
String contract,
String leverage,
ApiCallback<List<Position>> _callback)
Update position leverage in dual mode (asynchronously)
|
okhttp3.Call |
updateDualModePositionLeverageCall(String settle,
String contract,
String leverage,
ApiCallback _callback)
Build call for updateDualModePositionLeverage
|
ApiResponse<List<Position>> |
updateDualModePositionLeverageWithHttpInfo(String settle,
String contract,
String leverage)
Update position leverage in dual mode
|
List<Position> |
updateDualModePositionMargin(String settle,
String contract,
String change)
Update position margin in dual mode
|
okhttp3.Call |
updateDualModePositionMarginAsync(String settle,
String contract,
String change,
ApiCallback<List<Position>> _callback)
Update position margin in dual mode (asynchronously)
|
okhttp3.Call |
updateDualModePositionMarginCall(String settle,
String contract,
String change,
ApiCallback _callback)
Build call for updateDualModePositionMargin
|
ApiResponse<List<Position>> |
updateDualModePositionMarginWithHttpInfo(String settle,
String contract,
String change)
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)
Update position leverage
|
okhttp3.Call |
updatePositionLeverageAsync(String settle,
String contract,
String leverage,
ApiCallback<Position> _callback)
Update position leverage (asynchronously)
|
okhttp3.Call |
updatePositionLeverageCall(String settle,
String contract,
String leverage,
ApiCallback _callback)
Build call for updatePositionLeverage
|
ApiResponse<Position> |
updatePositionLeverageWithHttpInfo(String settle,
String contract,
String leverage)
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.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 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, ApiCallback _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (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 updatePositionLeverage(String settle, String contract, String leverage) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (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> updatePositionLeverageWithHttpInfo(String settle, String contract, String leverage) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (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 updatePositionLeverageAsync(String settle, String contract, String leverage, ApiCallback<Position> _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (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 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, 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 | Successfully retrieved | - |
public List<Position> updateDualModePositionMargin(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 | Successfully retrieved | - |
public ApiResponse<List<Position>> updateDualModePositionMarginWithHttpInfo(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 | Successfully retrieved | - |
public okhttp3.Call updateDualModePositionMarginAsync(String settle, String contract, String change, 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)_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, ApiCallback _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (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> updateDualModePositionLeverage(String settle, String contract, String leverage) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (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>> updateDualModePositionLeverageWithHttpInfo(String settle, String contract, String leverage) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (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 updateDualModePositionLeverageAsync(String settle, String contract, String leverage, ApiCallback<List<Position>> _callback) throws ApiException
settle - Settle currency (required)contract - Futures contract (required)leverage - New position leverage (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 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 - List orders based on status (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | * X-Pagination-Limit - Request limit specified * X-Pagination-Offset - Request offset specified * X-Pagination-Total - Total number matched. Only returned on `count_total` set to 1 |
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 in 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 in 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 in 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 in 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 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 are accepted only in the first 30 minutes after order creation.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 are accepted only in the first 30 minutes after order creation.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 are accepted only in the first 30 minutes after order creation.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 are accepted only in the first 30 minutes after order creation.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 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 are accepted only in the first 30 minutes after order creation.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 are accepted only in the first 30 minutes after order creation.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 are accepted only in the first 30 minutes after order creation.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 are accepted only in the first 30 minutes after order creation.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 * X-Pagination-Total - Total number matched. Only returned on `count_total` set to 1 |
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.APIlistPriceTriggeredOrdersRequest listPriceTriggeredOrders(String settle, String status)
settle - Settle currency (required)status - List orders based on 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 - ID returned on order successfully being created (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 - ID returned on order successfully being created (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 - ID returned on order successfully being created (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 - ID returned on order successfully being created (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 - ID returned on order successfully being created (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 - ID returned on order successfully being created (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 - ID returned on order successfully being created (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 - ID returned on order successfully being created (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 © 2021. All rights reserved.