在阅读ctp部分代码的时候,看到有个地方很不理解:BaseGateway下on_tick会推送两个事件。第一个是“tick事件类型+tick”可以理解,第二部为什么要发送一个类型为“EVENT_TICK + tick.vt_symbol”的事件?这个事件是哪个模块需要调用呢?
def on_tick(self, tick: TickData) -> None:
"""
Tick event push.
Tick event of a specific vt_symbol is also pushed.
"""
self.on_event(EVENT_TICK, tick)
self.on_event(EVENT_TICK + tick.vt_symbol, tick)