Ejemplo n.º 1
0
        // where code like "CME_MGC1"
        static async Task DownloadQuandlContinuousFutures(string quandlApiKey, string code)
        {
            var qdl = new Quandl(quandlApiKey);
            var csv = await qdl.RequestWikiContinuousFuturesCsv(code);

            var filepath = Path.Join(rootDataPath, "Quandl", "ContinuousFutures", code + ".csv");
            await csv.SaveFile(filepath);
        }
Ejemplo n.º 2
0
        static async Task DemoQuandl(string quandlApiKey)
        {
            var qdl = new Quandl(quandlApiKey);
            //var csv = await qdl.RequestWikiStockCsv("GOOG");
            var csv = await qdl.RequestWikiContinuousFuturesCsv("CME_MGC1");

            Console.WriteLine(csv.Headers);
            foreach (var l in csv.Lines.Take(25))
            {
                Console.WriteLine(l);
            }
        }