Retrieve prices, dividends and splits for a stock in C#
Luca -
☕ 1 min. read
I wrote this code very quickly and I’m kind of ashamed of it, but it gets the job done (I think). You need the HTML Agility Pack for the stock splits retrieving code. You can download it from here{.} or you can simply comment out the code. I wrote it against Visual Studio 2008 beta 2{.}, but it should be trivial to port it to previous versions.
You run it from a command window like this: priceretriever msft 1/1/1990 2/3/2003. The last two parameters are optional and default to 1/1/1980 and today.
Enjoy.
0 Webmentions
These are webmentions via the IndieWeb and webmention.io.