Skip to main content

Cancel Order

Cancels pending orders. If neither orderID nor clOrderID is provided, all orders in the market are cancelled. When cancelling by clOrderID, all orders with that ID are cancelled.

Request Parameters

NameTypeRequiredDescription
symbolStringYesMarket symbol
orderIDStringNoInternal order ID to cancel
clOrderIDStringNoCustom order ID to cancel

Response Content

NameTypeDescription
symbolStringMarket symbol
orderIDStringOrder ID
clOrderIDStringCustom order ID
orderTypeInteger76: Limit · 77: Market · 80: Algo
sideStringTrade side
priceDoubleOrder price
statusIntegerOrder status code: 2 (ORDER_INSERTED) · 4 (FULLY_MATCHED) · 5 (PARTIAL_FILL) · 6 (CANCELLED) · 9 (TRIGGER_INSERTED) · 10 (TRIGGER_ACTIVATED) · 15 (REJECTED)
time_in_forceStringTime in force: GTC · IOC · FOK · HALFMIN · FIVEMIN · HOUR · TWELVEHOUR · DAY · WEEK · MONTH
timestampLongOrder timestamp
triggerBooleanWhether order is a trigger order
triggerPriceDoubleTrigger price (0 if not a trigger order)
avgFilledPriceDoubleAverage filled price
messageStringTrade message
stealthDoubleAlgo orders only
deviationDoubleAlgo orders only
remainingSizeIntegerCurrent order size minus filled size
originalOrderSizeIntegerOriginal quantity — unchanged after amendments
currentOrderSizeIntegerLatest quantity (filled + remaining)
filledSizeIntegerQuantity filled in this update
totalFilledSizeIntegerCumulative filled quantity
postOnlyBooleanWhether order is post-only
positionModeStringONE_WAY · HEDGE · ISOLATED
positionDirectionStringPosition direction: LONG · SHORT (only present in HEDGE/ISOLATED mode)
positionIdStringPosition ID
example
DELETEhttps://api.btse.com/futures/api/v2.3/order