创建子账户
限速规则 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"}'
请求参数
参数名 | 参数类型 | 是否必须 | 描述 |
---|---|---|---|
subaccountName | String | 是 | 子账号用户名 |
label | String | 否 | 备注,单个用户不能重复 |
返回示例
{
"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"
}
}
返回参数
返回字段 | 参数类型 | 字段说明 |
---|---|---|
subUid | String | 子账户uid |
subaccountName | String | 用作生成子账户用户名 |
status | String | normal 正常 freeze 冻结 del 删除 |
permList | List<Sting> | withdraw 提币权限 transfer 划转 spot_trade 现货交易 contract_trade 合约交易 read 读权限 deposit 充值权限 |
label | String | 最多不超过50个字符 |
ctime | String | 数据创建时间,毫秒时间戳 |