跳转到主要内容

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

请求限制

参见 速率限制详细

请求参数

请求
curl 
 -H 'X-BM-KEY:{{AccessKey}}'
 -H 'X-BM-TIMESTAMP:{{currentTime}}'
 -H 'X-BM-SIGN:{{SIGN}}' 
 -X POST -d '{
  "position_mode":"one_way_mode"
}'
https://cloud-api.wooxpro.com/contract/private/set-position-mode
参数类型是否必填描述
position_modeString必填持仓模式
-hedge_mode=双向持仓
-one_way_mode=单向持仓

响应详情

响应
{
  "code": 1000,
  "trace": "0cc6f4c4-8b8c-4253-8e90-8d3195aa109c",
  "message": "Ok",
  "data": {
    "position_mode":"one_way_mode"
  }
}
字段类型描述
position_modeString持仓模式
-hedge_mode=双向持仓
-one_way_mode=单向持仓