Skip to main content
GET
Get a swap quote

Authorizations

X-API-Key
string
header
required

Query Parameters

market
string
required

Base58-encoded market address.

side
enum<string>
required

Trade side.

Available options:
buy,
sell,
bid,
ask
size
string
required

Amount to trade (decimal string). Interpretation depends on swapMode.

slippageBps
integer
required

Maximum allowed slippage in basis points (1 bps = 0.01%).

Required range: x >= 0
swapMode
enum<string>

Controls how size is interpreted. When omitted, size is always in base tokens.

Available options:
MaxAmountIn,
MinAmountOut
taker
string

Wallet that will sign the swap. When given, maker books it owns or is delegated on are excluded from the quote, exactly as the program excludes them from the fill. Omit for a wallet with no book on this market.

Response

The quote.

Legacy body of the deprecated GET /v1/quote, unchanged from what production has always served. The jupiter* / bps* fields are vestigial — the Jupiter comparison was stubbed out long before this, so they are constants — and expiresAt is always 0, since a quote reserves nothing. New integrations should use POST /v1/order/swap without signer, which returns QuoteResponse.

archerEstimatedBaseSize
string
required

Base tokens that would trade.

archerEstimatedQuoteSize
string
required

Quote tokens that would trade, before fees.

archerEstimatedTotal
string
required

Quote tokens the taker pays or receives, fees included.

archerPrice
string
required

Average execution price, quote per base.

bpsDiff
string
required

Always "0.0". Vestigial.

bpsLabel
string
required

Always "archer". Vestigial.

expiresAt
integer<int64>
required

Always 0.

fullyFilled
boolean
required

Always true: a request the book cannot cover is refused with INSUFFICIENT_LIQUIDITY rather than quoted short.

jupiterEstimatedTotal
string
required

Always "0" at the quote's decimals. Vestigial.

jupiterPrice
string
required

Always "0" at the quote's decimals. Vestigial.

maxFillableInput
string
required

Echoes the requested size, since a quote that returns at all filled completely.