@staticmethod
    def create(channel, body, properties=None):
        properties = properties or {}
        if 'correlation_id' not in properties:
            properties['correlation_id'] = str(uuid.uuid4())
        if 'message_id' not in properties:
            properties['message_id'] = str(uuid.uuid4())
        if 'timestamp' not in properties:
            properties['timestamp'] = datetime.utcnow()

        return Message(channel, auto_decode=False,
                       body=body, properties=properties)
generated source for method updatePortfolio
dataset/ETHPy150Open eandersson/amqpstorm/amqpstorm/message.py/Message.create--crossover with--dataset/ETHPy150Open CarterBain/Medici/ib/ext/EWrapperMsgGenerator.py/EWrapperMsgGenerator.updatePortfolio