Wednesday, October 17, 2007

Stock Price History Data from Yahoo! Finance

I downloaded and played with this impressive solution from eggheadcafe.com C# .NET Yahoo Stock Download and Charting. My goal was to learn it and then make use of it someway. With some minor tweaks, I was able to create an asp.net web application, which is hosted online now. (I tried to host it at godaddy.com without success... thats a different story. Now its hosted at webhost4life)


Details: Click this link to see the Stock Price demo in action. More details coming soon...

Acknowledgements: Many thanks to Mr. Peter Bromberg for his article and the windows app code on eggheadcafe.com: C# .NET Yahoo Stock Download and Charting. Charting dll is from NPlot library. Database engine is System.Data.SQLite. (All dlls are available in the solution downloaded from the above article).


The source code for the asp.net web application is available here.

In your web.config, update the SQLiteConnectionString. E.g.:

appSettings>
add key="SQLiteConnectionString" value="Data Source=C:\hostingsite\mysites\StockChartWebApp\Bin\Stocks.db3;Version=3"

For the Data Source, you have to specify the physical file path.

Any comments and questions, please post here.

3 comments:

Anonymous said...

nice

Anonymous said...

Interesting idea and great example.
I just could not figure out where the:
SWsoft.SiteBuilder.Modules.WebControls

comes from? It was impossible for me to run it on standard IIS setup.

San said...

Nice
But i m also Unable to Get
SWsoft.SiteBuilder.Modules.WebControls

and so i unable to run this
please help to how get this
Thanks