lusid-sdk 2.1.922__py3-none-any.whl → 2.1.923__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/interest_rate_swaption.py +8 -3
- lusid/models/mark_to_market_conventions.py +16 -2
- {lusid_sdk-2.1.922.dist-info → lusid_sdk-2.1.923.dist-info}/METADATA +1 -1
- {lusid_sdk-2.1.922.dist-info → lusid_sdk-2.1.923.dist-info}/RECORD +6 -6
- {lusid_sdk-2.1.922.dist-info → lusid_sdk-2.1.923.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.8200\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
@@ -33,11 +33,12 @@ class InterestRateSwaption(LusidInstrument):
|
|
33
33
|
pay_or_receive_fixed: StrictStr = Field(...,alias="payOrReceiveFixed", description="Pay or Receive the fixed leg of the underlying swap. Supported string (enumeration) values are: [Pay, Receive].")
|
34
34
|
premium: Optional[Premium] = None
|
35
35
|
delivery_method: StrictStr = Field(...,alias="deliveryMethod", description="How does the option settle Supported string (enumeration) values are: [Cash, Physical].")
|
36
|
-
swap: InterestRateSwap =
|
36
|
+
swap: Optional[InterestRateSwap] = None
|
37
37
|
time_zone_conventions: Optional[TimeZoneConventions] = Field(None, alias="timeZoneConventions")
|
38
|
+
underlying: Optional[LusidInstrument] = None
|
38
39
|
instrument_type: StrictStr = Field(...,alias="instrumentType", description="The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan, TotalReturnSwap, InflationLeg, FundShareClass, FlexibleLoan, UnsettledCash, Cash, MasteredInstrument, LoanFacility, FlexibleDeposit, FlexibleRepo")
|
39
40
|
additional_properties: Dict[str, Any] = {}
|
40
|
-
__properties = ["instrumentType", "startDate", "payOrReceiveFixed", "premium", "deliveryMethod", "swap", "timeZoneConventions"]
|
41
|
+
__properties = ["instrumentType", "startDate", "payOrReceiveFixed", "premium", "deliveryMethod", "swap", "timeZoneConventions", "underlying"]
|
41
42
|
|
42
43
|
@validator('instrument_type')
|
43
44
|
def instrument_type_validate_enum(cls, value):
|
@@ -140,6 +141,9 @@ class InterestRateSwaption(LusidInstrument):
|
|
140
141
|
# override the default output from pydantic by calling `to_dict()` of time_zone_conventions
|
141
142
|
if self.time_zone_conventions:
|
142
143
|
_dict['timeZoneConventions'] = self.time_zone_conventions.to_dict()
|
144
|
+
# override the default output from pydantic by calling `to_dict()` of underlying
|
145
|
+
if self.underlying:
|
146
|
+
_dict['underlying'] = self.underlying.to_dict()
|
143
147
|
# puts key-value pairs in additional_properties in the top level
|
144
148
|
if self.additional_properties is not None:
|
145
149
|
for _key, _value in self.additional_properties.items():
|
@@ -163,7 +167,8 @@ class InterestRateSwaption(LusidInstrument):
|
|
163
167
|
"premium": Premium.from_dict(obj.get("premium")) if obj.get("premium") is not None else None,
|
164
168
|
"delivery_method": obj.get("deliveryMethod"),
|
165
169
|
"swap": InterestRateSwap.from_dict(obj.get("swap")) if obj.get("swap") is not None else None,
|
166
|
-
"time_zone_conventions": TimeZoneConventions.from_dict(obj.get("timeZoneConventions")) if obj.get("timeZoneConventions") is not None else None
|
170
|
+
"time_zone_conventions": TimeZoneConventions.from_dict(obj.get("timeZoneConventions")) if obj.get("timeZoneConventions") is not None else None,
|
171
|
+
"underlying": LusidInstrument.from_dict(obj.get("underlying")) if obj.get("underlying") is not None else None
|
167
172
|
})
|
168
173
|
# store additional fields in additional_properties
|
169
174
|
for _key in obj.keys():
|
@@ -26,7 +26,9 @@ class MarkToMarketConventions(BaseModel):
|
|
26
26
|
A set of conventions for mark to market. Mark to market is a method that values financial instruments based on current market prices, reflecting their current value, rather than historical cost. # noqa: E501
|
27
27
|
"""
|
28
28
|
calendar_code: Optional[StrictStr] = Field(None,alias="calendarCode", description="The calendar to use when generating mark to market cashflows and events.")
|
29
|
-
|
29
|
+
hour_offset_tenor: Optional[StrictStr] = Field(None,alias="hourOffsetTenor", description="The hour tenor component of the time offset against the maturity date. This is an optional field, if a value is provided it must be a positive value between '0hour' and '23hour'.")
|
30
|
+
minute_offset_tenor: Optional[StrictStr] = Field(None,alias="minuteOffsetTenor", description="The minute tenor component of the time offset against the maturity date. This is an optional field, if a value is provided it must be a positive value between '0min' and '59min'.")
|
31
|
+
__properties = ["calendarCode", "hourOffsetTenor", "minuteOffsetTenor"]
|
30
32
|
|
31
33
|
class Config:
|
32
34
|
"""Pydantic configuration"""
|
@@ -65,6 +67,16 @@ class MarkToMarketConventions(BaseModel):
|
|
65
67
|
if self.calendar_code is None and "calendar_code" in self.__fields_set__:
|
66
68
|
_dict['calendarCode'] = None
|
67
69
|
|
70
|
+
# set to None if hour_offset_tenor (nullable) is None
|
71
|
+
# and __fields_set__ contains the field
|
72
|
+
if self.hour_offset_tenor is None and "hour_offset_tenor" in self.__fields_set__:
|
73
|
+
_dict['hourOffsetTenor'] = None
|
74
|
+
|
75
|
+
# set to None if minute_offset_tenor (nullable) is None
|
76
|
+
# and __fields_set__ contains the field
|
77
|
+
if self.minute_offset_tenor is None and "minute_offset_tenor" in self.__fields_set__:
|
78
|
+
_dict['minuteOffsetTenor'] = None
|
79
|
+
|
68
80
|
return _dict
|
69
81
|
|
70
82
|
@classmethod
|
@@ -77,6 +89,8 @@ class MarkToMarketConventions(BaseModel):
|
|
77
89
|
return MarkToMarketConventions.parse_obj(obj)
|
78
90
|
|
79
91
|
_obj = MarkToMarketConventions.parse_obj({
|
80
|
-
"calendar_code": obj.get("calendarCode")
|
92
|
+
"calendar_code": obj.get("calendarCode"),
|
93
|
+
"hour_offset_tenor": obj.get("hourOffsetTenor"),
|
94
|
+
"minute_offset_tenor": obj.get("minuteOffsetTenor")
|
81
95
|
})
|
82
96
|
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=FnetvICx9qsZbGJyvDESuNYHpvd7882DIsu_g8yOg7A,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
|
@@ -666,7 +666,7 @@ lusid/models/instrument_resolution_detail.py,sha256=gi42e6JZRKr8rY9sofRepshFGP4o
|
|
666
666
|
lusid/models/instrument_search_property.py,sha256=uGrke27tAh7jyIXMIJ-VZ4tX7fk6bbWC0XuORLZLLnc,2535
|
667
667
|
lusid/models/instrument_type.py,sha256=OF57GiV4s6tAav76Ni18uUtwJOm7HqKGMQ7vEFTa93U,2139
|
668
668
|
lusid/models/interest_rate_swap.py,sha256=VYrTB1LaxMF9aJagZ6tEL0Hwd5ECfyp1fxKmm6-GcDk,12924
|
669
|
-
lusid/models/interest_rate_swaption.py,sha256=
|
669
|
+
lusid/models/interest_rate_swaption.py,sha256=9RAxCUnc9veDjvWWX-n6jDcR52UvPmATM-JbzD80zwM,10625
|
670
670
|
lusid/models/intermediate_compliance_step.py,sha256=n_y-NJKd4787d9W5b4_MBJ_9ShzH3q2zTA9AaeowM-Y,7723
|
671
671
|
lusid/models/intermediate_compliance_step_request.py,sha256=Va1ew-xImnr6NuDGT6cvREZoF-WAaXs3LwlNvonnsrs,6829
|
672
672
|
lusid/models/intermediate_securities_distribution_event.py,sha256=zGV1dURu3fWR-N6cePDYo-4Vv6AaScDdMV92B2kqaTY,15126
|
@@ -709,7 +709,7 @@ lusid/models/lusid_validation_problem_details.py,sha256=7J-d5JmrrZQ-4HF07xp4om47
|
|
709
709
|
lusid/models/mapped_string.py,sha256=vfLGPIaI21VLxNRjOYjxxMV8PrdWQAqqLA1_JxvA5aM,3248
|
710
710
|
lusid/models/mapping.py,sha256=GFQ3HryJQ6T5WJrBO1GfUwIBrtpqzouqZmM113cPXa0,3477
|
711
711
|
lusid/models/mapping_rule.py,sha256=y6MqGlbd4XEY50xfwT9xQpFXOASxUrVyNOp0RiWZ_6E,5229
|
712
|
-
lusid/models/mark_to_market_conventions.py,sha256=
|
712
|
+
lusid/models/mark_to_market_conventions.py,sha256=i0zKGTgPHcu9XO2-4J-hC4hwC2otXPnNEjurNI_FLkk,3916
|
713
713
|
lusid/models/market_context.py,sha256=N5ePFJA2G33zy1oGgWifd7V1UafKnQKqfEsQeXWa8X0,7828
|
714
714
|
lusid/models/market_context_suppliers.py,sha256=Ew7wwO1kctTrgcz5iwnz3Otl8YXJQgBpjL3---pLHso,2751
|
715
715
|
lusid/models/market_data_key_rule.py,sha256=WnTDRvEUhEXAV1KgjnyfFnrMbzE40nf8-7VywP3zD9A,13125
|
@@ -1383,6 +1383,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
|
|
1383
1383
|
lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
|
1384
1384
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1385
1385
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1386
|
-
lusid_sdk-2.1.
|
1387
|
-
lusid_sdk-2.1.
|
1388
|
-
lusid_sdk-2.1.
|
1386
|
+
lusid_sdk-2.1.923.dist-info/METADATA,sha256=WmOw_wMeGy847dEDUb426pgenD7F47MFzc1auYfkNOk,231791
|
1387
|
+
lusid_sdk-2.1.923.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1388
|
+
lusid_sdk-2.1.923.dist-info/RECORD,,
|
File without changes
|