Create quote
create_quoteGet a short-lived quote for currency exchange, including rate, fees, and amount received, to price stablecoin-to-fiat, fiat-to-stablecoin, or stablecoin swaps before transfer.
Instructions
Get a quote for a currency exchange: the rate, the fees, and what the customer receives. Quotes are short-lived, so create one immediately before the transfer. Off-ramp converts a stablecoin to fiat (source network required, destination country required); on-ramp converts fiat to a stablecoin (destination address required). A swap converts a stablecoin to another stablecoin and/or moves it to another network: USDT or USDC on both sides, sourceNetwork and destinationNetwork both blockchain networks, no destinationCountry. The same stablecoin on the same network is refused. Give sourceAmount to quote what a fixed amount buys, or destinationAmount to quote what an exact amount received costs (only on routes that support it); never both. Set preview to price without committing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sourceCurrency": "<sourceCurrency>",
"destinationCurrency": "<destinationCurrency>"
},
"name": "create_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview | No | Price the quote without persisting it, to show an estimate | |
| metadata | No | Optional metadata | |
| customerId | No | The customer the quote is for. With it, the quote also uses payout routes that need the customer to be set up first, and the transfer must then be created for the same customer. Without it, only routes that need no customer set-up are used | |
| sourceAmount | No | Amount to convert, in major units (e.g. '125.75'). Give exactly one of sourceAmount and destinationAmount | |
| fundingSource | No | How the transfer made from this quote will be funded. fund_transfer (default): a deposit for that transfer. prefund_balance prices the quote for payment from your organisation's balance, and the transfer must then use the same fundingSource. Quoting moves no money, but a prefund_balance transfer debits the balance and starts the payout immediately, so it needs explicit human approval | |
| sourceNetwork | No | Blockchain network of the source. Required for off-ramp and swap, omitted for on-ramp | |
| sourceCurrency | Yes | Source currency: a stablecoin for off-ramp or swap (e.g. 'USDT'), fiat for on-ramp | |
| destinationAmount | No | Exact amount the recipient must receive, in major units (e.g. '100'), instead of sourceAmount. The quote then says what to send. Refused on routes that do not support an exact destination amount | |
| destinationAddress | No | Destination wallet address. Required for on-ramp | |
| destinationCountry | No | Destination country, ISO 2-letter. Required for off-ramp | |
| destinationNetwork | No | Off-ramp: the payout network. bank = the default domestic scheme, swift = international wire, payid = PayID alias (AUD), mobile_money = a mobile money wallet (needs walletProvider and walletAccount, and no bank fields). A named domestic scheme (ach, fedwire, fps, chaps, sepa, sepa_instant, fast, chats, unionpay) is refused where it is unavailable for the corridor. unionpay = personal remittance to a bank account in mainland China in CNY: purposeCode PERSONAL_REMITTANCE or USER_WITHDRAWAL, and the customer needs the cny_unionpay entitlement. On-ramp and swap: the blockchain network to deliver on (required for a swap, e.g. 'base') | |
| destinationCurrency | Yes | Destination currency: fiat for off-ramp (e.g. 'EUR'), a stablecoin for on-ramp or swap (e.g. 'USDC') |