Beispiel #1
0
        public IEnumerable <HistoricalData> RequestIexRecentStat()
        {
            var json = Request(RECENT_URL).Result;

            if (!(json is JArray))
            {
                yield break;
            }

            var jarray = (JArray)json;

            foreach (var histoDataJson in jarray.Children <JObject>())
            {
                yield return(HistoricalData.FromJson(histoDataJson));
            }
        }
Beispiel #2
0
        protected IEnumerable <HistoricalData> RequestHistoricalDaily(string url)
        {
            var json = Request(url).Result;

            if (!(json is JArray))
            {
                yield break;
            }

            var jarray = (JArray)json;

            foreach (var histoDataJson in jarray.Children <JObject>())
            {
                yield return(HistoricalData.FromJson(histoDataJson));
            }
        }