'Add a transaction and a payment to the market'

def add_transaction_and_payment(self):

    proposed_trade = Trade.propose(MessageId(TraderId('0'), MessageNumber('message_number')), OrderId(TraderId('0'), OrderNumber(1)), OrderId(TraderId('1'), OrderNumber(2)), Price(63400, 'BTC'), Quantity(30, 'MC'), Timestamp(1462224447.117))
    transaction = self.session.lm.market_community.transaction_manager.create_from_proposed_trade(proposed_trade)
    payment = Payment(MessageId(TraderId('0'), MessageNumber('1')), transaction.transaction_id, Quantity(0, 'MC'), Price(20, 'BTC'), WalletAddress('a'), WalletAddress('b'), PaymentId('aaa'), Timestamp(4.0), True)
    transaction.add_payment(payment)
    self.session.lm.market_community.transaction_manager.transaction_repository.update(transaction)
    return transaction
