Cancel a single active order
Cancels a single active order by specifying one of: order ID (UUID), nonce (int64), or client_order_id (string). A successful response guarantees the order has been canceled and moved to 'done' status. Returns the canceled order with its final state.
Requires authentication.
OBSIDIAN-KEY<token>
In: header
OBSIDIAN-SECRET<token>
In: header
Query Parameters
order_id?string
Order ID to be canceled.
nonce?string
Order nonce to be canceled.
Format
uint64client_order_id?string
Client order id to be canceled.
Response Body
application/json
application/json
curl -X DELETE "https://api.dev.obsidian.exchange/orders/single"{
"order": {
"id": "string",
"product_id": "string",
"side": "BUY",
"type": "LIMIT",
"size": "string",
"price": "string",
"sender": "string",
"nonce": "string",
"stp": "CANCEL_TAKER",
"post_only": true,
"time_in_force": "GTC",
"reduce_only": true,
"status": "PENDING",
"done_reason": "string",
"stop_price": "string",
"stop_price_option": "NONE",
"order_stop_type": "STOP_NONE",
"is_liquidation": true,
"liquidation_fee_rate": "string",
"maker_fee_rate": "string",
"taker_fee_rate": "string",
"filled_size": "string",
"avg_price": "string",
"total_fees_usd": "string",
"created_at": "string",
"updated_at": "string",
"cancel_requested_at": "string",
"expired_at": "string",
"scheduled_at": "string",
"client_order_id": "string",
"cancel_requested": true,
"initial_margin": "string",
"last_trades": [
{
"id": "string",
"price": "string",
"size": "string",
"liquidity_indicator": "MAKER",
"time": "string",
"funding_payment": "string",
"trading_fee": "string",
"sequencer_fee": "string"
}
],
"sender_name": "string"
}
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string",
"property1": null,
"property2": null
}
]
}