From a5dae33390fe4195c0bc865e6a577d7313176c4f Mon Sep 17 00:00:00 2001 From: dustoair <107600816+dustoair@users.noreply.github.com> Date: Sat, 17 Sep 2022 19:00:33 +0800 Subject: [PATCH] use 1000 --- api/binancePrice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))