MCPcopy
hub / github.com/shidenggui/easyquant / is_active

Method is_active

easyquant/push_engine/clock_engine.py:98–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96 )
97
98 def is_active(self):
99 if self.is_trading_date and not etime.is_trade_date(self.clock_engine.now_dt):
100 # 仅在交易日触发时的判断
101 return False
102 return self.next_time <= self.clock_engine.now_dt
103
104
105class ClockEngine:

Callers 5

__init__Method · 0.95
update_next_timeMethod · 0.95
_tockMethod · 0.45

Calls

no outgoing calls

Tested by 2