Finance-Quote - Retrieving 'exchange' label?

Posted on Mon Feb 25 21:51:10 2008 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.

Write a response