修改经纪商子账户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" ]}'
请求参数
| 参数名 | 参数类型 | 是否必须 | 描述 |
|---|---|---|---|
| subUid | String | 是 | 子账户uid |
| passphrase | String | 是 | Passphrase - passphrase是调用 API 接口的必要参数,如果遗失请重新创建API key |
| apiKey | String | 是 | API Key |
| label | String | 否 | 备注 |
| ipList | String | 否 | IP白名单 - 最多传入30个 |
| permType | String | 否 | 权限类型read_and_write 读写权限 readonly 只读权限 |
| permList | String | 否 | 权限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"
]
}
}
返回参数
| 返回字段 | 参数类型 | 字段说明 |
|---|---|---|
| subUid | String | 子账户uid |
| label | String | 备注 |
| apikey | String | API Key |
| permType | String | 权限类型read_and_write 读写权限 readonly 只读权限 |
| permList | String | 权限uta_trade UTA交易uta_mgt UTA管理 withdraw提币(permType需要为read_and_write类型) |
| ipList | String | IP白名单 |