I’m looking for an API that can be accessed via C# implementation where I can get access to free stock market historical information (index and individual companies).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have a couple of C# examples on my blog for getting historical data from Yahoo. It’s really simple…
Update
Regarding my example… I’m not saving the data to anything, I’m just printing in the console. You’d have to save the data in whatever format or data structure is most reasonable for you.
Note that you can request multiple tags in the same csv file, instead of one tag at a time… to do that, just string all the tags of interest together and add them to the URL just like you add a single tag. The values for the tags will be comma separated.
Update 2.0
Here is how you can get end of day (EOD) historical data from yahoo:
The code above will go through each data instance in the CSV file, so you just need to save the data instances to arrays. Calculating the return should be straight forward from then on.
I hope that’s helpful :).