Topic: Update google url for currency converter

Google currency converter url has been changed to finance.google.com/bctzjpnsun/converter?a=1&from=USD&to=EUR

So lines 153 and 221 of gl_db_rates.inc should be:

153 $filename = "/bctzjpnsun/converter?a=1&from={$curr_a}&to={$curr_b}";
221 $filename = "/bctzjpnsun/converter?a=1&from={$curr_b}&to={$curr_a}";

Phuong

Re: Update google url for currency converter

Willdo later today.

Joe

Re: Update google url for currency converter

Commited to Repo with rerun cleanup.

/Joe

Re: Update google url for currency converter

Line 153 has an extra semicolons

Phuong

Re: Update google url for currency converter

Oops! Will be fixed asap. Thanks.

Joe

Re: Update google url for currency converter

For those using FA 2.3.x - this will need to be backported.

Looks like this has been so for a couple of months atleast:

7 (edited by notrinos 07/25/2018 10:59:40 am)

Re: Update google url for currency converter

Google finance API does not work anymore, should we stop chasing their updates ? neutral

Phuong

Re: Update google url for currency converter

Shall we replace it with x-rates.com? The bash code for it is:

wget -q -O- "https://www.x-rates.com/table/?from=USD&amount=1" | \
grep "http://www.x-rates.com/graph/?from=" | \
cut -c71-1000 | \
sed -e 's#</a></td>##' | \
sed -e 's#&amp;to=# #' | \
sed -e "s#'># #" | \
sort -u > output.txt

Re: Update google url for currency converter

What's the status on this?  I'm trying to add Caribbean Dollars (XCD) in ver 2.4.4 but the get exchange rate does not work.

10 (edited by notrinos 09/05/2018 07:20:15 pm)

Re: Update google url for currency converter

Google converter is no longer working and have not fixed yet.
Bloomberg has blocked requests also.
Yahoo shifted to: https://finance.yahoo.com/quote/GBPUSD=X?p=GBPUSD=X

Only ECB now is working.

Phuong

Re: Update google url for currency converter

The following service providers support XCD:

Oanda
mataf.net
CoinMill.com
XE.com
GoodReturns.in

Maybe we should use a plugin system for Exchange rates.

Re: Update google url for currency converter

I am using free.CurrencyConverterAPI.com and it works for almost all Currencies

elseif ($provider == 'CCA') //free.currencyconverterapi.com
    {
        $filename = "/api/v5/convert?q={$curr_b}_{$curr_a}&compact=y";
        $site = "free.currencyconverterapi.com";
        $proto = 'https://';

    }
www.boxygen.pk

Re: Update google url for currency converter

Thanks. Their free plan provides for:

Currency values are refreshed every 60 minutes.
Maximum of 100 requests/hr & 2 query conversions per request

Re: Update google url for currency converter

thanks for info, just applied with add code below, now it works.

        elseif ($provider == 'CCA')
        {
                $val = getInnerStr($contents, '{"val":', '}}');
    }
boxygen wrote:

I am using free.CurrencyConverterAPI.com and it works for almost all Currencies

elseif ($provider == 'CCA') //free.currencyconverterapi.com
    {
        $filename = "/api/v5/convert?q={$curr_b}_{$curr_a}&compact=y";
        $site = "free.currencyconverterapi.com";
        $proto = 'https://';

    }