Skip to main content
POST
Quote a card amount
Prices a card spend before the buyer commits. trade_type decides which side amount pins: EXACT_INPUT fixes the fiat the buyer spends, EXACT_OUTPUT fixes the crypto they receive, and the provider computes the other. payment_method is a value from List card payment methods. The figures are for display only — the binding amounts are set at checkout. Where the destination is reached by routing, the quote prices the first leg alone, so read it as an upper bound on what lands.

Authorizations

x-calm-publishable-key
string
header
required

Publishable key identifying the calling app.

Body

application/json
amount
string
required
Pattern: ^\d{1,12}(\.\d{1,8})?$
country
string
required
Pattern: ^[A-Z]{2}$
currency
enum<string>
required
Available options:
USD,
GBP,
EUR
destination_chain
enum<number>
required
Available options:
1,
8453,
999,
1337,
4326,
143,
137,
42161
destination_token
enum<string>
required
Available options:
USDC,
USDm,
AUSD,
USDC.e
payment_method
string
required
Pattern: ^[a-z0-9-]{2,32}$
trade_type
enum<string>
default:EXACT_INPUT
Available options:
EXACT_INPUT,
EXACT_OUTPUT

Response

The price estimate for the requested amount.

currency
string
required
destination_amount
string
required
destination_chain
integer
required

Chain id. Currently 1, 8453, 999, 1337, 4326, 143, 137, 42161 — additive; tolerate unknown values.

Required range: -9007199254740991 <= x <= 9007199254740991
destination_token
string
required
payment_method
string
required
source_amount
string
required