Skip to content

Commit

Permalink
xfunding: log low funding fee
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Mar 23, 2023
1 parent b5f69e7 commit a933f90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/strategy/xfunding/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,10 @@ func (s *Strategy) detectPremiumIndex(premiumIndex *types.PremiumIndex) (changed
s.State.TotalBaseTransfer = fixedpoint.Zero
changed = true
} else if fundingRate.Compare(s.ShortFundingRate.Low) <= 0 {

log.Infof("funding rate %s is lower than the Low threshold %s, start closing position...",
fundingRate.Percentage(), s.ShortFundingRate.Low.Percentage())

s.positionAction = PositionClosing

// reset the transfer stats
Expand Down

0 comments on commit a933f90

Please sign in to comment.