stock quote retrieval via yahoo finance
I am trying to make my console application fetch stock quotes from yahoo finance so I can do calculations with that data. I have been looking on the internet been have not been able to find anything out there. Does anyone have any suggestions for me.
I'm using Microsoft Visual C++ 6
your yahoo link talks about c#... Thanks for the link though
More specific of what i would like to do.
this website has all the stuff needed to get quote data via internet explorer. What I would like to do is have my program call internet explorer so to speak use the url with stock symbol to retrieve the data I need and put it into a variable in my program.. Hope that makes things a little more clear.
What to do with this code?
okay found a tutorial on winsock but stuck on the above code. I assume this is where I request the information from ther server.. Below is an example of getting the stock quote in the browser..
const char HEAD_REQUEST_PART1 =
"HEAD / HTTP/1.1\r\n" // Get root index from server
"Host: " // Specify host name used
const char HEAD_REQUEST_PART2 =
"\r\n" // End hostname header from part1
"User-agent: HeadReqSample\r\n" // Specify user agent
"Connection: close\r\n" // Close connection after response
"\r\n" // Empty line indicating end of request
but how do I incorporate this into the header request? I assume that is where I put the information I want.. Looked for info on HTTP protocol but I don't believe I found anything that helped...