pause trade

This commit is contained in:
lychiyu 2024-08-05 00:08:03 +08:00
parent 9e3ee03976
commit 0b23e9f2f0

View File

@ -426,7 +426,7 @@ func (s *Strategy) isTradeTime(ctx context.Context) bool {
now := time.Now().In(location)
hour := now.Hour()
return hour >= s.TradeStartHour && hour < s.TradeEndHour
return !(hour >= s.TradeStartHour && hour < s.TradeEndHour)
}
func (s *Strategy) isPauseTrade(ctx context.Context) bool {