pause trade
This commit is contained in:
parent
9e3ee03976
commit
0b23e9f2f0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user