Close Position

Rate Limit: 50 requests per 10 seconds.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

If a reduceOnly open order exists for the symbol, it is automatically cancelled before the market close — a single orderId is returned. Poll Query Order Detail (GET /api/v1/trading/order) until orderState is FILLED to confirm.

Request Parameters

FieldTypeNecessaryDescription
symStringYTrading pair unique identifier. e.g. BINANCE_PERP_BTC_USDT, OKX_PERP_BTC_USDT, EDX_PERP_ETH_USDT.
positionSideStringNRequired when position mode is BOTH. LONG or SHORT.

Response Fields

FieldTypeDescription
orderIdStringOrder ID generated for the close position request.

Example Response

{
  "code": 200000,
  "message": "Success",
  "data": {
    "orderId": "1234567890123456"
  }
}
Body Params
string
required
string

LONG/SHORT

Response

Language
LoadingLoading…
Response
Choose an example:
application/json