fawazahmed0 / exchange-api

Free Currency Exchange Rates API with 200+ Currencies & No Rate Limits
https://github.com/fawazahmed0/exchange-api#readme
Creative Commons Zero v1.0 Universal
492 stars 33 forks source link

this project keeps breaking #93

Open SpecialEdCT opened 5 months ago

SpecialEdCT commented 5 months ago

Things were working fine until about a week ago when i guess everything was overhauled

I followed the documentation which itself was broken and had fixed in a separate issue.

Now it looks like the date formatting requires leading zeros in the dates, which a few days ago it was required to not have leading zeroes in the dates.

Does anyone know of any other sources I can cURL to get exchange rates because this project has been creating way too much grief for no reason....

SpecialEdCT commented 5 months ago

Per the documentation, this link works: https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@2024-03-02/v1/currencies/eur.json

But... this does not: https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@2024-03-14/v1/currencies/eur.json

Couldn't find the requested release version '2024-03-14'.

nor does this: https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@2024-3-2/v1/currencies/eur.json

Couldn't find the requested release version 2024-3-2.

nor does this: https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@2024-3-14/v1/currencies/eur.json

Couldn't find the requested release version '2024-3-14'.

fawazahmed0 commented 5 months ago

today is 2024-03-14, it might take some time currencies to publish

As the currencies for today are already published, the following links should work fine:

https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@2024-03-14/v1/currencies/eur.json

https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@2024.3.14/v1/currencies/eur.json

fawazahmed0 commented 5 months ago

You should always use latest to avoid any issue

https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/eur.json

https://latest.currency-api.pages.dev/v1/currencies/eur.json

SpecialEdCT commented 5 months ago

OK, I will give this one more try then.

I think what was screwing me up was the back and forth between using leading zeroes and not using leading zeroes in the date, however using latest circumvents this confusion.