π Exchange Rate API
This endpoint retrieves exchange rates between crypto and fiat currencies.
GET
curl --location '{{baseURL}}/api/checkout/exchange-rates/?from_currency=USDC&to_currency=NGN&amount=2500&chain=BASE' \
--header 'X-Api-Key: *******************' \
--header 'X-Api-Id: ****************' \
--data ''Query Parameters
Name
Type
Required
Description
{
"success": true,
"message": "Exchange rate retrieved successfully",
"data": {
"rate": 1459.199721997525,
"fees": 0.0,
"origin_amount": 1.713268,
"destination_amount": 2500.0,
"from_currency": "USDC",
"to_currency": "NGN",
"chain": "BASE"
}
}Usage Notes
Last updated