xfunding: notify profit stats

This commit is contained in:
c9s 2024-03-07 13:41:06 +08:00
parent 7f0325b193
commit 192c29b122
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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