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.
- {ibflex-1.0 → ibflex-1.1}/PKG-INFO +1 -1
- {ibflex-1.0 → ibflex-1.1}/ibflex/Types.py +47 -1
- {ibflex-1.0 → ibflex-1.1}/ibflex/__version__.py +1 -1
- {ibflex-1.0 → ibflex-1.1}/ibflex/enums.py +4 -0
- {ibflex-1.0 → ibflex-1.1}/ibflex.egg-info/PKG-INFO +1 -1
- {ibflex-1.0 → ibflex-1.1}/pyproject.toml +1 -1
- {ibflex-1.0 → ibflex-1.1}/LICENSE.txt +0 -0
- {ibflex-1.0 → ibflex-1.1}/README.rst +0 -0
- {ibflex-1.0 → ibflex-1.1}/ibflex/__init__.py +0 -0
- {ibflex-1.0 → ibflex-1.1}/ibflex/client.py +0 -0
- {ibflex-1.0 → ibflex-1.1}/ibflex/parser.py +0 -0
- {ibflex-1.0 → ibflex-1.1}/ibflex/py.typed +0 -0
- {ibflex-1.0 → ibflex-1.1}/ibflex/utils.py +0 -0
- {ibflex-1.0 → ibflex-1.1}/ibflex.egg-info/SOURCES.txt +0 -0
- {ibflex-1.0 → ibflex-1.1}/ibflex.egg-info/dependency_links.txt +0 -0
- {ibflex-1.0 → ibflex-1.1}/ibflex.egg-info/entry_points.txt +0 -0
- {ibflex-1.0 → ibflex-1.1}/ibflex.egg-info/requires.txt +0 -0
- {ibflex-1.0 → ibflex-1.1}/ibflex.egg-info/top_level.txt +0 -0
- {ibflex-1.0 → ibflex-1.1}/setup.cfg +0 -0
- {ibflex-1.0 → ibflex-1.1}/tests/test_client.py +0 -0
- {ibflex-1.0 → ibflex-1.1}/tests/test_parser.py +0 -0
- {ibflex-1.0 → ibflex-1.1}/tests/test_types.py +0 -0
|
@@ -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 = ()
|
|
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.
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|