bollpp: send profit stat notification

This commit is contained in:
c9s 2021-10-18 01:16:46 +08:00
parent e835e63c9b
commit d446dbbed7

View File

@ -289,6 +289,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
}
s.state.ProfitStats.AddProfit(p)
s.Notify(&p)
s.Notify(&s.state.ProfitStats)
})
s.tradeCollector.OnTrade(func(trade types.Trade) {