diff --git a/api/binancePrice.go b/api/binancePrice.go index e7363b2..474099d 100644 --- a/api/binancePrice.go +++ b/api/binancePrice.go @@ -28,7 +28,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).Order("id desc").Limit(500).Find(&binancePrices) + global.DB.Where("symbol = ? ", symbol).Order("id desc").Limit(1000).Find(&binancePrices) //global.DB.Where("symbol = ? order by id desc", symbol).Limit(30).Find(&binancePrices) reverseSlice := func(in []BinancePrice) []BinancePrice { out := make([]BinancePrice, len(in))