Skip to main content
GET
https://api.karmapay.xyz/v0
/
v0
/
exchange-rates
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"
  }
}
Authentication: Business API Key
Get real-time exchange rates for currency pairs.

Query Parameters

from
string
Source currency (default: usd, max 10 chars)
to
string
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

midmarket_rate
string
The mid-market exchange rate - the midpoint between buy and sell rates
buyrate
string
The rate at which you can buy the destination currency
sellrate
string
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.