lusid-sdk 2.1.966__py3-none-any.whl → 2.1.968__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 +1 -1
- lusid/models/instrument_event_instruction.py +8 -1
- lusid/models/instrument_event_instruction_request.py +9 -2
- lusid/models/quote_series_id.py +10 -2
- {lusid_sdk-2.1.966.dist-info → lusid_sdk-2.1.968.dist-info}/METADATA +1 -1
- {lusid_sdk-2.1.966.dist-info → lusid_sdk-2.1.968.dist-info}/RECORD +7 -7
- {lusid_sdk-2.1.966.dist-info → lusid_sdk-2.1.968.dist-info}/WHEEL +0 -0
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.8347\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
@@ -39,8 +39,9 @@ class InstrumentEventInstruction(BaseModel):
|
|
39
39
|
href: Optional[StrictStr] = Field(None,alias="href", description="The uri for this version of this instruction")
|
40
40
|
entitlement_date_instructed: Optional[datetime] = Field(None, alias="entitlementDateInstructed", description="The instructed entitlement date for the event (where none is set on the event itself)")
|
41
41
|
quantity_instructed: Optional[QuantityInstructed] = Field(None, alias="quantityInstructed")
|
42
|
+
tax_lot_id: Optional[StrictStr] = Field(None,alias="taxLotId", description="For loan facility holding instructions, the tax lot id of the holding for which the instruction will apply")
|
42
43
|
links: Optional[conlist(Link)] = None
|
43
|
-
__properties = ["instrumentEventInstructionId", "portfolioId", "instrumentEventId", "instructionType", "electionKey", "holdingId", "version", "href", "entitlementDateInstructed", "quantityInstructed", "links"]
|
44
|
+
__properties = ["instrumentEventInstructionId", "portfolioId", "instrumentEventId", "instructionType", "electionKey", "holdingId", "version", "href", "entitlementDateInstructed", "quantityInstructed", "taxLotId", "links"]
|
44
45
|
|
45
46
|
class Config:
|
46
47
|
"""Pydantic configuration"""
|
@@ -125,6 +126,11 @@ class InstrumentEventInstruction(BaseModel):
|
|
125
126
|
if self.entitlement_date_instructed is None and "entitlement_date_instructed" in self.__fields_set__:
|
126
127
|
_dict['entitlementDateInstructed'] = None
|
127
128
|
|
129
|
+
# set to None if tax_lot_id (nullable) is None
|
130
|
+
# and __fields_set__ contains the field
|
131
|
+
if self.tax_lot_id is None and "tax_lot_id" in self.__fields_set__:
|
132
|
+
_dict['taxLotId'] = None
|
133
|
+
|
128
134
|
# set to None if links (nullable) is None
|
129
135
|
# and __fields_set__ contains the field
|
130
136
|
if self.links is None and "links" in self.__fields_set__:
|
@@ -152,6 +158,7 @@ class InstrumentEventInstruction(BaseModel):
|
|
152
158
|
"href": obj.get("href"),
|
153
159
|
"entitlement_date_instructed": obj.get("entitlementDateInstructed"),
|
154
160
|
"quantity_instructed": QuantityInstructed.from_dict(obj.get("quantityInstructed")) if obj.get("quantityInstructed") is not None else None,
|
161
|
+
"tax_lot_id": obj.get("taxLotId"),
|
155
162
|
"links": [Link.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None
|
156
163
|
})
|
157
164
|
return _obj
|
@@ -33,7 +33,8 @@ class InstrumentEventInstructionRequest(BaseModel):
|
|
33
33
|
holding_id: Optional[StrictInt] = Field(None, alias="holdingId", description="For holding instructions, the id of the holding for which the instruction will apply")
|
34
34
|
entitlement_date_instructed: Optional[datetime] = Field(None, alias="entitlementDateInstructed", description="The instructed entitlement date for the event (where none is set on the event itself)")
|
35
35
|
quantity_instructed: Optional[QuantityInstructed] = Field(None, alias="quantityInstructed")
|
36
|
-
|
36
|
+
tax_lot_id: Optional[StrictStr] = Field(None,alias="taxLotId", description="For loan facility holding instructions, the tax lot id of the holding for which the instruction will apply")
|
37
|
+
__properties = ["instrumentEventInstructionId", "instrumentEventId", "instructionType", "electionKey", "holdingId", "entitlementDateInstructed", "quantityInstructed", "taxLotId"]
|
37
38
|
|
38
39
|
class Config:
|
39
40
|
"""Pydantic configuration"""
|
@@ -85,6 +86,11 @@ class InstrumentEventInstructionRequest(BaseModel):
|
|
85
86
|
if self.entitlement_date_instructed is None and "entitlement_date_instructed" in self.__fields_set__:
|
86
87
|
_dict['entitlementDateInstructed'] = None
|
87
88
|
|
89
|
+
# set to None if tax_lot_id (nullable) is None
|
90
|
+
# and __fields_set__ contains the field
|
91
|
+
if self.tax_lot_id is None and "tax_lot_id" in self.__fields_set__:
|
92
|
+
_dict['taxLotId'] = None
|
93
|
+
|
88
94
|
return _dict
|
89
95
|
|
90
96
|
@classmethod
|
@@ -103,6 +109,7 @@ class InstrumentEventInstructionRequest(BaseModel):
|
|
103
109
|
"election_key": obj.get("electionKey"),
|
104
110
|
"holding_id": obj.get("holdingId"),
|
105
111
|
"entitlement_date_instructed": obj.get("entitlementDateInstructed"),
|
106
|
-
"quantity_instructed": QuantityInstructed.from_dict(obj.get("quantityInstructed")) if obj.get("quantityInstructed") is not None else None
|
112
|
+
"quantity_instructed": QuantityInstructed.from_dict(obj.get("quantityInstructed")) if obj.get("quantityInstructed") is not None else None,
|
113
|
+
"tax_lot_id": obj.get("taxLotId")
|
107
114
|
})
|
108
115
|
return _obj
|
lusid/models/quote_series_id.py
CHANGED
@@ -31,7 +31,8 @@ class QuoteSeriesId(BaseModel):
|
|
31
31
|
instrument_id_type: StrictStr = Field(...,alias="instrumentIdType", description="The type of instrument identifier used to uniquely identify the instrument that the quote is for, e.g. 'Figi'. The available values are: LusidInstrumentId, Figi, RIC, QuotePermId, Isin, CurrencyPair, ClientInternal, Sedol, Cusip")
|
32
32
|
quote_type: StrictStr = Field(...,alias="quoteType", description="The type of the quote. This allows for quotes other than prices e.g. rates or spreads to be used. The available values are: Price, Spread, Rate, LogNormalVol, NormalVol, ParSpread, IsdaSpread, Upfront, Index, Ratio, Delta, PoolFactor, InflationAssumption, DirtyPrice, PrincipalWriteOff, InterestDeferred, InterestShortfall, ConstituentWeightFactor")
|
33
33
|
field: StrictStr = Field(...,alias="field", description="The field of the quote e.g. bid, mid, ask etc. This should be consistent across a time series of quotes. The allowed values depend on the provider according to the following rules: Client : *Any value is accepted*; DataScope : 'bid', 'mid', 'ask'; Lusid : *Any value is accepted*; Edi : 'bid', 'mid', 'ask', 'open', 'close', 'last'; TraderMade : 'bid', 'mid', 'ask', 'open', 'close', 'high', 'low'; FactSet : 'bid', 'mid', 'ask', 'open', 'close'; SIX : 'bid', 'mid', 'ask', 'open', 'close', 'last', 'referencePrice', 'highPrice', 'lowPrice', 'maxRedemptionPrice', 'maxSubscriptionPrice', 'openPrice', 'bestBidPrice', 'lastBidPrice', 'bestAskPrice', 'lastAskPrice', 'finalSettlementOptions', 'finalSettlementFutures', 'valuationPriceAmount'; Bloomberg : 'bid', 'mid', 'ask', 'open', 'close', 'last'; Rimes : 'bid', 'mid', 'ask', 'open', 'close', 'last'; ICE : 'ask', 'bid', 'close', 'high', 'low', 'open', 'primaryExchangeTradePrice', 'vwap', 'mid'; LSEG : 'ASK', 'BID', 'MID_PRICE'")
|
34
|
-
|
34
|
+
entity_unique_id: Optional[StrictStr] = Field(None,alias="entityUniqueId", description="The entity unique ID of the quote series. Together with the InstrumentId, EffectiveAt and AsAt this can uniquely identify a single quote. This field is readonly and cannot be provided on upsert.")
|
35
|
+
__properties = ["provider", "priceSource", "instrumentId", "instrumentIdType", "quoteType", "field", "entityUniqueId"]
|
35
36
|
|
36
37
|
@validator('instrument_id_type')
|
37
38
|
def instrument_id_type_validate_enum(cls, value):
|
@@ -181,6 +182,7 @@ class QuoteSeriesId(BaseModel):
|
|
181
182
|
"""Returns the dictionary representation of the model using alias"""
|
182
183
|
_dict = self.dict(by_alias=True,
|
183
184
|
exclude={
|
185
|
+
"entity_unique_id",
|
184
186
|
},
|
185
187
|
exclude_none=True)
|
186
188
|
# set to None if price_source (nullable) is None
|
@@ -188,6 +190,11 @@ class QuoteSeriesId(BaseModel):
|
|
188
190
|
if self.price_source is None and "price_source" in self.__fields_set__:
|
189
191
|
_dict['priceSource'] = None
|
190
192
|
|
193
|
+
# set to None if entity_unique_id (nullable) is None
|
194
|
+
# and __fields_set__ contains the field
|
195
|
+
if self.entity_unique_id is None and "entity_unique_id" in self.__fields_set__:
|
196
|
+
_dict['entityUniqueId'] = None
|
197
|
+
|
191
198
|
return _dict
|
192
199
|
|
193
200
|
@classmethod
|
@@ -205,6 +212,7 @@ class QuoteSeriesId(BaseModel):
|
|
205
212
|
"instrument_id": obj.get("instrumentId"),
|
206
213
|
"instrument_id_type": obj.get("instrumentIdType"),
|
207
214
|
"quote_type": obj.get("quoteType"),
|
208
|
-
"field": obj.get("field")
|
215
|
+
"field": obj.get("field"),
|
216
|
+
"entity_unique_id": obj.get("entityUniqueId")
|
209
217
|
})
|
210
218
|
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=WM7AC1UQjDbYJSZnWhJy-ZqpyGs1KLmVQYaxVALsA5U,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
|
@@ -650,8 +650,8 @@ lusid/models/instrument_entity.py,sha256=C7ns_KFrNOhKcttlAJsHHWgONz1-ViHn2W_F_OK
|
|
650
650
|
lusid/models/instrument_event.py,sha256=8zuZrEMWfAvLlRNfmbNHQpgu3LPLNXntm65rDNX68iY,18379
|
651
651
|
lusid/models/instrument_event_configuration.py,sha256=s-TnZT2QSQ3c27M9UAdjjEGhOL7snwWPC11YuxxMXpA,3016
|
652
652
|
lusid/models/instrument_event_holder.py,sha256=Vkr0SbAImbZ1eVpWeX5N7ztKT-BBBVaoxHdayZ8l9dQ,7531
|
653
|
-
lusid/models/instrument_event_instruction.py,sha256=
|
654
|
-
lusid/models/instrument_event_instruction_request.py,sha256=
|
653
|
+
lusid/models/instrument_event_instruction.py,sha256=F4OHYH3BUKoZVQeNnRl4BTC7Ozai4WeTT9r43Nki7MM,8068
|
654
|
+
lusid/models/instrument_event_instruction_request.py,sha256=RER-U-4lmeYdYqKLypZGmNseZlIjzo-UAepsGWvHhCI,5441
|
655
655
|
lusid/models/instrument_event_instructions_response.py,sha256=ylM6xtukZCKWoGeiVUbTglDPJi80oop1yMG6GxnkrFA,4216
|
656
656
|
lusid/models/instrument_event_type.py,sha256=RLPs8Gi6rCgdFBcpLKgNMBuUAddnen7O2DI4fMym5qI,4124
|
657
657
|
lusid/models/instrument_id_type_descriptor.py,sha256=GVAZ7MCdC9EB0s6Yk71WUu-gzyctY1hZqggE-R7J6QM,2779
|
@@ -972,7 +972,7 @@ lusid/models/quote_access_metadata_rule_id.py,sha256=P0qZPdCTH1O8ZKwFIVG_lqV_xM-
|
|
972
972
|
lusid/models/quote_dependency.py,sha256=OM9lo-nq1ytDmafBJ9P5d8TSPc3Z9A5FIdJA0nq08rg,7802
|
973
973
|
lusid/models/quote_id.py,sha256=w0SLJOhCtOB9GM2eFKdjeYerX3efm017Q_0UkhMSHh4,2628
|
974
974
|
lusid/models/quote_instrument_id_type.py,sha256=xLx1GjV_zFUIJcpw2JmCyWmzd9QR6S7ORFajcjtAHBw,886
|
975
|
-
lusid/models/quote_series_id.py,sha256=
|
975
|
+
lusid/models/quote_series_id.py,sha256=sEV2_OBUeeHLCUZW5xDglfI3xpxPe_l94mFfB3EONuo,13077
|
976
976
|
lusid/models/quote_type.py,sha256=PcgNMkDIwcHRwNejD4cQOKdo-NQfRDXb1Cr25QQvAKY,1144
|
977
977
|
lusid/models/raw_vendor_event.py,sha256=Bn12F_No3U2JVkXxZ5kJGP8Xq0JtjND9TQ2d5-osJ7s,12013
|
978
978
|
lusid/models/re_open_period_diary_entry_request.py,sha256=cbx4lBx2lCXSe2eaVTSMaDhWcPmBCg5WchApthismAc,2620
|
@@ -1393,6 +1393,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
|
|
1393
1393
|
lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
|
1394
1394
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1395
1395
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1396
|
-
lusid_sdk-2.1.
|
1397
|
-
lusid_sdk-2.1.
|
1398
|
-
lusid_sdk-2.1.
|
1396
|
+
lusid_sdk-2.1.968.dist-info/METADATA,sha256=1ymYKZitkwKTGIUMaAoNU_jH63nnApFN3P_oLewhAR4,234120
|
1397
|
+
lusid_sdk-2.1.968.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1398
|
+
lusid_sdk-2.1.968.dist-info/RECORD,,
|
File without changes
|