// sort by timestamp, newest first
sort.Slice(prices, func(i, j int) bool {
return prices[i].StartTime.After(prices[j].StartTime)
// sort by timestamp, newest first
sort.Slice(prices, func(i, j int) bool {
return prices[i].StartTime.After(prices[j].StartTime)