Get the best route for an order

Prices a whole order across the QX order book and the QSwap pool and splits it where that pays more. Use side=sell to find what a holding would fetch and side=buy for what a purchase would cost: no wallet is needed, and a big order's price impact is already in the total. The summary field says the result in words (total, average, where each part goes, what the split is worth); route has each leg's exact figures and the limits to sign against.

get/v1/quote

Request

  • Base URL: https://qmax.exchange/api
  • URL: https://qmax.exchange/api/v1/quote
  • Auth: none declared

Query parameters

side'buy' | 'sell' required
assetstring required
qtyinteger required
slippageBpsinteger

Slippage tolerance in basis points, applied to the execution limits in route[].execution

splitboolean

Allow splitting across venues

Response

Route quote, with a plain-language summary

Changes

No recorded changes to this operation across all 1 revision of this API.