Skip to Content
Professional Ajax, 2nd Edition
book

Professional Ajax, 2nd Edition

by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett
March 2007
Intermediate to advanced
623 pages
16h 47m
English
Wrox
Content preview from Professional Ajax, 2nd Edition

12.2. Watching Stocks

Nothing changed the stock market quite like the Web. What used to be the domain of financial experts has become something that the everyman can now take part in. Online trading companies like E*Trade have changed the face of stock trading forever. Regardless of this change, the Web is first, and foremost, a vast repository of information, and stock price information is no exception.

12.2.1. Getting Yahoo! Finance Information

While not as feature filled as some Yahoo! premium services, basic stock reporting with Yahoo! Finance can easily be used in any Web application. The 15-minute delay certainly isn't desirable for anyone wanting up-to-the-second information, but this free service could satisfy anyone who wants to casually watch certain stocks during the day.

Yahoo! Finance stock information comes in comma-separated value (CSV) format, and you use the following URL to download information on any stock:

http://finance.yahoo.com/d/quotes.csv?s=stock_symbols&f=special_tags

Stock symbols should be separated by a plus sign (+). There's a host of information available for each individual stock, and you can specify what pieces of information you want with special tags. For example, the URL to get the day's opening price and the last trade's price for Microsoft's and GE's stock would look like this:

http://finance.yahoo.com/d/quotes.csv?s=MSFT+GE&f=ol1

For a complete list of available tags, visit www.gummy-stuff.org/Yahoo-data.htm.

The widget built in this section ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Single Page Web Applications

Single Page Web Applications

Josh Powell, Michael Mikowski
How to Develop a Great Digital Strategy

How to Develop a Great Digital Strategy

Jeanne W. Ross, Cynthia M. Beath, Ina M. Sebastian

Publisher Resources

ISBN: 9780470109496Purchase book