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