Get exchange rate between specified currencies
Retrieves the current exchange rate between two specified currencies.
This flexible endpoint allows you to get exchange rates for any supported currency pair:
- Supports USD and EUR currency codes
- Provides comprehensive rate information
- Real-time market data
Supported Currency Pairs
- USD to EUR (USDC to EURC)
- EUR to USD (EURC to USDC)
Query Parameters
- from: Source currency code (usd, eur)
- to: Target currency code (usd, eur)
Use Cases
- Flexible exchange rate queries
- Multi-currency application support
- Dynamic currency conversion calculations
- Financial analytics and reporting
Rate Information
All rates are provided with full market context including mid-market, buy, and sell rates.
Authorizations
Your secret API key. Keep this secure and never expose it in client-side code.
Query Parameters
Source currency code (e.g., usd)
"usd"
Target currency code (e.g., eur)
"eur"
Response
Exchange rate retrieved successfully
Source currency code (USD for USDC)
"usd"
Target currency code (EUR for EURC)
"eur"
Mid-market exchange rate from source to target currency
"0.85000"
Rate for buying target currency (what you get when converting from source to target)
"0.84500"
Rate for selling target currency (what you pay when converting from target to source)
"0.85500"
Timestamp when the exchange rate was last updated
"2024-01-15T10:30:00Z"
