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

/2020-01-01 returns data for 2019-12-31 #31

Open
dabruh opened this issue May 26, 2022 · 2 comments
Open

/2020-01-01 returns data for 2019-12-31 #31

dabruh opened this issue May 26, 2022 · 2 comments

Comments

@dabruh
Copy link

dabruh commented May 26, 2022

HTTP GET https://api.frankfurter.app/2020-01-01 returns the incorrect date:

{
  "amount": 1.0,
  "base": "EUR",
  "date": "2019-12-31",
  "rates": {
    "AUD": 1.5995,
    "BGN": 1.9558,
    "BRL": 4.5157,
    "CAD": 1.4598,
    "CHF": 1.0854,
    "CNY": 7.8205,
    "CZK": 25.408,
    "DKK": 7.4715,
    "GBP": 0.8508,
    "HKD": 8.7473,
    "HRK": 7.4395,
    "HUF": 330.53,
    "IDR": 15596,
    "ILS": 3.8845,
    "INR": 80.19,
    "ISK": 135.8,
    "JPY": 121.94,
    "KRW": 1296.28,
    "MXN": 21.22,
    "MYR": 4.5953,
    "NOK": 9.8638,
    "NZD": 1.6653,
    "PHP": 56.9,
    "PLN": 4.2568,
    "RON": 4.783,
    "RUB": 69.956,
    "SEK": 10.4468,
    "SGD": 1.5111,
    "THB": 33.415,
    "TRY": 6.6843,
    "USD": 1.1234,
    "ZAR": 15.7773
  }
}

This seems to apply to all request for 1st of Jan. https://api.frankfurter.app/2020-01-02 works fine.

@natalie-o-perret
Copy link

@dabruh FYI
image

@natalie-o-perret
Copy link

first of Jan. of each year is a closing day, so it's not updated and it returns the data according to ECB doc, so the 31/12 of the previous year

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

2 participants