lusid-sdk 2.1.522__py3-none-any.whl → 2.1.523__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.6951\n"\
448
+ "Version of the API: 0.11.6952\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -34,8 +34,8 @@ class EquityOption(LusidInstrument):
34
34
  option_type: constr(strict=True, min_length=1) = Field(..., alias="optionType", description="Type of optionality for the option Supported string (enumeration) values are: [Call, Put].")
35
35
  strike: Union[StrictFloat, StrictInt] = Field(..., description="The strike of the option.")
36
36
  dom_ccy: StrictStr = Field(..., alias="domCcy", description="The domestic currency of the instrument.")
37
- underlying_identifier: constr(strict=True, min_length=1) = Field(..., alias="underlyingIdentifier", description="The market identifier type of the underlying code, e.g RIC. Supported string (enumeration) values are: [LusidInstrumentId, Isin, Sedol, Cusip, ClientInternal, Figi, RIC, QuotePermId, REDCode, BBGId, ICECode].")
38
- code: constr(strict=True, min_length=1) = Field(..., description="The identifying code for the equity underlying, e.g. 'IBM.N'.")
37
+ underlying_identifier: Optional[StrictStr] = Field(None, alias="underlyingIdentifier", description="The market identifier type of the underlying code, e.g RIC. Supported string (enumeration) values are: [LusidInstrumentId, Isin, Sedol, Cusip, ClientInternal, Figi, RIC, QuotePermId, REDCode, BBGId, ICECode]. Optional field, should be used in combination with the Code field. Not compatible with the Underlying field.")
38
+ code: Optional[StrictStr] = Field(None, description="The identifying code for the equity underlying, e.g. 'IBM.N'. Optional field, should be used in combination with the UnderlyingIdentifier field. Not compatible with the Underlying field.")
39
39
  equity_option_type: Optional[StrictStr] = Field(None, alias="equityOptionType", description="Equity option types. E.g. Vanilla (default), RightsIssue, Warrant. Supported string (enumeration) values are: [Vanilla, RightsIssue, Warrant].")
40
40
  number_of_shares: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="numberOfShares", description="The amount of shares to exchange if the option is exercised.")
41
41
  premium: Optional[Premium] = None
@@ -88,6 +88,16 @@ class EquityOption(LusidInstrument):
88
88
  for _key, _value in self.additional_properties.items():
89
89
  _dict[_key] = _value
90
90
 
91
+ # set to None if underlying_identifier (nullable) is None
92
+ # and __fields_set__ contains the field
93
+ if self.underlying_identifier is None and "underlying_identifier" in self.__fields_set__:
94
+ _dict['underlyingIdentifier'] = None
95
+
96
+ # set to None if code (nullable) is None
97
+ # and __fields_set__ contains the field
98
+ if self.code is None and "code" in self.__fields_set__:
99
+ _dict['code'] = None
100
+
91
101
  # set to None if equity_option_type (nullable) is None
92
102
  # and __fields_set__ contains the field
93
103
  if self.equity_option_type is None and "equity_option_type" in self.__fields_set__:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.522
3
+ Version: 2.1.523
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -70,7 +70,7 @@ lusid/api/translation_api.py,sha256=nIyuLncCvVC5k2d7Nm32zR8AQ1dkrVm1OThkmELY_OM,
70
70
  lusid/api/workspace_api.py,sha256=mYQPqFUVf1VKYeWQUV5VkcdSqwejSmPDGd66Az86-_E,191319
71
71
  lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
72
72
  lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
73
- lusid/configuration.py,sha256=2UYpMCrsqIWdR13qMkY1XMCEQT2vCVmKApgdvXb4k_s,17972
73
+ lusid/configuration.py,sha256=nD1mcT5Eix4qnNKVgSJp3rtpJkmyEkPcfUOIT6VPPzg,17972
74
74
  lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
75
75
  lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
76
76
  lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
@@ -398,7 +398,7 @@ lusid/models/equity_all_of_identifiers.py,sha256=WrnLJAqy2KOa84viXXZ5tyVDjAlQZ7Z
398
398
  lusid/models/equity_curve_by_prices_data.py,sha256=bfvm9uAlWWiI_jhLacOXk-v_IvdyTF-pqkopNR0ZFss,5621
399
399
  lusid/models/equity_curve_dependency.py,sha256=bXyEO_TzvZtxmi16cFQYZwL9W6qApALe5pIHC4M8jRc,5028
400
400
  lusid/models/equity_model_options.py,sha256=taOqGGZiLmchhJRrv8wjvrKPKCh32njkp0DgfwAb7AE,3698
401
- lusid/models/equity_option.py,sha256=P7HA9TwaR2_FB53AjU2__OF5p_vXW1CYlquBvyufsIo,9253
401
+ lusid/models/equity_option.py,sha256=ZAuN7PXXEyQOgxKgy12vwa9iw1VDqa-VsKYm4klTIAE,9922
402
402
  lusid/models/equity_swap.py,sha256=7Cx4rwmc_EkIAuF8YODYDBATM17BuCRhL1TeeD2Mgog,9522
403
403
  lusid/models/equity_vol_dependency.py,sha256=GcZrPW9sJS5nKXBjVNjcUKIp4UDeovABErfg6uZXGH0,4909
404
404
  lusid/models/equity_vol_surface_data.py,sha256=INLwejaCYkya6fjf_rrG33B_z2FFcgFaIEwWUokfh2Y,5865
@@ -1221,6 +1221,6 @@ lusid/models/workspace_update_request.py,sha256=uUXEpX-dJ5UiL9w1wMxIFeovSBiTJ-vi
1221
1221
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1222
1222
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1223
1223
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1224
- lusid_sdk-2.1.522.dist-info/METADATA,sha256=PQcx2MBKKoFRL1SBSBR2npinG6nKCxZZnR8_hObCV8w,208571
1225
- lusid_sdk-2.1.522.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1226
- lusid_sdk-2.1.522.dist-info/RECORD,,
1224
+ lusid_sdk-2.1.523.dist-info/METADATA,sha256=j7H_4kd2YXoCe54sPo0R_vPDRpD5_ehTbBQnBfuw8X0,208571
1225
+ lusid_sdk-2.1.523.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1226
+ lusid_sdk-2.1.523.dist-info/RECORD,,