跳到主要内容

创建子账户

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

描述

创建子账户

HTTP请求

  • POST /api/v2/broker/account/create-subaccount
请求示例
curl -X POST "https://api.bitget.com/api/v2/broker/account/create-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 '{"subaccountName": "subaccountName1","label": "remark"}'

请求参数

参数名参数类型是否必须描述
subaccountNameString子账号用户名
labelString备注,单个用户不能重复
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1695784054984,
"data": {
"subUid": "*********",
"subaccountName": "****@*****.com",
"status": "normal",
"permList": [
"read",
"spot_trade",
"contract_trade",
"transfer",
"withdraw",
"deposit"
],
"label": "old remark",
"cTime": "1695784057280"
}
}

返回参数

返回字段参数类型字段说明
subUidString子账户uid
subaccountNameString用作生成子账户用户名
statusStringnormal 正常
freeze 冻结
del 删除
permListList<Sting>withdraw 提币权限
transfer 划转
spot_trade 现货交易
contract_trade 合约交易
read 读权限
deposit 充值权限
labelString最多不超过50个字符
ctimeString数据创建时间,毫秒时间戳