Skip to main content

Batch Create Virtual Subaccount and Apikey

Frequency limit: 1 times/1s (User ID)

Description

Create the virtual sub-account and apikey in batch

  • The max length of list is 5 in each request.
  • Every sub-account can create up to 10 API Key
  • You can create up to 20 sub-accounts.

HTTP Request

  • POST /api/v2/user/batch-create-subaccount-and-apikey
Request Example
curl -X POST "https://api.bitget.com/api/v2/user/batch-create-subaccount-and-apikey" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '[{"subAccountName":"test","passphrase":"12345678","permList":["spot_trade","margin_trade","contract_trade"],"label":"1681808312065"}]'

Request Parameters

ParameterTypeRequiredDescription
subAccountNameStringYesVirtual sub-account alias8-character English letters
passphraseStringYesPasscode English letters of 832 characters + numbers
labelStringYesSub-account note Length 20
ipListListNoVirtual sub-account ApiKey ip whitelist, Max. 30
permListListNoSub-account permissions
spot_trade: Spot trade
margin_trade: Spot Marign trade
contract_trade: Futures trade read-write
read: Read permissions
Response Example
{
"code": "00000",
"msg": "success",
"requestTime": 1682662465346,
"data": [
{
"subAccountUid": "***********",
"subAccountName": "*****@*******.com",
"label": "1681808312065",
"subAccountApiKey": "xx_xxx",
"secretKey": "XXXXXXXXXXXXXXX",
"permList": [
"spot_trade",
"margin_trade",
"contract_trade"
],
"ipList": [
"127.0.0.1"
]
}
]
}

Response Parameters

ParameterTypeDescription
subAccountUidStringVirtual sub-account Uid
subAccountNameStringVirtual sub-account alias8-character English letters
labelStringSub-account noteLength 20
subAccountApiKeyStringSub-account apikey
secretKeyStringSub-account secret key
permListListSub-account permissions
spot_trade: Spot trade
margin_trade: Spot Marign trade
contract_trade: Futures trade read-write
read: Read permissions
ipListListip whitelist

How was your Reading Experience with us?