NAME
quote - Command-line stock quote display
SYNOPSIS
quote [-r ] <symbol1> [symbol2...]
DESCRIPTION
quote is a very short and simple Perl script that retrieves
stock quotes from Yahoo! Finance (http://finance.yahoo.com).
It's a clean and fast command-line interface for getting
snapshot stock market prices. quote can be used to retrieve
prices of U.S. stocks (CSCO, DELL), non-U.S. stocks (NT.TO),
and market indices (^DJI, ^IXIC). Note that the ^ character is
a shell meta-character and may need to be escaped or quoted.
quote uses the Perl LWP module if available, or lynx otherwise
(found in /usr/bin/lynx).
OPTIONS
-r Attempt to retrieve real-time quotes from Yahoo!
Finance. This is not supported for all stock symbols.
EXAMPLES
Use of quote is very simple:
% quote csco ibm dell nt.to '^ixic'
CSCO: 55.19 -2.00 (-3.50%) on vol of 72.6M @4:00PM
IBM: 119.12 -3.88 (-3.15%) on vol of 6.2M @4:52PM
DELL: 33.62 -0.69 (-2.00%) on vol of 35.2M @4:00PM
NT.TO:95.50 -4.10 (-4.12%) on vol of 6.3M @4:58PM
^IXIC: 3689.10 -52.12 (-1.39%) @5:16PM
You can also try to retrieve real-time quotes:
% quote -r csco dell
CSCO: 55.62 -1.56 (-2.73%) @7:58 PM
DELL: 33.88 -0.44 (-1.28%) @7:39 PM
BUGS
quote depends on the particular format that Yahoo! Finance uses
for its web pages. If Yahoo! changes its layout significantly,
quote will break.
NOTES
Quotes from Yahoo! Finance are delayed up to 20 minutes.
WARNING
THIS PROGRAM IS TO BE USED FOR INFORMATIONAL PURPOSES ONLY
AND IS NOT INTENDED FOR TRADING PURPOSES. The author shall
not be liable for any errors or delays in the content, or
for any actions taken in reliance thereon.
AUTHOR
Jeremy Elson <jelson@circlemud.org>
The current version of this software is available at
http://www.circlemud.org/~jelson/software/quote
