diff --git a/pkg/strategy/pivotshort/breaklow.go b/pkg/strategy/pivotshort/breaklow.go index 4e916cb51..d446a82ff 100644 --- a/pkg/strategy/pivotshort/breaklow.go +++ b/pkg/strategy/pivotshort/breaklow.go @@ -70,7 +70,7 @@ func (s *BreakLow) Bind(session *bbgo.ExchangeSession, orderExecutor *bbgo.Gener } if lastLow.Compare(s.lastLow) != 0 { - bbgo.Notify("%s new pivot low detected: %f %s", s.Symbol, s.pivot.LastLow(), kline.EndTime.Time()) + bbgo.Notify("%s new pivot low detected: %f %s", s.Symbol, s.pivot.LastLow(), kline.EndTime.Time().String()) } s.lastLow = lastLow diff --git a/pkg/util/simple_args.go b/pkg/util/simple_args.go index 47c0234b2..bef39d9e0 100644 --- a/pkg/util/simple_args.go +++ b/pkg/util/simple_args.go @@ -2,6 +2,7 @@ package util import ( "reflect" + "time" "github.com/c9s/bbgo/pkg/fixedpoint" ) @@ -11,7 +12,7 @@ import ( func FilterSimpleArgs(args []interface{}) (simpleArgs []interface{}) { for _, arg := range args { switch arg.(type) { - case int, int64, int32, uint64, uint32, string, []byte, float64, float32, fixedpoint.Value: + case int, int64, int32, uint64, uint32, string, []byte, float64, float32, fixedpoint.Value, time.Time: simpleArgs = append(simpleArgs, arg) default: rt := reflect.TypeOf(arg)