Skip to main content

Get Loan Orders

Get up to 2 years worth of historical loan orders.

HTTP Request​

GET/v5/ins-loan/loan-order

Request Parameters​

ParameterRequiredTypeComments
orderIdfalsestringLoan order ID. If not passed, returns all orders sorted by loanTime in descending order
startTimefalseintegerThe start timestamp (ms)
endTimefalseintegerThe end timestamp (ms)
limitfalseintegerLimit for data size. [1, 100], Default: 10

Response Parameters​

ParameterTypeComments
loanInfoarrayObject
> orderIdstringLoan order ID
> orderProductIdstringProduct ID
> parentUidstringThe designated UID that was used to bind with the INS loan
> loanTimestringLoan timestamp, in milliseconds
> loanCoinstringLoan coin
> loanAmountstringLoan amount
> unpaidAmountstringUnpaid principal
> unpaidIntereststringUnpaid interest
> repaidAmountstringRepaid principal
> repaidIntereststringRepaid interest
> interestRatestringDaily interest rate
> statusstring1: outstanding; 2: paid off
> leveragestringThe maximum leverage for this loan product
> supportSpotstringWhether to support spot. 0:false; 1:true
> supportContractstringWhether to support contract . 0:false; 1:true
> withdrawLinestringRestrict line for withdrawal
> transferLinestringRestrict line for transfer
> spotBuyLinestringRestrict line for SPOT buy
> spotSellLinestringRestrict line for SPOT sell
> contractOpenLinestringRestrict line for USDT Perpetual open position
> deferredLiquidationLinestringLine for deferred liquidation
> deferredLiquidationTimestringTime for deferred liquidation
> reserveTokenstringReserve token
> reserveQuantitystringReserve token qty
> liquidationLinestringLine for liquidation
> stopLiquidationLinestringLine for stop liquidation
> contractLeveragestringThe allowed default leverage for USDT Perpetual
> transferRatiostringThe transfer ratio for loan funds to transfer from Spot wallet to Contract wallet
> spotSymbolsarrayThe whitelist of spot trading pairs. If there is no whitelist, then "[]"
> contractSymbolsarrayThe whitelist of contract trading pairs
  • If supportContract="0", then this is "[]"
  • If there is no whitelist, this is "[]"
> supportUSDCContractstringWhether to support USDC contract. "0":false; "1":true
> supportUSDCOptionsstringWhether to support Option. "0":false; "1":true
> supportMarginTradingstringWhether to support Spot margin trading. "0":false; "1":true
> USDTPerpetualOpenLinestringRestrict line to open USDT Perpetual position
> USDCContractOpenLinestringRestrict line to open USDC Contract position
> USDCOptionsOpenLinestringRestrict line to open Option position
> USDTPerpetualCloseLinestringRestrict line to trade USDT Perpetual position
> USDCContractCloseLinestringRestrict line to trade USDC Contract position
> USDCOptionsCloseLinestringRestrict line to trade Option position
> USDCContractSymbolsarrayThe whitelist of USDC contract trading pairs
  • If no whitelist symbols, it is [], and you can trade any
  • If supportUSDCContract="0", it is []
> USDCOptionsSymbolsarrayThe whitelist of Option symbols
  • If no whitelisted, it is [], and you can trade any
  • If supportUSDCOptions="0", it is []
> marginLeveragestringThe allowable maximum leverage for Spot margin
> USDTPerpetualLeveragearrayObject
  • If supportContract="0", it is []
  • If no whitelist USDT perp symbols, it returns all trading symbols and leverage by default
  • If there are whitelist symbols, it return those whitelist data
>> symbolstringSymbol name
>> leveragestringMaximum leverage
> USDCContractLeveragearrayObject
  • If supportUSDCContract="0", it is []
  • If no whitelist USDC contract symbols, it returns all trading symbols and leverage by default
  • If there are whitelist symbols, it return those whitelist data
>> symbolstringSymbol name
>> leveragestringMaximum leverage

Request Example​

GET /v5/ins-loan/loan-order HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1678687874060
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXX

Response Example​

{
"retCode": 0,
"retMsg": "",
"result": {
"loanInfo": [
{
"orderId": "1468005106166530304",
"orderProductId": "96",
"parentUid": "1631521",
"loanTime": "1689735916000",
"loanCoin": "USDT",
"loanAmount": "204",
"unpaidAmount": "52.07924201",
"unpaidInterest": "0",
"repaidAmount": "151.92075799",
"repaidInterest": "0",
"interestRate": "0.00019178",
"status": "1",
"leverage": "4",
"supportSpot": "1",
"supportContract": "1",
"withdrawLine": "",
"transferLine": "",
"spotBuyLine": "0.71",
"spotSellLine": "0.71",
"contractOpenLine": "0.71",
"liquidationLine": "0.75",
"stopLiquidationLine": "0.35000000",
"contractLeverage": "7",
"transferRatio": "1",
"spotSymbols": [],
"contractSymbols": [],
"supportUSDCContract": "1",
"supportUSDCOptions": "1",
"USDTPerpetualOpenLine": "0.71",
"USDCContractOpenLine": "0.71",
"USDCOptionsOpenLine": "0.71",
"USDTPerpetualCloseLine": "0.71",
"USDCContractCloseLine": "0.71",
"USDCOptionsCloseLine": "0.71",
"USDCContractSymbols": [],
"USDCOptionsSymbols": [],
"deferredLiquidationLine":"",
"deferredLiquidationTime":"",
"marginLeverage": "4",
"USDTPerpetualLeverage": [
{
"symbol": "SUSHIUSDT",
"leverage": "7"
},
{
"symbol": "INJUSDT",
"leverage": "7"
},
{
"symbol": "RDNTUSDT",
"leverage": "7"
},
{
"symbol": "ZRXUSDT",
"leverage": "7"
},
{
"symbol": "HIGHUSDT",
"leverage": "7"
},
{
"symbol": "WAVESUSDT",
"leverage": "7"
},
...
{
"symbol": "ACHUSDT",
"leverage": "7"
},
{
"symbol": "SUNUSDT",
"leverage": "7"
}
],
"USDCContractLeverage": [
{
"symbol": "BTCPERP",
"leverage": "8"
},
{
"symbol": "BTC-Futures",
"leverage": "8"
},
...
{
"symbol": "ETH-Futures",
"leverage": "8"
},
{
"symbol": "SOLPERP",
"leverage": "8"
},
{
"symbol": "ETHPERP",
"leverage": "8"
}
]
}
]
},
"retExtInfo": {},
"time": 1689745773187
}