public class SpotApi extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
SpotApi.APIgetFeeRequest |
class |
SpotApi.APIlistAllOpenOrdersRequest |
class |
SpotApi.APIlistCandlesticksRequest |
class |
SpotApi.APIlistMyTradesRequest |
class |
SpotApi.APIlistOrderBookRequest |
class |
SpotApi.APIlistOrdersRequest |
class |
SpotApi.APIlistSpotAccountsRequest |
class |
SpotApi.APIlistSpotPriceTriggeredOrdersRequest |
class |
SpotApi.APIlistTickersRequest |
class |
SpotApi.APIlistTradesRequest |
| Modifier and Type | Method and Description |
|---|---|
List<CancelOrderResult> |
cancelBatchOrders(List<CancelOrder> cancelOrder)
Cancel a batch of orders with an ID list
Multiple currency pairs can be specified, but maximum 20 orders are allowed per request
|
okhttp3.Call |
cancelBatchOrdersAsync(List<CancelOrder> cancelOrder,
ApiCallback<List<CancelOrderResult>> _callback)
Cancel a batch of orders with an ID list (asynchronously)
Multiple currency pairs can be specified, but maximum 20 orders are allowed per request
|
okhttp3.Call |
cancelBatchOrdersCall(List<CancelOrder> cancelOrder,
ApiCallback _callback)
Build call for cancelBatchOrders
|
ApiResponse<List<CancelOrderResult>> |
cancelBatchOrdersWithHttpInfo(List<CancelOrder> cancelOrder)
Cancel a batch of orders with an ID list
Multiple currency pairs can be specified, but maximum 20 orders are allowed per request
|
Order |
cancelOrder(String orderId,
String currencyPair,
String account)
Cancel a single order
Spot and margin orders are cancelled by default.
|
okhttp3.Call |
cancelOrderAsync(String orderId,
String currencyPair,
String account,
ApiCallback<Order> _callback)
Cancel a single order (asynchronously)
Spot and margin orders are cancelled by default.
|
okhttp3.Call |
cancelOrderCall(String orderId,
String currencyPair,
String account,
ApiCallback _callback)
Build call for cancelOrder
|
List<Order> |
cancelOrders(String currencyPair,
String side,
String account)
Cancel all `open` orders in specified currency pair
If `account` is not set, all open orders, including spot, margin and cross margin ones, will be cancelled.
|
okhttp3.Call |
cancelOrdersAsync(String currencyPair,
String side,
String account,
ApiCallback<List<Order>> _callback)
Cancel all `open` orders in specified currency pair (asynchronously)
If `account` is not set, all open orders, including spot, margin and cross margin ones, will be cancelled.
|
okhttp3.Call |
cancelOrdersCall(String currencyPair,
String side,
String account,
ApiCallback _callback)
Build call for cancelOrders
|
ApiResponse<List<Order>> |
cancelOrdersWithHttpInfo(String currencyPair,
String side,
String account)
Cancel all `open` orders in specified currency pair
If `account` is not set, all open orders, including spot, margin and cross margin ones, will be cancelled.
|
ApiResponse<Order> |
cancelOrderWithHttpInfo(String orderId,
String currencyPair,
String account)
Cancel a single order
Spot and margin orders are cancelled by default.
|
SpotPriceTriggeredOrder |
cancelSpotPriceTriggeredOrder(String orderId)
Cancel a single order
|
okhttp3.Call |
cancelSpotPriceTriggeredOrderAsync(String orderId,
ApiCallback<SpotPriceTriggeredOrder> _callback)
Cancel a single order (asynchronously)
|
okhttp3.Call |
cancelSpotPriceTriggeredOrderCall(String orderId,
ApiCallback _callback)
Build call for cancelSpotPriceTriggeredOrder
|
List<SpotPriceTriggeredOrder> |
cancelSpotPriceTriggeredOrderList(String market,
String account)
Cancel all open orders
|
okhttp3.Call |
cancelSpotPriceTriggeredOrderListAsync(String market,
String account,
ApiCallback<List<SpotPriceTriggeredOrder>> _callback)
Cancel all open orders (asynchronously)
|
okhttp3.Call |
cancelSpotPriceTriggeredOrderListCall(String market,
String account,
ApiCallback _callback)
Build call for cancelSpotPriceTriggeredOrderList
|
ApiResponse<List<SpotPriceTriggeredOrder>> |
cancelSpotPriceTriggeredOrderListWithHttpInfo(String market,
String account)
Cancel all open orders
|
ApiResponse<SpotPriceTriggeredOrder> |
cancelSpotPriceTriggeredOrderWithHttpInfo(String orderId)
Cancel a single order
|
List<BatchOrder> |
createBatchOrders(List<Order> order)
Create a batch of orders
Batch orders requirements: 1.
|
okhttp3.Call |
createBatchOrdersAsync(List<Order> order,
ApiCallback<List<BatchOrder>> _callback)
Create a batch of orders (asynchronously)
Batch orders requirements: 1.
|
okhttp3.Call |
createBatchOrdersCall(List<Order> order,
ApiCallback _callback)
Build call for createBatchOrders
|
ApiResponse<List<BatchOrder>> |
createBatchOrdersWithHttpInfo(List<Order> order)
Create a batch of orders
Batch orders requirements: 1.
|
Order |
createOrder(Order order)
Create an order
You can place orders with spot, margin or cross margin account through setting the `account `field.
|
okhttp3.Call |
createOrderAsync(Order order,
ApiCallback<Order> _callback)
Create an order (asynchronously)
You can place orders with spot, margin or cross margin account through setting the `account `field.
|
okhttp3.Call |
createOrderCall(Order order,
ApiCallback _callback)
Build call for createOrder
|
ApiResponse<Order> |
createOrderWithHttpInfo(Order order)
Create an order
You can place orders with spot, margin or cross margin account through setting the `account `field.
|
TriggerOrderResponse |
createSpotPriceTriggeredOrder(SpotPriceTriggeredOrder spotPriceTriggeredOrder)
Create a price-triggered order
|
okhttp3.Call |
createSpotPriceTriggeredOrderAsync(SpotPriceTriggeredOrder spotPriceTriggeredOrder,
ApiCallback<TriggerOrderResponse> _callback)
Create a price-triggered order (asynchronously)
|
okhttp3.Call |
createSpotPriceTriggeredOrderCall(SpotPriceTriggeredOrder spotPriceTriggeredOrder,
ApiCallback _callback)
Build call for createSpotPriceTriggeredOrder
|
ApiResponse<TriggerOrderResponse> |
createSpotPriceTriggeredOrderWithHttpInfo(SpotPriceTriggeredOrder spotPriceTriggeredOrder)
Create a price-triggered order
|
ApiClient |
getApiClient() |
Currency |
getCurrency(String currency)
Get detail of one particular currency
|
okhttp3.Call |
getCurrencyAsync(String currency,
ApiCallback<Currency> _callback)
Get detail of one particular currency (asynchronously)
|
okhttp3.Call |
getCurrencyCall(String currency,
ApiCallback _callback)
Build call for getCurrency
|
CurrencyPair |
getCurrencyPair(String currencyPair)
Get detail of one single order
|
okhttp3.Call |
getCurrencyPairAsync(String currencyPair,
ApiCallback<CurrencyPair> _callback)
Get detail of one single order (asynchronously)
|
okhttp3.Call |
getCurrencyPairCall(String currencyPair,
ApiCallback _callback)
Build call for getCurrencyPair
|
ApiResponse<CurrencyPair> |
getCurrencyPairWithHttpInfo(String currencyPair)
Get detail of one single order
|
ApiResponse<Currency> |
getCurrencyWithHttpInfo(String currency)
Get detail of one particular currency
|
SpotApi.APIgetFeeRequest |
getFee()
Deprecated.
|
Order |
getOrder(String orderId,
String currencyPair,
String account)
Get a single order
Spot and margin orders are queried by default.
|
okhttp3.Call |
getOrderAsync(String orderId,
String currencyPair,
String account,
ApiCallback<Order> _callback)
Get a single order (asynchronously)
Spot and margin orders are queried by default.
|
okhttp3.Call |
getOrderCall(String orderId,
String currencyPair,
String account,
ApiCallback _callback)
Build call for getOrder
|
ApiResponse<Order> |
getOrderWithHttpInfo(String orderId,
String currencyPair,
String account)
Get a single order
Spot and margin orders are queried by default.
|
SpotPriceTriggeredOrder |
getSpotPriceTriggeredOrder(String orderId)
Get a single order
|
okhttp3.Call |
getSpotPriceTriggeredOrderAsync(String orderId,
ApiCallback<SpotPriceTriggeredOrder> _callback)
Get a single order (asynchronously)
|
okhttp3.Call |
getSpotPriceTriggeredOrderCall(String orderId,
ApiCallback _callback)
Build call for getSpotPriceTriggeredOrder
|
ApiResponse<SpotPriceTriggeredOrder> |
getSpotPriceTriggeredOrderWithHttpInfo(String orderId)
Get a single order
|
SpotApi.APIlistAllOpenOrdersRequest |
listAllOpenOrders()
List all open orders
List open orders in all currency pairs.
|
SpotApi.APIlistCandlesticksRequest |
listCandlesticks(String currencyPair)
Market candlesticks
Maximum of 1000 points are returned in one query.
|
List<Currency> |
listCurrencies()
List all currencies' detail
|
okhttp3.Call |
listCurrenciesAsync(ApiCallback<List<Currency>> _callback)
List all currencies' detail (asynchronously)
|
okhttp3.Call |
listCurrenciesCall(ApiCallback _callback)
Build call for listCurrencies
|
ApiResponse<List<Currency>> |
listCurrenciesWithHttpInfo()
List all currencies' detail
|
List<CurrencyPair> |
listCurrencyPairs()
List all currency pairs supported
|
okhttp3.Call |
listCurrencyPairsAsync(ApiCallback<List<CurrencyPair>> _callback)
List all currency pairs supported (asynchronously)
|
okhttp3.Call |
listCurrencyPairsCall(ApiCallback _callback)
Build call for listCurrencyPairs
|
ApiResponse<List<CurrencyPair>> |
listCurrencyPairsWithHttpInfo()
List all currency pairs supported
|
SpotApi.APIlistMyTradesRequest |
listMyTrades(String currencyPair)
List personal trading history
Spot and margin trades are queried by default.
|
SpotApi.APIlistOrderBookRequest |
listOrderBook(String currencyPair)
Retrieve order book
Order book will be sorted by price from high to low on bids; reversed on asks
|
SpotApi.APIlistOrdersRequest |
listOrders(String currencyPair,
String status)
List orders
Spot and margin orders are returned by default.
|
SpotApi.APIlistSpotAccountsRequest |
listSpotAccounts()
List spot accounts
|
SpotApi.APIlistSpotPriceTriggeredOrdersRequest |
listSpotPriceTriggeredOrders(String status)
Retrieve running auto order list
|
SpotApi.APIlistTickersRequest |
listTickers()
Retrieve ticker information
Return only related data if `currency_pair` is specified; otherwise return all of them
|
SpotApi.APIlistTradesRequest |
listTrades(String currencyPair)
Retrieve market trades
|
void |
setApiClient(ApiClient apiClient) |
public SpotApi()
public SpotApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call listCurrenciesCall(ApiCallback _callback) throws ApiException
_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public List<Currency> listCurrencies() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public ApiResponse<List<Currency>> listCurrenciesWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call listCurrenciesAsync(ApiCallback<List<Currency>> _callback) throws ApiException
_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call getCurrencyCall(String currency, ApiCallback _callback) throws ApiException
currency - Currency 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 Currency getCurrency(String currency) throws ApiException
currency - Currency 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<Currency> getCurrencyWithHttpInfo(String currency) throws ApiException
currency - Currency 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 getCurrencyAsync(String currency, ApiCallback<Currency> _callback) throws ApiException
currency - Currency 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 okhttp3.Call listCurrencyPairsCall(ApiCallback _callback) throws ApiException
_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | All currency pairs retrieved | - |
public List<CurrencyPair> listCurrencyPairs() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | All currency pairs retrieved | - |
public ApiResponse<List<CurrencyPair>> listCurrencyPairsWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | All currency pairs retrieved | - |
public okhttp3.Call listCurrencyPairsAsync(ApiCallback<List<CurrencyPair>> _callback) throws ApiException
_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | All currency pairs retrieved | - |
public okhttp3.Call getCurrencyPairCall(String currencyPair, ApiCallback _callback) throws ApiException
currencyPair - Currency pair (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public CurrencyPair getCurrencyPair(String currencyPair) throws ApiException
currencyPair - Currency pair (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<CurrencyPair> getCurrencyPairWithHttpInfo(String currencyPair) throws ApiException
currencyPair - Currency pair (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 getCurrencyPairAsync(String currencyPair, ApiCallback<CurrencyPair> _callback) throws ApiException
currencyPair - Currency pair (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 SpotApi.APIlistTickersRequest listTickers()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public SpotApi.APIlistOrderBookRequest listOrderBook(String currencyPair)
currencyPair - Currency pair (required)| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public SpotApi.APIlistTradesRequest listTrades(String currencyPair)
currencyPair - Currency pair (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public SpotApi.APIlistCandlesticksRequest listCandlesticks(String currencyPair)
currencyPair - Currency pair (required)| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
@Deprecated public SpotApi.APIgetFeeRequest getFee()
| Status Code | Description | Response Headers |
| 200 | Successfully retrieved | - |
public SpotApi.APIlistSpotAccountsRequest listSpotAccounts()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call createBatchOrdersCall(List<Order> order, ApiCallback _callback) throws ApiException
order - (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<BatchOrder> createBatchOrders(List<Order> order) throws ApiException
order - (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<BatchOrder>> createBatchOrdersWithHttpInfo(List<Order> order) throws ApiException
order - (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 createBatchOrdersAsync(List<Order> order, ApiCallback<List<BatchOrder>> _callback) throws ApiException
order - (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 SpotApi.APIlistAllOpenOrdersRequest listAllOpenOrders()
| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public SpotApi.APIlistOrdersRequest listOrders(String currencyPair, String status)
currencyPair - Retrieve results with specified currency pair. It is required for open orders, but optional for finished ones. (required)status - List orders based on status `open` - order is waiting to be filled `finished` - order has been filled or cancelled (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call createOrderCall(Order order, ApiCallback _callback) throws ApiException
order - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 201 | Order created. | - |
public Order createOrder(Order order) throws ApiException
order - (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<Order> createOrderWithHttpInfo(Order order) throws ApiException
order - (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 createOrderAsync(Order order, ApiCallback<Order> _callback) throws ApiException
order - (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 cancelOrdersCall(String currencyPair, String side, String account, ApiCallback _callback) throws ApiException
currencyPair - Currency pair (required)side - All bids or asks. Both included in not specified (optional)account - Specify account type. Default to all account types being included (optional)_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<Order> cancelOrders(String currencyPair, String side, String account) throws ApiException
currencyPair - Currency pair (required)side - All bids or asks. Both included in not specified (optional)account - Specify account type. Default to all account types being included (optional)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<Order>> cancelOrdersWithHttpInfo(String currencyPair, String side, String account) throws ApiException
currencyPair - Currency pair (required)side - All bids or asks. Both included in not specified (optional)account - Specify account type. Default to all account types being included (optional)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 cancelOrdersAsync(String currencyPair, String side, String account, ApiCallback<List<Order>> _callback) throws ApiException
currencyPair - Currency pair (required)side - All bids or asks. Both included in not specified (optional)account - Specify account type. Default to all account types being included (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 | Batch cancellation request accepted. Query order status by listing orders | - |
public okhttp3.Call cancelBatchOrdersCall(List<CancelOrder> cancelOrder, ApiCallback _callback) throws ApiException
cancelOrder - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Batch cancellation completed | - |
public List<CancelOrderResult> cancelBatchOrders(List<CancelOrder> cancelOrder) throws ApiException
cancelOrder - (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 completed | - |
public ApiResponse<List<CancelOrderResult>> cancelBatchOrdersWithHttpInfo(List<CancelOrder> cancelOrder) throws ApiException
cancelOrder - (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 completed | - |
public okhttp3.Call cancelBatchOrdersAsync(List<CancelOrder> cancelOrder, ApiCallback<List<CancelOrderResult>> _callback) throws ApiException
cancelOrder - (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 completed | - |
public okhttp3.Call getOrderCall(String orderId, String currencyPair, String account, ApiCallback _callback) throws ApiException
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)currencyPair - Currency pair (required)account - Specify operation account. Default to spot and margin account if not specified. Set to `cross_margin` to operate against margin account (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Detail retrieved | - |
public Order getOrder(String orderId, String currencyPair, String account) throws ApiException
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)currencyPair - Currency pair (required)account - Specify operation account. Default to spot and margin account if not specified. Set to `cross_margin` to operate against margin account (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Detail retrieved | - |
public ApiResponse<Order> getOrderWithHttpInfo(String orderId, String currencyPair, String account) throws ApiException
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)currencyPair - Currency pair (required)account - Specify operation account. Default to spot and margin account if not specified. Set to `cross_margin` to operate against margin account (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Detail retrieved | - |
public okhttp3.Call getOrderAsync(String orderId, String currencyPair, String account, ApiCallback<Order> _callback) throws ApiException
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)currencyPair - Currency pair (required)account - Specify operation account. Default to spot and margin account if not specified. Set to `cross_margin` to operate against margin account (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 | Detail retrieved | - |
public okhttp3.Call cancelOrderCall(String orderId, String currencyPair, String account, ApiCallback _callback) throws ApiException
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)currencyPair - Currency pair (required)account - Specify operation account. Default to spot and margin account if not specified. Set to `cross_margin` to operate against margin account (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Order cancelled | - |
public Order cancelOrder(String orderId, String currencyPair, String account) throws ApiException
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)currencyPair - Currency pair (required)account - Specify operation account. Default to spot and margin account if not specified. Set to `cross_margin` to operate against margin account (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order cancelled | - |
public ApiResponse<Order> cancelOrderWithHttpInfo(String orderId, String currencyPair, String account) throws ApiException
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)currencyPair - Currency pair (required)account - Specify operation account. Default to spot and margin account if not specified. Set to `cross_margin` to operate against margin account (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Order cancelled | - |
public okhttp3.Call cancelOrderAsync(String orderId, String currencyPair, String account, ApiCallback<Order> _callback) throws ApiException
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)currencyPair - Currency pair (required)account - Specify operation account. Default to spot and margin account if not specified. Set to `cross_margin` to operate against margin account (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 | Order cancelled | - |
public SpotApi.APIlistMyTradesRequest listMyTrades(String currencyPair)
currencyPair - Retrieve results with specified currency pair. It is required for open orders, but optional for finished ones. (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public SpotApi.APIlistSpotPriceTriggeredOrdersRequest listSpotPriceTriggeredOrders(String status)
status - List orders based on status (required)| Status Code | Description | Response Headers |
| 200 | List retrieved | - |
public okhttp3.Call createSpotPriceTriggeredOrderCall(SpotPriceTriggeredOrder spotPriceTriggeredOrder, ApiCallback _callback) throws ApiException
spotPriceTriggeredOrder - (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 createSpotPriceTriggeredOrder(SpotPriceTriggeredOrder spotPriceTriggeredOrder) throws ApiException
spotPriceTriggeredOrder - (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> createSpotPriceTriggeredOrderWithHttpInfo(SpotPriceTriggeredOrder spotPriceTriggeredOrder) throws ApiException
spotPriceTriggeredOrder - (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 createSpotPriceTriggeredOrderAsync(SpotPriceTriggeredOrder spotPriceTriggeredOrder, ApiCallback<TriggerOrderResponse> _callback) throws ApiException
spotPriceTriggeredOrder - (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 cancelSpotPriceTriggeredOrderListCall(String market, String account, ApiCallback _callback) throws ApiException
market - Currency pair (optional)account - Trading account (optional)_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<SpotPriceTriggeredOrder> cancelSpotPriceTriggeredOrderList(String market, String account) throws ApiException
market - Currency pair (optional)account - Trading account (optional)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<SpotPriceTriggeredOrder>> cancelSpotPriceTriggeredOrderListWithHttpInfo(String market, String account) throws ApiException
market - Currency pair (optional)account - Trading account (optional)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 cancelSpotPriceTriggeredOrderListAsync(String market, String account, ApiCallback<List<SpotPriceTriggeredOrder>> _callback) throws ApiException
market - Currency pair (optional)account - Trading account (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 | Batch cancellation request accepted. Query order status by listing orders | - |
public okhttp3.Call getSpotPriceTriggeredOrderCall(String orderId, ApiCallback _callback) throws ApiException
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 SpotPriceTriggeredOrder getSpotPriceTriggeredOrder(String orderId) throws ApiException
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<SpotPriceTriggeredOrder> getSpotPriceTriggeredOrderWithHttpInfo(String orderId) throws ApiException
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 getSpotPriceTriggeredOrderAsync(String orderId, ApiCallback<SpotPriceTriggeredOrder> _callback) throws ApiException
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 cancelSpotPriceTriggeredOrderCall(String orderId, ApiCallback _callback) throws ApiException
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 SpotPriceTriggeredOrder cancelSpotPriceTriggeredOrder(String orderId) throws ApiException
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<SpotPriceTriggeredOrder> cancelSpotPriceTriggeredOrderWithHttpInfo(String orderId) throws ApiException
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 cancelSpotPriceTriggeredOrderAsync(String orderId, ApiCallback<SpotPriceTriggeredOrder> _callback) throws ApiException
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.