Retrieve prices, dividends and splits for a stock in C# - Luca Bolognese

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 re­triev­ing code. You can down­load it from here{.} or you can sim­ply com­ment out the code. I wrote it against Visual Studio 2008 beta 2{.}, but it should be triv­ial to port it to pre­vi­ous ver­sions.

You run it from a com­mand win­dow like this: pricere­triever msft 1/1/1990 2/3/2003. The last two pa­ra­me­ters are op­tional and de­fault to 1/1/1980 and to­day.

Enjoy.

PriceRetriever.zip

0 Webmentions

These are webmentions via the IndieWeb and webmention.io.