跳至主要内容

查詢自選區間產品報價

信息
提示

RFQ 自選區間使用流程:

  1. 通過查詢產品資訊獲取 priceTickSizeminDeviationRatiomaxDeviationRatio
  2. 在允許的偏離範圍內選擇 lowerPriceupperPrice,兩者均須為 priceTickSize 的整數倍。
  3. 攜帶所選價格調用本接口,獲取 leverage 報價及其 expireTime
  4. expireTime 前使用返回的 leverage 完成下單。

HTTP 請求

GET/v5/earn/advance/double-win-leverage

請求參數

參數必填類型說明
productIdtruestring產品 ID
initialPricetruestring標的資產當前指數價格
lowerPricetruestring自選價格區間下限,須為 priceTickSize 的整數倍,且小於 initialPrice
upperPricetruestring自選價格區間上限,須為 priceTickSize 的整數倍,且大於 initialPrice

響應參數

參數類型說明
productIdstring產品 ID
initialPricestring請求中傳入的 initialPrice(原值返回)
lowerPricestring請求中傳入的 lowerPrice(原值返回)
upperPricestring請求中傳入的 upperPrice(原值返回)
leveragestring對應所選價格區間的槓桿倍數,例如:"241.15"
expireTimestring報價到期時間,毫秒級 Unix 時間戳,須在此時間前完成下單
maxInvestmentAmountstring本次報價下的最大單筆下單金額

請求示例

GET /v5/earn/advance/double-win-leverage?productId=14092&initialPrice=66333.94&lowerPrice=63000&upperPrice=70000 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1672280218882
X-BAPI-RECV-WINDOW: 5000

響應示例

{
"retCode": 0,
"retMsg": "",
"result": {
"productId": "14092",
"initialPrice": "66333.94",
"lowerPrice": "63000",
"upperPrice": "70000",
"leverage": "241.15",
"expireTime": "1775106748000",
"maxInvestmentAmount": "10000"
},
"retExtInfo": {},
"time": 1775106718961
}