Local-amount-in-usd
/info/local-amount-in-usd
You might want to get the value of an a currency amount in a USD, here is how to it, Chief π
GET https://live.chimoney.io/api/v0.1/info/local-amount-in-usd?originCurrency=NGN&amountInOriginCurrency=38120.2
Get the value of an a currency amount in a USD
Path Parameters
Name
Type
Description
originCurrency*
NGN
amountInOriginCurrency*
38120.2
Headers
Name
Type
Description
X-API-Key*
API_KEY_FROM_DEV_PORTAL
{
// transaction detail
}#Javascript FETCH
var myHeaders = new Headers();
myHeaders.append("X-API-Key", "API_KEY_FROM_DEV_PORTAL");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://live.chimoney.io/api/v0.1/info/local-amount-in-usd?originCurrency=NGN&amountInOriginCurrency=38120.2", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));#Python REQUESTS
#PHP cURL
Yay! It's done.
Last updated