lusid-sdk 2.1.523__py3-none-any.whl → 2.1.527__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/__init__.py CHANGED
@@ -989,6 +989,7 @@ from lusid.models.result_value_dictionary import ResultValueDictionary
989
989
  from lusid.models.result_value_int import ResultValueInt
990
990
  from lusid.models.result_value_string import ResultValueString
991
991
  from lusid.models.result_value_type import ResultValueType
992
+ from lusid.models.return_zero_pv_options import ReturnZeroPvOptions
992
993
  from lusid.models.reverse_stock_split_event import ReverseStockSplitEvent
993
994
  from lusid.models.rounding_configuration import RoundingConfiguration
994
995
  from lusid.models.rounding_configuration_component import RoundingConfigurationComponent
@@ -2205,6 +2206,7 @@ __all__ = [
2205
2206
  "ResultValueInt",
2206
2207
  "ResultValueString",
2207
2208
  "ResultValueType",
2209
+ "ReturnZeroPvOptions",
2208
2210
  "ReverseStockSplitEvent",
2209
2211
  "RoundingConfiguration",
2210
2212
  "RoundingConfigurationComponent",
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.6952\n"\
448
+ "Version of the API: 0.11.6956\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/__init__.py CHANGED
@@ -908,6 +908,7 @@ from lusid.models.result_value_dictionary import ResultValueDictionary
908
908
  from lusid.models.result_value_int import ResultValueInt
909
909
  from lusid.models.result_value_string import ResultValueString
910
910
  from lusid.models.result_value_type import ResultValueType
911
+ from lusid.models.return_zero_pv_options import ReturnZeroPvOptions
911
912
  from lusid.models.reverse_stock_split_event import ReverseStockSplitEvent
912
913
  from lusid.models.rounding_configuration import RoundingConfiguration
913
914
  from lusid.models.rounding_configuration_component import RoundingConfigurationComponent
@@ -2044,6 +2045,7 @@ __all__ = [
2044
2045
  "ResultValueInt",
2045
2046
  "ResultValueString",
2046
2047
  "ResultValueType",
2048
+ "ReturnZeroPvOptions",
2047
2049
  "ReverseStockSplitEvent",
2048
2050
  "RoundingConfiguration",
2049
2051
  "RoundingConfigurationComponent",
@@ -21,6 +21,7 @@ import json
21
21
  from typing import Any, Dict, Optional
22
22
  from pydantic.v1 import BaseModel, Field, StrictBool, StrictStr
23
23
  from lusid.models.model_selection import ModelSelection
24
+ from lusid.models.return_zero_pv_options import ReturnZeroPvOptions
24
25
 
25
26
  class PricingOptions(BaseModel):
26
27
  """
@@ -37,7 +38,8 @@ class PricingOptions(BaseModel):
37
38
  use_child_sub_holding_keys_for_portfolio_expansion: Optional[StrictBool] = Field(None, alias="useChildSubHoldingKeysForPortfolioExpansion", description="Should fund constituents inherit subholding keys from the parent subholding keyb")
38
39
  validate_domestic_and_quote_currencies_are_consistent: Optional[StrictBool] = Field(None, alias="validateDomesticAndQuoteCurrenciesAreConsistent", description="Do we validate that the instrument domestic currency matches the quote currency (unless unknown/zzz) when using lookup pricing.")
39
40
  conserved_quantity_for_lookthrough_expansion: Optional[StrictStr] = Field(None, alias="conservedQuantityForLookthroughExpansion", description="When performing lookthrough portfolio expansion with ScalingMethodology set to \"Sum\" or \"AbsoluteSum\", the quantity specified here will be conserved and apportioned to lookthrough constituents. For example, an equal-weighting index with 100 constituents can be modelled as a reference portfolio with 1% weights on each equity. When expanding a $9000 holding of that index into its constituents while conserving PV, we end up with $90 of each equity. The number of units of each equity held is then implied. Note that conservation of one quantity may imply non-conservation of others, especially when some constituents are OTCs. Allowed values are: \"PV\" (default), \"Exposure\".")
40
- __properties = ["modelSelection", "useInstrumentTypeToDeterminePricer", "allowAnyInstrumentsWithSecUidToPriceOffLookup", "allowPartiallySuccessfulEvaluation", "produceSeparateResultForLinearOtcLegs", "enableUseOfCachedUnitResults", "windowValuationOnInstrumentStartEnd", "removeContingentCashflowsInPaymentDiary", "useChildSubHoldingKeysForPortfolioExpansion", "validateDomesticAndQuoteCurrenciesAreConsistent", "conservedQuantityForLookthroughExpansion"]
41
+ return_zero_pv: Optional[ReturnZeroPvOptions] = Field(None, alias="returnZeroPv")
42
+ __properties = ["modelSelection", "useInstrumentTypeToDeterminePricer", "allowAnyInstrumentsWithSecUidToPriceOffLookup", "allowPartiallySuccessfulEvaluation", "produceSeparateResultForLinearOtcLegs", "enableUseOfCachedUnitResults", "windowValuationOnInstrumentStartEnd", "removeContingentCashflowsInPaymentDiary", "useChildSubHoldingKeysForPortfolioExpansion", "validateDomesticAndQuoteCurrenciesAreConsistent", "conservedQuantityForLookthroughExpansion", "returnZeroPv"]
41
43
 
42
44
  class Config:
43
45
  """Pydantic configuration"""
@@ -66,6 +68,9 @@ class PricingOptions(BaseModel):
66
68
  # override the default output from pydantic by calling `to_dict()` of model_selection
67
69
  if self.model_selection:
68
70
  _dict['modelSelection'] = self.model_selection.to_dict()
71
+ # override the default output from pydantic by calling `to_dict()` of return_zero_pv
72
+ if self.return_zero_pv:
73
+ _dict['returnZeroPv'] = self.return_zero_pv.to_dict()
69
74
  # set to None if conserved_quantity_for_lookthrough_expansion (nullable) is None
70
75
  # and __fields_set__ contains the field
71
76
  if self.conserved_quantity_for_lookthrough_expansion is None and "conserved_quantity_for_lookthrough_expansion" in self.__fields_set__:
@@ -93,6 +98,7 @@ class PricingOptions(BaseModel):
93
98
  "remove_contingent_cashflows_in_payment_diary": obj.get("removeContingentCashflowsInPaymentDiary"),
94
99
  "use_child_sub_holding_keys_for_portfolio_expansion": obj.get("useChildSubHoldingKeysForPortfolioExpansion"),
95
100
  "validate_domestic_and_quote_currencies_are_consistent": obj.get("validateDomesticAndQuoteCurrenciesAreConsistent"),
96
- "conserved_quantity_for_lookthrough_expansion": obj.get("conservedQuantityForLookthroughExpansion")
101
+ "conserved_quantity_for_lookthrough_expansion": obj.get("conservedQuantityForLookthroughExpansion"),
102
+ "return_zero_pv": ReturnZeroPvOptions.from_dict(obj.get("returnZeroPv")) if obj.get("returnZeroPv") is not None else None
97
103
  })
98
104
  return _obj
@@ -0,0 +1,69 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ LUSID API
5
+
6
+ FINBOURNE Technology # noqa: E501
7
+
8
+ Contact: info@finbourne.com
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+
21
+ from typing import Any, Dict, Optional
22
+ from pydantic.v1 import BaseModel, Field, StrictBool
23
+
24
+ class ReturnZeroPvOptions(BaseModel):
25
+ """
26
+ Options to indicate which errors to ignore when performing valuation. # noqa: E501
27
+ """
28
+ instrument_matured: Optional[StrictBool] = Field(None, alias="instrumentMatured", description="Indicates whether attempting to value an instrument after its maturity date should produce a failure (false) or a zero PV (true).")
29
+ __properties = ["instrumentMatured"]
30
+
31
+ class Config:
32
+ """Pydantic configuration"""
33
+ allow_population_by_field_name = True
34
+ validate_assignment = True
35
+
36
+ def to_str(self) -> str:
37
+ """Returns the string representation of the model using alias"""
38
+ return pprint.pformat(self.dict(by_alias=True))
39
+
40
+ def to_json(self) -> str:
41
+ """Returns the JSON representation of the model using alias"""
42
+ return json.dumps(self.to_dict())
43
+
44
+ @classmethod
45
+ def from_json(cls, json_str: str) -> ReturnZeroPvOptions:
46
+ """Create an instance of ReturnZeroPvOptions from a JSON string"""
47
+ return cls.from_dict(json.loads(json_str))
48
+
49
+ def to_dict(self):
50
+ """Returns the dictionary representation of the model using alias"""
51
+ _dict = self.dict(by_alias=True,
52
+ exclude={
53
+ },
54
+ exclude_none=True)
55
+ return _dict
56
+
57
+ @classmethod
58
+ def from_dict(cls, obj: dict) -> ReturnZeroPvOptions:
59
+ """Create an instance of ReturnZeroPvOptions from a dict"""
60
+ if obj is None:
61
+ return None
62
+
63
+ if not isinstance(obj, dict):
64
+ return ReturnZeroPvOptions.parse_obj(obj)
65
+
66
+ _obj = ReturnZeroPvOptions.parse_obj({
67
+ "instrument_matured": obj.get("instrumentMatured")
68
+ })
69
+ return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lusid-sdk
3
- Version: 2.1.523
3
+ Version: 2.1.527
4
4
  Summary: LUSID API
5
5
  Home-page: https://github.com/finbourne/lusid-sdk-python
6
6
  License: MIT
@@ -1521,6 +1521,7 @@ Class | Method | HTTP request | Description
1521
1521
  - [ResultValueInt](docs/ResultValueInt.md)
1522
1522
  - [ResultValueString](docs/ResultValueString.md)
1523
1523
  - [ResultValueType](docs/ResultValueType.md)
1524
+ - [ReturnZeroPvOptions](docs/ReturnZeroPvOptions.md)
1524
1525
  - [ReverseStockSplitEvent](docs/ReverseStockSplitEvent.md)
1525
1526
  - [RoundingConfiguration](docs/RoundingConfiguration.md)
1526
1527
  - [RoundingConfigurationComponent](docs/RoundingConfigurationComponent.md)
@@ -1,4 +1,4 @@
1
- lusid/__init__.py,sha256=M51QxwtKG5tsQ9Ex8sHQ0nLm-YJfC6fHRxvrqgALY8c,127680
1
+ lusid/__init__.py,sha256=yPXjsyHElsjN704b4AjcQkgpKSiodr-dvBLHtQyc9y8,127775
2
2
  lusid/api/__init__.py,sha256=6h2et93uMZgjdpV3C3_ITp_VbSBlwYu5BtqZ2puZPoI,5821
3
3
  lusid/api/abor_api.py,sha256=CC0f6Aqqiqkgmpguvoqe8teU0bRRuc771AdUSyI4rJw,158222
4
4
  lusid/api/abor_configuration_api.py,sha256=TmssMn5ni0mZV1q7LyPXYhBqqUGJqLYZapo8By8DFuI,63875
@@ -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=nD1mcT5Eix4qnNKVgSJp3rtpJkmyEkPcfUOIT6VPPzg,17972
73
+ lusid/configuration.py,sha256=674GXyV-sUZuuoybGVbi6fIul7ydXmiqsZ5WqMhkRzI,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
@@ -85,7 +85,7 @@ lusid/extensions/rest.py,sha256=dp-bD_LMR2zAL1tmC3-urhWKLomXx7r5iGN1VteMBVQ,1601
85
85
  lusid/extensions/retry.py,sha256=EhW9OKJmGHipxN3H7eROH5DiMlAnfBVl95NQrttcsdg,14834
86
86
  lusid/extensions/socket_keep_alive.py,sha256=NGlqsv-E25IjJOLGZhXZY6kUdx51nEF8qCQyVdzayRk,1653
87
87
  lusid/extensions/tcp_keep_alive_connector.py,sha256=zaGtUsygRsxB1_4B3x39K3ILwztdhMLDv5bFZV7zmGE,3877
88
- lusid/models/__init__.py,sha256=Lj_JBjTe7aziFyKqWM4na8OG4FUHLKcDvQVKpkk1Yiw,120827
88
+ lusid/models/__init__.py,sha256=gjdbASYPO5GqcupeUCsVNggqTP4IH7Qjr2t6jF8NpGk,120922
89
89
  lusid/models/a2_b_breakdown.py,sha256=Txi12EIQw3mH6NM-25QkOnHSQc3BVAWrP7yl9bZswSY,2947
90
90
  lusid/models/a2_b_category.py,sha256=k6NPAACi0CUjKyhdQac4obQSrPmp2PXD6lkAtCnyEFM,2725
91
91
  lusid/models/a2_b_data_record.py,sha256=zKGS2P4fzNpzdcGJiSIpkY4P3d_jAcawYfyuPCDeQgk,9737
@@ -821,7 +821,7 @@ lusid/models/previous_nav.py,sha256=BJl9LoFEg12pAzrS8NGKm1OHRLyvxTHMeknfHCnPtRs,
821
821
  lusid/models/previous_share_class_breakdown.py,sha256=usEE_ZlKAXR805pSOd-PDlXCpobqyvKE_7l3p15eds0,2991
822
822
  lusid/models/pricing_context.py,sha256=khbODF5twy59dMWcXigOlqDvbHT4btCC2bhUX--XszI,7815
823
823
  lusid/models/pricing_model.py,sha256=hQrGV0w4BhaIiRED3kW3I37UkRop05d3IGHHwyPoFq4,1487
824
- lusid/models/pricing_options.py,sha256=ueSekxM9_XWSVd7uVELUtY86w-ul8WnLJR2gtTQm264,7961
824
+ lusid/models/pricing_options.py,sha256=x1FWYLGyuHtn_EMQTzZO-3RlBm9vEC6qS4NyCN7qImg,8457
825
825
  lusid/models/processed_command.py,sha256=YJ13QMu5M7XCkOqabOvkh3d-w_7P_2VEgRkliLsjTn4,2970
826
826
  lusid/models/property_definition.py,sha256=lcFiMp5z94xW5QY_6hHfpKyxUXW8gCuLUhGcf_cPBfw,17322
827
827
  lusid/models/property_definition_entity.py,sha256=DkWIm0ap4ib-FhBaWMHbxzwDVMlGFxnCO-oiWCHT7f8,7852
@@ -980,6 +980,7 @@ lusid/models/result_value_dictionary.py,sha256=9Y_LcAKrU_RY84gNBujObXEx59DYgtixO
980
980
  lusid/models/result_value_int.py,sha256=_tXdKUiNtsb10Wco7Hq8LCuUwab4HPyXBs3UQIkIrOE,4173
981
981
  lusid/models/result_value_string.py,sha256=FCe2SsB9fZAvvjqRNuxQFTsa5sth7-3TlBdWujqO-c4,3881
982
982
  lusid/models/result_value_type.py,sha256=CrOf0KEyx1VJIkAAyXjoGm8rcpSx26Gl_b5MgzZGqHU,1216
983
+ lusid/models/return_zero_pv_options.py,sha256=CedbP5yMZllWif8Xq5t7UdIA_jHrEq9RvNYSw_x6vE8,2160
983
984
  lusid/models/reverse_stock_split_event.py,sha256=pDJKSJk9u2LBnUrVJ18bjmIdKNYWfSm-4eeddPpcb0U,8902
984
985
  lusid/models/rounding_configuration.py,sha256=jpeBHvca82qlK64vSOkZD7azNRI3Z599lhpx66BKKcM,2297
985
986
  lusid/models/rounding_configuration_component.py,sha256=bLKRyNkrImXApHRSxODZ0Kp6-mX-JK9ycdOIFdr45g4,2111
@@ -1221,6 +1222,6 @@ lusid/models/workspace_update_request.py,sha256=uUXEpX-dJ5UiL9w1wMxIFeovSBiTJ-vi
1221
1222
  lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
1222
1223
  lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1223
1224
  lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
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,,
1225
+ lusid_sdk-2.1.527.dist-info/METADATA,sha256=wPO_R_wi5SMdykiJX2aNHUiH-h_QL0ZDzXiJHG_EGOc,208625
1226
+ lusid_sdk-2.1.527.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1227
+ lusid_sdk-2.1.527.dist-info/RECORD,,