Exchange Rates API
The Exchange Rates API provides real-time exchange rates between currencies, including fee calculations, transaction limits, and payment rail options. This endpoint is essential for displaying conversion rates to users before they create quotes or transactions.
Get Current Exchange Rate
Retrieve the current exchange rate between two currencies with comprehensive fee calculations, limit information, and payment rail options. This endpoint supports both FIAT and CRYPTO transactions.
Endpoint
Client API Endpoint: GET /api/v1/client/exchange-rates
Public Endpoint: GET /api/v1/exchange-rates
Use the client endpoint for signed business integrations. The public endpoint is useful for unauthenticated product surfaces that only need rate discovery.
Authentication
This endpoint requires HMAC authentication (Business API Key). Include your API key and signature in the request headers:
Query Parameters
Transaction Types
EXCHANGE- Currency conversion between different currenciesWITHDRAWAL- Withdraw funds to external destinationDEPOSIT- Deposit funds from external sourceTRANSFER- Internal transfer between accountsSWAP- Currency swap within same accountDIRECT_EXCHANGE- Direct exchange with external beneficiary
Success Response (200 OK)
Response Fields
Error Responses
Example: cURL
Example: HTTP Request
Use Cases
- Rate Display - Show users current exchange rates before creating quotes
- Fee Calculation - Display total fees and payable amounts
- Limit Validation - Check if transaction amounts are within allowed limits
- Rail Selection - Compare different payment rails and their fees
- Reverse Calculation - Calculate required source amount for a target amount
Key Features
- FIAT and CRYPTO Support - Handles both traditional currencies and stablecoins (USDC, USDT)
- USD Bridging - Automatically bridges crypto transactions through USD for accurate conversions
- Smart Currency Mapping - Automatically detects stablecoins and applies appropriate conversions
- Fee Calculations - Provides detailed fee breakdowns for all payment rails
- Transaction Limits - Includes minimum and maximum amounts for deposits and withdrawals
- Rate Validity - Provides expiration timestamps for rate locking
Best Practices
- Cache Rates - Exchange rates change frequently, but you can cache them for short periods (e.g., 30 seconds)
- Check Validity - Always check the
valid_untiltimestamp before using a rate - Validate Limits - Verify transaction amounts against
min_*andmax_*limits before proceeding - Display Fees Clearly - Show users the total payable amount including all fees
- Handle Errors - Provide fallback options if rate lookup fails
Transaction Limits
Transaction limits are included in the exchange rate response. These limits help ensure transactions comply with regulatory requirements and business rules.
Limit Fields
The exchange rate response includes the following limit fields:
Next Steps
- Create Quote - Use the exchange rate to create a quote for currency conversion
- Currencies API - Get list of supported currencies
- Transactions API - Track completed transactions