I have a json object I'm not able to deserialize. The json object comes from Alpaca Markets api/snapshots. I'm using Refit, but able to create a class set to read this, so I have read the json object directly, but are not able to reserialze this either using newtonsoft.json library. Here's the json object;
{
"AAPL":{
"latestTrade":{
"t":"2021-09-17T20:25:51.020841773Z",
"x":"V",
"p":145.98,
"s":100,
"c":[
"@",
"T"
],
"i":12505,
"z":"C"
},
"latestQuote":{
"t":"2021-09-17T20:00:43.70526836Z",
"ax":"V",
"ap":0,
"as":0,
"bx":"V",
"bp":0,
"bs":0,
"c":[
"R"
],
"z":"C"
},
"minuteBar":{
"t":"2021-09-17T20:25:00Z",
"o":145.98,
"h":145.98,
"l":145.98,
"c":145.98,
"v":100,
"n":1,
"vw":145.98
},
"dailyBar":{
"t":"2021-09-17T04:00:00Z",
"o":148.75,
"h":148.78,
"l":145.765,
"c":146.09,
"v":1463230,
"n":12487,
"vw":146.742795
},
"prevDailyBar":{
"t":"2021-09-16T04:00:00Z",
"o":148.47,
"h":148.95,
"l":147.23,
"c":148.78,
"v":851556,
"n":7523,
"vw":148.174742
}
},
"MSFT":{
"latestTrade":{
"t":"2021-09-17T20:00:58.520078539Z",
"x":"V",
"p":300.16,
"s":100,
"c":[
"@",
"T"
],
"i":9410,
"z":"C"
},
"latestQuote":{
"t":"2021-09-17T20:00:00.000042133Z",
"ax":"V",
"ap":0,
"as":0,
"bx":"V",
"bp":0,
"bs":0,
"c":[
"R"
],
"z":"C"
},
"minuteBar":{
"t":"2021-09-17T20:00:00Z",
"o":300.16,
"h":300.16,
"l":300.16,
"c":300.16,
"v":100,
"n":1,
"vw":300.16
},
"dailyBar":{
"t":"2021-09-17T04:00:00Z",
"o":304.245,
"h":304.37,
"l":299.59,
"c":299.87,
"v":570598,
"n":9412,
"vw":300.820404
},
"prevDailyBar":{
"t":"2021-09-16T04:00:00Z",
"o":303.84,
"h":305.31,
"l":300.82,
"c":305.24,
"v":386250,
"n":6166,
"vw":303.325332
}
}
}