async def _task():
    if ((indicate_type == INDICATE_ORDER) and self.cb.on_order_update_callback):
        (success, error) = (await self.get_orders(symbol))
        if error:
            state = State(self._platform, self._account, 'get_orders error: {}'.format(error), State.STATE_CODE_GENERAL_ERROR)
            SingleTask.run(self.cb.on_state_update_callback, state)
            return
        for order in success:
            SingleTask.run(self.cb.on_order_update_callback, order)
    elif ((indicate_type == INDICATE_ASSET) and self.cb.on_asset_update_callback):
        (success, error) = (await self.get_assets())
        if error:
            state = State(self._platform, self._account, 'get_assets error: {}'.format(error), State.STATE_CODE_GENERAL_ERROR)
            SingleTask.run(self.cb.on_state_update_callback, state)
            return
        SingleTask.run(self.cb.on_asset_update_callback, success)
    elif ((indicate_type == INDICATE_POSITION) and self.cb.on_position_update_callback):
        (success, error) = (await self.get_position(symbol))
        if error:
            state = State(self._platform, self._account, 'get_position error: {}'.format(error), State.STATE_CODE_GENERAL_ERROR)
            SingleTask.run(self.cb.on_state_update_callback, state)
            return
        SingleTask.run(self.cb.on_position_update_callback, success)
async def _task():
    if ((indicate_type == INDICATE_ORDER) and self.cb.on_order_update_callback):
        (success, error) = (await self.get_orders(symbol))
        if error:
            state = State(self._platform, self._account, 'get_orders error: {}'.format(error), State.STATE_CODE_GENERAL_ERROR)
            SingleTask.run(self.cb.on_state_update_callback, state)
            return
        for order in success:
            SingleTask.run(self.cb.on_order_update_callback, order)
    elif ((indicate_type == INDICATE_ASSET) and self.cb.on_asset_update_callback):
        (success, error) = (await self.get_assets())
        if error:
            state = State(self._platform, self._account, 'get_assets error: {}'.format(error), State.STATE_CODE_GENERAL_ERROR)
            SingleTask.run(self.cb.on_state_update_callback, state)
            return
        SingleTask.run(self.cb.on_asset_update_callback, success)
    elif ((indicate_type == INDICATE_POSITION) and self.cb.on_position_update_callback):
        (success, error) = (await self.get_position(symbol))
        if error:
            state = State(self._platform, self._account, 'get_position error: {}'.format(error), State.STATE_CODE_GENERAL_ERROR)
            SingleTask.run(self.cb.on_state_update_callback, state)
            return
        SingleTask.run(self.cb.on_position_update_callback, success)