Authentication: Business API Key
Get real-time exchange rates for currency pairs.
Query Parameters
Source currency (default: usd, max 10 chars)
Destination currency (default: eur, max 10 chars)
curl -X GET 'https://api.karmapay.xyz/v0/exchange-rates?from=usd&to=eur' \
-H 'Authorization: Bearer karma_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
{
"data": {
"midmarket_rate": "0.92",
"buyrate": "0.91",
"sellrate": "0.93"
}
}
Rate Types
The mid-market exchange rate - the midpoint between buy and sell rates
The rate at which you can buy the destination currency
The rate at which you can sell the destination currency
Exchange rates are updated in real-time and may fluctuate. For accurate conversion amounts, call this endpoint just before creating transactions.