lusid-sdk 2.2.4__py3-none-any.whl → 2.2.6__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
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.8425\n"\
|
|
449
449
|
"SDK Package Version: {package_version}".\
|
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
|
451
451
|
|
lusid/models/float_schedule.py
CHANGED
|
@@ -48,9 +48,11 @@ class FloatSchedule(Schedule):
|
|
|
48
48
|
compounding: Optional[Compounding] = None
|
|
49
49
|
reset_convention: Optional[StrictStr] = Field(None,alias="resetConvention", description="Control how resets are generated relative to payment convention(s). Supported string (enumeration) values are: [InAdvance, InArrears]. Defaults to \"InAdvance\" if not set.")
|
|
50
50
|
use_annualised_direct_rates: Optional[StrictBool] = Field(default=None, description="Flag indicating whether to use daily updated annualised interest rates for calculating the accrued interest. Defaults to false.", alias="useAnnualisedDirectRates")
|
|
51
|
+
cap_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The maximum floating rate which a cashflow can accrue.", alias="capRate")
|
|
52
|
+
floor_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The minimum floating rate which a cashflow can accrue.", alias="floorRate")
|
|
51
53
|
schedule_type: StrictStr = Field(...,alias="scheduleType", description="The available values are: FixedSchedule, FloatSchedule, OptionalitySchedule, StepSchedule, Exercise, FxRateSchedule, FxLinkedNotionalSchedule, BondConversionSchedule, Invalid")
|
|
52
54
|
additional_properties: Dict[str, Any] = {}
|
|
53
|
-
__properties = ["scheduleType", "startDate", "maturityDate", "flowConventions", "conventionName", "exDividendDays", "indexConventionName", "indexConventions", "notional", "paymentCurrency", "spread", "stubType", "exDividendConfiguration", "compounding", "resetConvention", "useAnnualisedDirectRates"]
|
|
55
|
+
__properties = ["scheduleType", "startDate", "maturityDate", "flowConventions", "conventionName", "exDividendDays", "indexConventionName", "indexConventions", "notional", "paymentCurrency", "spread", "stubType", "exDividendConfiguration", "compounding", "resetConvention", "useAnnualisedDirectRates", "capRate", "floorRate"]
|
|
54
56
|
|
|
55
57
|
@validator('schedule_type')
|
|
56
58
|
def schedule_type_validate_enum(cls, value):
|
|
@@ -189,6 +191,16 @@ class FloatSchedule(Schedule):
|
|
|
189
191
|
if self.reset_convention is None and "reset_convention" in self.__fields_set__:
|
|
190
192
|
_dict['resetConvention'] = None
|
|
191
193
|
|
|
194
|
+
# set to None if cap_rate (nullable) is None
|
|
195
|
+
# and __fields_set__ contains the field
|
|
196
|
+
if self.cap_rate is None and "cap_rate" in self.__fields_set__:
|
|
197
|
+
_dict['capRate'] = None
|
|
198
|
+
|
|
199
|
+
# set to None if floor_rate (nullable) is None
|
|
200
|
+
# and __fields_set__ contains the field
|
|
201
|
+
if self.floor_rate is None and "floor_rate" in self.__fields_set__:
|
|
202
|
+
_dict['floorRate'] = None
|
|
203
|
+
|
|
192
204
|
return _dict
|
|
193
205
|
|
|
194
206
|
@classmethod
|
|
@@ -216,7 +228,9 @@ class FloatSchedule(Schedule):
|
|
|
216
228
|
"ex_dividend_configuration": ExDividendConfiguration.from_dict(obj.get("exDividendConfiguration")) if obj.get("exDividendConfiguration") is not None else None,
|
|
217
229
|
"compounding": Compounding.from_dict(obj.get("compounding")) if obj.get("compounding") is not None else None,
|
|
218
230
|
"reset_convention": obj.get("resetConvention"),
|
|
219
|
-
"use_annualised_direct_rates": obj.get("useAnnualisedDirectRates")
|
|
231
|
+
"use_annualised_direct_rates": obj.get("useAnnualisedDirectRates"),
|
|
232
|
+
"cap_rate": obj.get("capRate"),
|
|
233
|
+
"floor_rate": obj.get("floorRate")
|
|
220
234
|
})
|
|
221
235
|
# store additional fields in additional_properties
|
|
222
236
|
for _key in obj.keys():
|
|
@@ -81,7 +81,7 @@ lusid/api/translation_api.py,sha256=ykq--aAObjON30cqkCgtlvNVN_X9o1kCFHBuhx0TqOY,
|
|
|
81
81
|
lusid/api/workspace_api.py,sha256=cIVlsVXulKjrNIF1NMaEH11-YRF3gOmLN6KaXVeECnk,120530
|
|
82
82
|
lusid/api_client.py,sha256=9ShwOKmMJEOUj82dVLKP8CIkwu0aGV2H5qwGxTVJp7w,31170
|
|
83
83
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
|
84
|
-
lusid/configuration.py,sha256=
|
|
84
|
+
lusid/configuration.py,sha256=CP5SYNQruJbXKrBQmEHmrnpbw2USgGPWyNBMrBa3vYk,17980
|
|
85
85
|
lusid/exceptions.py,sha256=lYAJyHpruxMPUtZ95NwiYJvqzInY8S0yhRE0-JFYCww,5873
|
|
86
86
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
|
87
87
|
lusid/extensions/api_client.py,sha256=cq0kCulu3hsJ7jMPQfsE8B6FIa8ppTSXqneHo19RrXQ,30973
|
|
@@ -514,7 +514,7 @@ lusid/models/flexible_repo_collateral_event.py,sha256=s26CXw36KXLxeQMPgUvMbAQggN
|
|
|
514
514
|
lusid/models/flexible_repo_full_closure_event.py,sha256=XrtnXy0_C7cZkRLZ2JHlR1duuFCeXq8l8EghJqou_78,12372
|
|
515
515
|
lusid/models/flexible_repo_interest_payment_event.py,sha256=bfEnG0ocgQCC0s7JX6UGhqoSv0IwlbroSA-PWuvWIHw,13150
|
|
516
516
|
lusid/models/flexible_repo_partial_closure_event.py,sha256=g0oz51kXBVTPdma-gIzPOifsybX43FmmZl4G-VWGx5k,15260
|
|
517
|
-
lusid/models/float_schedule.py,sha256=
|
|
517
|
+
lusid/models/float_schedule.py,sha256=NqJ6rhfY-Ry65AIXEkg5UCRX6wRSnzpXKlD-pu15uzc,15765
|
|
518
518
|
lusid/models/floating_leg.py,sha256=Uagy6SHAIfkMpIUkKWJ5Fd_ed3Up5aHrfglWcMHLVGQ,12196
|
|
519
519
|
lusid/models/flow_convention_name.py,sha256=mTFG2MI2ZOVLjCfeGAOZTyOth73ObB5Iut11YHbcmQs,3264
|
|
520
520
|
lusid/models/flow_conventions.py,sha256=0atD8Qlhww_O9fwAbXHX3Yr28yHRscFLMBZ6hzjbbF8,10908
|
|
@@ -1412,6 +1412,6 @@ lusid/models/year_month_day.py,sha256=H4OeBzWuMg6mwiOAHFfAvrzjd3QrFCqx1ldsB4L9YQ
|
|
|
1412
1412
|
lusid/models/yield_curve_data.py,sha256=VDizz9-Ry0ujzY4SdeaRCeaUYjdvTtv0gwE9gaH7cAM,10096
|
|
1413
1413
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1414
1414
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
|
1415
|
-
lusid_sdk-2.2.
|
|
1416
|
-
lusid_sdk-2.2.
|
|
1417
|
-
lusid_sdk-2.2.
|
|
1415
|
+
lusid_sdk-2.2.6.dist-info/METADATA,sha256=kVP147wdZhYgvmuSacq2W4oAm5IJYtzHJFTTz5IUub4,237027
|
|
1416
|
+
lusid_sdk-2.2.6.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
1417
|
+
lusid_sdk-2.2.6.dist-info/RECORD,,
|
|
File without changes
|