def persisted_txs(self): # Each of the groups in preprocessed_txs() gets processed as transfer return [ # Synthetic trade created by voluntary subscription (backdated) inventory.Transfer( uniqueid="", datetime=datetime(2012, 5, 14, 19, 45), memo="ELAN(US28413U2042) TENDERED TO US28413TEMP2 1 FOR 1", fiaccount=self.account, security=self.securities[2], units=Decimal("557915"), fromfiaccount=self.account, fromsecurity=self.securities[0], fromunits=Decimal("-557915"), ), inventory.Transfer( uniqueid="", datetime=datetime(2012, 5, 15, 20, 25), memo= "ELAN.TEMP(US28413TEMP2) MERGED(Acquisition) WITH US284CNT9952 1 FOR 10000", fiaccount=self.account, security=self.securities[1], units=Decimal("56"), fromfiaccount=self.account, fromsecurity=self.securities[2], fromunits=Decimal("-557915"), ), ]
def persisted_txs(self): # FIXME # On a given datetime, CorpActXmlSnippetMixin.testDoCorporateActions() # sorts type=TRADE before type=TRANSFER return [ # Synthetic trade created by voluntary subscription (backdated) inventory.Trade( uniqueid="", datetime=datetime(2015, 2, 19, 19, 45), memo= "SGGHU.EX(US8269922402) MERGED(Voluntary Offer Allocation) WITH SGRH 1 FOR 1,US8269922576 562 FOR 10", currency=models.Currency.USD, cash=Decimal("-107769.12"), fiaccount=self.account, security=self.securities[2], units=Decimal("19108"), ), inventory.Transfer( uniqueid="", datetime=datetime(2015, 2, 19, 19, 45), memo="SGGHU(US82670K1280) TENDERED TO US8269922402 1 FOR 1", fiaccount=self.account, security=self.securities[1], units=Decimal("34000"), fromfiaccount=self.account, fromsecurity=self.securities[0], fromunits=Decimal("-34000"), ), inventory.Transfer( uniqueid="", datetime=datetime(2015, 2, 25, 20, 25), memo= "SGGHU.EX(US8269922402) MERGED(Voluntary Offer Allocation) WITH SGRH 1 FOR 1,US8269922576 562 FOR 10", fiaccount=self.account, security=self.securities[3], units=Decimal("34000"), fromfiaccount=self.account, fromsecurity=self.securities[1], fromunits=Decimal("-34000"), ), ]
def persisted_txs(self): # Tender processed as transfer return [ inventory.Transfer( uniqueid="", datetime=datetime(2015, 9, 4, 19, 45), memo="NTP(G63907102) TENDERED TO G63990272 1 FOR 1", fiaccount=self.account, security=self.securities[1], units=Decimal("60996"), fromfiaccount=self.account, fromsecurity=self.securities[0], fromunits=Decimal("-60996"), ) ]
def persisted_txs(self): return [ inventory.Transfer( uniqueid="", datetime=datetime(2013, 10, 4, 20, 25), memo= "AMP.RSTD(135893865) MERGED(Acquisition) WITH AMP.REST 1 FOR 1", fiaccount=self.account, security=self.securities[0], units=Decimal("70576"), fromfiaccount=self.account, fromsecurity=self.securities[1], fromunits=Decimal("-70576"), ) ]
def persisted_txs(self): # Stock split with CUSIP change processed as transfer return [ inventory.Transfer( uniqueid="", datetime=datetime(2016, 8, 8, 20, 25), memo="VXX(US06742E7114) SPLIT 1 FOR 4", fiaccount=self.account, security=self.securities[0], units=Decimal("-4250"), fromfiaccount=self.account, fromsecurity=self.securities[1], fromunits=Decimal("17000"), ) ]
def persisted_txs(self): # CUSIP change processed as transfer return [ inventory.Transfer( uniqueid="", datetime=datetime(2010, 11, 30, 20, 25), memo="EDCI(US2683151086) CUSIP/ISIN CHANGE TO (US2683152076)", fiaccount=self.account, security=self.securities[1], units=Decimal("112833"), fromfiaccount=self.account, fromsecurity=self.securities[0], fromunits=Decimal("-112833"), ) ]
def persisted_txs(self): # FIXME # Merger for cash & kind processes cash portion as return of capital, # then processes receipt of in-kind consideration as transfer (further # processing spinoffs for any additional in-kind consideration) # # On a given datetime, CorpActXmlSnippetMixin.testDoCorporateActions() # sorts type=RETURNOFCAPITAL before type=SPINOFF before type=TRANSFER return [ # # Synthetic return of capital inventory.ReturnOfCapital( uniqueid="", datetime=datetime(2012, 4, 16, 20, 25), dtsettle=datetime(2012, 4, 16, 20, 25), memo= "DIMEQ.TMP(US254TMP9913) CASH and STOCK MERGER (Voluntary Offer Allocation) WMIH 1146667 FOR 10000000", currency=models.Currency.USD, # currency="USD", cash=Decimal("16.5"), fiaccount=self.account, security=self.securities[0], ), inventory.Transfer( uniqueid="", datetime=datetime(2012, 4, 16, 20, 25), memo= "DIMEQ.TMP(US254TMP9913) CASH and STOCK MERGER (Voluntary Offer Allocation) WMIH 1146667 FOR 10000000", fiaccount=self.account, security=self.securities[1], units=Decimal("17200.005"), fromfiaccount=self.account, fromsecurity=self.securities[0], fromunits=Decimal("-150000"), ), inventory.Spinoff( uniqueid="", datetime=datetime(2012, 4, 16, 20, 25), memo= "DIMEQ.TMP(US254TMP9913) CASH and STOCK MERGER (Voluntary Offer Allocation) WMIH 1146667 FOR 10000000", fiaccount=self.account, security=self.securities[2], units=Decimal("150000"), fromsecurity=self.securities[0], numerator=Decimal("150000"), denominator=Decimal("150000"), ), ]
def persisted_txs(self): # Merger in kind processed as transfer return [ inventory.Transfer( uniqueid="", datetime=datetime(2017, 4, 12, 20, 25), memo= "TPHS.EX(US89656R10EX) MERGED(Voluntary Offer Allocation) WITH US89656D1019 1 FOR 1", fiaccount=self.account, security=self.securities[0], units=Decimal("2575"), fromfiaccount=self.account, fromsecurity=self.securities[1], fromunits=Decimal("-2575"), ) ]