Skip to main content
GET
Get a quote
Quotes do not enforce swap limits. An amount far outside the range returned by GET /v1/tokens/swap-limits still returns 200 OK, with significant order-book slippage included in exchangeRate. Check swap limits first and treat out-of-range quotes as unusable.

Authorizations

x-tenant-api-key
string
header
default:c7eccc0aaed64932a85d35658fa55a4fb2d60cd3d2c529cfd643dc676ee82e82
required

Vane's shared tenant key. Contact support for a dedicated key if you need custom parameters or separate order tracking.

Query Parameters

depositTokenId
integer
required

Numeric id of the token being deposited. Ids are chain-specific: BTC is 158 on Bitcoin, 159 on Ethereum (ERC20), and 157 on BNB Smart Chain. Look ids up with GET /v1/tokens.

settleTokenId
integer
required

Numeric id of the token to receive. Pick the id on the chain you want to receive on; the catalog at GET /v1/tokens lists them all.

amount
number
required

Amount to quote. Interpreted as the deposit amount when amountIsDeposit=true, or as the desired settle amount when false. The API does not enforce it: a missing or non-numeric value still returns 200 with depositAmount: null, settleAmount: 0, and exchangeRate: 0, so validate it client-side.

amountIsDeposit
boolean
required

true if amount is the deposit amount, false if it is the settle amount you want to receive.

Response

Indicative quote for the pair. Returned even for amounts outside the swap limits, with order-book slippage included in exchangeRate.

An indicative quote. Quotes do not enforce swap limits; out-of-range amounts return a quote with order-book slippage included in exchangeRate.

depositToken
string
required

Symbol of the deposit token.

depositAmount
number | null
required

Deposit amount. Computed by the API when amountIsDeposit=false. null when amount was missing or not numeric; the quote is unusable in that case.

settleToken
string
required

Symbol of the settle token.

settleAmount
number
required

Estimated settle amount. Computed by the API when amountIsDeposit=true. 0 when amount was missing or not numeric.

exchangeRate
number
required

Effective rate between deposit and settle tokens. For amounts outside the swap limits, order-book slippage is included here, which is why you check swap limits first. 0 when amount was missing or not numeric.

depositTokenUsdValue
number | null
required

USD value of depositAmount at quote time, for display. null when depositAmount is null.

settleTokenUsdValue
number
required

USD value of settleAmount at quote time, for display.

exchange
string
required

Pricing source label for the quote (for example CEX). It describes pricing only; solvers settle the order through intent matching.

tradePath
object[]
required

Order-book legs used to price the quote. Routing for the price, never for settlement.