订阅合约检查,改为借用账号更新事件
This commit is contained in:
parent
68d9f6bf85
commit
8b7d373359
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user