Get Off-Ramp Exchange Rate
Get a fee breakdown and fiat conversion for a proposed off-ramp transaction.
Endpoint
POST /v1/exchange-rates/offrampAuthentication
Authorization: <api_key>Request body
Field
Type
Required
Description
Example request
curl -X POST https://ramp-api.ivorypay.io/api/v1/exchange-rates/offramp \
-H "Authorization: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"cryptoAmount": 30,
"businessFeeInCrypto": 0,
"token": "USDT",
"blockchain": "BSC_MAINNET",
"fiatCurrency": "NGN"
}'const response = await fetch("https://ramp-api.ivorypay.io/api/v1/exchange-rates/offramp", {
method: "POST",
headers: {
"Authorization": "your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
cryptoAmount: 30,
businessFeeInCrypto: 0,
token: "USDT",
blockchain: "BSC_MAINNET",
fiatCurrency: "NGN",
}),
});
const data = await response.json();
console.log(data);Example response
Response fields
Field
Type
Description
Last updated