Answered! how to download yahoo finance historical data using c# forms. for example I would already created a…

how to download yahoo finance historical data using c# forms.
for example I would already created a form with a download button and a grid view, and i would like when the user clicks on the button, it fetches the data from yahoo finance and output it on the grid view. please tell me the source code s of how to do that . thanks

Expert Answer

 1. Requesing the user to enter the stock he wants to download, else it will download the default.

console. WriteLine(“Enter the stock name:”);

string userStk=Console.Readline();

if(userStk.Length==0)

{

//if the user didnt enter any output, all the S &P 500 stocks will be downloaded

}

else

{

//the user input will be read and that specific one will be downloaded

}

Still stressed from student homework?
Get quality assistance from academic writers!