Quandl.NET icon indicating copy to clipboard operation
Quandl.NET copied to clipboard

Downloading entire dataset does not work

Open trenki2 opened this issue 3 years ago • 0 comments

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);

trenki2 avatar Apr 27 '21 14:04 trenki2