Currency automatic update for NOK of by a factor 100

Stian Soiland-Reyes stian at soiland-reyes.com
Sun Apr 25 21:23:53 EDT 2010


On Sun, Apr 25, 2010 at 11:52 PM, Stian Soiland-Reyes
<stian at soiland-reyes.com> wrote:
> Now, I've found what I believe is an issue with the automatic currency
> updates, or perhaps in the underlying Perl library.

Not sure if this is the correct syntax, but I guess this shows what's going on:

: stain at ralph ~;echo '(currency "MXN" "GBP")' | gnc-fq-helper
(("MXN" (symbol . "MXN") (last . 0.05321) (currency . "GBP")))

: stain at ralph ~;echo '(currency "NOK" "GBP")' | gnc-fq-helper
(("NOK" (symbol . "NOK") (last . 11.006) (currency . "GBP")))

: stain at ralph ~;echo '(currency "GBP" "NOK")' | gnc-fq-helper
(("GBP" (symbol . "GBP") (last . 9.0861) (currency . "NOK")))


And using Finance::Quote directly fails with NOK:

#!/usr/bin/perl
use Finance::Quote;
$q = Finance::Quote->new;
$conversion_rate = $q->currency("NOK", "GBP");
print $conversion_rate . "\n";

# 11.008 instead of 0.11008

Also see http://sourceforge.net/mailarchive/forum.php?thread_name=4BA7F6BB.30909@bjdean.id.au&forum_name=finance-quote-devel
- so this should be discussed with the Finance::Quote developers.

I contacted Yahoo about this (which seems to be the faulty source
behind Finance::Quote):


> Being a Norwegian living in United Kingdom I am a frequent user of
> Yahoo Finance's currency support. I must start with saying how I
> really love the interactive comparison! Thanks for a wonderful
> service.
>
> Now, one tiny issue I've encountered recently:
>
> The exchange rates for Scandinavian currencies seems to be off by 100.
>
> Compare http://uk.finance.yahoo.com/q?s=NOKGBP=X with
> http://uk.finance.yahoo.com/q?s=GBPNOK=X
>
> NOKGBP=X has rate 11.008
>
> GBPNOK=X has rate 9.0814.
>
> The NOKGBP version of this is wrong, as it should be 0.11008 - it
> seems to be shown multiplied by 100.
>
> The confusion might come from Scandinavian currencies often being
> listed (at least in newspapers) as 100 NOK instead of 1 NOK, but this
> is unit is not indicated on your pages.
>
>
> The same applies to DKK and SEK, and possibly other currencies, but I
> have not had a chance to do a throughout check.
>
> For comparison check http://www.google.co.uk/search?q=1+NOK+in+GBP


-- 
Stian Soiland-Reyes
Manchester, UK
http://soiland-reyes.com/


More information about the gnucash-user mailing list