lusid-sdk 2.1.612__py3-none-any.whl → 2.1.613__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.7136\n"\
448
+ "Version of the API: 0.11.7140\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -18,8 +18,8 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
  from datetime import datetime
21
- from typing import Any, Dict, Optional, Union
22
- from pydantic.v1 import Field, StrictFloat, StrictInt, StrictStr, constr, validator
21
+ from typing import Any, Dict, List, Optional, Union
22
+ from pydantic.v1 import Field, StrictFloat, StrictInt, StrictStr, conlist, constr, validator
23
23
  from lusid.models.lusid_instrument import LusidInstrument
24
24
  from lusid.models.premium import Premium
25
25
 
@@ -41,9 +41,12 @@ class EquityOption(LusidInstrument):
41
41
  premium: Optional[Premium] = None
42
42
  exercise_type: Optional[StrictStr] = Field(None, alias="exerciseType", description="Type of optionality that is present; European, American. Supported string (enumeration) values are: [European, American].")
43
43
  underlying: Optional[LusidInstrument] = None
44
+ delivery_days: Optional[StrictInt] = Field(None, alias="deliveryDays", description="Number of business days between exercise date and settlement of the option payoff or underlying.")
45
+ business_day_convention: Optional[StrictStr] = Field(None, alias="businessDayConvention", description="Business day convention for option exercise date to settlement date calculation. Supported string (enumeration) values are: [NoAdjustment, Previous, P, Following, F, ModifiedPrevious, MP, ModifiedFollowing, MF, HalfMonthModifiedFollowing, Nearest].")
46
+ settlement_calendars: Optional[conlist(StrictStr)] = Field(None, alias="settlementCalendars", description="Holiday calendars for option exercise date to settlement date calculation.")
44
47
  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")
45
48
  additional_properties: Dict[str, Any] = {}
46
- __properties = ["instrumentType", "startDate", "optionMaturityDate", "optionSettlementDate", "deliveryType", "optionType", "strike", "domCcy", "underlyingIdentifier", "code", "equityOptionType", "numberOfShares", "premium", "exerciseType", "underlying"]
49
+ __properties = ["instrumentType", "startDate", "optionMaturityDate", "optionSettlementDate", "deliveryType", "optionType", "strike", "domCcy", "underlyingIdentifier", "code", "equityOptionType", "numberOfShares", "premium", "exerciseType", "underlying", "deliveryDays", "businessDayConvention", "settlementCalendars"]
47
50
 
48
51
  @validator('instrument_type')
49
52
  def instrument_type_validate_enum(cls, value):
@@ -118,6 +121,16 @@ class EquityOption(LusidInstrument):
118
121
  if self.exercise_type is None and "exercise_type" in self.__fields_set__:
119
122
  _dict['exerciseType'] = None
120
123
 
124
+ # set to None if business_day_convention (nullable) is None
125
+ # and __fields_set__ contains the field
126
+ if self.business_day_convention is None and "business_day_convention" in self.__fields_set__:
127
+ _dict['businessDayConvention'] = None
128
+
129
+ # set to None if settlement_calendars (nullable) is None
130
+ # and __fields_set__ contains the field
131
+ if self.settlement_calendars is None and "settlement_calendars" in self.__fields_set__:
132
+ _dict['settlementCalendars'] = None
133
+
121
134
  return _dict
122
135
 
123
136
  @classmethod
@@ -144,7 +157,10 @@ class EquityOption(LusidInstrument):
144
157
  "number_of_shares": obj.get("numberOfShares"),
145
158
  "premium": Premium.from_dict(obj.get("premium")) if obj.get("premium") is not None else None,
146
159
  "exercise_type": obj.get("exerciseType"),
147
- "underlying": LusidInstrument.from_dict(obj.get("underlying")) if obj.get("underlying") is not None else None
160
+ "underlying": LusidInstrument.from_dict(obj.get("underlying")) if obj.get("underlying") is not None else None,
161
+ "delivery_days": obj.get("deliveryDays"),
162
+ "business_day_convention": obj.get("businessDayConvention"),
163
+ "settlement_calendars": obj.get("settlementCalendars")
148
164
  })
149
165
  # store additional fields in additional_properties
150
166
  for _key in obj.keys():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.612
3
+ Version: 2.1.613
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -72,7 +72,7 @@ lusid/api/translation_api.py,sha256=nIyuLncCvVC5k2d7Nm32zR8AQ1dkrVm1OThkmELY_OM,
72
72
  lusid/api/workspace_api.py,sha256=Yox1q7TDY-_O3HF-N8g5kGuNgp4unWvlSZmRZ6MNZO0,196701
73
73
  lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
74
74
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
75
- lusid/configuration.py,sha256=pDq3N2IO8GV-mtT6zk3E2l-PyJ2wKbdVzcZLjNClGmA,17972
75
+ lusid/configuration.py,sha256=7jEMyD0TDcMVZEviLVaUalFTGzJSHfH28k72vLvjG-M,17972
76
76
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
77
77
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
78
78
  lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
@@ -410,7 +410,7 @@ lusid/models/equity_all_of_identifiers.py,sha256=WrnLJAqy2KOa84viXXZ5tyVDjAlQZ7Z
410
410
  lusid/models/equity_curve_by_prices_data.py,sha256=bfvm9uAlWWiI_jhLacOXk-v_IvdyTF-pqkopNR0ZFss,5621
411
411
  lusid/models/equity_curve_dependency.py,sha256=bXyEO_TzvZtxmi16cFQYZwL9W6qApALe5pIHC4M8jRc,5028
412
412
  lusid/models/equity_model_options.py,sha256=taOqGGZiLmchhJRrv8wjvrKPKCh32njkp0DgfwAb7AE,3698
413
- lusid/models/equity_option.py,sha256=-b-VWWqTGxpDl4j0AqjS8Tz4C6hKu1hBExcsfFYMM7s,10253
413
+ lusid/models/equity_option.py,sha256=X_JXSjrz_XZDIIXkTB7a1kkaRh_ibOpc4wekAvJMNW4,11788
414
414
  lusid/models/equity_swap.py,sha256=sac-mZFsC-AcomMrUsqoZ4z1fGmdfx5j8b-41wiCAh8,10836
415
415
  lusid/models/equity_vol_dependency.py,sha256=GcZrPW9sJS5nKXBjVNjcUKIp4UDeovABErfg6uZXGH0,4909
416
416
  lusid/models/equity_vol_surface_data.py,sha256=INLwejaCYkya6fjf_rrG33B_z2FFcgFaIEwWUokfh2Y,5865
@@ -1250,6 +1250,6 @@ lusid/models/workspace_update_request.py,sha256=uUXEpX-dJ5UiL9w1wMxIFeovSBiTJ-vi
1250
1250
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1251
1251
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1252
1252
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1253
- lusid_sdk-2.1.612.dist-info/METADATA,sha256=bR6liTbu7SxVzRwMpFwuWxPeXI6h-zuAGW5vzluxymw,213430
1254
- lusid_sdk-2.1.612.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1255
- lusid_sdk-2.1.612.dist-info/RECORD,,
1253
+ lusid_sdk-2.1.613.dist-info/METADATA,sha256=L4E2--mhBAlBdd7zCJ27KS2V7CdKEzEnfsmfRSs0mys,213430
1254
+ lusid_sdk-2.1.613.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
1255
+ lusid_sdk-2.1.613.dist-info/RECORD,,