Skip Menu |

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

Report information
The Basics
Id: 43519
Status: new
Priority: 0/
Queue: Finance-YahooQuote

People
Owner: Nobody in particular
Requestors: ray [...] gwinn.com
Cc:
AdminCc:

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



CC: edd [...] debian.org, dirk [...] eddelbuettel.com
Subject: Finance::YahooQuote bug
Date: Sun, 22 Feb 2009 20:38:03 -0500
To: bug-Finance-YahooQuote [...] rt.cpan.org
From: "Ray Gwinn" <ray [...] gwinn.com>
I tried using Finance::YahooQuote's getcustomquote function, requesting all available "colums"/information and found problems. I found that much of the information was in the wrong place in the returned arrays. There should have been 80 (I think) items in the returned arrays, but I found many with 81, 82, or 83. To keep it short, I located the problem. Finance::YahooQuote is using a comma "," and quotewords to get array items from the yahoo returned information. The problem is that yahoo does NOT double quote all the fields. And some of these unquoted fields contain commas!! For example: The field "Last Trade Size" is okay up to 999. But 8237 shares is reported as 8,237 and is NOT in quotes. So quotewords makes it two array items, 8 and 237. This results in a "Last Trade Size" of 8, and the 237 becomes the "Change and Percent Change". The same problem occurs in the "Float Shares" which in one case is returned by yahoo as 31,953,000 and again is NOT in quotes. This is turned into 3 array items by quotewords.. It is often difficult to be clear in emails, I hope I have been here. Ray