Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Yahoo Finance gone?
#1
Hi guys,

It looks like we have a problem Sad 
Yahoo Finance is no more it seems and the store currency rates are not being updated like before.

This is the thread on the OC Forum: Currencies not updating
[url=http://forum.opencart.com/viewtopic.php?f=205&p=708041&sid=5e818c7a6ae8b9ed01d8872ce6434dbc#p707625][/url]
The ECB and Google are now the only options left, but both are far from being as reliable as Yahoo Finance.
The ECB is only European and Google only accept 1 currency at the time.

I am going to try to come-up with a way to fix this, but I would appreciate some help.
If you encounter a PHP script for updating currencies in your browsing travels, please share it.
... or if you happen to have a custom script of your own that you are happy to see implemented in OCE, let me know.

This is an essential part of any shopping cart using multi-currencies so we MUST find an answer.

Thank you.
OpenCart Overclocked Edition Lead developer
Reply
#2
(01-15-2018, 04:45 PM)villagedefrance Wrote: Hi guys,

It looks like we have a problem Sad 
Yahoo Finance is no more it seems and the store currency rates are not being updated like before.

This is the thread on the OC Forum: Currencies not updating
[url=http://forum.opencart.com/viewtopic.php?f=205&p=708041&sid=5e818c7a6ae8b9ed01d8872ce6434dbc#p707625][/url]
The ECB and Google are now the only options left, but both are far from being as reliable as Yahoo Finance.
The ECB is only European and Google only accept 1 currency at the time.

I am going to try to come-up with a way to fix this, but I would appreciate some help.
If you encounter a PHP script for updating currencies in your browsing travels, please share it.
... or if you happen to have a custom script of your own that you are happy to see implemented in OCE, let me know.

This is an essential part of any shopping cart using multi-currencies so we MUST find an answer.

Thank you.


Here is Daniel's solution: https://github.com/opencart/opencart/com...1cbac80ed9
Reply
#3
Thanks Tango,

I have now updated on Github: commit


Daniel mostly moved things about in his update but the main cURL request was in: admin/controller/extension/currency/fixer.php

So we are now using Fixer, which is an open-source, simple, and lightweight API for current and historical foreign exchange (forex) rates published by the European Central Bank.

Good but not great because only the major currencies are being retrieved. It is ok (and better than nothing) but sadly not as good as Yahoo Finance was.

Anyway, this is fixed for now Tongue
OpenCart Overclocked Edition Lead developer
Reply
#4
See Update Currency Patch
Reply
#5
Thanks Gob33,

I followed your link and tested the 2 extensions mentioned in the post.
They are very similar to my fix and do not add any new solutions for the non-ECB currencies, which is a shame.
So for those who live in a non-EU country the only option will be to use a Google request or get a third party extension (most probably commercial).
... mmmh ... maybe a new service (API) will become available in the future ...
For now Fixer.io is the answer.
OpenCart Overclocked Edition Lead developer
Reply
#6
Unfortunately, Fixer.io got deprecated also, as it turned premium. (https://github.com/villagedefrance/OpenC...issues/153)

Anyone got any suggestions about replacing it with something else (free)?
Reply
#7
I have added 2 new solutions this past week:

The default one is "FloatRates" Daily xml feed. free!
The second one is "Alpha Vantage" API, which requires a free personal API key and is optional.

I am very pleased with both implementations and like the idea of having a backup solution if one of them fails.
OpenCart Overclocked Edition Lead developer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)