I created a free account on exchangerateapi.com and copied the following code from their examples page:
// set endpoint and your access key
endpoint = 'latest'
access_key = 'xxxxxxxx';
// get the most recent exchange rates via the "latest" endpoint:
$.ajax({
url: 'https://api.exchangeratesapi.io/v1/' + endpoint + '?access_key=' + access_key,
dataType: 'jsonp',
success: function(json) {
// exchange rata data is stored in json.rates
alert(json.rates.MXN);
// base currency is stored in json.base
alert(json.base);
// timestamp can be accessed in json.timestamp
alert(json.timestamp);
}
});
What I would like to do is to pass the currency value in q12 to the json.rates call and have the results stored in q15. What do I need to do with this code in order to get that to work?
Thanks for any assistance.