Skip to main content

Create Virtual Subaccount Apikey

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

Description

Create the virtual sub-account apikey

HTTP Request

  • POST /api/v2/user/create-virtual-subaccount-apikey
Request Example
curl -X POST "https://api.bitget.com/api/v2/user/create-virtual-subaccount-apikey" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '{
"subAccountUid":"1",
"passphrase":"pssword1",
"label":"test1_account",
"ipList":["127.0.0.1"],
"permList":[
"spot_trade"
]
}'

Request Parameters

ParameterTypeRequiredDescription
subAccountUidStringYesSub-account uid
passphraseStringYesPasscode English letters of 832 characters + numbers
labelStringYesNote Length 20
ipListList<String>Noip whitelist
Up to 30, if not then ip whitelist is set to empty.
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": 1682660169412,
"data": {
"subAccountUid": "1",
"label": "test1_account",
"subAccountApiKey": "xx_xxx",
"secretKey": "xxx",
"permList": [
"spot_trade"
],
"ipList": [
"127.0.0.1"
]
}
}

Response Parameters

ParameterTypeDescription
subAccountUidStringSub-account uid
subAccountApiKeyStringSub-account apikey
secretKeyStringSub-account private key
permListListSub-account permissions
spot_trade: Spot trade
margin_trade: Spot Marign trade
contract_trade: Futures trade read-write
read: Read permissions
labelStringSub-account apikey note
ipListListip whitelist

How was your Reading Experience with us?