Get quote (by send amount, by target receive amount, or a re-quote)
Give direction and exactly one of amount (send asset) or receiveAmount (receive asset), or requoteOf alone. Returns state "quoted", data.amount (send amount, human units), data.quoteId (bound to that send amount and single-use: it opens at most one order), data.expiresAt (end of the confirmation window, not a price lock), data.expiresInSec and data.acceptWindowSec (QUOTE_MAX_AGE_SEC: 300 s on this deployment, default 300), data.intentCommitment, data.terms {send, receive {estimate, estimateAtomic, minimum, minimumAtomic, minimumPublished}, guaranteed:false, estimatedTimeSec, fees {itemized, integratorFee, breakdown?, feeFraction?, swapperFee: null, note}, minimumSwapUsd, minimumSendEstimate, belowProviderMinimum}, data.confirmation ({ required: false, quoteId, acceptUntil, instruction }) and the raw data.quote. The provider publishes no minimum receive amount (Wagyu v2): terms.receive.minimum is null and minimumPublished false, never derived from the estimate. With receiveAmount, Swapper searches a send amount whose estimated receive amount meets the target (rounded up to 0.01 USDC or 0.0001 XMR, at most 5 provider quotes) and adds data.target; basis "minimum" (target the provider minimum instead) is refused with 400 minimum_not_published while the provider publishes none. requoteOf re-quotes the stored inputs of an earlier quote (same direction, chain, send amount or target, destination) and adds data.delta. For u2x, data.prerequisites lists what the sending wallet needs (native USDC contract, ETH for gas on Arbitrum One) before any order exists. Estimates are not guaranteed: the final amount is set when the swap runs. Fees are included in the rate: Swapper's integrator fee (data.terms.fees.integratorFee) and the provider's own fees (itemized only when the provider reports them). Create with data.quoteId while it is valid. Creates no order. Optional agent key (x-agent-key header or agentKey): the quote and its order use the agent fee shown in GET /agent/key. 451 if the caller's region is restricted.
Request
- Base URL: https://xmrtousdc.xyz/api/v1
- URL: https://xmrtousdc.xyz/api/v1/agent/swap/quote
- Auth: none declared
Headers
Optional agent key from POST /agent/key (same as agentKey in the body).
Request body
Example request
{
"amount": "0.8",
"receiveAmount": "1"
}Response
Quote response
Example response
{
"operation": "swap.quote",
"state": "quoted",
"data": {
"prerequisites": {
"gas": {
"symbol": "ETH",
"chain": "Arbitrum One"
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.