Skip to main content

Get Custom Product Quote

info
tip

How to use RFQ custom price range:

  1. Call Get Product Info to obtain priceTickSize, minDeviationRatio, and maxDeviationRatio.
  2. Choose a lowerPrice and upperPrice within the allowed deviation range, both must be multiples of priceTickSize.
  3. Call this endpoint with the chosen prices to get a leverage quote and its expireTime.
  4. Place the order before expireTime using the returned leverage.

HTTP Request

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

Request Parameters

ParameterRequiredTypeComments
productIdtruestringProduct ID
initialPricetruestringCurrent index price of the underlying asset
lowerPricetruestringCustom lower bound of price range. Must be a multiple of priceTickSize and less than initialPrice
upperPricetruestringCustom upper bound of price range. Must be a multiple of priceTickSize and greater than initialPrice

Response Parameters

ParameterTypeComments
productIdstringProduct ID
initialPricestringEcho back of the submitted initialPrice
lowerPricestringEcho back of the submitted lowerPrice
upperPricestringEcho back of the submitted upperPrice
leveragestringLeverage multiplier for the given price range, e.g. "3.2"
expireTimestringQuote expiry time, Unix timestamp in ms. The order must be placed before this time
maxInvestmentAmountstringMaximum single order amount for this quote

Request Example

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

Response Example

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