Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get quotes from Yahoo finance?

 
Grace Lo
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Zoe Peng
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Ralph
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Really XML working its way through finance industry. Impressive.
 
Grace Lo
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody know where to get news or weather?
 
Zoe Peng
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good job.
Really nice.
now, just use that xml to do whatever u want..
 
Zoe Peng
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
another qs..
u might need to find out DTD or write ur own DTD or stylesheet..
but, it won't too diffical though
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic