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
| Name | Type | Mandatory | Description |
|---|---|---|---|
| dualSidePosition | STRING | YES | "true": Hedge Mode; "false": One-way Mode |
| recvWindow | LONG | NO | |
| timestamp | LONG | YES |
Note:
- CM
dualSidePositionmust stay consistent with UM. If CMdualSidePositionis 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"
}