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
729 stars 46 forks source link

old exchange rates disappeared #60

Closed vilmosnagy closed 1 year ago

vilmosnagy commented 1 year ago

Hi,

a couple of weeks ago there were change rates since 2020-11-27 until the current day. But now the history is only going back until 2022-01-01.

Is there a way to reach the old currency rates?

Thanks,

fawazahmed0 commented 1 year ago

The repository size was increasing daily and deleting the old rates was necessary. Also I have already stated here that only 1 year dates will be available.

The main reason for deleting old rates is that, If the repo size increases to above 5GB, there is a chance that GitHub may contact me to reduce the size or worst case they might ask me to take down the repo.

If accessing the old rates in necessary, then you can refer my forks, most of them should have the old data.

You need to change url: https://cdn.jsdelivr.net/gh/{forkUserName}/currency-api@1/2020-11-27/currencies/eur.json

Example: https://cdn.jsdelivr.net/gh/AayushAnand07/currency-api@1/2020-11-27/currencies/eur.json

vilmosnagy commented 1 year ago

Thanks,

I've forked a repository which constains all 2021 data here: https://github.com/vilmosnagy/currency-api-2021

fawazahmed0 commented 9 months ago

currency-api has stopped working, Please read the migration guide

vilmosnagy commented 8 months ago

@fawazahmed0 is the pre-2024-03-01 rates available somewhere? I know that in my previous fork the the data is there until late 2022.

But I use your project in my open-source budgeting app, and it'd be nice to have the rates between 2022-11 and 2024-03 from somewhere: https://gitlab.com/vnagy.eu/openbudget/-/blob/main/src/main/kotlin/eu/vnagy/openbudget/services/currency/ExchangeRateFetcherService.kt?ref_type=heads#L86-91

Thanks

fawazahmed0 commented 8 months ago

GitHub has locked all the forks of currency-api and even I have not taken backup of currency-api due to large size. Unless you find someone who has already taken a backup of currency-api repo, its just best to assume the data is gone.

vilmosnagy commented 8 months ago

hm, this fork is fine and ready: https://github.com/vilmosnagy/currency-api-2021/blob/1/2021-02-13/currencies.json

But it's an old one, and I cannot find any more forks. I don't see the forked from text on that repo, but I don't remember that I removed the fork relation... Nonetheless, it's a sad day for me, thanks for the info.