lusid-sdk 2.1.539__py3-none-any.whl → 2.1.541__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 +1 -1
- lusid/models/fund_valuation_point_data.py +1 -7
- lusid/models/previous_fund_valuation_point_data.py +3 -9
- {lusid_sdk-2.1.539.dist-info → lusid_sdk-2.1.541.dist-info}/METADATA +1 -1
- {lusid_sdk-2.1.539.dist-info → lusid_sdk-2.1.541.dist-info}/RECORD +6 -6
- {lusid_sdk-2.1.539.dist-info → lusid_sdk-2.1.541.dist-info}/WHEEL +0 -0
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.6970\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
@@ -24,7 +24,6 @@ from lusid.models.fee_accrual import FeeAccrual
|
|
24
24
|
from lusid.models.fund_amount import FundAmount
|
25
25
|
from lusid.models.fund_pnl_breakdown import FundPnlBreakdown
|
26
26
|
from lusid.models.previous_fund_valuation_point_data import PreviousFundValuationPointData
|
27
|
-
from lusid.models.unitisation_data import UnitisationData
|
28
27
|
|
29
28
|
class FundValuationPointData(BaseModel):
|
30
29
|
"""
|
@@ -36,10 +35,9 @@ class FundValuationPointData(BaseModel):
|
|
36
35
|
gav: Union[StrictFloat, StrictInt] = Field(..., description="The Gross Asset Value of the Fund or Share Class at the Valuation Point. This is effectively a summation of all Trial balance entries linked to accounts of types 'Asset' and 'Liabilities'.")
|
37
36
|
fees: Dict[str, FeeAccrual] = Field(..., description="Bucket of detail for any 'Fees' that have been charged in the selected period.")
|
38
37
|
nav: Union[StrictFloat, StrictInt] = Field(..., description="The Net Asset Value of the Fund or Share Class at the Valuation Point. This represents the GAV with any fees applied in the period.")
|
39
|
-
unitisation: Optional[UnitisationData] = None
|
40
38
|
miscellaneous: Optional[Dict[str, FundAmount]] = Field(None, description="Not used directly by the LUSID engines but serves as a holding area for any custom derived data points that may be useful in, for example, fee calculations).")
|
41
39
|
previous_valuation_point_data: Optional[PreviousFundValuationPointData] = Field(None, alias="previousValuationPointData")
|
42
|
-
__properties = ["backOut", "dealing", "pnL", "gav", "fees", "nav", "
|
40
|
+
__properties = ["backOut", "dealing", "pnL", "gav", "fees", "nav", "miscellaneous", "previousValuationPointData"]
|
43
41
|
|
44
42
|
class Config:
|
45
43
|
"""Pydantic configuration"""
|
@@ -89,9 +87,6 @@ class FundValuationPointData(BaseModel):
|
|
89
87
|
if self.fees[_key]:
|
90
88
|
_field_dict[_key] = self.fees[_key].to_dict()
|
91
89
|
_dict['fees'] = _field_dict
|
92
|
-
# override the default output from pydantic by calling `to_dict()` of unitisation
|
93
|
-
if self.unitisation:
|
94
|
-
_dict['unitisation'] = self.unitisation.to_dict()
|
95
90
|
# override the default output from pydantic by calling `to_dict()` of each value in miscellaneous (dict)
|
96
91
|
_field_dict = {}
|
97
92
|
if self.miscellaneous:
|
@@ -140,7 +135,6 @@ class FundValuationPointData(BaseModel):
|
|
140
135
|
if obj.get("fees") is not None
|
141
136
|
else None,
|
142
137
|
"nav": obj.get("nav"),
|
143
|
-
"unitisation": UnitisationData.from_dict(obj.get("unitisation")) if obj.get("unitisation") is not None else None,
|
144
138
|
"miscellaneous": dict(
|
145
139
|
(_k, FundAmount.from_dict(_v))
|
146
140
|
for _k, _v in obj.get("miscellaneous").items()
|
@@ -18,18 +18,16 @@ import re # noqa: F401
|
|
18
18
|
import json
|
19
19
|
|
20
20
|
|
21
|
-
from typing import Any, Dict
|
21
|
+
from typing import Any, Dict
|
22
22
|
from pydantic.v1 import BaseModel, Field
|
23
23
|
from lusid.models.fund_previous_nav import FundPreviousNAV
|
24
|
-
from lusid.models.unitisation_data import UnitisationData
|
25
24
|
|
26
25
|
class PreviousFundValuationPointData(BaseModel):
|
27
26
|
"""
|
28
27
|
The data for a Fund at the previous valuation point. # noqa: E501
|
29
28
|
"""
|
30
29
|
nav: FundPreviousNAV = Field(...)
|
31
|
-
|
32
|
-
__properties = ["nav", "unitisation"]
|
30
|
+
__properties = ["nav"]
|
33
31
|
|
34
32
|
class Config:
|
35
33
|
"""Pydantic configuration"""
|
@@ -58,9 +56,6 @@ class PreviousFundValuationPointData(BaseModel):
|
|
58
56
|
# override the default output from pydantic by calling `to_dict()` of nav
|
59
57
|
if self.nav:
|
60
58
|
_dict['nav'] = self.nav.to_dict()
|
61
|
-
# override the default output from pydantic by calling `to_dict()` of unitisation
|
62
|
-
if self.unitisation:
|
63
|
-
_dict['unitisation'] = self.unitisation.to_dict()
|
64
59
|
return _dict
|
65
60
|
|
66
61
|
@classmethod
|
@@ -73,7 +68,6 @@ class PreviousFundValuationPointData(BaseModel):
|
|
73
68
|
return PreviousFundValuationPointData.parse_obj(obj)
|
74
69
|
|
75
70
|
_obj = PreviousFundValuationPointData.parse_obj({
|
76
|
-
"nav": FundPreviousNAV.from_dict(obj.get("nav")) if obj.get("nav") is not None else None
|
77
|
-
"unitisation": UnitisationData.from_dict(obj.get("unitisation")) if obj.get("unitisation") is not None else None
|
71
|
+
"nav": FundPreviousNAV.from_dict(obj.get("nav")) if obj.get("nav") is not None else None
|
78
72
|
})
|
79
73
|
return _obj
|
@@ -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=
|
73
|
+
lusid/configuration.py,sha256=D793xe_pUrec-03R6CtcDdR6PwQ18d-zOKUr-2KEV5w,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
|
@@ -453,7 +453,7 @@ lusid/models/fund_previous_nav.py,sha256=Vd6qd-nvikHAMjutM1QSYA4xYGWz45NGyLyg2v8
|
|
453
453
|
lusid/models/fund_properties.py,sha256=f2PxknZIPrfAXR1MHSJxO1sdj_wNJfmulzYYEqdCByA,4242
|
454
454
|
lusid/models/fund_request.py,sha256=fBU3prGytCvKWfAzP0gHj4VUANarueKwB7r9evPoIEI,8345
|
455
455
|
lusid/models/fund_share_class.py,sha256=EFWN-DlNwKR1FMP0mfqgebj2dkKH3FFryYCBA4daSY4,7840
|
456
|
-
lusid/models/fund_valuation_point_data.py,sha256=
|
456
|
+
lusid/models/fund_valuation_point_data.py,sha256=IAo9WtREzoM9BG0R2cuQqaLsVP1ulYQetEF_7CSpQJk,6810
|
457
457
|
lusid/models/funding_leg.py,sha256=3IEyPKugTzHXlwu3l8ZKv5LNR2fOkxhyqnhzqtjCDLE,7565
|
458
458
|
lusid/models/funding_leg_options.py,sha256=_GxHVcvcsd96OaNcb7iHs43UUfrwVno_x2cNowUSwjw,3515
|
459
459
|
lusid/models/future.py,sha256=7A12Blu6Noyqd9JLKxFDSjGQNHcom4TAmZgj0zfB7e4,9194
|
@@ -816,7 +816,7 @@ lusid/models/posting_module_rule.py,sha256=MGCBOmedwF1hANp9_-lg8tynBYDdTWFDMkzzg
|
|
816
816
|
lusid/models/posting_module_rules_updated_response.py,sha256=qGQSPvvIjNJJr-F9YOXkQAEXYlsflzcaxMNzOX1tF3k,4288
|
817
817
|
lusid/models/pre_trade_configuration.py,sha256=OjyrngvMxxnF3Qf_a-YCF2Pe8URzV87s0WC3PsxcBVo,2371
|
818
818
|
lusid/models/premium.py,sha256=R2eYbrUmKAmxdWdmWGuUqg78Hm07y1iVBW7IRu4C92I,2200
|
819
|
-
lusid/models/previous_fund_valuation_point_data.py,sha256=
|
819
|
+
lusid/models/previous_fund_valuation_point_data.py,sha256=4S3tEpb3wtlmMHHtC1eUBLWLcxJlCgNzmrPPmakQFJk,2236
|
820
820
|
lusid/models/previous_nav.py,sha256=BJl9LoFEg12pAzrS8NGKm1OHRLyvxTHMeknfHCnPtRs,2086
|
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
|
@@ -1222,6 +1222,6 @@ lusid/models/workspace_update_request.py,sha256=uUXEpX-dJ5UiL9w1wMxIFeovSBiTJ-vi
|
|
1222
1222
|
lusid/models/yield_curve_data.py,sha256=SbxvdJ4-GWK9kpMdw4Fnxc7_kvIMwgsRsd_31UJn7nw,6330
|
1223
1223
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1224
1224
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1225
|
-
lusid_sdk-2.1.
|
1226
|
-
lusid_sdk-2.1.
|
1227
|
-
lusid_sdk-2.1.
|
1225
|
+
lusid_sdk-2.1.541.dist-info/METADATA,sha256=HFcKrBkASuGOP84Q6tRQzdD22mEkQ9v23_2at7LwOcM,208625
|
1226
|
+
lusid_sdk-2.1.541.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
1227
|
+
lusid_sdk-2.1.541.dist-info/RECORD,,
|
File without changes
|