delete
https://api.liquiditytech.com/api/v1/trading/positions
Rate Limit: 3 requests per 10 seconds
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Close Positions
DELETE https://api.liquiditytech.com/api/v1/trading/positions
Rate Limit: 3 requests per 10 seconds.
Close one or more positions in batch. This API is asynchronous — returning success only means the request was accepted. Confirm the final result via WebSocket subscription or order query.
Request Parameters
| Field | Type | Necessary | Description |
|---|---|---|---|
symList | String | N | Comma-separated list of trading pair identifiers to close. e.g. BINANCE_PERP_BTC_USDT,BINANCE_PERP_ETH_USDT. Supports up to 20 pairs. Required when closeAllPos is false. |
positionSide | String | N | NONE / LONG / SHORT. NONE closes both sides in two-way mode. In one-way mode, LONG / SHORT are ignored. |
closeAllPos | String | N | true / false. Default false. When true, closes all positions (filtered by exchangeType). |
exchangeType | String | N | BINANCE or OKX. If omitted, applies to all exchanges. Only effective when closeAllPos is true. |
Response Fields
Each item in the response array represents one symbol:
| Field | Type | Description |
|---|---|---|
sym | String | Trading pair unique identifier. e.g. BINANCE_PERP_BTC_USDT. |
orderId | String | Order ID for the close request. Not present if the position could not be closed. |
positionSide | String | Position side of the submitted close order. |
success | String | Whether the close request succeeded: true or false. |
errorMsg | String | Reason for failure if success is false. |
Example Response
{
"code": 200000,
"message": "Success",
"data": [
{
"sym": "BINANCE_PERP_DOGE_USDT",
"positionSide": "NONE",
"orderId": "2154643761198660",
"success": "true",
"errorMsg": ""
}
]
}
