Modify User Position Mode
HTTP Request
- POST
/api/v1/private/position/change_position_mode
Required Permission: Order Placing
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| positionMode | int | true | 1: Hedge Mode, 2: One-way Mode. To modify the position mode, you must ensure there are no active orders, plan orders, or unfinished positions; otherwise, it cannot be modified. When switching from Hedge Mode to One-way Mode, the risk limit level will reset to level 1. To change it, call the interface to modify. |
Response Parameters
Common parameters, success: true success, false failure
Response
{
"success": true,
"code": 0
}