跳到主要内容

创建虚拟子账户

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

描述

该接口目前支持批量创建虚拟子账户

HTTP请求

  • POST /api/v2/user/create-virtual-subaccount
请求示例
curl -X POST "https://api.bitget.com/api/v2/user/create-virtual-subaccount" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \ -d \'{"subAccountList": ["bitget01"]}'

请求参数

参数名参数类型是否必须描述
subAccountListList<String>虚拟昵称 长度为8位的英文字母 全局唯一
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1682660169412,
"data": {
"failureList": [
{
"subaAccountName": "[email protected]"
}
],
"successList": [
{
"subaAccountUid": "9837924274",
"subaAccountName": "[email protected]",
"status": "normal",
"label": "",
"permList": [
"contract_trade",
"spot_trade"
],
"cTime": "1682660169573",
"uTime": "1682660169573"
}
]
}
}

返回参数

返回字段参数类型字段说明
failureListArray创建失败子账户数组
- 账户昵称存在重复
- 创建子账户创建数量达到限制
subaAccountNameString子账户名称
successListArray创建成功子账户数组
subaAccountUidString子账户uid
subaAccountNameString子账户名称
statusString子账户状态
normal 正常
freeze 冻结
del删除
permListList子账户权限
transfer划转
deposit充币
withdraw提币
spot_trade 现货交易
contract_trade 合约交易读写
readonly read读取权限
子账户默认权限为spot_trade& contract_trade
labelString备注
cTimeString子账户创建时间,Unix毫秒时间戳
uTimeString子账户更新时间,Unix毫秒时间戳