':param proposed_trade: The proposed trade to create the transaction for
:param transaction_id: The transaction id to use for this transaction
:type proposed_trade: ProposedTrade
:type transaction_id: TransactionId
:return: The created transaction
:rtype: Transaction'

@classmethod
def from_proposed_trade(cls, proposed_trade, transaction_id):

    assert isinstance(proposed_trade, ProposedTrade), type(proposed_trade)
    assert isinstance(transaction_id, TransactionId), type(transaction_id)
    return cls(transaction_id, proposed_trade.price, proposed_trade.quantity, proposed_trade.recipient_order_id, proposed_trade.order_id, proposed_trade.timestamp)
