Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing exchange rate for certain days #217

Open
spearmootz opened this issue Jun 19, 2023 · 4 comments
Open

Missing exchange rate for certain days #217

spearmootz opened this issue Jun 19, 2023 · 4 comments

Comments

@spearmootz
Copy link

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?

@spearmootz
Copy link
Author

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

@spearmootz
Copy link
Author

spearmootz commented Jun 22, 2023

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);
}

@spearmootz
Copy link
Author

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

@spearmootz
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant