Not sure how you want to chart this data. I'll assume for now that you are only interested in close prices.
You can use a javascript feature "map" to get the data into an easier shape for D3 to handle
// Assuming data is in a variable called data
// map over the keys (dates)
const cleaned = Object.keys(data.history).map(date => {
return {
date,
close: data.history[date].close
}
})
Your resulting data will be an array like this:
[ {
"date": "2020-01-16",
"close": "23.45"
},
{
"date": "2020-01-17",
"close": "25.15"
},
{
"date": "2020-01-18",
"close": "23.99"
},
]
Does this help?