1
This commit is contained in:
@ -203,7 +203,7 @@ func handleTickerMessage(msg []byte) {
|
||||
continue
|
||||
}
|
||||
|
||||
key := fmt.Sprintf("%s:%s", global.TICKER_SPOT, symbolName)
|
||||
key := fmt.Sprintf(global.TICKER_SPOT, global.EXCHANGE_BINANCE, symbolName)
|
||||
tcVal, _ := helper.DefaultRedis.GetString(key)
|
||||
tradeSet := models.TradeSet{}
|
||||
if err := sonic.UnmarshalString(tcVal, &tradeSet); err != nil {
|
||||
@ -245,7 +245,7 @@ func handleTickerMessage(msg []byte) {
|
||||
utility.SafeGoParam(binanceservice.JudgeSpotPrice, trades[index])
|
||||
|
||||
// 止损单
|
||||
// utility.SafeGoParam(binanceservice.JudgeSpotStopLoss, trades[index])
|
||||
utility.SafeGoParam(binanceservice.JudgeSpotStopLoss, trades[index])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user