Skip to content

Commit

Permalink
Added actionID
Browse files Browse the repository at this point in the history
  • Loading branch information
karsami committed Jan 12, 2024
1 parent ddd85c9 commit 891897f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ibflex/Types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2093,6 +2093,7 @@ class CashTransaction(FlexElement):
fineness: Optional[decimal.Decimal] = None
weight: Optional[str] = None
figi: Optional[str] = None
actionID: Optional[str] = None


@dataclass(frozen=True)
Expand Down
4 changes: 3 additions & 1 deletion tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,8 @@ class CashTransactionTestCase(unittest.TestCase):
'isin="ANN741081064" underlyingConid="" underlyingSymbol="" issuer="" '
'multiplier="1" strike="" expiry="" putCall="" principalAdjustFactor="" '
'dateTime="2015-10-06" amount="27800" type="Dividends" tradeID="" code="" '
'transactionID="5767420360" reportDate="2015-10-06" clientReference="" />')
'transactionID="5767420360" reportDate="2015-10-06" clientReference="" '
'actionID="222598649" />')
)

def testParse(self):
Expand Down Expand Up @@ -844,6 +845,7 @@ def testParse(self):
self.assertEqual(instance.transactionID, "5767420360")
self.assertEqual(instance.reportDate, datetime.date(2015,10, 6))
self.assertEqual(instance.clientReference, None)
self.assertEqual(instance.actionID, "222598649")


class DebitCardActivityTestCase(unittest.TestCase):
Expand Down

0 comments on commit 891897f

Please sign in to comment.