Cancel order

Cancel an order. (Private ๐Ÿ”’)

This endpoint is used to cancel a limit order which hasnโ€™t already been executed at a given time. Please note that this is a Private ๐Ÿ”’ route which means it needs to be authorised by the account initiating this request.

Note: You will need to include the JWT Auth token to request headers to access this endpoint. To get the JWT Auth Token, refer the login section of the documentation.

Endpoint

POST /sapi/v1/orders/cancel/

Request Headers

{
  "Authorization": "JWT ***"
}

Request Body

Field
Type
Mandatory

order_id

INTEGER

YES

Example

{
  "order_id": 3
}

Response

{
  "status": "success",
  "message": "Cancelled Order Successfully",
  "payload": {
    "order_id": 3,
    "uuid": "3626e3a1-c15f-4979-97f2-30ce8845578d",
    "side": "buy",
    "ord_type": "limit",
    "price": "1663.0",
    "avg_price": "1663.0",
    "state": "wait",
    "market": "ethusdc",
    "created_at": "2022-08-05T12:20:22+02:00",
    "updated_at": "2022-08-05T12:21:28+02:00",
    "origin_volume": "0.003",
    "remaining_volume": "0.0021",
    "executed_volume": "0.0009",
    "maker_fee": "0.001",
    "taker_fee": "0.001",
    "trades_count": 3
  }
}

Last updated