def register_code(self, code):
     request = KiwoomOpenApiService_pb2.BidirectionalRealRequest()
     code_list = [code]
     fid_list = RealType.get_fids_by_realtype('주식시세')
     request.register_request.code_list.extend(code_list)  # pylint: disable=no-member
     request.register_request.fid_list.extend(fid_list)  # pylint: disable=no-member
     self._request_observer.on_next(request)
     logging.debug('Registering code %s for real events', code)
 def initialize(self):
     request = KiwoomOpenApiService_pb2.BidirectionalRealRequest()
     request.initialize_request.fid_list.extend(self._fid_list)  # pylint: disable=no-member
     self._request_observer.on_next(request)