Beispiel #1
0
        static void DemoTimeSeries()
        {
            TimeSeries tss = new TimeSeries(_apiKey);

            try
            {
                var response = tss.Intraday(_symbol, IntradayInterval.Interval_15Min);
                ReportResponse("TimeSeries.Intraday", response);

                response = tss.Daily(_symbol);
                ReportResponse("TimeSeries.Daily", response);

                response = tss.Weekly(_symbol);
                ReportResponse("TimeSeries.Weekly", response);

                response = tss.Monthly(_symbol);
                ReportResponse("TimeSeries.Monthly", response);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }