Modify Virtual Subaccount Apikey
Frequency limit: 5 times/1s (User ID)
Description
Modify the virtual sub-account apikey
HTTP request
- POST /api/v2/user/modify-virtual-subaccount-apikey
Request Example
curl -X POST "https://api.bitget.com/api/v2/user/modify-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":"9837924274","subAccountApiKey":"bg_19aab20aafdb177408faf3fba6580656", "passphrase":"1r1b6uX6PQ9tbKwa","permList":["spot_trade","contract_trade"],"label":"1681808312065","ipList":["127.0.0.1","182.168.0.1"]}'
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<String> | No | apikey permissions contract_order Futures order contract_position Contract position spot_trade Spot trade margin_trade Spot margin trading copytrading_trade Copy trading wallet_transfer Wallet transfer wallet_withdraw Wallet withdraw Wallet withdrawals are invalid when the read-only permission type is selected, and there is no read-only permission for withdrawing coins. |
subAccountApiKey | String | Sub-account ApiKey |
Response Example
{
"code": "00000",
"msg": "success",
"data": {
"subAccountUid": "58281113",
"label": "sub api",
"subAccountApiKey": "bg_djwwwls98a1s0dLK3deq2",
"secretKey": "Sjwwwls98a1s0dLK3deq2",
"permList": [
"spot_trade",
"margin_trade"
],
"ipList": [
"127.127.127.127"
]
}
}
Response Parameters
Parameter | Type | Description |
---|---|---|
subAccountUid | String | Sub-account uid |
subAccountApiKey | String | Sub-account apikey |
secretKey | String | secretKey |
permList | List | Sub-account apikey permissions contract_order Futures order contract_position Contract position spot_trade Spot trade margin_trade Spot margin trading copytrading_trade Copy trading wallet_transfer Wallet transfer wallet_withdraw Wallet withdraw Wallet withdrawals are invalid when the read-only permission type is selected, and there is no read-only permission for withdrawing coins. |
label | String | Sub-account apikey note |
ipList | List | Sub-account apikey ip whitelist |