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 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 re-quote before acting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | Yes | How many units of the asset | |
| side | Yes | ||
| asset | Yes | Asset symbol, for example CFB or QDOGE (case does not matter). Use qmax_list_assets to find one. | |
| 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 |