Posted on 2008-02-25 19:51:10-08 by troodon
Retrieving 'exchange' label?

I assume the 'exchange' label (="the exchange the information was obtained from") represents the stock exchange where a particular stock is traded, as the parameter $exchange in

$quoter->fetch($exchange, @symbols);

is already known (="where do we fetch our stocks from").

How can I retrieve the 'exchange' label for a stock using Finance::Quote? It is on the label list at http://finance-quote.sourceforge.net/tpj/finance-quote-sidebar; however, I have noticed that label 'price' is not listed there and yet it is systematically returned. If I try using

require_labels(qw/name exchange success errormsg/);

then nothing is returned, which I suppose means that no (default) source can return that particular four label subset. I have tried using both 'yahoo' and 'nyse' as $exchange in

$quoter->fetch($exchange, @symbols)

to no avail.

Thank you for any help you can provide.

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.