floatReal = {
const startingPrice = coingeckoData["prices"][0][1];
return coingeckoData.prices
.map(([timestamp, price], index) => ({
price: price,
percentage: price / startingPrice,
granularChange:
price /
((index && coingeckoData["prices"][index - 1][1] - 1) || price) -
1,
timestamp: new Date(timestamp)
}))
.sort((a, b) => a.timestamp - b.timestamp);
}