wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes How to get quotes from Yahoo finance? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to get quotes from Yahoo finance?" Watch "How to get quotes from Yahoo finance?" New topic
Author

How to get quotes from Yahoo finance?

Grace Lo
Greenhorn

Joined: May 03, 2001
Posts: 12
Hi,
I am building my own home page as practice. It will be nice to put some quotes or weather info in it.
I would like to know how to get data from other website like quotes or weather info from yahoo?
Somebody told me I can use SOAP to get XML file back from other sites, but how? Do they put their public functions somewhere I can use? Is anybody having some sample codes I can take a look?

Thanks alot,

Grace


Grace
Zoe Peng
Ranch Hand

Joined: Nov 27, 2000
Posts: 112
I don't think u really can do that.
usually, u need to ask yahoo to offer these service to u.
yes. u might can translate results from yahoo to xml docs and re-use it again. But, basically, still, yahoo need to offer these service to u.
Grace Lo
Greenhorn

Joined: May 03, 2001
Posts: 12
You know what? I just found out that you can connect to quotes.nasdaq.com and get a xml file back with quotes!!!
Try it!!!
http://quotes.nasdaq.com/quote.dll?page=xml&mode=stock&symbol=dell
Hema Menon
Ranch Hand

Joined: Oct 29, 2000
Posts: 569
Hi,
Could you let me know the url for the page on the nasdaq site where you entered the symbol, to get an xml file? I was able to get to the info quotes page but the information returned is in the form of an html page, not a xml page.
Thanks,
Hema Menon


~hm
Paul Ralph
Ranch Hand

Joined: Aug 10, 2000
Posts: 312
You should be able to use the link provided above and simply change the name of the symbol. I tried it for KCIN (KPMG Consulting, my company) and it worked fine.
Paul R
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Really XML working its way through finance industry. Impressive.


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Grace Lo
Greenhorn

Joined: May 03, 2001
Posts: 12
Does anybody know where to get news or weather?
Zoe Peng
Ranch Hand

Joined: Nov 27, 2000
Posts: 112
Good job.
Really nice.
now, just use that xml to do whatever u want..
Zoe Peng
Ranch Hand

Joined: Nov 27, 2000
Posts: 112
another qs..
u might need to find out DTD or write ur own DTD or stylesheet..
but, it won't too diffical though
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to get quotes from Yahoo finance?
 
Similar Threads
developer.yahoo.com/weather
Content provider
Spawning and monitoring a thread
GWT for complex apps or does it work well on small apps also
[GWT Java AJAX Programming] Book Comparison