getDoubleWinLeverage
Query leverage for a Double Win RFQ product by supplying product ID and a custom price range; returns leverage and expiry time for placing a Stake order before expiration.
Instructions
Query the leverage for a Double Win RFQ product with user-selected price range.
Only applicable for RFQ products (isRfqProduct=true). For fixed-range products,
obtain leverage from Get Product Extra Info or the WebSocket topic earn.doublewin.offers.
Requires Earn permission on the API key.
Rate Limit: 1 req/s (UID)
Notes:
lowerPriceandupperPricemust satisfy:lowerPrice < initialPrice < upperPriceBoth prices must be exact multiples of
priceTickSize(from Get Product Info)The returned
leverageandexpireTimeare used when placing the Stake orderThe order must be placed before
expireTime; after expiration, re-query this endpoint
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"productId": "<productId>",
"initialPrice": "<initialPrice>",
"lowerPrice": "<lowerPrice>",
"upperPrice": "<upperPrice>"
},
"name": "getDoubleWinLeverage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| productId | Yes | ||
| lowerPrice | Yes | ||
| upperPrice | Yes | ||
| initialPrice | Yes |