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

Example Request

GET /quote?amount=2&from=ETH&to=BNB&anonymous=false&useXmr=false

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