Skip Menu |

This queue is for tickets about the Finance-Quote CPAN distribution.

Report information
The Basics
Id: 112544
Status: new
Priority: 0/
Queue: Finance-Quote

People
Owner: Nobody in particular
Requestors: nsbm.abbath [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Exchange rate BYR->USD is not returned
Date: Sun, 28 Feb 2016 23:02:32 +0300
To: bug-Finance-Quote [...] rt.cpan.org
From: Eduard Valiauka <nsbm.abbath [...] gmail.com>
Hi, I am using F::Q to load exchange rates into my gnucash. The problem I'm experiencing now is that the exchange rate BYR->USD is not returned, while USD->BYR is returned and is 21490 at the moment. I investigated a bit this problem and found out that the missing exchange rate is returned as zero from finance.yahoo.com (presumably because the exchange rate is negligibly small). The problem is that F::Q is not trying to find the rate by loading the inverse exchange rate. perl version: v5.22.1 F::Q version: 1.38 uname -r: 4.4.1-2-ARCH The piece of code I use to test how the rates are loaded: #!/usr/bin/perl use Finance::Quote; my $q = Finance::Quote->new(); my $data = $q->currency("BYR", "USD"); print "\n" . $data . "\n"; Thank you in advance!