mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
adjust profit margin percentage precesion
This commit is contained in:
parent
345c3c9e2c
commit
a1c888f04b
|
@ -499,7 +499,7 @@ func (s *Strategy) handleTradeUpdate(trade types.Trade) {
|
||||||
since = time.Unix(s.state.AccumulatedSince, 0).In(localTimeZone)
|
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,
|
s.Symbol,
|
||||||
pnlEmoji(profit),
|
pnlEmoji(profit),
|
||||||
profit.Float64(), s.state.Position.QuoteCurrency,
|
profit.Float64(), s.state.Position.QuoteCurrency,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user