Order History Archive

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Order History Archive

GET https://api.liquiditytech.com/api/v1/trading/archive/history/orders

Rate Limit: 30 requests per 10 seconds

This endpoint returns archived order history for the specified portfolio covering the period from 7 days up to 90 days in the past.

Note: This endpoint queries a large dataset and may respond slowly. Set your client timeout to at least 30 seconds.

It includes spot, margin and derivatives orders with the same schema as the recent order history API, allowing clients to query, reconcile and audit older order activity beyond the last 7 days.

Request

NameTypeMandatoryDescription
symStringNTrading pair unique identifier. For example: BINANCE_SPOT_BTC_USDT, BINANCE_PERP_BTC_USDT.
businessTypeStringNBusiness type of the trade, for example SPOT, PERP, MARGIN.
exchangeStringNExchange type, such as BINANCE, OKX, EDX.
beginStringNStart time of the query window. If not specified, the default is to query data from up to 90 days ago.
endStringNEnd time of the query window. If not specified, the current time is used.
filterExecutedBooleanNWhether to return only executed orders. Default false – return all orders regardless of execution status.
pageStringNCurrent page number (starting from 1).
pageSizeStringNPage size. Default is 1000, maximum 1000.

Response

FieldTypeDescription
portfolioIdStringIdentifier of the portfolio or sub-account this order belongs to.
portfolioNameStringPortfolio name.
orderIdStringSystem-generated order ID associated with this order.
clientOrderIdStringCustomer-defined order ID.
orderStateStringSee ENUM Definitions for supported values.
symStringTrading pair unique identifier. Example: BINANCE_SPOT_ETH_USDT, OKX_PERP_ETH_USDT, EDX_PERP_ETH_USDT.
sideStringOrder side: BUY or SELL.
exchangeOrderTypeStringExchange order type, e.g. LIMIT, MARKET.
exchangeTypeStringVenue where the order is placed, e.g. BINANCE, OKX, EDX.
orderTypeStringInternal order type assigned by the system. DMA for standard direct-market-access orders. Also see ENUM Definitions for supported values.
businessTypeStringBusiness type of the order, e.g. SPOT, PERP, MARGIN.
orderQtyStringOrder quantity. For spot orders, this is the amount of the base asset (e.g. ETH in ETH/USDT). For derivatives, on OKX this is the number of contracts, and on Binance USDT-margined contracts it is effectively the base asset quantity (1 contract = 1 unit of the base asset).
quoteOrderQtyStringOrder quote quantity, in units of the quote asset of the trading pair. Primarily used for market buy orders in spot and margin trading (e.g. amount of USDT or BTC to spend). For other order types it may be ignored by the venue.
limitPriceStringOrder price.
timeInForceStringTime in force. Default GTC. Supported values: GTC, IOC, FOK, GTX.
reasonStringFailure reason message, if the order is rejected or cancelled by the system.
executedQtyStringTotal executed quantity. For spot orders, this is the filled amount of the base asset (e.g. ETH in ETH/USDT). For derivatives, on OKX this is the number of contracts, and on Binance USDT-margined contracts it is effectively the base asset quantity (1 contract = 1 unit of the base asset).
executedAvgPriceStringAverage execution price of the filled quantity.
executedAmountStringTotal executed quote amount.
reduceOnlyBooleanReduce-only flag. true means the order can only reduce existing positions; false otherwise.
lastExecutedQtyStringQuantity of the most recent fill, in the same unit as executedQty.
lastExecutedPriceStringPrice of the most recent fill.
lastExecutedAmountStringQuote amount of the most recent fill.
leverageIntegerLeverage applied to this order or position.
feeStringCumulative trading fee for this order. Positive = fee charged (taker). "0" when the order earned a maker rebate instead (see rebate field).
feeCoinStringCurrency of the trading fee. Empty string if no fee was charged.
rebateStringCumulative maker rebate received. "0" for taker orders. For OKX spot: BUY orders return quote currency, SELL orders return base currency. For Binance spot: returns quote currency. For perpetuals: returns USDT.
rebateCoinStringCurrency of the rebate. Empty string if no rebate was received.
borrowAmountStringBorrowed amount for margin trading (if applicable).
borrowAssetStringAsset symbol of the borrowed currency.
positionSideStringPosition side. In One-Way Mode, this is always NONE. In Hedge Mode, LONG and SHORT indicate the order belongs to the long or short leg of the position.
tpTriggerPriceStringTake-profit trigger price.
tpTriggerTypeStringReference price type for the take-profit trigger. Supported values: LAST_PRICE, MARK_PRICE. Default is LAST_PRICE.
tpPriceStringTake-profit order price. If set to 0, the take-profit order will execute at market price.
slTriggerPriceStringStop-loss trigger price.
slTriggerTypeStringReference price type for the stop-loss trigger. Supported values: LAST_PRICE, MARK_PRICE. Default is LAST_PRICE.
slPriceStringStop-loss order price. If set to 0, the stop-loss order will execute at market price.
createAtStringOrder creation time, in milliseconds since Unix epoch.
updateAtStringLast update time of the order, in milliseconds since Unix epoch.
cancelTypeStringReason the order was cancelled. Possible values: USER, EXPIRE, REDUCE_ONLY, LIQUIDATING, SYSTEM, SYM_DELIST. Empty string if the order was not cancelled.
amendTypeStringReason the order was amended. Possible values: USER, REDUCE_ONLY. Empty string if the order was not amended.
algoOrderIdStringAlgo / strategy order ID on the venue, if the order is generated by an algorithmic or strategy order. Empty or null for normal orders.

Example Request

GET /api/v1/trading/archive/history/orders?sym=BINANCE_SPOT_ETH_USDT&begin=1741788000000&end=1742392800000&page=1&pageSize=10

Example Response

{
  "code": 200000,
  "message": "Success",
  "data": {
    "page": 1,
    "pageSize": 10,
    "pageNum": 1,
    "totalSize": 1,
    "list": [
      {
        "portfolioId": "1732260294043000",
        "portfolioName": "Main Portfolio",
        "orderId": "2106591138643265",
        "clientOrderId": "myorder001",
        "orderState": "FILLED",
        "sym": "BINANCE_SPOT_ETH_USDT",
        "side": "BUY",
        "exchangeOrderType": "LIMIT",
        "exchangeType": "BINANCE",
        "orderType": "DMA",
        "businessType": "SPOT",
        "orderQty": "0.5",
        "quoteOrderQty": "",
        "limitPrice": "3100",
        "timeInForce": "GTC",
        "reason": "",
        "executedQty": "0.5",
        "executedAvgPrice": "3100",
        "executedAmount": "1550",
        "reduceOnly": false,
        "lastExecutedQty": "0.5",
        "lastExecutedPrice": "3100",
        "lastExecutedAmount": "1550",
        "leverage": 1,
        "fee": "1.55",
        "feeCoin": "USDT",
        "rebate": "0",
        "rebateCoin": "",
        "borrowAmount": "0",
        "borrowAsset": "",
        "positionSide": "NONE",
        "tpTriggerPrice": "",
        "tpTriggerType": "LAST_PRICE",
        "tpPrice": "0",
        "slTriggerPrice": "",
        "slTriggerType": "LAST_PRICE",
        "slPrice": "0",
        "createAt": "1741788600000",
        "updateAt": "1741788615000",
        "cancelType": "",
        "amendType": "",
        "algoOrderId": ""
      }
    ]
  }
}
Query Params
string
string
string
string
string
boolean
string
Defaults to 1
string
Defaults to 1000
Response

Language
LoadingLoading…
Response
Choose an example:
application/json