villagedefrance / OpenCart-Overclocked

OpenCart Overclocked Edition. Advanced Shopping Cart CMS based on OC v1.5.6.X source code.
https://villagedefrance.net
Other
31 stars 21 forks source link

Fixer.io API Deprecated #153

Closed Tangol closed 6 years ago

Tangol commented 6 years ago

Please note that https://github.com/fixerAPI/fixer got an update (see github description), and the old API is now deprecated. The new API insn't free anymore, so I think we should find some other solution.

Found this: https://stackoverflow.com/a/8391430 and https://www.mycurrency.net/page/Free+Currency+Converter+API (based on Yahoo Finance?)

Thanks!

villagedefrance commented 6 years ago

Thanks for reporting this one. I updated with Fixer not to long ago because Yahoo Finance stopped working last year. Now Fixer must be getting too many requests on their server and decided to change their API. I will see what other alternative we have. A free service would be preferable of course.

Tangol commented 6 years ago

Is it normal that only the default currency gets updated daily? Shouldn't all the active currencies get updated?

currency

Tested on https://github.com/villagedefrance/OpenCart-Overclocked/commit/55be94840f5855ab3cc804a31e18978c70ef110f

villagedefrance commented 6 years ago

I fixed the update script using FloatRates xml daily feed. I also added the optional Alpha Vantage API (json) script as an alternative. A free API key is required for this one but the data accuracy could be superior. The API key needs to be entered in the Settings (and can be backed-up in the API key Manager). I consider this issue closed.