lusid-sdk 2.1.917__py3-none-any.whl → 2.1.918__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.
lusid/configuration.py
CHANGED
@@ -445,7 +445,7 @@ class Configuration:
|
|
445
445
|
return "Python SDK Debug Report:\n"\
|
446
446
|
"OS: {env}\n"\
|
447
447
|
"Python Version: {pyversion}\n"\
|
448
|
-
"Version of the API: 0.11.
|
448
|
+
"Version of the API: 0.11.8191\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
17
17
|
import re # noqa: F401
|
18
18
|
import json
|
19
19
|
|
20
|
-
|
20
|
+
from datetime import datetime
|
21
21
|
from typing import Any, Dict, List, Optional
|
22
22
|
from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictInt, StrictStr, conlist, constr, validator
|
23
23
|
from lusid.models.event_date_range import EventDateRange
|
@@ -41,7 +41,8 @@ class InstrumentEventHolder(BaseModel):
|
|
41
41
|
properties: Optional[conlist(PerpetualProperty)] = Field(None, description="The properties attached to this instrument event.")
|
42
42
|
sequence_number: Optional[StrictInt] = Field(None, alias="sequenceNumber", description="The order of the instrument event relative others on the same date (0 being processed first). Must be non negative.")
|
43
43
|
participation_type: Optional[StrictStr] = Field(None,alias="participationType", description="Is participation in this event Mandatory, MandatoryWithChoices, or Voluntary.")
|
44
|
-
|
44
|
+
as_at: Optional[datetime] = Field(None, alias="asAt", description="The AsAt time of the instrument event, if available. This is a readonly field and should not be provided on upsert.")
|
45
|
+
__properties = ["instrumentEventId", "corporateActionSourceId", "instrumentIdentifiers", "lusidInstrumentId", "instrumentScope", "description", "eventDateRange", "completeness", "instrumentEvent", "properties", "sequenceNumber", "participationType", "asAt"]
|
45
46
|
|
46
47
|
class Config:
|
47
48
|
"""Pydantic configuration"""
|
@@ -74,6 +75,7 @@ class InstrumentEventHolder(BaseModel):
|
|
74
75
|
_dict = self.dict(by_alias=True,
|
75
76
|
exclude={
|
76
77
|
"completeness",
|
78
|
+
"as_at",
|
77
79
|
},
|
78
80
|
exclude_none=True)
|
79
81
|
# override the default output from pydantic by calling `to_dict()` of corporate_action_source_id
|
@@ -107,6 +109,11 @@ class InstrumentEventHolder(BaseModel):
|
|
107
109
|
if self.participation_type is None and "participation_type" in self.__fields_set__:
|
108
110
|
_dict['participationType'] = None
|
109
111
|
|
112
|
+
# set to None if as_at (nullable) is None
|
113
|
+
# and __fields_set__ contains the field
|
114
|
+
if self.as_at is None and "as_at" in self.__fields_set__:
|
115
|
+
_dict['asAt'] = None
|
116
|
+
|
110
117
|
return _dict
|
111
118
|
|
112
119
|
@classmethod
|
@@ -130,6 +137,7 @@ class InstrumentEventHolder(BaseModel):
|
|
130
137
|
"instrument_event": InstrumentEvent.from_dict(obj.get("instrumentEvent")) if obj.get("instrumentEvent") is not None else None,
|
131
138
|
"properties": [PerpetualProperty.from_dict(_item) for _item in obj.get("properties")] if obj.get("properties") is not None else None,
|
132
139
|
"sequence_number": obj.get("sequenceNumber"),
|
133
|
-
"participation_type": obj.get("participationType") if obj.get("participationType") is not None else 'Mandatory'
|
140
|
+
"participation_type": obj.get("participationType") if obj.get("participationType") is not None else 'Mandatory',
|
141
|
+
"as_at": obj.get("asAt")
|
134
142
|
})
|
135
143
|
return _obj
|
@@ -80,7 +80,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
|
|
80
80
|
lusid/api/workspace_api.py,sha256=0pCNi3ZCRbIo0NXKa85XE7vtq0WV5YOKcQKvFlcLUaY,120708
|
81
81
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
82
82
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
83
|
-
lusid/configuration.py,sha256=
|
83
|
+
lusid/configuration.py,sha256=BfDNB1GQf1IVgIyIwiJJxp_0gmObxxvTE4vUXPJtofU,17980
|
84
84
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
85
85
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
86
86
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -646,7 +646,7 @@ lusid/models/instrument_delete_modes.py,sha256=pRnKhwXly5wA6KEnvvphzEBS6ThT-iuuh
|
|
646
646
|
lusid/models/instrument_entity.py,sha256=C7ns_KFrNOhKcttlAJsHHWgONz1-ViHn2W_F_OKe4DI,7708
|
647
647
|
lusid/models/instrument_event.py,sha256=twcL8OoHZwpAzXeFDuz8J_CC0n1swEZ3ZGeq06xaOoM,18160
|
648
648
|
lusid/models/instrument_event_configuration.py,sha256=s-TnZT2QSQ3c27M9UAdjjEGhOL7snwWPC11YuxxMXpA,3016
|
649
|
-
lusid/models/instrument_event_holder.py,sha256=
|
649
|
+
lusid/models/instrument_event_holder.py,sha256=Vkr0SbAImbZ1eVpWeX5N7ztKT-BBBVaoxHdayZ8l9dQ,7531
|
650
650
|
lusid/models/instrument_event_instruction.py,sha256=2Qh6fG5EBEc0VOgpvbhyZTqeaCXClfRoU3kmhJSYoZM,7601
|
651
651
|
lusid/models/instrument_event_instruction_request.py,sha256=IkJ9mxVvOYYyd-QxYcaJFrbneCawTE7yWy0AJukJMss,4974
|
652
652
|
lusid/models/instrument_event_instructions_response.py,sha256=ylM6xtukZCKWoGeiVUbTglDPJi80oop1yMG6GxnkrFA,4216
|
@@ -1380,6 +1380,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
|
|
1380
1380
|
lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
|
1381
1381
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1382
1382
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1383
|
-
lusid_sdk-2.1.
|
1384
|
-
lusid_sdk-2.1.
|
1385
|
-
lusid_sdk-2.1.
|
1383
|
+
lusid_sdk-2.1.918.dist-info/METADATA,sha256=H6XDvo_9CRz2n8VYIOgkM73y5ficxyxH6eGarpZzPwY,231223
|
1384
|
+
lusid_sdk-2.1.918.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1385
|
+
lusid_sdk-2.1.918.dist-info/RECORD,,
|
File without changes
|