adjust profit margin percentage precesion

This commit is contained in:
c9s 2021-05-17 09:11:17 +08:00
parent 345c3c9e2c
commit a1c888f04b

View File

@ -499,7 +499,7 @@ func (s *Strategy) handleTradeUpdate(trade types.Trade) {
since = time.Unix(s.state.AccumulatedSince, 0).In(localTimeZone)
}
s.Notify("%s trade profit %s %f %s (profit margin %f%%), since %s accumulated net profit %f %s, accumulated loss %f %s",
s.Notify("%s trade profit %s %f %s (profit margin %.3f%%), since %s accumulated net profit %f %s, accumulated loss %f %s",
s.Symbol,
pnlEmoji(profit),
profit.Float64(), s.state.Position.QuoteCurrency,