查詢產品信息
提示
- 該接口在不傳入api key和secret進行鑒權時, 則返回公共產品數據
- 該接口在傳入api key和secret進行鑒權時且uid綁定了場外借貸產品, 則返回特定的產品數據
HTTP 請求
GET /v5/ins-loan/product-infos
請求參數
參數 | 是否必須 | 類型 | 說明 |
---|---|---|---|
productId | false | string | 產品ID. 若不傳,則返回所有產品數據 |
返回參數
參數 | 類型 | 說明 |
---|---|---|
marginProductInfo | array | Object |
> productId | string | 產品ID |
> leverage | string | 該借貸產品的最大槓桿倍數 |
> supportSpot | integer | 是否支持現貨. 0 :否; 1 :是 |
> supportContract | integer | 是否支持合約 . 0 : 否; 1 : 是 |
> withdrawLine | string | 限制提幣線 |
> transferLine | string | 限制劃轉線 |
> spotBuyLine | string | 限制現貨買入線 |
> spotSellLine | string | 限制現貨交易線 |
> contractOpenLine | string | 限制合約開倉線 |
> liquidationLine | string | 強平線 |
> stopLiquidationLine | string | 停止強平線 |
> contractLeverage | string | 允許USDT永續默認開倉倍數 |
> transferRatio | string | 現貨帳戶到合約帳戶的借貸資金劃轉比例 |
> spotSymbols | array | 現貨交易對白名單. 若沒有配置白名單, 則返回[] |
> contractSymbols | array | USDT永續合約交易對白名單
|
> supportUSDCContract | integer | 是否支持USDC合約交易. '0' :否; '1' :是 |
> supportUSDCOptions | integer | 是否支持期權交易. '0' :false; '1' :true |
> supportMarginTrading | integer | 是否支持現貨槓桿交易. 0 : 否; 1 : 是 |
> deferredLiquidationLine | string | 延期清算線 |
> deferredLiquidationTime | string | 延期清算時間 |
> USDTPerpetualOpenLine | string | 限制USDT永續的開倉線 |
> USDCContractOpenLine | string | 限制USDC合約的開倉線 |
> USDCOptionsOpenLine | string | 限制期權的開倉線 |
> USDTPerpetualCloseLine | string | 限制USDT永續的交易線 |
> USDCContractCloseLine | string | 限制USDC合約的交易線 |
> USDCOptionsCloseLine | string | 限制期權的交易線 |
> USDCContractSymbols | array | USDC合約的白名單交易對
|
> USDCOptionsSymbols | array | 期權的白名單交易對
|
> marginLeverage | string | 全倉槓桿允許可開的最高槓桿 |
> USDTPerpetualLeverage | array | Object
|
>> symbol | string | 合約名 |
>> leverage | string | 最高可開槓桿 |
> USDCContractLeverage | array | Object
|
>> symbol | string | 合約名 |
>> leverage | string | 最高可開槓桿 |
請求示例
- HTTP
- Python
- Node.js
GET /v5/ins-loan/product-infos?productId=91 HTTP/1.1
Host: api-testnet.bybit.com
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getInstitutionalLendingProductInfo({
productId: '91',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
響應示例
{
"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
}