def connect_and_sync_data(self):
self._connect()
self.on_log('??????')
if self._data_update_date != date.today():
self._qry_instrument()
self._qry_account()
self._qry_position()
self._qry_order()
self._data_update_date = date.today()
self._qry_commission()
self._subscribe_all()
self.on_log('???????')
self._env.event_bus.add_listener(EVENT.POST_UNIVERSE_CHANGED, self.on_universe_changed)
评论列表
文章目录