Finance::TickerSymbols - Perl extension for getting symbols lists from web resources
use Finance::TickerSymbols; for my $symbol ( symbols_list('all') ) { # do something with this $symbol } for my $industry ( industries_list()) { for my $symbol ( industry_list( $industry ) ) { # do something with $symbol and $industry } }
get lists of ticker symbols. this list can be used for market queries.
symbols_list( 'nasdaq' | 'amex' | 'nyse' | 'all' ) returns the apropriate array of symbols.
industries_list() returns array of industries names.
industry_list( $industry_name ) returns array of symbols related with $industry_name
setting $Finance::TickerSymbols::long to non-false would attach company name to each symbol (as "ARTNA:Basin Water, Inc." compare to "ARTNA")
Users may define proxy using environment variables. examples (from LWP::UserAgent manuel):
gopher_proxy=http://proxy.my.place/ wais_proxy=http://proxy.my.place/ no_proxy="localhost,my.domain"
LWP http://quotes.nasdaq.com http://biz.yahoo.com/ic Finance::*
Josef Ezra, <jezra@cpan.org>
Copyright (C) 2006 by Josef Ezra
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
- the returned data depends upon availability and format of external web sites. Needless to say, it is not guaranteed.
Please email me about any of the above. I'll be more then happy to share interesting implementation of this module.
To install Finance::TickerSymbols, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::TickerSymbols
CPAN shell
perl -MCPAN -e shell install Finance::TickerSymbols
For more information on module installation, please visit the detailed CPAN module installation guide.