diff --git a/api/binancePrice.go b/api/binancePrice.go index a22f611..40c8cda 100644 --- a/api/binancePrice.go +++ b/api/binancePrice.go @@ -26,7 +26,7 @@ func GetBinanceLatestPrice(symbol string) float64 { func GetBinanceLatestPrices(symbol string) []BinancePrice { var binancePrices []BinancePrice - global.DB.Where("symbol = ?", symbol).Limit(30).Find(&binancePrices) + global.DB.Where("symbol = ? order by id desc", symbol).Limit(30).Find(&binancePrices) return binancePrices }