From 2a80d708af31cbaf32d7fd8514b49de9cecdeb47 Mon Sep 17 00:00:00 2001 From: Andy Cheng Date: Mon, 10 Jul 2023 16:33:27 +0800 Subject: [PATCH] ref/profitStatsTracker: TradeCollector is move to core pkg --- pkg/report/profit_stats_tracker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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