> ## Documentation Index
> Fetch the complete documentation index at: https://developer.wooxpro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 设置仓位模式 (SIGNED)

`适用于设置仓位模式`

#### 请求URL

`POST https://cloud-api.wooxpro.com/contract/private/set-position-mode`

#### 请求限制

参见 [速率限制详细](/cn/rate-limit)

#### 请求参数

> 请求

```shell theme={null}
curl 
 -H 'X-API-KEY:{{AccessKey}}'
 -H 'X-API-TIMESTAMP:{{currentTime}}'
 -H 'X-API-SIGN:{{SIGN}}' 
 -X POST -d '{
  "position_mode":"one_way_mode"
}'
https://cloud-api.wooxpro.com/contract/private/set-position-mode
```

| 参数             | 类型     | 是否必填 | 描述                                                      |
| :------------- | :----- | :--- | :------------------------------------------------------ |
| position\_mode | String | 必填   | 持仓模式 <br />-`hedge_mode`=双向持仓<br />-`one_way_mode`=单向持仓 |

#### 响应详情

> 响应

```json theme={null}
{
  "code": 1000,
  "trace": "0cc6f4c4-8b8c-4253-8e90-8d3195aa109c",
  "message": "Ok",
  "data": {
    "position_mode":"one_way_mode"
  }
}
```

| 字段             | 类型     | 描述                                                      |
| :------------- | :----- | :------------------------------------------------------ |
| position\_mode | String | 持仓模式 <br />-`hedge_mode`=双向持仓<br />-`one_way_mode`=单向持仓 |
