Quandl.NET
Quandl.NET copied to clipboard
Downloading entire dataset does not work
I tried to follow the guide in the Readme.md but the examples to download the entire dataset do not work. See the code below:
var client = new QuandlClient(apiKey);
// This does not work as in the example!
// Instead of a zip file json data will be downloaded. Not the full dataset is downloaded.
using (var stream = client.Tables.DownloadAsync("WIKI/PRICES").Result)
using (var fs = File.Create("prices.zip"))
stream.CopyTo(fs);
// This does not work as in the example!
// This downloads .csv data but not as a zip file. Not the full dataset is downloaded.
using (var stream = client.Tables.DownloadAsync("WIKI/PRICES.csv").Result)
using (var fs = File.Create("prices.csv.zip"))
stream.CopyTo(fs);