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

Method start

easyquant/main_engine.py:103–116  ·  view source on GitHub ↗

启动主引擎

(self)

Source from the content-addressed store, hash-verified

101 self.log.info('启动主引擎')
102
103 def start(self):
104 """启动主引擎"""
105 self.event_engine.start()
106 self._add_main_shutdown(self.event_engine.stop)
107
108 if self.broker == 'gf':
109 self.log.warn("sleep 10s 等待 gf 账户加载")
110 time.sleep(10)
111 for quotation_engine in self.quotation_engines:
112 quotation_engine.start()
113 self._add_main_shutdown(quotation_engine.stop)
114
115 self.clock_engine.start()
116 self._add_main_shutdown(self.clock_engine.stop)
117
118 def load(self, names, strategy_file):
119 with self.lock:

Callers 9

test.pyFile · 0.45
load_strategyMethod · 0.45
load_strategyMethod · 0.45
__init__Method · 0.45

Calls 1

_add_main_shutdownMethod · 0.95

Tested by 4