Institutional Loan
Institutional Loan
Bind/Unbind UID to Risk Unit
Rate limit: 3/sec/UID
Binding:
- The uid and riskUnitId 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 the lending-exclusive sub-account UID within the risk unit.
- The uid is within the risk unit and is not equal to riskUnitId.
- The uid has a zero balance, or the riskUnitId has not_paid_off or in_progress loan orders.
The account mode must be set to Advanced Mode; Basic Mode is not supported.
- Rate limit: 3/sec/UID
- Permission: UTA mgt. (read)
Bind/Unbind UID to Risk Unit › Request Parameters
uidSub UID (limit 50 UIDs for one Risk Unit)
operatebind Bind
unbind Unbind
riskUnitIdRisk Unit ID (Required for parent account calls, not required for risk unit account calls)
Bind/Unbind UID to Risk Unit › Response Parameters
Successful response
codemsgrequestTimeriskUnitIdRisk Unit ID
uidBind or unbind the UID of the sub-account to the risk unit. Bind: the UID and the riskUnitId belong to the same main account; the UID is not bound to other risk units. Unbind: the API key for invoking the interface must be the UID of the exclusive sub-account for borrowing and lending within the main account or the risk unit; the UID is within the risk unit and is not equal to the riskUnitId; the assets of the UID are zero, or there are no outstanding or in-transit borrowing and lending orders for the riskUnitId.
operatebind Bind
unbind Unbind
Get Margin Coin Info
Rate limit: 3/sec/UID
Get Margin Coin Info
- Rate limit: 3/sec/UID
- Permission: UTA mgt. (read)
Request Parameters
productIdProduct Id
Get Margin Coin Info › Response Parameters
Successful response
codemsgrequestTimeproductIdProduct Id
Spot margin coin
Get LTV
Rate limit: 3/sec/UID
Get LTV
- If the riskUnitId parameter is not passed in, the account calling the interface must be an institutional exclusive lending unit account.
- If this parameter has been provided, the UID carried in the parameter must belong to an institutional lending exclusive unit account, and the account calling the API must be the primary account.
- Update frequency: 1s
- Rate limit: 3/sec/UID
- Permission: UTA mgt. (read)
Request Parameters
riskUnitIdRisk Unit ID
Get LTV › Response Parameters
Successful response
codemsgrequestTimeltvRisk rate, 0.6667
subAccountUidsSub-accounts user ID in Risk Unit
usdtBalanceTotal assets (margin coins converted to USDT)
unpaidUsdtAmountTotal debt (converted to USDT)
Debt details
Asset details
Get Loan Orders
Rate limit: 3/sec/UID
Get Loan Orders
- Rate limit: 3/sec/UID
- Permission: UTA mgt. (read)
Request Parameters
orderIdLoan order id. If not passed, then return all orders, sort by loanTime in descend
startTimeThe start timestamp (ms)
endTimeThe end timestamp (ms)
Get Loan Orders › Response Parameters
Successful response
codemsgrequestTimeLoan details
orderIdLoan order ID
orderProductIdProduct Id
uidThe designated UID that is used to bind INS loan product, loan and repayment
loanTimeLoan timestamp, in milliseconds
loanCoinLoan coin
loanAmountLoan amount
unpaidAmountUnpaid principal
unpaidInterestUnpaid interest
repaidAmountRepaid principal
repaidInterestRepaid interest
reserveReserve amount
statusNot paid off not_paid_off;
Paid off paid_off
Get Product Info
Rate limit: 3/sec/UID
Get Product Info
- Rate limit: 3/sec/UID
- Permission: UTA mgt. (read)
Request Parameters
productIdProduct Id
Get Product Info › Response Parameters
Successful response
codemsgrequestTimeproductIdProduct Id
leverageThe maximum leverage for this loan product. 2x/4x
supportUsdtContractWhether USDT-M Futures are supported. YES/NO
supportCoinContractWhether Coin-M Futures are supported. YES/NO
supportUsdcContractWhether USDC-M Futures are supported. YES/NO
transferLineRestrict line for transfer, eg: 0.6667
spotBuyLineRestrict line for Spot buy, eg: 0.8
usdtContractOpenLineRestrict line for USDT-M Futures open position, eg: 0.8
coinContractOpenLineRestrict line for Coin-M Futures open position, eg: 0.8
usdcContractOpenLineRestrict line for USDC-M Futures open position, eg: 0.8
liquidationLineLine for liquidation, eg: 0.9
stopLiquidationLineLine for stop liquidation, eg: 0.75
Get Repayment Orders
Rate limit: 3/sec/UID
Get Repayment Orders
- By default, query the data of the past two years.
- At most, support querying the data of the past two years.
- Only display the data of successfully repaid orders.
- Only display the repayment orders under the unified account. The orders under the spot account can be queried through the v2 version.
- Rate limit: 3/sec/UID
- Permission: UTA mgt. (read)
Request Parameters
startTimeThe start timestamp (ms)
endTimeThe end timestamp (ms)
limitLimit default 100; max 100
Get Repayment Orders › Response Parameters
Successful response
codemsgrequestTimeRepayment orders
repayOrderIdRepaid order ID
repaidTimeRepaid timestamp (ms)
coinRepaid coin
repayAmountRepaid principle
repayInterestRepaid interest
repayTypeRepaid type: all All repayment; part partial repayment
businessTypeBusiness type: normal normal repayment; liquidation repaid by liquidation
Get Trade Symbols
Rate limit: 3/sec/UID
Get Trade Symbols
- Rate limit: 3/sec/UID
- Permission: UTA mgt. (read)
Request Parameters
productIdProduct Id
Get Trade Symbols › Response Parameters
Successful response
codemsgrequestTimeproductIdProduct Id
spotSymbolsSpot trading pairs
marginLeverageThe allowable maximum leverage for Spot margin trading
usdtContractLeverageThe allowed default leverage for USDT-M Futures
coinContractLeverageThe allowed default leverage for Coin-M Futures
usdcContractLeverageThe allowed default leverage for USDC-M Futures
USDT-M Futures Object
If supportUsdtContract=NO, then it returns "[]"
If there are whitelist symbols, it returns those whitelist data
Coin-M Futures Object
If supportCoinContract=NO, then it returns "[]"
If there are whitelist symbols, it returns those whitelist data
USDC-M Futures Object
If supportUsdcContract=NO, then it returns "[]"
If there are whitelist symbols, it returns those whitelist data
Get Transferred Quantity
Rate limit: 3/sec/UID
Get Transferred Quantity
- Rate limit: 3/sec/UID
- Permission: UTA mgt. (read)
Request Parameters
coinCoin
userIdUser Id (Master account or sub-accounts)
Get Transferred Quantity › Response Parameters
Successful response
codemsgrequestTimecoinCoin name
transferedTransferred quantity
userIdUser Id
