Bind/Unbind Sub-account UID to Risk Unit
Rate limit: 5 req/sec/UID
Description
Here’s the English translation of the provided text:
Binding:
- The
uid
andriskUnitId
belong to the same main account. - The
uid
is not bound to any other risk unit.
Unbinding:
- The API key used for the call must belong to the main account or a lending-exclusive sub-account UID within the risk unit.
- The
uid
is within the risk unit and is not equal toriskUnitId
. - The
uid
has a zero balance, or theriskUnitId
has no outstanding or in-progress loan orders.
HTTP Request
- POST /api/v2/spot/ins-loan/bind-uid
Request Example
curl "https://api.bitget.com/api/v2/spot/ins-loan/bind-uid" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json"
-d '{
"uid": "xxxxx",
"operate":"bind"
}
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
riskUnitId | String | No | Risk unit UID (Required for parent account calls, not required for risk unit account calls) |
uid | String | Yes | Sub UID(limit 50 UIDS for one Risk Unit) |
operate | String | Yes | bind Bind unbind Unbind |
Response Example
{
"code": "00000",
"msg": "success",
"requestTime": 1711697588556,
"data": {
"riskUnitId": [
"xxxxxxxx",
"xxxxxxxx"
]
}
}
Response Parameters
Parameter | Type | Description |
---|---|---|
riskUnitId | String | Risk Unit Acocunt UID |
uid | String | Sub UID |
operate | String | bind Bind unbind Unbind |