Skip to main content

Change Position Mode(TRADE)

API Description

Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol.

After CM migration, UM and CM share the same dualSidePosition setting. Calling this endpoint flips both UM and CM at once. If either side has any open order or open position, the change is rejected:

  • -4067 (open orders exist)
  • -4068 (open position exists)

HTTP Request

POST /dapi/v1/positionSide/dual

Request Weight

1

Request Parameters

NameTypeMandatoryDescription
dualSidePositionSTRINGYES"true": Hedge Mode; "false": One-way Mode
recvWindowLONGNO
timestampLONGYES

Note:

  • CM dualSidePosition must stay consistent with UM. If CM dualSidePosition is already the same as UM, changing it will be rejected with error: "The operation is rejected because the CM dual-side is not allowed to be different from UM dual-side."

Response Example

{
"code": 200,
"msg": "success"
}