mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-13 02:23:51 +00:00
xfunding: fix Warnf format
This commit is contained in:
parent
84313dbdf9
commit
0f21c1fd8f
|
@ -618,7 +618,7 @@ func (s *Strategy) detectPremiumIndex(premiumIndex *types.PremiumIndex) bool {
|
||||||
|
|
||||||
holdingPeriod := premiumIndex.Time.Sub(s.State.PositionStartTime)
|
holdingPeriod := premiumIndex.Time.Sub(s.State.PositionStartTime)
|
||||||
if holdingPeriod < time.Duration(s.MinHoldingPeriod) {
|
if holdingPeriod < time.Duration(s.MinHoldingPeriod) {
|
||||||
log.Warnf("position holding period %s is less than %s, skip closing", holdingPeriod, s.MinHoldingPeriod)
|
log.Warnf("position holding period %s is less than %s, skip closing", holdingPeriod, s.MinHoldingPeriod.Duration())
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user