跳到主要内容

绑定/解绑子账户UID至风险单元

限速规则: 5次/1s (Uid)

描述

绑定:
uid 和riskUnitId 同归属一个主账户;
uid 未绑定到其他风险单元;
解绑:
调用接口的API key必须为主账户或风险单元内借贷专属子账户UID;
uid 在风险单元内且不等于riskUnitId;
uid 资产为零 或 riskUnitId 无未结清或在途的借贷订单;

HTTP请求

  • POST /api/v2/spot/ins-loan/bind-uid
请求示例
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"
}

请求参数

参数名参数类型是否必须描述
riskUnitIdString风险单元UID (母账户调用需要传,风险单元账户调用不需要传)
uidString子账户UID(一个风险单元最多绑定50个UID)
operateStringbind 绑定
unbind 解绑
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1711697588556,
"data": {
"riskUnitId": "",
"uid": "xxxxx",
"operate": "bind"
}
}

返回参数

返回字段参数类型字段说明
riskUnitIdString风险单元UID
uidString子账户UID
operateStringbind 绑定
unbind 解绑