diff --git a/pkg/report/profit_stats_tracker.go b/pkg/report/profit_stats_tracker.go index 9ad4c636b..7330cf16f 100644 --- a/pkg/report/profit_stats_tracker.go +++ b/pkg/report/profit_stats_tracker.go @@ -2,6 +2,7 @@ package report import ( "github.com/c9s/bbgo/pkg/bbgo" + "github.com/c9s/bbgo/pkg/core" "github.com/c9s/bbgo/pkg/fixedpoint" "github.com/c9s/bbgo/pkg/types" ) @@ -48,7 +49,7 @@ func (p *ProfitStatsTracker) Init(market types.Market, ts *types.TradeStats) { p.InitOld(market, &ps, ts) } -func (p *ProfitStatsTracker) Bind(session *bbgo.ExchangeSession, tradeCollector *bbgo.TradeCollector) { +func (p *ProfitStatsTracker) Bind(session *bbgo.ExchangeSession, tradeCollector *core.TradeCollector) { tradeCollector.OnProfit(func(trade types.Trade, profit *types.Profit) { if profit == nil { return