def hash(self, message: ReconMessage, attributes: tuple): cl_ord_id = message.proto_message.fields['SecondaryClOrdID'].simple_value security_id = message.proto_message.fields['SecurityID'].simple_value val = '' for field_name in ['SecondaryClOrdID', 'SecurityID']: if message.proto_message.fields[field_name].simple_value == '': return val += message.proto_message.fields[field_name].simple_value message.hash = hash(val) message.hash_info['SecondaryClOrdID'] = cl_ord_id message.hash_info['SecurityID'] = security_id
def hash(self, message: ReconMessage, attributes: tuple, *args, **kwargs): exec_type = message.proto_message.fields['ExecType'].simple_value cl_ord_id = message.proto_message.fields['ClOrdID'].simple_value exec_id = message.proto_message.fields['ExecID'].simple_value val = '' for field_name in ['ClOrdID', 'ExecType', 'ExecID']: if message.proto_message.fields[field_name].simple_value == '': return val += message.proto_message.fields[field_name].simple_value message.hash = hash(val) message.hash_info['ClOrdID'] = cl_ord_id message.hash_info['ExecType'] = exec_type message.hash_info['ExecID'] = exec_id
def hash(self, message: ReconMessage, attributes: tuple, *args, **kwargs): trd_match_id = message.proto_message.fields['TrdMatchID'].simple_value message.hash = hash( message.proto_message.fields['TrdMatchID'].simple_value) message.hash_info['TrdMatchID'] = trd_match_id
def hash(self, message: ReconMessage, attributes: tuple): trd_match_id = message.proto_message.fields[ 'SecurityStatusReqID'].simple_value message.hash = hash( message.proto_message.fields['SecurityStatusReqID'].simple_value) message.hash_info['SecurityStatusReqID'] = trd_match_id
def hash(self, message: ReconMessage, attributes: tuple): cl_ord_id = message.proto_message.fields['ClOrdID'].simple_value message.hash = hash(message.proto_message.fields['ClOrdID'].simple_value) message.hash_info['ClOrdID'] = cl_ord_id