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.

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 :
    1. cancell all open order
    2. 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 nameTypeNecessaryRemarks
symStringYTrading pair unique identifier ,example: BINANCE_PERP_BTC_USDT, OKX_PERP_BTC_USDT
positionSideStringNLONG / SHORT. if your positionMode is both mode, you require LONG/SHORT

Response

FieldTypeRemark
orderIdStringOrder ID
Language