delete
https://api.connex.trade/api/v1/trading/position
Close position, this api is asynchronous. Returning success only means that the request is successful. The final result needs to be confirmed through websocket subscription and order query.
Permission
- Applies to both primary user and trading portfolio's API Key.
- Permission: TRADE.
Rate Limit
- 25 requests per 10 seconds
Note
- Close Position API is designed for the instant position close purpose, which is usually to make sure no more positions will be there after the call.
- The standard process to use this endpoint is to :
- cancell all open order
- close long/short positions
- close position API is only for market order to close. To close an position with limit order, please place limit order with 【reduceonly】
Request
| Field name | Type | Necessary | Remarks |
|---|---|---|---|
| sym | String | Y | Trading pair unique identifier ,example: BINANCE_PERP_BTC_USDT, OKX_PERP_BTC_USDT |
| positionSide | String | N | LONG / SHORT. if your positionMode is both mode, you require LONG/SHORT |
Response
| Field | Type | Remark |
|---|---|---|
| orderId | String | Order ID |
