/// <summary> /// You can download an entire database in a single call using this method. Simply append /data to your database code, to get a zipped CSV file of the entire database. /// <a href="https://www.quandl.com/docs/api?csv#get-entire-database">Reference</a> /// </summary> /// <param name="code">Database code</param> /// <param name="downloadType">If “partial”, returns last day of data. If “complete”, returns entire database. Default is “complete”.</param> /// <param name="token">Cancellation token</param> /// <returns>Stream of zipped csv file (.zip)</returns> public async Task <Stream> GetZipAsync(DatabaseCode code, DownloadType downloadType = DownloadType.Complete, CancellationToken token = default(CancellationToken)) => await GetZipAsync(code.ToEnumMemberValue(), downloadType, token);
/// <summary> /// Use this call to get metadata for a specified database. /// <a href="https://www.quandl.com/docs/api?json#get-database-metadata">Reference</a> /// </summary> /// <param name="code">Database code</param> /// <param name="token">Cancellation token</param> /// <returns>Get database metadata response</returns> public async Task <GetDatabaseMetadataResponse> GetMetadataAsync(DatabaseCode code, CancellationToken token = default(CancellationToken)) => await GetMetadataAsync(code.ToEnumMemberValue(), token);
/// <summary> /// For databases that support the datasets API route, this call gets a list of available datasets within the database, in the form of a zipped CSV file. /// <a href="https://www.quandl.com/docs/api?csv#get-list-of-database-contents">Reference</a> /// </summary> /// <param name="code">Database code</param> /// <param name="token">Cancellation token</param> /// <returns>Stream of zipped csv file (.zip)</returns> public async Task <Stream> GetDatasetListZipAsync(DatabaseCode code, CancellationToken token = default(CancellationToken)) => await GetDatasetListZipAsync(code.ToEnumMemberValue(), token);