Skip to main content

Get CEX Quote

Endpoint

GET /quote
Returns exchange rate details for a CEX swap.

Query Parameters

FieldTypeRequiredDescription
amountstringYesThe quantity the client transfers (e.g., 2)
fromstringYesTokenID of the source currency (e.g., ETH)
tostringYesTokenID of the destination currency (e.g., BNB)
anonymousbooleanYesWhether to route through XMR for privacy
useXmrbooleanNoWhether XMR specifically powers the anonymous transaction
rotatePayoutWalletsbooleanNoEnable payout wallet rotation for privacy. Deprioritizes recently-used provider paths so consecutive swaps route through different wallets. See Payout Wallet Rotation
deviationThresholdnumberNoMaximum price deviation percentage allowed when rotating (default: 5). If the rotated quote deviates more than this from the best quote, rotation is skipped. Only used when rotatePayoutWallets is true
rotationLookbacknumberNoNumber of recent orders to check for path deduplication (default: 10). Only used when rotatePayoutWallets is true

Example Request

GET /quote?amount=2&from=ETH&to=BNB&anonymous=false&useXmr=false&rotatePayoutWallets=true&deviationThreshold=5&rotationLookback=10

Example Response

{
  "amountIn": 2,
  "amountOut": 12345,
  "min": 0.1,
  "max": 99999999,
  "useXmr": false,
  "duration": 15
}

Response Fields

FieldTypeDescription
amountInnumberThe input amount quoted
amountOutnumberThe output amount quoted
minnumberMinimum exchange threshold
maxnumberMaximum exchange threshold
useXmrbooleanWhether XMR is used for anonymous routing
durationnumberEstimated exchange timeframe in minutes
deviceInfostring(Optional) Device info for tracking
isMobileboolean(Optional) Whether client is mobile
clientIdstring(Optional) Client identifier