D
DoctorWhoKnew
Guest
How may I access the individual items in a list of JSON objects.
Here is the code to create the JSON objects:
List<IexTradingStock> stock = JsonConvert.DeserializeObject<List<IexTradingStock>>(responseString);
return stock;
This is the output:
[{"date":"2017-11-07T00:00:00","open":171.3196,"high":172.6396,"low":171.0142,"close":172.2062,"volume":24361485,"unadjustedVolume":24361485,"change":0.55166,"changePercent":0.321,"vwap":172.0063,"label":"2017-11-07T00:00:00","changeOvertime":0},{"date":"2017-11-08T00:00:00","open":172.0584,"high":173.6149,"low":171.7333,"close":173.6149,"volume":24409527,"unadjustedVolume":24409527,"change":1.4087,"changePercent":0.818,"vwap":172.8233,"label":"2017-11-08T00:00:00","changeOvertime":0},{"date":"2017-11-
How can I access all of the "date" and "closing" to calculate a moving average.
Continue reading...
Here is the code to create the JSON objects:
List<IexTradingStock> stock = JsonConvert.DeserializeObject<List<IexTradingStock>>(responseString);
return stock;
This is the output:
[{"date":"2017-11-07T00:00:00","open":171.3196,"high":172.6396,"low":171.0142,"close":172.2062,"volume":24361485,"unadjustedVolume":24361485,"change":0.55166,"changePercent":0.321,"vwap":172.0063,"label":"2017-11-07T00:00:00","changeOvertime":0},{"date":"2017-11-08T00:00:00","open":172.0584,"high":173.6149,"low":171.7333,"close":173.6149,"volume":24409527,"unadjustedVolume":24409527,"change":1.4087,"changePercent":0.818,"vwap":172.8233,"label":"2017-11-08T00:00:00","changeOvertime":0},{"date":"2017-11-
How can I access all of the "date" and "closing" to calculate a moving average.
Continue reading...