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