Open spearmootz opened 1 year ago
i was using the timeseries endpoint to get many quotes at a time. i do find that i have some of the data in the historial rate endpoint
the following calls have UYU -> USD but not USD -> UYU which is interesting
var requestURL = 'https://api.exchangerate.host/2019-09-11?base=USD'; var request = new XMLHttpRequest(); request.open('GET', requestURL); request.responseType = 'json'; request.send();
request.onload = function() { var response = request.response; console.log(response); }
var requestURL = 'https://api.exchangerate.host/2019-09-11?base=UYU'; var request = new XMLHttpRequest(); request.open('GET', requestURL); request.responseType = 'json'; request.send();
request.onload = function() { var response = request.response; console.log(response); }
so the reason why the base UYU seems to have data is because it in fact returns with a base EUR instead of erroring out
on this particular call which is a time series
var requestURL = 'https://api.exchangerate.host/timeseries?start_date=2019-09-11&end_date=2019-09-11&base=UYU'; var request = new XMLHttpRequest(); request.open('GET', requestURL); request.responseType = 'json'; request.send();
request.onload = function() { var response = request.response; console.log(response); }
the api returns saying the base is UYU, but then the data for that day is in fact in EUR.
we are testing to see if we can use this service. we ran into the following USD->UYU being missing for the following dates. 09-11-2019 -> 10-07-2019. i tried clearing the cache with the v=2019-09-11 and i also tried different sources but most failed except for the default.
any reason why this might be?