lusid-sdk 2.1.595__py3-none-any.whl → 2.1.597__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.7077\n"\
448
+ "Version of the API: 0.11.7082\n"\
449
449
  "SDK Package Version: {package_version}".\
450
450
  format(env=sys.platform, pyversion=sys.version, package_version=package_version)
451
451
 
@@ -29,7 +29,7 @@ class EquityOption(LusidInstrument):
29
29
  """
30
30
  start_date: datetime = Field(..., alias="startDate", description="The start date of the instrument. This is normally synonymous with the trade-date.")
31
31
  option_maturity_date: datetime = Field(..., alias="optionMaturityDate", description="The maturity date of the option.")
32
- option_settlement_date: datetime = Field(..., alias="optionSettlementDate", description="The settlement date of the option.")
32
+ option_settlement_date: Optional[datetime] = Field(None, alias="optionSettlementDate", description="The settlement date of the option.")
33
33
  delivery_type: constr(strict=True, min_length=1) = Field(..., alias="deliveryType", description="Is the option cash settled or physical delivery of option Supported string (enumeration) values are: [Cash, Physical].")
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.")
@@ -88,6 +88,11 @@ 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 option_settlement_date (nullable) is None
92
+ # and __fields_set__ contains the field
93
+ if self.option_settlement_date is None and "option_settlement_date" in self.__fields_set__:
94
+ _dict['optionSettlementDate'] = None
95
+
91
96
  # set to None if underlying_identifier (nullable) is None
92
97
  # and __fields_set__ contains the field
93
98
  if self.underlying_identifier is None and "underlying_identifier" in self.__fields_set__:
@@ -29,7 +29,7 @@ class InterestRateSwaption(LusidInstrument):
29
29
  LUSID representation of an Interest Rate Swaption. # noqa: E501
30
30
  """
31
31
  start_date: datetime = Field(..., alias="startDate", description="The start date of the instrument. This is normally synonymous with the trade-date.")
32
- pay_or_receive_fixed: constr(strict=True, min_length=1) = Field(..., alias="payOrReceiveFixed", description="True if on exercise the holder of the option enters the swap paying fixed, false if floating. Supported string (enumeration) values are: [Pay, Receive].")
32
+ pay_or_receive_fixed: constr(strict=True, min_length=1) = Field(..., alias="payOrReceiveFixed", description="Pay or Receive the fixed leg of the underlying swap. Supported string (enumeration) values are: [Pay, Receive].")
33
33
  premium: Optional[Premium] = None
34
34
  delivery_method: constr(strict=True, min_length=1) = Field(..., alias="deliveryMethod", description="How does the option settle Supported string (enumeration) values are: [Cash, Physical].")
35
35
  swap: InterestRateSwap = Field(...)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.595
3
+ Version: 2.1.597
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=b-jcuMexWLztP8uhb3Vpo9R2vSDYXFp81M6oBxGPW6Q,17972
73
+ lusid/configuration.py,sha256=dDE5mEAU0gLE1xi5NsTmsVZihR7h6P7E_ZC5HeOsJ1A,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
@@ -401,7 +401,7 @@ lusid/models/equity_all_of_identifiers.py,sha256=WrnLJAqy2KOa84viXXZ5tyVDjAlQZ7Z
401
401
  lusid/models/equity_curve_by_prices_data.py,sha256=bfvm9uAlWWiI_jhLacOXk-v_IvdyTF-pqkopNR0ZFss,5621
402
402
  lusid/models/equity_curve_dependency.py,sha256=bXyEO_TzvZtxmi16cFQYZwL9W6qApALe5pIHC4M8jRc,5028
403
403
  lusid/models/equity_model_options.py,sha256=taOqGGZiLmchhJRrv8wjvrKPKCh32njkp0DgfwAb7AE,3698
404
- lusid/models/equity_option.py,sha256=ZAuN7PXXEyQOgxKgy12vwa9iw1VDqa-VsKYm4klTIAE,9922
404
+ lusid/models/equity_option.py,sha256=QJa9_3l9SXEo44PUicTYkqunX48OUP8GVcQ-BOB_eLI,10198
405
405
  lusid/models/equity_swap.py,sha256=GlpM1bw0FAqpWhi_LaOgOlCdYTpc5DmhOnbOZ840J10,10781
406
406
  lusid/models/equity_vol_dependency.py,sha256=GcZrPW9sJS5nKXBjVNjcUKIp4UDeovABErfg6uZXGH0,4909
407
407
  lusid/models/equity_vol_surface_data.py,sha256=INLwejaCYkya6fjf_rrG33B_z2FFcgFaIEwWUokfh2Y,5865
@@ -593,7 +593,7 @@ lusid/models/instrument_resolution_detail.py,sha256=glEyZuZ2H965P3XHNiWNMsP-31v-
593
593
  lusid/models/instrument_search_property.py,sha256=yQNCLmODfYEkps4RPRfU30ZM6WMyGCR-oLMyHNhSPh4,2297
594
594
  lusid/models/instrument_type.py,sha256=fKBxcVqkJA5KVocOe7yZtBhFUJFht6LtKbgrlSyFOBk,2065
595
595
  lusid/models/interest_rate_swap.py,sha256=eSnamsyshjo46jgslTx87Cz8KHDgVhktCxTkAl_xfWE,9002
596
- lusid/models/interest_rate_swaption.py,sha256=u2w04LaM9W74KjaZgiPW_wDdl1A7_nx7iPNOwS8agEY,6420
596
+ lusid/models/interest_rate_swaption.py,sha256=LbKpW_jnkeRVu12Cl8nN4NDevBddp3ew4kIKUhwlOM8,6379
597
597
  lusid/models/intermediate_compliance_step.py,sha256=T6P2hdd-otQCQJMz3avj8_NmTvlI5CVz3Us3VY3ejK0,4461
598
598
  lusid/models/intermediate_compliance_step_request.py,sha256=cx9WUvfU_jlcOv3RskTeEyn8_WE72Kvfi1KBaqHF9AE,3859
599
599
  lusid/models/intermediate_securities_distribution_event.py,sha256=tU-BEKDUSmFY0zKjNK5yMSlrrAoGtaLR6BFA2HP029o,10243
@@ -1232,6 +1232,6 @@ lusid/models/workspace_update_request.py,sha256=uUXEpX-dJ5UiL9w1wMxIFeovSBiTJ-vi
1232
1232
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1233
1233
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1234
1234
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
1235
- lusid_sdk-2.1.595.dist-info/METADATA,sha256=Cwa-6NzRHZYk4LiqHF5Whz-0L3fWXd-E2yqaBFyDMmI,210110
1236
- lusid_sdk-2.1.595.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1237
- lusid_sdk-2.1.595.dist-info/RECORD,,
1235
+ lusid_sdk-2.1.597.dist-info/METADATA,sha256=I4zdNOlitujkoJnNFkllltz7E2-a6vdslXExcGsCqZg,210110
1236
+ lusid_sdk-2.1.597.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1237
+ lusid_sdk-2.1.597.dist-info/RECORD,,