xfunding: notify profit stats

This commit is contained in:
c9s 2024-03-07 13:41:06 +08:00
parent e41f349fe7
commit 665d4ed94b
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 // sync funding fee txns
s.syncFundingFeeRecords(ctx, time.Now().Add(-5*24*time.Hour)) s.syncFundingFeeRecords(ctx, time.Now().Add(-5*24*time.Hour))
bbgo.Notify(s.ProfitStats)
switch s.State.PositionState { switch s.State.PositionState {
case PositionClosed: case PositionClosed:
// adjust QuoteInvestment according to the available quote balance // adjust QuoteInvestment according to the available quote balance