use 1000
continuous-integration/drone/push Build is passing Details

master
dustoair 3 years ago
parent e2d37cd02e
commit a5dae33390

@ -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))

Loading…
Cancel
Save