Package: libfinance-quote-perl
Version: 1.17-1
Severity: normal

Here's a little script demonstrate the issue:

torchio$ cat demobug
#!/usr/bin/perl

use Finance::Quote;

$currency = "EUR";
$exchange = "europe";
$stock = "NONEXISTENTSTOCK";
#$stock = "CBK.DE";

$quote_handle = Finance::Quote->new;
$quote_handle->set_currency($currency);
$quote_handle->require_labels(qw/price/);

print "looking up $stock on $exchange ...\n";
%quote_info = $quote_handle->fetch($exchange,$stock);
if ($quote_info{$stock,'success'}) {
    print $quote_info{$stock,'price'} . "\n";
} else {
    print $quote_info{$stock,'errormsg'} . "\n";
}
torchio$
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Currency conversion failed.
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Currency conversion failed.
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Currency conversion failed.
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Currency conversion failed.
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Stock lookup failed
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Currency conversion failed.
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Stock lookup failed
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Stock lookup failed
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Stock lookup failed
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Stock lookup failed
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Stock lookup failed
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Currency conversion failed.
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Currency conversion failed.
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Currency conversion failed.
torchio$ ./demobug
looking up NONEXISTENTSTOCK on europe ...Stock lookup failed
torchio$ 

Because the output is inconsistent, it is hard to develop software
(and test suites) on top of this module without workarounds.

I assume that this inconsistent behaviour is an issue at Yahoo
Finance, but obviously the Debian package maintainer has a good line
of communication with the Perl module developer and they have a good
line of communication with Yahoo (and my assumption might be wrong)
so it seems best to submit this bug report to Debian.

If you need more info, or someone to test a new version, please let 
me know. Thanks and regards,

Alexis


-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libfinance-quote-perl depends on:
ii  libcrypt-ssleay-perl   0.57-2            Support for https protocol in LWP
ii  libhtml-tableextract-p 2.10-3            module for extracting the content 
ii  libwww-perl            5.836-1           Perl HTTP/WWW client/server librar
ii  perl                   5.10.1-17squeeze2 Larry Wall's Practical Extraction 

libfinance-quote-perl recommends no packages.

libfinance-quote-perl suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to