Skip to main content

Get Product Info

tip
  • This endpoint can be queried without api key and secret, then it returns public product data
  • If your uid is bound with OTC loan product, then you can get your private product data by calling the endpoint with api key and secret
  • If your uid is not bound with OTC loan product but api key and secret are also passed, it will return public data only

HTTP Request

GET /v5/ins-loan/product-infos

Request Parameters

ParameterRequiredTypeComments
productIdfalsestringProduct Id. If not passed, then return all products info

Response Parameters

ParameterTypeComments
marginProductInfoarrayObject
> productIdstringProduct Id
> leveragestringThe maximum leverage for this loan product
> supportSpotintegerWhether to support Spot. 0:false; 1:true
> supportContractintegerWhether to support USDT Perpetual. 0:false; 1:true
> supportMarginTradingintegerWhether to support Spot margin trading. 0:false; 1:true
> deferredLiquidationLinestringLine for deferred liquidation
> deferredLiquidationTimestringTime for deferred liquidation
> withdrawLinestringRestrict line for withdrawal
> transferLinestringRestrict line for transfer
> spotBuyLinestringRestrict line for Spot buy
> spotSellLinestringRestrict line for Spot trading
> contractOpenLinestringRestrict line for USDT Perpetual open position
> 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 supportSpot="0", then it returns "[]"
  • If empty array, then you can trade any symbols
  • If not empty, then you can only trade listed symbols
> contractSymbolsarrayThe whitelist of contract trading pairs
  • If supportContract="0", then it returns "[]"
  • If empty array, then you can trade any symbols
  • If not empty, then you can only trade listed symbols
> supportUSDCContractintegerWhether to support USDC contract. '0':false; '1':true
> supportUSDCOptionsintegerWhether to support Option. '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
> USDCContractCloseLinestringRestrict line to trade USDC Contract
> USDCOptionsCloseLinestringRestrict line to trade Option
> USDCContractSymbolsarrayThe whitelist of USDC contract trading pairs
  • If supportContract="0", then it returns "[]"
  • If no whitelist symbols, it is [], and you can trade any
  • If supportUSDCContract="0", it is []
> USDCOptionsSymbolsarrayThe whitelist of Option symbols
  • If supportContract="0", then it returns "[]"
  • If no whitelisted, it is [], and you can trade any
  • If supportUSDCOptions="0", it is []
> marginLeveragestringThe allowable maximum leverage for Spot margin trading. If supportMarginTrading=0, then it returns ""
> 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/product-infos?productId=91 HTTP/1.1
Host: api-testnet.bybit.com

Response Example

{
"retCode": 0,
"retMsg": "",
"result": {
"marginProductInfo": [
{
"productId": "91",
"leverage": "4.00000000",
"supportSpot": 1,
"supportContract": 0,
"withdrawLine": "",
"transferLine": "",
"spotBuyLine": "",
"spotSellLine": "",
"contractOpenLine": "",
"liquidationLine": "0.75",
"stopLiquidationLine": "0.35000000",
"contractLeverage": "0",
"transferRatio": "0",
"spotSymbols": [],
"contractSymbols": [],
"supportUSDCContract": 0,
"supportUSDCOptions": 0,
"USDTPerpetualOpenLine": "",
"USDCContractOpenLine": "",
"USDCOptionsOpenLine": "",
"USDTPerpetualCloseLine": "",
"USDCContractCloseLine": "",
"USDCOptionsCloseLine": "",
"USDCContractSymbols": [],
"USDCOptionsSymbols": [],
"marginLeverage": "0",
"USDTPerpetualLeverage": [],
"USDCContractLeverage": [],
"deferredLiquidationLine":"",
"deferredLiquidationTime":"",
}
]
},
"retExtInfo": {},
"time": 1689747746332
}