This commit is contained in:
2025-02-08 14:05:57 +08:00
parent c0b8749eef
commit 979ef507fe
30 changed files with 660 additions and 431 deletions

View File

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