support: fix interval check

This commit is contained in:
c9s 2021-08-19 17:01:02 +08:00
parent 01de2c5f66
commit 184f93ce79

View File

@ -311,6 +311,9 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
if kline.Symbol != s.Symbol {
return
}
if kline.Interval != s.Interval {
return
}
closePriceF := kline.GetClose()
closePrice := fixedpoint.NewFromFloat(closePriceF)