'Return a dictionary with a representation of this transaction.'

def to_dictionary(self):

    return {'trader_id': str(self.transaction_id.trader_id), 'order_number': int(self.order_id.order_number), 'partner_trader_id': str(self.partner_order_id.trader_id), 'partner_order_number': int(self.partner_order_id.order_number), 'transaction_number': int(self.transaction_id.transaction_number), 'price': float(self.price), 'price_type': self.price.wallet_id, 'transferred_price': float(self.transferred_price), 'quantity': float(self.total_quantity), 'quantity_type': self.total_quantity.wallet_id, 'transferred_quantity': float(self.transferred_quantity), 'timestamp': float(self.timestamp), 'payment_complete': self.is_payment_complete(), 'status': self.status}
