Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/shidenggui/easyquant
/ tock
Method
tock
easyquant/push_engine/clock_engine.py:182–186 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
180
time.sleep(self.sleep_time)
181
182
def
tock(self):
183
if
not etime.is_trade_date(self.now_dt):
184
pass
# 假日暂停时钟引擎
185
else
:
186
self._tock()
187
188
def
_tock(self):
189
# 间隔事件
Callers
6
test_set_now
Method · 0.95
clocktick
Method · 0.95
register_clock_moent_makeup
Method · 0.80
register_clock_interval
Method · 0.80
test_tick_interval_event
Method · 0.80
test_tick_moment_event
Method · 0.80
Calls
1
_tock
Method · 0.95
Tested by
5
test_set_now
Method · 0.76
register_clock_moent_makeup
Method · 0.64
register_clock_interval
Method · 0.64
test_tick_interval_event
Method · 0.64
test_tick_moment_event
Method · 0.64