TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/tiagosiebler/kucoin-api/llms.txt
Use this file to discover all available pages before exploring further.
FuturesClient provides a comprehensive set of order management methods for KuCoin Futures. You can submit market and limit orders, place take-profit/stop-loss (SLTP) orders, batch-cancel by symbol, and query fills or open orders with rich filtering options. All order-placement and cancellation endpoints require authentication via API key, secret, and passphrase.
All order endpoints require a valid
apiKey, apiSecret, and apiPassphrase when constructing FuturesClient. Use client.generateNewOrderID() to produce a nanoid-based unique clientOid for each order.Place Orders
submitOrder(params)
Places a new futures order (limit or market) in the trading system.
Order interface — all fields
Order interface — all fields
Unique client order ID. Use
client.generateNewOrderID() or supply your own UUID (max 32 chars).Order direction.
Futures contract symbol, e.g.
XBTUSDTM.Order type. Defaults to
limit if omitted.Leverage multiplier, e.g.
5 or 10.Limit price (required for
limit orders).Number of contract lots to trade.
Quantity in base currency (alternative to
size).Quantity in quote currency (alternative to
size).Margin mode. Defaults to
ISOLATED.Time-in-force policy.
GTC = Good Till Cancelled (default), IOC = Immediate or Cancel, RPI = Retail Price Improvement (Futures only).If
true, the order can only reduce an existing position.If
true, closes the entire position. Side/size are determined automatically.If
true, forcibly reserves margin even if the position would be reduced.Stop order trigger direction.
Stop trigger price.
Price type for stop trigger:
TP = trade price, MP = mark price, IP = index price.If
true, the order is rejected if it would immediately fill (maker-only).Hidden order (not visible in the order book).
Iceberg order; only
visibleSize lots are shown in the book.Visible portion of an iceberg order.
Position side for hedge mode.
Self-trade prevention policy.
Optional order remark (max 100 chars).
Exchange-assigned order ID.
Client order ID echoed back.
submitNewOrderTest(params)
Identical to submitOrder but performs a dry-run to validate your request parameters and API signature without placing a live order.
Order interface as submitOrder. Useful for verifying credential setup before going live.
submitSLTPOrder(params)
Places a combined take-profit and stop-loss order. Accepts the SLTPOrder interface, which extends Order with dedicated trigger fields.
Unique client order ID.
Order direction.
Futures contract symbol.
Order type.
Take-profit trigger price (triggers when price rises to this level).
Stop-loss trigger price (triggers when price falls to this level).
Price type for trigger: trade price, mark price, or index price.
Leverage multiplier.
Limit price (required for
limit type).Contract lots.
Margin mode.
submitMultipleOrders(params)
Places multiple futures orders in a single API call. Accepts an array of Order objects.
Exchange-assigned order ID.
Client order ID.
Symbol the order was placed on.
Result code;
"200000" indicates success.Result message (empty on success).
Cancel Orders
cancelOrderById(params)
Cancels an open order (including stop orders) by its exchange-assigned order ID.
Exchange order ID to cancel.
cancelOrderByClientOid(params)
Cancels an order by client order ID. Requires both clientOid and symbol.
Client order ID to cancel.
Symbol the order was placed on.
cancelAllOrdersV3(params?)
Cancels all open orders (excluding stop orders) for the specified symbol in one call.
Cancel all active orders for this symbol.
cancelAllStopOrders(params?)
Cancels all untriggered stop orders. Optionally filter by symbol.
Limit cancellation to this symbol (optional).
batchCancelOrders(params)
Cancels multiple orders simultaneously by providing either a list of order IDs or a list of client OID + symbol pairs.
List of exchange order IDs to cancel. Takes precedence over
clientOidsList if both are provided.List of
{ symbol, clientOid } pairs to cancel (used when orderIdsList is not provided).Cancelled order ID (or null if not applicable).
Cancelled client OID (or null).
Result code;
"200000" = success.Result message.
Query Orders
getOrders(params?)
Returns a paginated list of orders filtered by status, symbol, side, and type.
Filter by order status.
Filter by symbol (optional).
Filter by order side.
Filter by order type.
Start time (Unix ms, optional).
End time (Unix ms, optional).
Page number (optional).
Results per page (optional).
Current page number.
Page size.
Total matching orders.
Total pages.
Array of order objects.
getStopOrders(params?)
Returns a paginated list of untriggered stop orders.
Filter by symbol (optional).
Filter by side (optional).
Filter by type (optional).
Start time (Unix ms, optional).
End time (Unix ms, optional).
Page number (optional).
Results per page (optional).
getRecentOrders()
Returns up to the last 1000 closed/filled orders from the past 24 hours.
Optionally filter by symbol.
getOrderByOrderId(params)
Returns full details for a single order identified by its exchange-assigned order ID.
Exchange order ID.
Order ID.
Contract symbol.
Order type.
Order side.
Order price.
Order size in lots.
Order status.
Number of lots filled.
Margin mode.
Creation timestamp.
getOrderByClientOrderId(params)
Returns full details for a single order using its client-assigned order ID.
Client order ID.
Fills (Trade History)
getFills(params?)
Returns a paginated list of your historical trade fills. For low-latency recent fills, prefer getRecentFills().
Filter by order ID (optional).
Filter by symbol (optional).
Filter by side (optional).
Filter by order type (optional).
Start time (Unix ms, optional).
End time (Unix ms, optional).
Page number (optional).
Results per page (optional).
Trade type filter string (optional).
Current page.
Page size.
Total fill records.
Total pages.
getRecentFills()
Returns the last 1000 fills from the past 24 hours with low latency.
Optionally filter by symbol.
Fee Rate
getTradingPairFee(params?)
Returns the actual taker and maker fee rates for your account on the specified futures trading pair.
Futures trading pair symbol.
Trading pair.
Your taker fee rate as a decimal string, e.g.
"0.0006".Your maker fee rate as a decimal string, e.g.
"0.0002".