Quite possibly a simple problem who's answer is evading me:
I am trying to write a sh shell script, part of which is *logically* trying to do the following:
if ]; then
...
fi
if ]; then
...
else
...
fi
Where the 1st condition is looking for a hostname passed as $1, the second... (3 Replies)
Finance::Quote::TSX(3pm) User Contributed Perl Documentation Finance::Quote::TSX(3pm)NAME
Finance::Quote::TSX - Obtain quotes from the Toronto Stock Exchange.
SYNOPSIS
use Finance::Quote;
$q = Finance::Quote->new;
%stockinfo = $q->fetch("tsx","NT-T"); # Only query TSX.
%stockinfo = $q->fetch("canada","NT"); # Failover to other sources OK.
DESCRIPTION
This module obtains information from the Toronto Stock Exchange through the page http://www.TMXmoney.com/.
This module is not loaded by default on a Finance::Quote object. It's possible to load it explicity by placing "TSX" in the argument list
to Finance::Quote->new().
This module provides both the "tsx" and "toronto" fetch methods. Please use the "canada" fetch method if you wish to have failover with
other sources for Canadian stocks. Using the "tsx" method will guarantee that your information only comes from the Toronto Stock Exchange.
LABELS RETURNED
The following labels are returned by Finance::Quote::TSX: name, last, net, p_change, volume and exchange.
This module returns less information (labels) than other sources but it's able to retrieve them faster because each HTTP request performed
can return up to 10 stocks. Thus, if the labels provided by this module are sufficient for your application then you should give it a try.
SEE ALSO
Toronto Stock Exchange, http://www.TMXmoney.com/
perl v5.14.2 2012-05-06 Finance::Quote::TSX(3pm)