get_swap_quote
Calculates real-time cryptocurrency swap estimates, network fees, deposit limits, and routing URLs across 240+ multi-chain pairs.
USAGE GUIDELINES:
USE WHEN: The user requests an exchange rate calculation or wants an on-chain routing URL between two specific assets (e.g., BTC to XMR, USDT to SOL).
DO NOT USE: Checking coin availability (call 'list_supported_currencies') or inspecting boundary limits without an amount (call 'get_pair_limits_and_fees'). Unsuitable for fiat currencies or bank transfers.
PARAMETER SEMANTICS & ROUTING:
Inbound ('from') and outbound ('to') must be distinct supported tickers.
Tickers are case-insensitive.
Input 'USDT' evaluates to TRON (TRC20); pass 'USDTERC' for Ethereum mainnet.
When 'amount' is outside provider thresholds ('min_amount' / 'max_amount'), the calculation executes, but 'within_limits' returns false.
BEHAVIOR, TIMEOUTS & CACHING:
Strictly read-only without side effects.
Liquidity feeds cached for 30 seconds at the edge.
Returns JSON error object if upstream liquidity feed is unreachable or pair is unrouted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Outbound asset ticker determining destination blockchain network and settlement ledger. Must differ from source. | |
| from | Yes | Inbound asset ticker determining source blockchain and deposit address protocol. Must differ from destination. | |
| amount | No | Inbound volume to exchange. Evaluated against provider liquidity depth to determine 'within_limits' acceptance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| rate | No | ||
| amount | No | ||
| provider | No | ||
| swap_url | No | ||
| rate_type | No | ||
| max_amount | No | ||
| min_amount | No | ||
| updated_at | No | ||
| network_fee | No | ||
| pool_reserve | No | ||
| within_limits | No | ||
| receive_amount | No | ||
| quote_validity_seconds | No |