跳到主要内容

修改经纪商子账户API Key

描述

HTTP请求

  • POST /api/v3/broker/modify-sub-apikey
  • 限频: 20次/秒/UID
  • 仅用户类型为ND Broker的母账户才能调用该接口
请求示例
curl -X POST "https://api.bitget.com/api/v3/broker/modify-sub-apikey" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"subUid": "12345678910", "passphrase": "12345678","apiKey": "bg_12345678910", "label": "338040211757111_test01","permType": "read_write", "permList": [ "uta_trade","uta_mgt","withdraw" ]}'

请求参数

参数名参数类型是否必须描述
subUidString子账户uid
passphraseStringPassphrase
- passphrase是调用 API 接口的必要参数,如果遗失请重新创建API key
apiKeyStringAPI Key
labelString备注
ipListStringIP白名单
- 最多传入30个
permTypeString权限类型
read_and_write 读写权限
readonly 只读权限
permListString权限uta_trade UTA交易
uta_mgt UTA管理
withdraw提币(permType需要为read_and_write类型)
返回示例

{
"code": "00000",
"msg": "success",
"requestTime": 1767151778823,
"data": {
"subUid": "12345678910",
"label": "3380407571_test02update",
"apiKey": "bg_12345678910",
"permType": "read_and_write",
"permList": [
"uta_mgt",
"uta_trade",
"withdraw"
],
"ipList": [
"1.3.1.2"
]
}
}

返回参数

返回字段参数类型字段说明
subUidString子账户uid
labelString备注
apikeyStringAPI Key
permTypeString权限类型
read_and_write 读写权限
readonly 只读权限
permListString权限uta_trade UTA交易
uta_mgt UTA管理
withdraw提币(permType需要为read_and_write类型)
ipListStringIP白名单