MCPcopy Create free account
hub / github.com/shidenggui/easyquant / is_active

Method is_active

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

Source from the content-addressed store, hash-verified

33 self.call = call or (lambda: None)
34
35 def is_active(self):
36 if self.trading:
37 if not self.clock_engine.trading_state:
38 return False
39 return int(self.clock_engine.now) % self.second == 0
40
41 def __eq__(self, other):
42 if isinstance(other, ClockIntervalHandler):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected