lusid-sdk 2.0.432__py3-none-any.whl → 2.0.437__py3-none-any.whl
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.
Potentially problematic release.
This version of lusid-sdk might be problematic. Click here for more details.
- lusid/configuration.py +1 -1
- lusid/models/dividend_option_event.py +1 -1
- lusid/models/dividend_reinvestment_event.py +4 -2
- lusid/models/output_transaction.py +9 -2
- {lusid_sdk-2.0.432.dist-info → lusid_sdk-2.0.437.dist-info}/METADATA +3 -3
- {lusid_sdk-2.0.432.dist-info → lusid_sdk-2.0.437.dist-info}/RECORD +7 -7
- {lusid_sdk-2.0.432.dist-info → lusid_sdk-2.0.437.dist-info}/WHEEL +0 -0
lusid/configuration.py
CHANGED
|
@@ -373,7 +373,7 @@ class Configuration:
|
|
|
373
373
|
return "Python SDK Debug Report:\n"\
|
|
374
374
|
"OS: {env}\n"\
|
|
375
375
|
"Python Version: {pyversion}\n"\
|
|
376
|
-
"Version of the API: 0.11.
|
|
376
|
+
"Version of the API: 0.11.6384\n"\
|
|
377
377
|
"SDK Package Version: {package_version}".\
|
|
378
378
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
|
379
379
|
|
|
@@ -34,7 +34,7 @@ class DividendOptionEvent(InstrumentEvent):
|
|
|
34
34
|
payment_date: datetime = Field(..., alias="paymentDate", description="The date the company pays out dividends to shareholders.")
|
|
35
35
|
record_date: Optional[datetime] = Field(None, alias="recordDate", description="Date you have to be the holder of record in order to participate in the tender.")
|
|
36
36
|
security_elections: conlist(SecurityElection) = Field(..., alias="securityElections", description="SecurityElection for this DividendReinvestmentEvent")
|
|
37
|
-
security_settlement_date: Optional[datetime] = Field(None, alias="securitySettlementDate", description="
|
|
37
|
+
security_settlement_date: Optional[datetime] = Field(None, alias="securitySettlementDate", description="The settlement date of the additional units. Equal to the PaymentDate if not provided.")
|
|
38
38
|
instrument_event_type: StrictStr = Field(..., alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent")
|
|
39
39
|
additional_properties: Dict[str, Any] = {}
|
|
40
40
|
__properties = ["instrumentEventType", "announcementDate", "cashElections", "exDate", "paymentDate", "recordDate", "securityElections", "securitySettlementDate"]
|
|
@@ -34,9 +34,10 @@ class DividendReinvestmentEvent(InstrumentEvent):
|
|
|
34
34
|
payment_date: datetime = Field(..., alias="paymentDate", description="The date the company pays out dividends to shareholders.")
|
|
35
35
|
record_date: datetime = Field(..., alias="recordDate", description="Date you have to be the holder of record in order to participate in the tender.")
|
|
36
36
|
security_elections: conlist(SecurityElection) = Field(..., alias="securityElections", description="SecurityElection for this DividendReinvestmentEvent")
|
|
37
|
+
security_settlement_date: Optional[datetime] = Field(None, alias="securitySettlementDate", description="The settlement date of the additional units. Equal to the PaymentDate if not provided.")
|
|
37
38
|
instrument_event_type: StrictStr = Field(..., alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent")
|
|
38
39
|
additional_properties: Dict[str, Any] = {}
|
|
39
|
-
__properties = ["instrumentEventType", "announcementDate", "cashElections", "exDate", "paymentDate", "recordDate", "securityElections"]
|
|
40
|
+
__properties = ["instrumentEventType", "announcementDate", "cashElections", "exDate", "paymentDate", "recordDate", "securityElections", "securitySettlementDate"]
|
|
40
41
|
|
|
41
42
|
@validator('instrument_event_type')
|
|
42
43
|
def instrument_event_type_validate_enum(cls, value):
|
|
@@ -112,7 +113,8 @@ class DividendReinvestmentEvent(InstrumentEvent):
|
|
|
112
113
|
"ex_date": obj.get("exDate"),
|
|
113
114
|
"payment_date": obj.get("paymentDate"),
|
|
114
115
|
"record_date": obj.get("recordDate"),
|
|
115
|
-
"security_elections": [SecurityElection.from_dict(_item) for _item in obj.get("securityElections")] if obj.get("securityElections") is not None else None
|
|
116
|
+
"security_elections": [SecurityElection.from_dict(_item) for _item in obj.get("securityElections")] if obj.get("securityElections") is not None else None,
|
|
117
|
+
"security_settlement_date": obj.get("securitySettlementDate")
|
|
116
118
|
})
|
|
117
119
|
# store additional fields in additional_properties
|
|
118
120
|
for _key in obj.keys():
|
|
@@ -52,7 +52,8 @@ class OutputTransaction(BaseModel):
|
|
|
52
52
|
cancel_date_time: Optional[datetime] = Field(None, alias="cancelDateTime", description="If the transaction has been cancelled, the asAt datetime that the transaction was cancelled.")
|
|
53
53
|
realised_gain_loss: Optional[conlist(RealisedGainLoss)] = Field(None, alias="realisedGainLoss", description="The collection of realised gains or losses resulting from relevant transactions e.g. a sale transaction. The cost used in calculating the realised gain or loss is determined by the accounting method defined when the transaction portfolio is created.")
|
|
54
54
|
holding_ids: Optional[conlist(StrictInt)] = Field(None, alias="holdingIds", description="The collection of single identifiers for the holding within the portfolio. The holdingId is constructed from the LusidInstrumentId, sub-holding keys and currrency and is unique within the portfolio.")
|
|
55
|
-
|
|
55
|
+
source_type: Optional[StrictStr] = Field(None, alias="sourceType", description="The type of source that the transaction originated from, eg: InputTransaction, InstrumentEvent, HoldingAdjustment")
|
|
56
|
+
__properties = ["transactionId", "type", "description", "instrumentIdentifiers", "instrumentScope", "instrumentUid", "transactionDate", "settlementDate", "units", "transactionAmount", "transactionPrice", "totalConsideration", "exchangeRate", "transactionToPortfolioRate", "transactionCurrency", "properties", "counterpartyId", "source", "transactionStatus", "entryDateTime", "cancelDateTime", "realisedGainLoss", "holdingIds", "sourceType"]
|
|
56
57
|
|
|
57
58
|
@validator('transaction_status')
|
|
58
59
|
def transaction_status_validate_enum(cls, value):
|
|
@@ -163,6 +164,11 @@ class OutputTransaction(BaseModel):
|
|
|
163
164
|
if self.holding_ids is None and "holding_ids" in self.__fields_set__:
|
|
164
165
|
_dict['holdingIds'] = None
|
|
165
166
|
|
|
167
|
+
# set to None if source_type (nullable) is None
|
|
168
|
+
# and __fields_set__ contains the field
|
|
169
|
+
if self.source_type is None and "source_type" in self.__fields_set__:
|
|
170
|
+
_dict['sourceType'] = None
|
|
171
|
+
|
|
166
172
|
return _dict
|
|
167
173
|
|
|
168
174
|
@classmethod
|
|
@@ -202,6 +208,7 @@ class OutputTransaction(BaseModel):
|
|
|
202
208
|
"entry_date_time": obj.get("entryDateTime"),
|
|
203
209
|
"cancel_date_time": obj.get("cancelDateTime"),
|
|
204
210
|
"realised_gain_loss": [RealisedGainLoss.from_dict(_item) for _item in obj.get("realisedGainLoss")] if obj.get("realisedGainLoss") is not None else None,
|
|
205
|
-
"holding_ids": obj.get("holdingIds")
|
|
211
|
+
"holding_ids": obj.get("holdingIds"),
|
|
212
|
+
"source_type": obj.get("sourceType")
|
|
206
213
|
})
|
|
207
214
|
return _obj
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lusid-sdk
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.437
|
|
4
4
|
Summary: LUSID API
|
|
5
5
|
Home-page: https://github.com/finbourne/lusid-sdk-python
|
|
6
6
|
License: MIT
|
|
@@ -29,8 +29,8 @@ FINBOURNE Technology
|
|
|
29
29
|
|
|
30
30
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
31
31
|
|
|
32
|
-
- API version: 0.11.
|
|
33
|
-
- Package version: 2.0.
|
|
32
|
+
- API version: 0.11.6384
|
|
33
|
+
- Package version: 2.0.437
|
|
34
34
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
35
35
|
For more information, please visit [https://www.finbourne.com](https://www.finbourne.com)
|
|
36
36
|
|
|
@@ -62,7 +62,7 @@ lusid/api/transaction_portfolios_api.py,sha256=Q-RvuNmYL4drz4LeytNHRCmvrWwxfnPnT
|
|
|
62
62
|
lusid/api/translation_api.py,sha256=8_YL07_CYCI-FV4jMdiq7zlsDXqvkPMFQPyT6NL4jvU,20086
|
|
63
63
|
lusid/api_client.py,sha256=dF6l9RAsdxdQjf6Qn4ny6LB-QXlJmsscWiozCvyyBFA,30709
|
|
64
64
|
lusid/api_response.py,sha256=uCehWdXXDnAO2HAHGKe0SgpQ_mJiGDbcu-BHDF3n_IM,852
|
|
65
|
-
lusid/configuration.py,sha256=
|
|
65
|
+
lusid/configuration.py,sha256=TIFpNoc7isvrQS47WQBsWzsOIVOw-5tiXxQaQvoGFqU,14404
|
|
66
66
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
|
67
67
|
lusid/extensions/__init__.py,sha256=DeUuQP7yTcklJH7LT-bw9wQhKEggcs1KwQbPbFcOlhw,560
|
|
68
68
|
lusid/extensions/api_client.py,sha256=Ob06urm4Em3MLzgP_geyeeGsPCkU225msW_1kpIeABM,30567
|
|
@@ -324,8 +324,8 @@ lusid/models/diary_entry_request.py,sha256=NtBDV4DoHZwg_PWUA9ZzY0yDgcJpxjFctJUZA
|
|
|
324
324
|
lusid/models/discount_factor_curve_data.py,sha256=Pk21p7qmZWzCQsIQgXJjvo6L921IXzrbtJj3EJSW6dY,5519
|
|
325
325
|
lusid/models/discounting_dependency.py,sha256=wUyjXewg6ah4zIAIDX-LHrdKITcCAWhaRm2CEkctTJs,4374
|
|
326
326
|
lusid/models/discounting_method.py,sha256=MlWtNqjuA9R4G5hosNUyP5NgFDnzlOpVHgnRH44uo-k,734
|
|
327
|
-
lusid/models/dividend_option_event.py,sha256
|
|
328
|
-
lusid/models/dividend_reinvestment_event.py,sha256=
|
|
327
|
+
lusid/models/dividend_option_event.py,sha256=-jIgXaTqDQTQYsfmswdo_T35JOLr4DFFgw_JrmONtms,7204
|
|
328
|
+
lusid/models/dividend_reinvestment_event.py,sha256=N13sZI0mSJxkn-G2CJNEeVYzJcncVdjN5sCqo1HuV6Y,7090
|
|
329
329
|
lusid/models/economic_dependency.py,sha256=9mUx3tW4e50wN2tPqe39ysvm1Brwi1cnD2eAuL28Mm4,6093
|
|
330
330
|
lusid/models/economic_dependency_type.py,sha256=tx37PkXssBSTW8Rqm1PN8XFEKR4lEkTgnLwL0EvMh3k,1290
|
|
331
331
|
lusid/models/economic_dependency_with_complex_market_data.py,sha256=x04Yf6eqTCZ1nuIO-q9oPJr-1gPgO5UGpmDd99XyEvc,3048
|
|
@@ -560,7 +560,7 @@ lusid/models/order_instruction_set_request.py,sha256=Aw3xFGRyW274fyMLvOONNFIGuFk
|
|
|
560
560
|
lusid/models/order_request.py,sha256=jOkrT9ZrrBOG9Anv_Sa3dX9tkC_SbGK1jMf2vzQwZVo,7830
|
|
561
561
|
lusid/models/order_set_request.py,sha256=i2VqRUHpgTpCYZCtEEmw1u1-xiU6PazgPGq1yo_hu8k,2713
|
|
562
562
|
lusid/models/otc_confirmation.py,sha256=_WwQXhBs98ozWYfIIv-W8HC632j5lx0H44RcCtWHvyQ,2416
|
|
563
|
-
lusid/models/output_transaction.py,sha256=
|
|
563
|
+
lusid/models/output_transaction.py,sha256=3W_QDP55yTzy9HJeJ7SkQzJOq9DIe2W4Uh7oAp3zP2I,13329
|
|
564
564
|
lusid/models/output_transition.py,sha256=kosxo28VtD5GtDExAmp3j0fl6IBpajwL1wA7I2Z14u8,3982
|
|
565
565
|
lusid/models/package.py,sha256=AgfRHOtFGs2jnJw_x1X-EMjjOiBe8vmH1D-WUUQYhdQ,5450
|
|
566
566
|
lusid/models/package_request.py,sha256=2M0zbuGCQlqden-aVfk5jyVIAuJm9a-8agg-eobXlmY,4380
|
|
@@ -990,6 +990,6 @@ lusid/models/weighted_instruments.py,sha256=M2Mr7KTAcMS40g309xatBHDhvYk3g61yigx0
|
|
|
990
990
|
lusid/models/yield_curve_data.py,sha256=i2MHEJe9kdTTgxQFti2a6BAU7ikE0wTPXsS_sMJhrDk,6327
|
|
991
991
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
992
992
|
lusid/rest.py,sha256=gHQ76psf1vzmBJI14ZGVvb3f_Urp0zBBo3R5u3-kNIM,10032
|
|
993
|
-
lusid_sdk-2.0.
|
|
994
|
-
lusid_sdk-2.0.
|
|
995
|
-
lusid_sdk-2.0.
|
|
993
|
+
lusid_sdk-2.0.437.dist-info/METADATA,sha256=1f7GxuVjSfDcIaNDl0Wh1SIvhypRjpSx7CjDy8YZjXk,174449
|
|
994
|
+
lusid_sdk-2.0.437.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
995
|
+
lusid_sdk-2.0.437.dist-info/RECORD,,
|
|
File without changes
|