|
|
SMTM Perl/Tk global stock ticker | |||||
|
Bio Code rdieharder littler random digest rquantlib beancounter smtm screenshot examples manual download yahooquote octave-mt octave-pg Linux Quantian About Blog |
smtm CSCO NT
creates a window following the Cisco and Nortel stocks.
smtm MSFT:Bill SUNW:Scott ORCL:Larry
follows three other tech companies and uses the override feature for the displayed name. [ Historical note: We once needed that for European stocks as Yahoo! did not supply the company name way back in 1999 or so. This example just documents an ancient feature. ]
smtm BT.A.L::10:GBPCAD \
T::10:USDCAD \
BCE.TO::10 \
13330.PA::10:EURCAD \
"555700.F:DT TELECOM:10:EURCAD"
creates a window with prices for a handful of telecom companies on stock exchanges in London, New York, Toronto, Paris and Frankfurt. Note how a name is specified for the German telco to override the verbose default. Also determined are the number of shares, here 10 for each of the companies. Lastly, this example assumes a Canadian perspective: returns are converted from British pounds, US dollars and Euros into Canadian dollars. Quotation marks have to be used to prevent the shell from splitting the arguments containing spaces. |
|||||