lusid-sdk 2.1.537__py3-none-any.whl → 2.1.542__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/mastered_instrument.py +10 -10
- lusid/models/previous_fund_valuation_point_data.py +3 -9
- {lusid_sdk-2.1.537.dist-info → lusid_sdk-2.1.542.dist-info}/METADATA +1 -1
- {lusid_sdk-2.1.537.dist-info → lusid_sdk-2.1.542.dist-info}/RECORD +7 -7
- {lusid_sdk-2.1.537.dist-info → lusid_sdk-2.1.542.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.6971\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()
|
@@ -27,15 +27,15 @@ class MasteredInstrument(LusidInstrument):
|
|
27
27
|
LUSID representation of a reference to another instrument that has already been upserted (Mastered) # noqa: E501
|
28
28
|
"""
|
29
29
|
identifiers: Dict[str, StrictStr] = Field(..., description="Dictionary of identifiers of the mastered instrument")
|
30
|
-
asset_class: Optional[StrictStr] = Field(None, alias="assetClass", description="Asset class of the mastered instrument - read only field Supported string (enumeration) values are: [InterestRates, FX, Inflation, Equities, Credit, Commodities, Money].")
|
31
30
|
mastered_dom_ccy: Optional[StrictStr] = Field(None, alias="masteredDomCcy", description="DomCcy of the Instrument that Mastered Instrument points to - read only field")
|
32
31
|
mastered_instrument_type: Optional[StrictStr] = Field(None, alias="masteredInstrumentType", description="Type of the Instrument that Mastered Instrument points to - read only field")
|
33
32
|
mastered_lusid_instrument_id: Optional[StrictStr] = Field(None, alias="masteredLusidInstrumentId", description="Luid of the Instrument that Mastered Instrument points to - read only field")
|
34
33
|
mastered_name: Optional[StrictStr] = Field(None, alias="masteredName", description="Name of the Instrument that Mastered Instrument points to - read only field")
|
35
34
|
mastered_scope: Optional[StrictStr] = Field(None, alias="masteredScope", description="Scope of the Instrument that Mastered Instrument points to - read only field")
|
35
|
+
mastered_asset_class: Optional[StrictStr] = Field(None, alias="masteredAssetClass", description="Asset class of the underlying mastered instrument - read only field Supported string (enumeration) values are: [InterestRates, FX, Inflation, Equities, Credit, Commodities, Money].")
|
36
36
|
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")
|
37
37
|
additional_properties: Dict[str, Any] = {}
|
38
|
-
__properties = ["instrumentType", "identifiers", "
|
38
|
+
__properties = ["instrumentType", "identifiers", "masteredDomCcy", "masteredInstrumentType", "masteredLusidInstrumentId", "masteredName", "masteredScope", "masteredAssetClass"]
|
39
39
|
|
40
40
|
@validator('instrument_type')
|
41
41
|
def instrument_type_validate_enum(cls, value):
|
@@ -66,12 +66,12 @@ class MasteredInstrument(LusidInstrument):
|
|
66
66
|
"""Returns the dictionary representation of the model using alias"""
|
67
67
|
_dict = self.dict(by_alias=True,
|
68
68
|
exclude={
|
69
|
-
"asset_class",
|
70
69
|
"mastered_dom_ccy",
|
71
70
|
"mastered_instrument_type",
|
72
71
|
"mastered_lusid_instrument_id",
|
73
72
|
"mastered_name",
|
74
73
|
"mastered_scope",
|
74
|
+
"mastered_asset_class",
|
75
75
|
"additional_properties"
|
76
76
|
},
|
77
77
|
exclude_none=True)
|
@@ -80,11 +80,6 @@ class MasteredInstrument(LusidInstrument):
|
|
80
80
|
for _key, _value in self.additional_properties.items():
|
81
81
|
_dict[_key] = _value
|
82
82
|
|
83
|
-
# set to None if asset_class (nullable) is None
|
84
|
-
# and __fields_set__ contains the field
|
85
|
-
if self.asset_class is None and "asset_class" in self.__fields_set__:
|
86
|
-
_dict['assetClass'] = None
|
87
|
-
|
88
83
|
# set to None if mastered_dom_ccy (nullable) is None
|
89
84
|
# and __fields_set__ contains the field
|
90
85
|
if self.mastered_dom_ccy is None and "mastered_dom_ccy" in self.__fields_set__:
|
@@ -110,6 +105,11 @@ class MasteredInstrument(LusidInstrument):
|
|
110
105
|
if self.mastered_scope is None and "mastered_scope" in self.__fields_set__:
|
111
106
|
_dict['masteredScope'] = None
|
112
107
|
|
108
|
+
# set to None if mastered_asset_class (nullable) is None
|
109
|
+
# and __fields_set__ contains the field
|
110
|
+
if self.mastered_asset_class is None and "mastered_asset_class" in self.__fields_set__:
|
111
|
+
_dict['masteredAssetClass'] = None
|
112
|
+
|
113
113
|
return _dict
|
114
114
|
|
115
115
|
@classmethod
|
@@ -124,12 +124,12 @@ class MasteredInstrument(LusidInstrument):
|
|
124
124
|
_obj = MasteredInstrument.parse_obj({
|
125
125
|
"instrument_type": obj.get("instrumentType"),
|
126
126
|
"identifiers": obj.get("identifiers"),
|
127
|
-
"asset_class": obj.get("assetClass"),
|
128
127
|
"mastered_dom_ccy": obj.get("masteredDomCcy"),
|
129
128
|
"mastered_instrument_type": obj.get("masteredInstrumentType"),
|
130
129
|
"mastered_lusid_instrument_id": obj.get("masteredLusidInstrumentId"),
|
131
130
|
"mastered_name": obj.get("masteredName"),
|
132
|
-
"mastered_scope": obj.get("masteredScope")
|
131
|
+
"mastered_scope": obj.get("masteredScope"),
|
132
|
+
"mastered_asset_class": obj.get("masteredAssetClass")
|
133
133
|
})
|
134
134
|
# store additional fields in additional_properties
|
135
135
|
for _key in obj.keys():
|
@@ -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=v0K1S-8BbeAFz_rJ6izA1g1NcocFf1B2N7zl2aSv77o,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
|
@@ -632,7 +632,7 @@ lusid/models/market_data_type.py,sha256=4NyCfdwiQjP1MZK_SovXB6IVrspTU56JhmxfSdNR
|
|
632
632
|
lusid/models/market_observable_type.py,sha256=E1cl-6yHelmR1b7CarmYNgRHWxhPrFknNrXZlwYywAk,801
|
633
633
|
lusid/models/market_options.py,sha256=peTygbETrHWKcKnKsn4ItPbgu0PidKG8d2U-DCApCAo,6247
|
634
634
|
lusid/models/market_quote.py,sha256=Ra6tOiimR6Rdf7pAESEWW2IMZG669jU8eNje8NepYZg,3325
|
635
|
-
lusid/models/mastered_instrument.py,sha256=
|
635
|
+
lusid/models/mastered_instrument.py,sha256=_rU_hnyOjoLsIBHObjwHV45uNsZehTIwAlgLx9hQLe4,8553
|
636
636
|
lusid/models/match_criterion.py,sha256=cnLfFgO9k05dH7ooGS7s3d8BvyJNuVMDUh3Yt-SPuec,3568
|
637
637
|
lusid/models/maturity_event.py,sha256=9_uOG-DWCQOnQAThPblhY11H03ll-epk3Dz4dBApxyQ,6059
|
638
638
|
lusid/models/mbs_coupon_event.py,sha256=vysCVFRrWsv8rKRrUHB_luNlrhfDQILkauWrbAxYIQI,6966
|
@@ -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.542.dist-info/METADATA,sha256=kNpYQdZ5nFtyYi8JdK8pz72INCfLUVwMB3W_ac2ZwaQ,208625
|
1226
|
+
lusid_sdk-2.1.542.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
1227
|
+
lusid_sdk-2.1.542.dist-info/RECORD,,
|
File without changes
|