diff --git a/ibflex/Types.py b/ibflex/Types.py index 3a48056..ec1a27d 100644 --- a/ibflex/Types.py +++ b/ibflex/Types.py @@ -89,7 +89,7 @@ class decorator. Class attributes are annotated with PEP 484 type hints. "DebitCardActivity", "SymbolSummary", "AssetSummary", - "Order" + "Order", ] import datetime @@ -102,12 +102,12 @@ class decorator. Class attributes are annotated with PEP 484 type hints. @dataclass(frozen=True) class FlexElement: - """ Base class for data element types """ + """Base class for data element types""" @dataclass(frozen=True) class FlexQueryResponse(FlexElement): - """ Root element """ + """Root element""" queryName: str type: str @@ -126,7 +126,7 @@ def __repr__(self): @dataclass(frozen=True) class FlexStatement(FlexElement): - """ Wrapped in """ + """Wrapped in """ accountId: str fromDate: datetime.date @@ -215,7 +215,7 @@ def __repr__(self): @dataclass(frozen=True) class AccountInformation(FlexElement): - """ Child of """ + """Child of """ accountId: Optional[str] = None acctAlias: Optional[str] = None @@ -256,7 +256,7 @@ class AccountInformation(FlexElement): @dataclass(frozen=True) class ChangeInNAV(FlexElement): - """ Child of """ + """Child of """ accountId: Optional[str] = None acctAlias: Optional[str] = None @@ -319,7 +319,7 @@ class ChangeInNAV(FlexElement): @dataclass(frozen=True) class MTMPerformanceSummaryUnderlying(FlexElement): - """ Wrapped in """ + """Wrapped in """ assetCategory: Optional[enums.AssetClass] = None accountId: Optional[str] = None @@ -368,11 +368,12 @@ class MTMPerformanceSummaryUnderlying(FlexElement): @dataclass(frozen=True) class EquitySummaryByReportDateInBase(FlexElement): - """ Wrapped in """ + """Wrapped in """ accountId: Optional[str] = None acctAlias: Optional[str] = None model: Optional[str] = None + currency: Optional[str] = None reportDate: Optional[datetime.date] = None cash: Optional[decimal.Decimal] = None cashLong: Optional[decimal.Decimal] = None @@ -401,6 +402,7 @@ class EquitySummaryByReportDateInBase(FlexElement): notes: Optional[decimal.Decimal] = None notesLong: Optional[decimal.Decimal] = None notesShort: Optional[decimal.Decimal] = None + incentiveCouponAccruals: Optional[decimal.Decimal] = None interestAccruals: Optional[decimal.Decimal] = None interestAccrualsLong: Optional[decimal.Decimal] = None interestAccrualsShort: Optional[decimal.Decimal] = None @@ -427,7 +429,10 @@ class EquitySummaryByReportDateInBase(FlexElement): brokerFeesAccrualsComponent: Optional[decimal.Decimal] = None brokerFeesAccrualsComponentLong: Optional[decimal.Decimal] = None brokerFeesAccrualsComponentShort: Optional[decimal.Decimal] = None + eventContractInterestAccruals: Optional[decimal.Decimal] = None + marginFinancingChargeAccruals: Optional[decimal.Decimal] = None cfdUnrealizedPl: Optional[decimal.Decimal] = None + insuredBankDepositRedemptionCashComponent: Optional[decimal.Decimal] = None fdicInsuredBankSweepAccount: Optional[decimal.Decimal] = None fdicInsuredBankSweepAccountLong: Optional[decimal.Decimal] = None fdicInsuredBankSweepAccountShort: Optional[decimal.Decimal] = None @@ -449,6 +454,7 @@ class EquitySummaryByReportDateInBase(FlexElement): ipoSubscription: Optional[decimal.Decimal] = None ipoSubscriptionLong: Optional[decimal.Decimal] = None ipoSubscriptionShort: Optional[decimal.Decimal] = None + crypto: Optional[decimal.Decimal] = None physDel: Optional[decimal.Decimal] = None physDelLong: Optional[decimal.Decimal] = None physDelShort: Optional[decimal.Decimal] = None @@ -457,7 +463,7 @@ class EquitySummaryByReportDateInBase(FlexElement): @dataclass(frozen=True) class MTDYTDPerformanceSummaryUnderlying(FlexElement): - """ Wrapped in """ + """Wrapped in """ assetCategory: Optional[enums.AssetClass] = None accountId: Optional[str] = None @@ -507,7 +513,7 @@ class MTDYTDPerformanceSummaryUnderlying(FlexElement): @dataclass(frozen=True) class CashReportCurrency(FlexElement): - """ Wrapped in """ + """Wrapped in """ accountId: Optional[str] = None currency: Optional[str] = None @@ -808,7 +814,7 @@ class CashReportCurrency(FlexElement): @dataclass(frozen=True) class CFDCharge(FlexElement): - """ Wrapped in """ + """Wrapped in """ assetCategory: Optional[enums.AssetClass] = None accountId: Optional[str] = None @@ -853,7 +859,7 @@ class CFDCharge(FlexElement): @dataclass(frozen=True) class StatementOfFundsLine(FlexElement): - """ Wrapped in """ + """Wrapped in """ assetCategory: Optional[enums.AssetClass] = None accountId: Optional[str] = None @@ -916,7 +922,7 @@ class StatementOfFundsLine(FlexElement): @dataclass(frozen=True) class ChangeInPositionValue(FlexElement): - """ Wrapped in """ + """Wrapped in """ assetCategory: Optional[enums.AssetClass] = None currency: Optional[str] = None @@ -939,7 +945,7 @@ class ChangeInPositionValue(FlexElement): @dataclass(frozen=True) class OpenPosition(FlexElement): - """ Wrapped in """ + """Wrapped in """ side: Optional[enums.LongShort] = None assetCategory: Optional[enums.AssetClass] = None @@ -999,7 +1005,7 @@ class OpenPosition(FlexElement): @dataclass(frozen=True) class FxLot(FlexElement): - """ Wrapped in , which in turn is wrapped in """ + """Wrapped in , which in turn is wrapped in """ assetCategory: Optional[enums.AssetClass] = None accountId: Optional[str] = None @@ -1022,7 +1028,7 @@ class FxLot(FlexElement): @dataclass(frozen=True) class Trade(FlexElement): - """ Wrapped in """ + """Wrapped in """ transactionType: Optional[enums.TradeType] = None openCloseIndicator: Optional[enums.OpenClose] = None @@ -1120,7 +1126,8 @@ class Trade(FlexElement): @dataclass(frozen=True) class TransferLot(FlexElement): - """ Wrapped in """ + """Wrapped in """ + accountId: Optional[str] = None currency: Optional[str] = None fxRateToBase: Optional[decimal.Decimal] = None @@ -1173,7 +1180,7 @@ class TransferLot(FlexElement): @dataclass(frozen=True) class Lot(FlexElement): - """ Wrapped in """ + """Wrapped in """ transactionType: Optional[enums.TradeType] = None openCloseIndicator: Optional[enums.OpenClose] = None @@ -1271,7 +1278,7 @@ class Lot(FlexElement): @dataclass(frozen=True) class UnbundledCommissionDetail(FlexElement): - """ Wrapped in """ + """Wrapped in """ buySell: Optional[enums.BuySell] = None assetCategory: Optional[enums.AssetClass] = None @@ -1319,7 +1326,7 @@ class UnbundledCommissionDetail(FlexElement): @dataclass(frozen=True) class SymbolSummary(FlexElement): - """ Wrapped in """ + """Wrapped in """ accountId: Optional[str] = None acctAlias: Optional[str] = None @@ -1394,7 +1401,7 @@ class SymbolSummary(FlexElement): @dataclass(frozen=True) class AssetSummary(FlexElement): - """ Wrapped in """ + """Wrapped in """ accountId: Optional[str] = None acctAlias: Optional[str] = None @@ -1503,7 +1510,7 @@ class AssetSummary(FlexElement): @dataclass(frozen=True) class Order(FlexElement): - """ Wrapped in or """ + """Wrapped in or """ accountId: Optional[str] = None acctAlias: Optional[str] = None @@ -1611,7 +1618,7 @@ class Order(FlexElement): @dataclass(frozen=True) class TradeConfirm(FlexElement): - """ Wrapped in """ + """Wrapped in """ transactionType: Optional[enums.TradeType] = None openCloseIndicator: Optional[enums.OpenClose] = None @@ -1773,7 +1780,7 @@ class OptionEAE(FlexElement): @dataclass(frozen=True) class TradeTransfer(FlexElement): - """ Wrapped in """ + """Wrapped in """ transactionType: Optional[enums.TradeType] = None openCloseIndicator: Optional[enums.OpenClose] = None @@ -1845,7 +1852,7 @@ class TradeTransfer(FlexElement): @dataclass(frozen=True) class InterestAccrualsCurrency(FlexElement): - """ Wrapped in """ + """Wrapped in """ accountId: Optional[str] = None currency: Optional[str] = None @@ -1887,7 +1894,7 @@ class TierInterestDetail(FlexElement): @dataclass(frozen=True) class HardToBorrowDetail(FlexElement): - """ Wrapped in """ + """Wrapped in """ assetCategory: Optional[enums.AssetClass] = None accountId: Optional[str] = None @@ -1926,7 +1933,7 @@ class HardToBorrowDetail(FlexElement): @dataclass(frozen=True) class SLBActivity(FlexElement): - """ Wrapped in """ + """Wrapped in """ assetCategory: Optional[enums.AssetClass] = None accountId: Optional[str] = None @@ -1964,7 +1971,8 @@ class SLBActivity(FlexElement): @dataclass(frozen=True) class SLBFee: - """ Wrapped in """ + """Wrapped in """ + accountId: Optional[str] = None acctAlias: Optional[str] = None model: Optional[str] = None @@ -2011,7 +2019,7 @@ class SLBFee: @dataclass(frozen=True) class Transfer(FlexElement): - """ Wrapped in """ + """Wrapped in """ type: Optional[enums.TransferType] = None direction: Optional[enums.InOut] = None @@ -2069,7 +2077,7 @@ class Transfer(FlexElement): @dataclass(frozen=True) class UnsettledTransfer(FlexElement): - """ Wrapped in """ + """Wrapped in """ direction: Optional[enums.ToFrom] = None assetCategory: Optional[enums.AssetClass] = None @@ -2097,7 +2105,7 @@ class UnsettledTransfer(FlexElement): @dataclass(frozen=True) class PriorPeriodPosition(FlexElement): - """ Wrapped in """ + """Wrapped in """ assetCategory: Optional[enums.AssetClass] = None accountId: Optional[str] = None @@ -2131,7 +2139,7 @@ class PriorPeriodPosition(FlexElement): @dataclass(frozen=True) class CorporateAction(FlexElement): - """ Wrapped in """ + """Wrapped in """ assetCategory: Optional[enums.AssetClass] = None subCategory: Optional[str] = None @@ -2185,7 +2193,7 @@ class CorporateAction(FlexElement): @dataclass(frozen=True) class FxTransaction(FlexElement): - """ Wrapped in """ + """Wrapped in """ assetCategory: Optional[enums.AssetClass] = None accountId: Optional[str] = None @@ -2206,7 +2214,7 @@ class FxTransaction(FlexElement): @dataclass(frozen=True) class CashTransaction(FlexElement): - """ Wrapped in """ + """Wrapped in """ type: Optional[enums.CashAction] = None assetCategory: Optional[enums.AssetClass] = None @@ -2255,7 +2263,7 @@ class CashTransaction(FlexElement): @dataclass(frozen=True) class DebitCardActivity(FlexElement): - """ Wrapped in """ + """Wrapped in """ accountId: Optional[str] = None acctAlias: Optional[str] = None @@ -2274,7 +2282,7 @@ class DebitCardActivity(FlexElement): @dataclass(frozen=True) class ChangeInDividendAccrual(FlexElement): - """ Wrapped in """ + """Wrapped in """ date: Optional[datetime.date] = None assetCategory: Optional[enums.AssetClass] = None @@ -2322,7 +2330,7 @@ class ChangeInDividendAccrual(FlexElement): @dataclass(frozen=True) class OpenDividendAccrual(FlexElement): - """ Wrapped in """ + """Wrapped in """ assetCategory: Optional[enums.AssetClass] = None currency: Optional[str] = None @@ -2369,7 +2377,7 @@ class OpenDividendAccrual(FlexElement): @dataclass(frozen=True) class SecurityInfo(FlexElement): - """ Wrapped in """ + """Wrapped in """ assetCategory: Optional[enums.AssetClass] = None symbol: Optional[str] = None @@ -2415,7 +2423,7 @@ class SecurityInfo(FlexElement): @dataclass(frozen=True) class ConversionRate(FlexElement): - """ Wrapped in """ + """Wrapped in """ reportDate: Optional[datetime.date] = None fromCurrency: Optional[str] = None