diff --git a/pkg/strategy/bollmaker/strategy.go b/pkg/strategy/bollmaker/strategy.go index 9a514c634..22d0ba941 100644 --- a/pkg/strategy/bollmaker/strategy.go +++ b/pkg/strategy/bollmaker/strategy.go @@ -568,6 +568,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se p := s.state.Position.NewProfit(trade, profit, netProfit) p.Strategy = ID p.StrategyInstanceID = instanceID + s.Environment.RecordProfit(p) s.state.ProfitStats.AddProfit(p) s.Notify(&p) diff --git a/pkg/types/position.go b/pkg/types/position.go index 875ba801c..68c8429ee 100644 --- a/pkg/types/position.go +++ b/pkg/types/position.go @@ -76,7 +76,7 @@ func (p *Position) NewProfit(trade Trade, profit, netProfit fixedpoint.Value) Pr // FeeInUSD: 0, Fee: trade.Fee, FeeCurrency: trade.FeeCurrency, - + Exchange: trade.Exchange, IsMargin: trade.IsMargin, IsFutures: trade.IsFutures,