def __init__(self, asset_manager_id, asset_book_id, counterparty_book_id, transaction_action, asset_id, quantity,<EOL>transaction_date, settlement_date, price, transaction_currency, settlement_currency=None,<EOL>asset=None, execution_time=None, transaction_type='<STR_LIT>', transaction_id=None,<EOL>transaction_status='<STR_LIT>', charges=None, codes=None, comments=None, links=None, parties=None,<EOL>rates=None, references=None, *args, **kwargs):
self.transaction_id = transaction_id or uuid.uuid4().hex<EOL>self.asset_manager_id = asset_manager_id<EOL>self.asset_book_id = asset_book_id<EOL>self.counterparty_book_id = counterparty_book_id<EOL>self.transaction_action = transaction_action<EOL>self.asset_id = asset_id  <EOL>self.quantity = quantity<EOL>self.transaction_date = transaction_date<EOL>self.settlement_date = settlement_date<EOL>self.price = price<EOL>self.transaction_currency = transaction_currency<EOL>self.settlement_currency = settlement_currency or transaction_currency<EOL>self.transaction_type = transaction_type<EOL>self.transaction_status = transaction_status<EOL>self.execution_time = execution_time or datetime.datetime.utcnow()<EOL>self.charges = charges.copy() if charges else {}<EOL>self.codes = codes.copy() if codes else {}<EOL>self.comments = comments.copy() if comments else {}<EOL>self.links = links.copy() if links else {}<EOL>self.parties = parties.copy() if parties else {}<EOL>self.rates = rates.copy() if rates else {}<EOL>self.references = references.copy() if references else {}<EOL>self.references['<STR_LIT>'] = Reference(reference_value=self.transaction_id)  <EOL>self.postings = []<EOL>self.asset = asset<EOL>super(Transaction, self).__init__(*args, **kwargs)<EOL>
:param asset_manager_id:
:param asset_book_id:
:param counterparty_book_id:
:param transaction_action:
:param asset_id:
:param quantity:
:param transaction_date:
:param settlement_date:
:param price:
:param transaction_currency:
:param settlement_currency: The currency in which the transaction will be settled.  Defaults to the
transaction_currency if not specified.
:param asset:
:param execution_time:
:param transaction_type:
:param transaction_id:
:param transaction_status:
:param charges:
:param codes:
:param comments:
:param links:
:param parties:
:param rates:
:param references:
:param args:
:param kwargs: