Quote open
quote_openQuote opening a leveraged position: expected collateral, debt, health factor and liquidation price. Returns a quote envelope; expiresAt is unix ms and quotes expire after 180 seconds. Amounts are base-unit integer strings.
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": {
"amount": "<amount>",
"chainId": "<chainId>",
"collateralToken": "<collateralToken>",
"leverage": "<leverage>",
"strategyId": "<strategyId>"
},
"name": "quote_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Collateral amount in base units | |
| chainId | Yes | EVM chain id | |
| leverage | Yes | Target leverage as a plain number between 1.01 and 100: 3 means 3x (not 1e18 fixed-point). An open must borrow, so 1 is not accepted; to add collateral without borrowing, adjust an existing position | |
| slippage | No | Slippage tolerance as a decimal: 0.005 means 0.5% (not 1e18 fixed-point) | |
| strategyId | Yes | Strategy id from list_strategies (`strategyId`) | |
| borrowToken | No | Disambiguates strategies that share strategyId and collateral | |
| collateralToken | Yes |