ibflex 1.0__tar.gz → 1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ibflex
3
- Version: 1.0
3
+ Version: 1.1
4
4
  Summary: Parse Interactive Brokers Flex XML reports and convert to Python types
5
5
  Author-email: Christopher Singley <csingley@gmail.com>
6
6
  License-Expression: MIT
@@ -186,7 +186,7 @@ class FlexStatement(FlexElement):
186
186
  ConversionRates: tuple["ConversionRate", ...] = ()
187
187
  HKIPOOpenSubscriptions: tuple = () # TODO
188
188
  CommissionCredits: tuple = () # TODO
189
- StockGrantActivities: tuple = () # TODO
189
+ StockGrantActivities: tuple["StockGrantActivity", ...] = ()
190
190
  SLBCollaterals: tuple = () # TODO
191
191
  IncentiveCouponAccrualDetails: tuple = () # TODO
192
192
  DepositsOnHold: tuple = () # TODO
@@ -2869,5 +2869,51 @@ class SLBOpenContract(FlexElement):
2869
2869
  fineness: decimal.Decimal | None = None
2870
2870
  weight: decimal.Decimal | None = None
2871
2871
 
2872
+
2873
+ @dataclass(frozen=True)
2874
+ class StockGrantActivity(FlexElement):
2875
+ """Wrapped in <StockGrantActivities>"""
2876
+
2877
+ accountId: str | None = None
2878
+ acctAlias: str | None = None
2879
+ model: str | None = None
2880
+ currency: str | None = None
2881
+ fxRateToBase: decimal.Decimal | None = None
2882
+ assetCategory: enums.AssetClass | None = None
2883
+ subCategory: str | None = None
2884
+ symbol: str | None = None
2885
+ description: str | None = None
2886
+ conid: str | None = None
2887
+ securityID: str | None = None
2888
+ securityIDType: str | None = None
2889
+ cusip: str | None = None
2890
+ isin: str | None = None
2891
+ figi: str | None = None
2892
+ listingExchange: str | None = None
2893
+ underlyingConid: str | None = None
2894
+ underlyingSymbol: str | None = None
2895
+ underlyingSecurityID: str | None = None
2896
+ underlyingListingExchange: str | None = None
2897
+ issuer: str | None = None
2898
+ issuerCountryCode: str | None = None
2899
+ multiplier: decimal.Decimal | None = None
2900
+ strike: decimal.Decimal | None = None
2901
+ expiry: datetime.date | None = None
2902
+ putCall: enums.PutCall | None = None
2903
+ principalAdjustFactor: decimal.Decimal | None = None
2904
+ reportDate: datetime.date | None = None
2905
+ activityDescription: str | None = None
2906
+ awardDate: datetime.date | None = None
2907
+ vestingDate: datetime.date | None = None
2908
+ quantity: decimal.Decimal | None = None
2909
+ price: decimal.Decimal | None = None
2910
+ value: decimal.Decimal | None = None
2911
+ serialNumber: str | None = None
2912
+ deliveryType: str | None = None
2913
+ commodityType: str | None = None
2914
+ fineness: decimal.Decimal | None = None
2915
+ weight: decimal.Decimal | None = None
2916
+
2917
+
2872
2918
  # Type alias to work around https://github.com/python/mypy/issues/1775
2873
2919
  _ClientFeesDetail = ClientFeesDetail
@@ -17,7 +17,7 @@ __description__ = (
17
17
  "Parse Interactive Brokers Flex XML reports and convert to Python types"
18
18
  ),
19
19
  __url__ = "https://github.com/csingley/ibflex"
20
- __version__ = "1.0"
20
+ __version__ = "1.1"
21
21
  __author__ = "Christopher Singley"
22
22
  __author_email__ = "csingley@gmail.com"
23
23
  __license__ = "MIT"
@@ -105,6 +105,8 @@ class Code(str, enum.Enum):
105
105
  STCG = "ST" # Short-term P/L
106
106
  STOCKYIELD = "SY" # Positions that may be eligible for Stock Yield.
107
107
  TRANSFER = "T" # Transfer
108
+ ADR = "ADR" # ADR fee
109
+ LIQUIDATION_FORCED = "LF" # Liquidation - Loss Flattening
108
110
 
109
111
 
110
112
  @enum.unique
@@ -170,6 +172,7 @@ class OrderType(str, enum.Enum):
170
172
  TRAIL = "TRAIL"
171
173
  REL = "REL"
172
174
  MIT = "MIT"
175
+ LIT = "LIT"
173
176
 
174
177
  @enum.unique
175
178
  class Reorg(str, enum.Enum):
@@ -237,6 +240,7 @@ class TransferType(str, enum.Enum):
237
240
  ACATS = "ACATS"
238
241
  ATON = "ATON"
239
242
  FOP = "FOP"
243
+ OTC = "OTC"
240
244
 
241
245
 
242
246
  @enum.unique
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ibflex
3
- Version: 1.0
3
+ Version: 1.1
4
4
  Summary: Parse Interactive Brokers Flex XML reports and convert to Python types
5
5
  Author-email: Christopher Singley <csingley@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ibflex"
7
- version = "1.0"
7
+ version = "1.1"
8
8
  description = "Parse Interactive Brokers Flex XML reports and convert to Python types"
9
9
  readme = "README.rst"
10
10
  license = "MIT"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes