订阅合约检查,改为借用账号更新事件

This commit is contained in:
msincenselee 2017-05-05 19:48:00 +08:00
parent 68d9f6bf85
commit 8b7d373359

View File

@ -461,7 +461,9 @@ class CtaEngine(object):
# 注册持仓更新事件
self.eventEngine.register(EVENT_POSITION, self.processPositionEvent)
self.eventEngine.register(EVENT_POSITION, self.checkUnsubscribedSymbols)
# 账号更新事件(借用账号更新事件,来检查是否有未订阅的合约信息)
self.eventEngine.register(EVENT_ACCOUNT, self.checkUnsubscribedSymbols)
# 注册定时器事件
self.eventEngine.register(EVENT_TIMER, self.processTimerEvent)