Quotes
Get Quote
Get pricing information for swaps and transfers with optional privacy protection
GET
Get real-time pricing for token swaps and transfers. Quotes include price impact, fees, and slippage protection.
Parameters
Input asset symbol. Supported:
SOL, USDC, USDTOutput asset symbol. Supported:
SOL, USDC, USDTInput amount. Minimum: 0.001
Execution mode:
wallet (direct) or private (privacy-enhanced)Slippage tolerance in basis points (1-5000). 100 = 1%
Response
Unique quote identifier for transaction submission
Input asset symbol
Output asset symbol
Input amount as string to preserve precision
Expected output amount
Minimum output amount after slippage protection
Price impact percentage (0.1 = 0.1%)
Total fees (network + routing if applicable)
Execution mode:
wallet or privateQuote expiration timestamp (ISO 8601)
Quote Expiration
Quotes expire to protect against price volatility:| Mode | Expiration |
|---|---|
| Wallet | 30 seconds |
| Private | 60 seconds |
Price Impact
Large swaps may experience price impact:| Swap Size | Typical Impact |
|---|---|
| < 10 SOL | < 0.1% |
| 10-100 SOL | 0.1-0.5% |
| 100-1000 SOL | 0.5-2% |
| > 1000 SOL | > 2% |
Error Responses
Error code identifier
Human-readable error message
Additional error context
Common Errors
| Code | Description |
|---|---|
INVALID_ASSET | Unsupported asset symbol |
AMOUNT_TOO_SMALL | Below minimum amount |
INSUFFICIENT_LIQUIDITY | Not enough liquidity for swap |
RATE_LIMIT_EXCEEDED | Too many requests |