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
- The UID pending to bind must be upgraded to UTA Pro.
HTTP Request
POST /v5/ins-loan/association-uid
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
uid | true | string | UID a) the key used must be from one of uids in the risk unit; b) input uid must not have ins loan a) the key used must be from one of uids in the risk unit; b) input uid cannot be the same as the uid used to access the API |
operate | true | string | 0 : bind, 1 : unbind |
Response Parameters
Parameter | Type | Comments |
---|---|---|
uid | string | UID |
operate | string | 0 : bind, 1 : unbind |
Request Example
- HTTP
- Python
- Node.js
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"
}
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.bindOrUnbindUID({
uid: 'yourUID',
operate: '0', // 0 for bind, 1 for unbind
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Response Example
{
"retCode": 0,
"retMsg": "OK",
"result": {
"uid": "592324",
"operate": "0"
},
"retExtInfo": {},
"time": 1699257746135
}