Skip to content

Commit

Permalink
[Add] new type: endingCashIBUKL
Browse files Browse the repository at this point in the history
  • Loading branch information
ileodo committed May 2, 2024
1 parent 8a1748b commit d578efb
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -593,6 +593,7 @@ class CashReportCurrency(FlexElement):
endingCashSec: Optional[decimal.Decimal] = None
endingCashCom: Optional[decimal.Decimal] = None
endingCashPaxos: Optional[decimal.Decimal] = None
endingCashIBUKL: Optional[Decimal] = None
endingSettledCash: Optional[decimal.Decimal] = None
endingSettledCashSec: Optional[decimal.Decimal] = None
endingSettledCashCom: Optional[decimal.Decimal] = None
Expand Down
3 changes: 2 additions & 1 deletion tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class CashReportCurrencyTestCase(unittest.TestCase):
'otherSec="0" otherCom="0" endingCash="51.730897778" '
'endingCashSec="51.730897778" endingCashCom="0" '
'endingSettledCash="51.730897778" endingSettledCashSec="51.730897778" '
'endingSettledCashCom="0" />')
'endingSettledCashCom="0" endingCashIBUKL="0" />')
)

def testParse(self):
Expand Down Expand Up @@ -348,6 +348,7 @@ def testParse(self):
self.assertEqual(instance.endingSettledCash, decimal.Decimal("51.730897778"))
self.assertEqual(instance.endingSettledCashSec, decimal.Decimal("51.730897778"))
self.assertEqual(instance.endingSettledCashCom, decimal.Decimal("0"))
self.assertEqual(instance.endingCashIBUKL, decimal.Decimal("0"))


class StatementOfFundsLineTestCase(unittest.TestCase):
Expand Down

0 comments on commit d578efb

Please sign in to comment.