I'm doing a simple program just for kicks
I wanted to enter a stock symbol and then retrive its price. Can anyone point me in the right direction.
Printable View
I'm doing a simple program just for kicks
I wanted to enter a stock symbol and then retrive its price. Can anyone point me in the right direction.
You can either use a web service to query the current stock price or you can parse an existing web page.
I assume you're familiar with both concepts? For the web service way, you add a web reference to your project and use its methods. For the web page way, you perform an HttpWebRequest and parse the HTML that you get back from the page to look for the price in there. The HttpWebRequest way of doing things is probably going to be a little more difficult and slower, but if you're doing it for kicks, you could even do both. Your app of course, so you choose.