Skip to content

Commit 972b0bc

Browse files
committed
xfunding: use fixed sync range
1 parent cd88677 commit 972b0bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/strategy/xfunding/strategy.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@ func (s *Strategy) CrossRun(
378378
bbgo.Notify("State: %s", s.State.PositionState.String())
379379

380380
// sync funding fee txns
381-
s.syncFundingFeeRecords(ctx, time.Now().Add(-5*24*time.Hour))
381+
syncFrom, _ := time.Parse(time.RFC3339, "2024-01-01T00:00:00Z")
382+
s.syncFundingFeeRecords(ctx, syncFrom)
382383

383384
bbgo.Notify(s.ProfitStats)
384385

0 commit comments

Comments
 (0)