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
Parameter | Type | Required | Description |
---|---|---|---|
subAccountUid | String | Yes | Sub-account uid |
passphrase | String | Yes | Passcode English letters of 8−32 characters + numbers |
label | String | Yes | Note Length 20 |
ipList | List<String> | No | ip whitelist Up to 30, if not then ip whitelist is set to empty. |
permList | List | No | Sub-account permissionsspot_trade : Spot trademargin_trade : Spot Marign tradecontract_trade : Futures trade read-writeread : 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
Parameter | Type | Description |
---|---|---|
subAccountUid | String | Sub-account uid |
subAccountApiKey | String | Sub-account apikey |
secretKey | String | Sub-account private key |
permList | List | Sub-account permissionsspot_trade : Spot trademargin_trade : Spot Marign tradecontract_trade : Futures trade read-writeread : Read permissions |
label | String | Sub-account apikey note |
ipList | List | ip whitelist |