Quote a buy or sell across QX and QSwap
qmax_get_quotePrices an order and finds the cheapest route across the QX order book and the QSwap pool, splitting the order across both when that is cheaper. Nothing is placed.
Returns an openInQMax link (when the order can be filled) that opens QMax with this order filled in, for the person to review and sign in their own wallet. Also returns the total in QU, the average price, each leg (venue, quantity, price range, fees, price impact), what each single market alone would cost, a plain-English line saying what the routing saved, and warnings. All amounts are QU; quantities are whole units. The quote is a snapshot: prices move, so it can differ a moment later.
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": {
"side": "<side>",
"asset": "<asset>",
"qty": "<qty>"
},
"name": "qmax_get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | Yes | How many units of the asset | |
| side | Yes | Whether the order buys or sells the asset (a buy spends QU, a sell receives QU) | |
| asset | Yes | Asset symbol, for example CFB or QDOGE (case does not matter). qmax_list_assets lists the tradable symbols. | |
| split | No | false prices the best single market only | |
| slippage_bps | No | Slippage tolerance in basis points (100 = 1%), applied to the limits in route[].execution |