跳到主要内容

修改子账户状态与权限

限速规则 1次/1s (Apikey)

描述

修改子账户状态与权限

HTTP请求

  • POST /api/v2/broker/account/modify-subaccount
请求示例
curl -X POST "https://api.bitget.com/api/v2/broker/account/modify-subaccount" \
-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":"111111","permList":["transfer"],"status":"normal","language":"en_US"}'

请求参数

参数名参数类型是否必须描述
subUidString子账号Uid
permListList<String>权限数组,枚举值:
withdraw 提币权限
transfer 划转
spot_trade 现货交易
contract_trade 合约交易
readonly 读权限
deposit 充值权限
margin_trade 杠杆交易
statusString子账号状态
normal 正常
freeze 冻结
languageString子账号语言
en_US
zh_CN
ja_JP
vi_VN
zh_TW
ru_RU
es_ES
tr_TR
fr_FR
de_DE
pt_PT
th_TH
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1695784726115,
"data": {
"subUid": "*******",
"subaccountName": "****@*****.com",
"status": "normal",
"permList": [
"transfer"
],
"label": "old remark",
"language": "en_US",
"cTime": "1692008679489",
"uTime": "1695784728684"
}
}

返回参数

返回字段参数类型字段说明
subUidString子账户uid
subaccountNameStringsubaccountName作为前缀生成的虚拟邮箱用户名
statusStringnormal 正常
freeze 冻结
permListList<String>withdraw 提币权限
transfer 划转
spot_trade 现货交易
contract_trade 合约交易
readonly 读权限
deposit 充值权限
labelString备注名称 3-20个字符
ctimeString数据创建时间,毫秒时间戳
utimeString数据更新时间,毫秒时间戳
languageString子账户语言
en_US
zh_CN
ja_JP
vi_VN
zh_TW
ru_RU
es_ES
tr_TR
fr_FR
de_DE
pt_PT
th_TH