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
  • The UID pending to bind must be upgraded to UTA Pro.

HTTP Request

POST /v5/ins-loan/association-uid

Request Parameters

ParameterRequiredTypeComments
uidtruestringUID
  • Bind
    a) the key used must be from one of uids in the risk unit;
    b) input uid must not have ins loan
  • Unbind
    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
  • 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
    }