improve warning messages

This commit is contained in:
c9s 2021-05-10 23:52:17 +08:00
parent fe4e4bf5ea
commit fa3ca54a55

View File

@ -356,7 +356,7 @@ func (s *Strategy) Hedge(ctx context.Context, pos fixedpoint.Value) {
notional := quantity.MulFloat64(lastPrice) notional := quantity.MulFloat64(lastPrice)
if notional.Float64() <= s.sourceMarket.MinNotional { if notional.Float64() <= s.sourceMarket.MinNotional {
log.Warnf("less than min notional %f, skipping", notional.Float64()) log.Warnf("%s %f less than min notional, skipping", s.Symbol, notional.Float64())
return return
} }