Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Web Service to Get a Stock Quote?

 
Mark Mokris
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web site application for an investment analyst which much provide a realtime value of an ongoing stock portfolio of say a dozen stocks or so. I am thinking that maybe there is a site or service on the net to which I can programmtically pass a ticker symbol and receive back the current price. Maybe through a socket connection. Does anyone know of such a service?
 
Mark Mokris
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No one replied to my post, but in the meantime I found a solution, so I thought I would post it.
You can obtain a stock quote from Yahoo. After seeing in the browser address box how to Yahoo pases the ticker symbol to the stock server program, I simply opened a URLConnection in my Java applet to do the same thing. Yahoo passed back a an HTML page with the stock quote, and it is formatted strictly enough that I can grab the stock's price with String functions.
Not particularly elegant, but it works fine.
Mark Mokris SCPJ2
 
Nikolai Martynov
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are companies who specialize in providing financial content for websites. For example, AlphaTrade, E-Trax. Financial content may have real time streaming stock quotes, market news, company news and events. As an option they provide Stock Charts, Currency Converter, Options, etc.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!