1
This commit is contained in:
@ -319,7 +319,7 @@ func InitSymbolsTicker24h(maps *map[string]models.TradeSet) (deletes []string, e
|
||||
symbol.QuoteVolume = item.QuoteVolume
|
||||
symbol.LastPrice = item.LastPrice
|
||||
|
||||
key := fmt.Sprintf("%s:%s", global.TICKER_FUTURES, item.Symbol)
|
||||
key := fmt.Sprintf(global.TICKER_FUTURES, global.EXCHANGE_BINANCE, item.Symbol)
|
||||
if !strings.HasSuffix(item.Symbol, symbol.Currency) || item.Count <= 0 || utility.StringToFloat64(item.QuoteVolume) <= 0 {
|
||||
helper.DefaultRedis.DeleteString(key)
|
||||
deleteSymbol = append(deleteSymbol, item.Symbol)
|
||||
@ -332,7 +332,7 @@ func InitSymbolsTicker24h(maps *map[string]models.TradeSet) (deletes []string, e
|
||||
log.Error("设置行情序列化报错", err)
|
||||
}
|
||||
|
||||
tcKey := fmt.Sprintf("%s:%s", global.TICKER_FUTURES, item.Symbol)
|
||||
tcKey := fmt.Sprintf(global.TICKER_FUTURES, global.EXCHANGE_BINANCE, item.Symbol)
|
||||
caches[tcKey] = string(val)
|
||||
priceChange = append(priceChange, &redis.Z{
|
||||
Score: symbol.PriceChange,
|
||||
|
||||
Reference in New Issue
Block a user