I know it's kinda a silly question but i've read a lot of forums and nothing didn't work for me. ("https://www.nasdaq.com/api/v1/historical/HPQ/stocks/2010-11-14/2020-11-14") I got url where i need to download csv file. When i paste this url into browsers it works fine but when i paste it in my app it doesnt' work at all. My app just stop responding and create empty file.
WebClient webClient = new WebClient();
webClient.DownloadFile(
"https://www.nasdaq.com/api/v1/historical/HPQ/stocks/2010-11-14/2020-11-14",
@"HistoryDataStocks.csv");