Close 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 nameTypeNecessaryRemarks
symStringYTrading pair unique identifier ,example: BINANCE_PERP_BTC_USDT, OKX_PERP_BTC_USDT
positionSideStringNLONG / SHORT. Specify LONG/SHORT for both mode to close position in one only side.

Response

FieldTypeRemark
orderIdStringOrder ID
Language