diff --git a/api/binancePrice.go b/api/binancePrice.go index e519f97..a22f611 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).Find(&binancePrices) + global.DB.Where("symbol = ?", symbol).Limit(30).Find(&binancePrices) return binancePrices }