[vox-tech] Getting quotes from yahoo

Jay Strauss vox-tech@lists.lugod.org
Fri, 20 Jun 2003 21:00:07 -0500


Found the answer (if anyone wants to know || posting for prosperity),

You go http://quote.yahoo.com/d?f=codes&s=symbol

for example to get the symbol, change, bid, bid size for Red Hat, you'd:

http://quote.yahoo.com/d?f=sc1bb6&s=rhat

You can get multiple:

http://quote.yahoo.com/d?f=sc1bb6&s=rhat ibm orcl sun tivo

You find out all the available codes by going to finance.yahoo.com, enter a
symbol to look up, then edit the basic view (you need a my.yahoo account),
then look at the source and find out all the options available.  Below are
all the options (currently) available:

'Symbol'=>s
'Name'=>n
'Last Trade (With Time)'=>l
'Last Trade (Price Only)'=>l1
'Last Trade Size'=>k3
'Change Percent'=>c
'Change'=>c1
'Ticker Trend'=>t7
'Volume'=>v
'Average Daily Volume'=>a2
'More Info'=>i
'Trade Links'=>t6
'Bid'=>b
'Bid Size'=>b6
'Ask'=>a
'Ask Size'=>a5
'Previous Close'=>p
'Open'=>o
'Day's Range'=>m
'52-week Range'=>w
'Change From 52-wk Low'=>j5
'Pct Chg From 52-wk Low'=>j6
'Change From 52-wk High'=>k4
'Pct Chg From 52-wk High'=>k5
'Earnings/Share'=>e
'P/E Ratio'=>r
'Short Ratio'=>s7
'Dividend Pay Date'=>r1
'Ex-Dividend Date'=>q
'Dividend/Share'=>d
'Dividend Yield'=>y
'Float Shares'=>f6
'Market Capitalization'=>j1
'1yr Target Price'=>t8
'EPS Est. Current Yr'=>e7
'EPS Est. Next Year'=>e8
'EPS Est. Next Quarter'=>e9
'Price/EPS Est. Current Yr'=>r6
'Price/EPS Est. Next Yr'=>r7
'PEG Ratio'=>r5
'Book Value'=>b4
'Price/Book'=>p6
'Price/Sales'=>p5
'EBITDA'=>j4
'50-day Moving Avg'=>m3
'Change From 50-day Moving Avg'=>m7
'Pct Chg From 50-day Moving Avg'=>m8
'200-day Moving Avg'=>m4
'Change From 200-day Moving Avg'=>m5
'Pct Chg From 200-day Moving Avg'=>m6
'Shares Owned'=>s1
'Price Paid'=>p1
'Commission'=>c3
'Holdings Value'=>v1
'Day's Value Change'=>w1
'Holdings Gain Percent'=>g1
'Holdings Gain'=>g4
'Trade Date'=>d2
'Annualized Gain'=>g3
'High Limit'=>l2
'Low Limit'=>l3
'Notes'=>n4
'Last Trade (Mkt with Time)'=>k1
'Bid (Mkt)'=>b3
'Ask (Mkt)'=>b2
'Change Percent (Mkt)'=>k2
'Change (Mkt)'=>c6
'Holdings Value (Mkt)'=>v7
'Day's Value Change (Mkt)'=>w4
'Holdings Gain Percent (Mkt)'=>g5
'Holdings Gain (Mkt)'=>g6
'Day's Range (Mkt)'=>m2
'Market Cap (Mkt)'=>j3
'P/E (Mkt)'=>r2
'After Hours Change (Mkt)'=>c8
'Order Book (Mkt)'=>i5

----- Original Message ----- 
From: "Mike Simons" <msimons@moria.simons-clan.com>
To: <vox-tech@lists.lugod.org>
Sent: Friday, June 20, 2003 12:30 PM
Subject: Re: [vox-tech] Getting quotes from yahoo