xfunding: log collected funding fee

This commit is contained in:
c9s 2023-03-26 01:55:33 +08:00
parent ba0dd68be0
commit 425952d76c
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -406,6 +406,8 @@ func (s *Strategy) CrossRun(ctx context.Context, orderExecutionRouter bbgo.Order
log.WithError(err).Error("unable to add funding fee to profitStats") log.WithError(err).Error("unable to add funding fee to profitStats")
} }
} }
log.Infof("total collected funding fee: %f %s", s.ProfitStats.TotalFundingFee.Float64(), s.ProfitStats.FundingFeeCurrency)
bbgo.Sync(ctx, s) bbgo.Sync(ctx, s)
} }
}) })