Get Order History

This API allows you to retrieve the history of orders placed 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 requires specific query parameters to filter results. See details below.

  2. You must provide a valid timestamp and signature in the query parameters.

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

Get Order History

GET https://nami.exchange/api/v4/spot/history

Headers

Name
Value

Content-Type

application/json

x-api-key

<Your secret key>

Query Parameters

Name
Type
Description
Required
Example

side

string

Side of the order (buy/sell)

No

BUY

symbol

string

Trading pair symbol

No

ETHUSDT

hideCanceled

boolean

Hide canceled orders

No

true

pageSize

integer

Number of orders per page

No

10

page

integer

Page number

No

1

timeFrom

date-time

Filter orders from this time

No

2024-01-01T00:00:00Z

timeTo

date-time

Filter orders up to this time

No

2024-12-31T23:59:59Z

signature

string

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

Yes

a1b2c3d4e5f6g7h8i9j0k

timestamp

date-time

The timestamp is the time the request was sent.

Yes

1670000000000

Response

{
  "status": "ok",
  "data": [
    {
      "price": 0,
      "stopPrice": null,
      "executedPrice": 3394.3322747747743,
      "quantity": 0.222,
      "executedQty": 0.222,
      "quoteQty": 753.541765,
      "executedQuoteQty": 753.541765,
      "useQuoteQty": false,
      "liquidityStatus": 0,
      "liquiditySymbol": "ETHUSDT",
      "liquidityUsdtPrice": 1,
      "liquidityTransferPrice": 0,
      "liquidityOrderId": null,
      "liquidityTransferFee": 0,
      "limitPrice": 0,
      "internalError": false,
      "displayingId": 434256,
      "userId": 18,
      "side": "SELL",
      "type": "MARKET",
      "symbol": "ETHUSDT",
      "baseAsset": "ETH",
      "baseAssetId": 2,
      "quoteAsset": "USDT",
      "quoteAssetId": 22,
      "status": "FILLED",
      "createdAt": "2024-06-24T04:09:24.324Z",
      "updatedAt": "2024-06-24T04:09:24.324Z"
    }
  ]
}

Last updated