This commit is contained in:
なるみ 2021-12-22 02:04:44 +08:00
parent 2999e41ef0
commit 4a8be9cc1a

View File

@ -195,6 +195,7 @@ func (s *Strategy) generateSubmitOrders(prices, marketValues map[string]fixedpoi
weightDifference := targetWeight.Sub(currentWeight)
if weightDifference.Abs() < s.Threshold {
log.Infof("%s weight distance |%f - %f| = |%f| less than the threshold: %f",
symbol,
currentWeight.Float64(),
targetWeight.Float64(),
weightDifference.Float64(),