get https://api.liquiditytech.com/api/v1/algo/history/orders
Rate Limit: 3 requests per 10 seconds
Retrieve finished orders from the past 7 days.
Request
| Name | Type | Mandatory | Description |
|---|---|---|---|
| sym | String | N | Trading pair unique identifier(example: BINANCE_SPOT_ETH_USDT, OKX_PEPR_ETH_USDT) |
| businessType | String | N | Business type |
| exchange | String | N | Exchange |
| algoOrderType | String | N | Algo order type |
| begin | String | N | Query start time |
| end | String | N | Query end time |
| page | String | N | Current page(Default 1) |
| pageSize | String | N | Page size(Default 1000, max 1000) |
Response
| Field | Type | remark |
|---|---|---|
| portfolioId | String | Portfolio ID |
| algoOrderId | String | Algo order id |
| algoOrderType | String | Algo order types: TPSL, ATTACHED_TPSL |
| clientOrderId | String | Customer defined order ID |
| sym | String | Trading unique identifier, example: BINANCE_SPOT_BTC_USDT, BINANCE_PERP_BTC_USDT If you want to know other trading unique identifiers, please go to the introduction page. |
| exchangeType | String | Exchange type(BINANCE, OKX) |
| businessType | String | Business type(SPOT, PERP) |
| side | String | Side(BUY,SELL) |
| limitPrice | String | Order price |
| orderQty | String | Order quantity, note: trading unit of OKX is the number of contracts/ trading unit of Binance is the number of coin Note: The trading unit on OKX is measured in the number of contracts, while the trading unit on Binance is measured in the number of coins. |
| positionSide | String | Position side, NONE/LONG/SHORT, default NONE. NONE stands for one-way mode. |
| reduceOnly | String | Reduce position orders only, must "true" or "false" |
| orderState | String | Order state( CANCELLED, COMPLETED, REJECTED, FAILED, EXPIRED) |
| reason | String | Fail reason |
| executedQty | String | Transaction quantity Note: The trading unit on OKX is measured in the number of contracts, while the trading unit on Binance is measured in the number of coins. |
| executedAmount | String | Transaction amount |
| executedAvgPrice | String | Average transaction price |
| createAt | String | Create time |
| updateAt | String | Update time |
| conditionType | String | CONDITIONAL, OCO, ENTIRE_CLOSE_POSITION, PARTIAL_CLOSE_POSITION |
| conditionalTriggerPrice | String | Conditional Order Trigger Price |
| conditionalTriggerPriceType | String | Conditional Order Trigger Price Type: LAST_PRICE, MARK_PRICE |
| conditionalPrice | String | Limit Price After Triggering Conditional Order ; 0 Indicates Market Price. |
| attachedOrderId | String | Order ID with TP/SL. |
| tpTriggerPrice | String | Take-profit trigger price. |
| tpTriggerType | String | Take-profit trigger price type LAST_PRICE, MARK_PRICE The default is LAST_PRICE |
| tpPrice | String | Take-profit order price. |
| slTriggerPrice | String | Stop-loss trigger price. |
| slTriggerType | String | Stop-loss trigger price type LAST_PRICE, MARK_PRICE The default is LAST_PRICE |
| slPrice | String | Stop-loss order price. |
