Skip to main content

Bind Or Unbind UID

For the institutional loan product, you can bind new UIDs to the risk unit or unbind UID from the risk unit.

info
  • Risk unit designated UID cannot be unbound
  • This endpoint can only be called by uids in the risk unit list
  • The UID must be upgraded to UTA Pro if you try to bind it.
  • When the API is operated through the API Key of any UID in the risk unit, the UID is bound or unbound in the risk unit.

HTTP Request

POST /v5/ins-loan/association-uid

Request Parameters

ParameterRequiredTypeComments
uidtruestringUID
operatetruestring0: bind, 1: unbind

Response Parameters

ParameterTypeComments
uidstringUID
operatestring0: bind, 1: unbind

Request Example

POST /v5/ins-loan/association-uid HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1699257853101
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXX
Content-Type: application/json
Content-Length: 43

{
"uid": "592324",
"operate": "0"
}

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"uid": "592324",
"operate": "0"
},
"retExtInfo": {},
"time": 1699257746135
}