Get Exchange Rate
This endpoint is used to get currency swap rate between two currency pairs e.g NGN to USD
POST {{base_url}}/business/rate
Headers
Name
Type
Description
Authorization*
String
Set value to Bearer PUBLIC_KEY
Take a look at how you might do this:
curl --location '{{base_url}}/business/rate' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer PUBLIC_KEY' \
--data '{
"currencypair": "USDRWF"
}'const axios = require('axios');
let data = JSON.stringify({
"currencypair": "NGNKES"
});
let config = {
method: 'post',
url: '{{base_url}}/business/rate',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer PUBLIC_KEY',
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});Sample Response
{
"status": true,
"message": "Exchange rate fetched successfully",
"data": {
"minAmount": 0.1,
"maxAmount": 10000,
"exchangeRate": 1429
}
}Last updated
Was this helpful?