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.
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 . Specify LONG/SHORT for both mode to close position in one only side. |
Response
Field | Type | Remark |
---|---|---|
orderId | String | Order ID |