Close Order

This API allows you to delete an order on the platform.

Prerequisites

Before using this endpoint, ensure you have read the How to Generate a Signature guide. This guide explains the steps required to create the signature parameter needed to authenticate your request.

Key Notes

  1. The request body must include the required parameters, detailed below.

  2. You must provide a valid timestamp and signature in the request body.

  3. The x-api-key must be included in the request headers for authentication.

Delete Order

DELETE https://nami.exchange/api/v4/spot/order

Headers

Name
Value

Content-Type

application/json

x-api-key

<Your secret key>

Body

Name
Type
Description
Possible Values

symbol

string

The trading symbol

Read Spot Config to get symbols available

displayingId

string

The unique ID of the order to be deleted

Any valid order ID

allowNotification

boolean

Whether to send notifications upon deletion.

true | false

signature

string

The signature is the secret key encoded as ASCII data. It is required for authenticating.

timestamp

string

The timestamp is the time the request was sent. Format must be in milliseconds.

Millisecond only

Example Request Body

{
  "symbol": "BTCUSDT",
  "displayingId": "435372",
  "allowNotification": false,
  "signature": "a1b2c3d4e5f6g7h8i9j0k",
  "timestamp": 1670000000000
}

Response

{
  "status": "ok",
  "data": {
    "displayingId": 435372,
    "userId": 18,
    "side": "BUY",
    "type": "LIMIT",
    "price": 62877.99,
    "liquidityStatus": 1,
    "quantity": 0.07474,
    "executedQty": 0,
    "quoteQty": 4699.5009726,
    "executedQuoteQty": 0,
    "liquidityUsdtPrice": 1,
    "liquidityTransferPrice": 62877.99,
    "liquiditySymbol": "BTCUSDT",
    "liquidityOrderId": "11779887",
    "feeMetadata": {
      "assetId": 22,
      "asset": "USDT",
      "value": 4.6995009726,
      "feeRatio": 0.001,
      "executed": 0
    },
    "useQuoteQty": false,
    "symbol": "BTCUSDT",
    "baseAsset": "BTC",
    "baseAssetId": 9,
    "quoteAsset": "USDT",
    "quoteAssetId": 22,
    "status": "CANCELED",
    "stopPrice": 0
  }
}

Last updated