I'm interested in retrieving stock quotes in a C++ program of mine. I was wondering if there's a server I could connect to in my program, query, and receive the quotes? Any related help would also be appreciated. Thanks.
Printable View
I'm interested in retrieving stock quotes in a C++ program of mine. I was wondering if there's a server I could connect to in my program, query, and receive the quotes? Any related help would also be appreciated. Thanks.
http://finance.yahoo.com/d/?s=msft&f=l1
That gives you the quote for microsoft in plain ascii as I understand it. For other stocks, change the 's' querystring variable
Thanks a ton! That's exactly what I needed.
Well after you informed me of that server, I utilized it and wrote a program that grabs the stock price of the specified stock symbol and saves it to a list and then will run through the list on request. I implemented time stamps as stocks are always changing. I wrote the program yesterday and just now decided that it might be a good idea to share the source code. That way anyone who may be interested can learn from my code(my attempt at self-flattery). It's written for Windows using Winsock, sorry you Linux users. To compile it you have to link the wsock32 library. I know it's basic but I wrote it so I can grab my code from this sample program and add it into a game or whatever I may want to use real stock quotes for. It was fun to write it anyways since I don't really have much else to work on. Feedback is appreciated as well even though it's not some big thing. Thanks and I hope it can help someone.
Seconding thanks for this link!Quote:
Originally Posted by FillYourBrain