lusid-sdk 2.1.763__py3-none-any.whl → 2.1.765__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.
|
448
|
+
"Version of the API: 0.11.7681\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
@@ -49,7 +49,8 @@ class PortfolioHolding(BaseModel):
|
|
49
49
|
variation_margin: Optional[CurrencyAndAmount] = Field(None, alias="variationMargin")
|
50
50
|
variation_margin_portfolio_ccy: Optional[CurrencyAndAmount] = Field(None, alias="variationMarginPortfolioCcy")
|
51
51
|
settlement_schedule: Optional[conlist(SettlementSchedule)] = Field(None, alias="settlementSchedule", description="Where no. of days ahead has been specified, future dated settlements will be captured here.")
|
52
|
-
|
52
|
+
current_face: Optional[Union[StrictFloat, StrictInt]] = Field(None, alias="currentFace", description="Current face value of the holding.")
|
53
|
+
__properties = ["instrumentScope", "instrumentUid", "subHoldingKeys", "properties", "holdingType", "units", "settledUnits", "cost", "costPortfolioCcy", "transaction", "currency", "holdingTypeName", "holdingId", "notionalCost", "amortisedCost", "amortisedCostPortfolioCcy", "variationMargin", "variationMarginPortfolioCcy", "settlementSchedule", "currentFace"]
|
53
54
|
|
54
55
|
class Config:
|
55
56
|
"""Pydantic configuration"""
|
@@ -163,6 +164,11 @@ class PortfolioHolding(BaseModel):
|
|
163
164
|
if self.settlement_schedule is None and "settlement_schedule" in self.__fields_set__:
|
164
165
|
_dict['settlementSchedule'] = None
|
165
166
|
|
167
|
+
# set to None if current_face (nullable) is None
|
168
|
+
# and __fields_set__ contains the field
|
169
|
+
if self.current_face is None and "current_face" in self.__fields_set__:
|
170
|
+
_dict['currentFace'] = None
|
171
|
+
|
166
172
|
return _dict
|
167
173
|
|
168
174
|
@classmethod
|
@@ -203,6 +209,7 @@ class PortfolioHolding(BaseModel):
|
|
203
209
|
"amortised_cost_portfolio_ccy": CurrencyAndAmount.from_dict(obj.get("amortisedCostPortfolioCcy")) if obj.get("amortisedCostPortfolioCcy") is not None else None,
|
204
210
|
"variation_margin": CurrencyAndAmount.from_dict(obj.get("variationMargin")) if obj.get("variationMargin") is not None else None,
|
205
211
|
"variation_margin_portfolio_ccy": CurrencyAndAmount.from_dict(obj.get("variationMarginPortfolioCcy")) if obj.get("variationMarginPortfolioCcy") is not None else None,
|
206
|
-
"settlement_schedule": [SettlementSchedule.from_dict(_item) for _item in obj.get("settlementSchedule")] if obj.get("settlementSchedule") is not None else None
|
212
|
+
"settlement_schedule": [SettlementSchedule.from_dict(_item) for _item in obj.get("settlementSchedule")] if obj.get("settlementSchedule") is not None else None,
|
213
|
+
"current_face": obj.get("currentFace")
|
207
214
|
})
|
208
215
|
return _obj
|
@@ -74,7 +74,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
|
|
74
74
|
lusid/api/workspace_api.py,sha256=QmcywrL34lbVo4CbSwyyJDh0kRG7Gt91xrQB0ShqQQQ,106017
|
75
75
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
76
76
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
77
|
-
lusid/configuration.py,sha256=
|
77
|
+
lusid/configuration.py,sha256=e18WfBGF523SMPvJ5tgmFhd4xYle0QKFBQ_eO5T-Mso,17972
|
78
78
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
79
79
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
80
80
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -850,7 +850,7 @@ lusid/models/portfolio_group_id_list.py,sha256=Ut0V-XU9IxYuRRGbrpzVpr83AuwIEIZyh
|
|
850
850
|
lusid/models/portfolio_group_id_list_compliance_parameter.py,sha256=FSWPqI7dssGPfuGjqGmwwHHBBhzqtLgdpk6NBc3H5KI,8956
|
851
851
|
lusid/models/portfolio_group_properties.py,sha256=DGPpb19PXQ_xWy-3LSFccVQlIBWY_N3UTLGsrLcsi5A,4590
|
852
852
|
lusid/models/portfolio_group_search_result.py,sha256=GLbW7yd1XS6-h8as8SWlAx5SNr3uDyp5bcIkoPk31ws,6532
|
853
|
-
lusid/models/portfolio_holding.py,sha256=
|
853
|
+
lusid/models/portfolio_holding.py,sha256=eSfSFTH609Px5yroV5L2oZ12R0McXNaL4c6u26Z5fcU,12296
|
854
854
|
lusid/models/portfolio_id.py,sha256=pHaI4JYkUuTj4wRJ1UP3D1an6TspSSaVHq1_Ro0z98g,2644
|
855
855
|
lusid/models/portfolio_id_compliance_parameter.py,sha256=kon3agx_EblIE74VMQ1_I8ckPGOROrikZ3a1SUlEO_w,8875
|
856
856
|
lusid/models/portfolio_id_list.py,sha256=k-uuFaw_iC0rvM0p8NWmuYBxsDvUXa5qsdWLHngQdjU,6989
|
@@ -1298,6 +1298,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
|
|
1298
1298
|
lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
|
1299
1299
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1300
1300
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1301
|
-
lusid_sdk-2.1.
|
1302
|
-
lusid_sdk-2.1.
|
1303
|
-
lusid_sdk-2.1.
|
1301
|
+
lusid_sdk-2.1.765.dist-info/METADATA,sha256=JhaTwISlW-qdZPU1SvmC4TUieB689m9g-_ukHfxxUkg,217812
|
1302
|
+
lusid_sdk-2.1.765.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1303
|
+
lusid_sdk-2.1.765.dist-info/RECORD,,
|
File without changes
|