From 665d4ed94bed96b7e8c57dd9d54f17eb690bc345 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 7 Mar 2024 13:41:06 +0800 Subject: [PATCH] xfunding: notify profit stats --- pkg/strategy/xfunding/strategy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/strategy/xfunding/strategy.go b/pkg/strategy/xfunding/strategy.go index f4b8c9c72..ddc85f5d6 100644 --- a/pkg/strategy/xfunding/strategy.go +++ b/pkg/strategy/xfunding/strategy.go @@ -380,6 +380,8 @@ func (s *Strategy) CrossRun( // sync funding fee txns s.syncFundingFeeRecords(ctx, time.Now().Add(-5*24*time.Hour)) + bbgo.Notify(s.ProfitStats) + switch s.State.PositionState { case PositionClosed: // adjust QuoteInvestment according to the available quote balance