lusid-sdk 2.3.8__py3-none-any.whl → 2.3.10__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/drawdown_event.py +4 -2
- lusid/models/nav_type_definition.py +9 -2
- lusid/models/upsert_valuation_point_request.py +4 -2
- {lusid_sdk-2.3.8.dist-info → lusid_sdk-2.3.10.dist-info}/METADATA +1 -1
- {lusid_sdk-2.3.8.dist-info → lusid_sdk-2.3.10.dist-info}/RECORD +7 -7
- {lusid_sdk-2.3.8.dist-info → lusid_sdk-2.3.10.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.8719\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/drawdown_event.py
CHANGED
|
@@ -32,9 +32,10 @@ class DrawdownEvent(InstrumentEvent):
|
|
|
32
32
|
amount: Union[StrictFloat, StrictInt] = Field(description="Amount to be drawn down. Must be positive.")
|
|
33
33
|
var_date: Optional[datetime] = Field(default=None, description="Date of the drawdown", alias="date")
|
|
34
34
|
contract_details: ContractDetails = Field(alias="contractDetails")
|
|
35
|
+
agency_fx_rate: Optional[Union[StrictFloat, StrictInt]] = Field(default=1, description="Agency FX rate for multi-currency drawdowns. When a drawdown is in a currency that's different to the facility's, an agency FX rate is specified for converting drawdown amount into facility currency to alter the facility's balance. Default value of 1.", alias="agencyFxRate")
|
|
35
36
|
instrument_event_type: StrictStr = Field(...,alias="instrumentEventType", description="The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent, CapitalDistributionEvent, SpinOffEvent, MergerEvent, FutureExpiryEvent, SwapCashFlowEvent, SwapPrincipalEvent, CreditPremiumCashFlowEvent, CdsCreditEvent, CdxCreditEvent, MbsCouponEvent, MbsPrincipalEvent, BonusIssueEvent, MbsPrincipalWriteOffEvent, MbsInterestDeferralEvent, MbsInterestShortfallEvent, TenderEvent, CallOnIntermediateSecuritiesEvent, IntermediateSecuritiesDistributionEvent, OptionExercisePhysicalEvent, OptionExerciseCashEvent, ProtectionPayoutCashFlowEvent, TermDepositInterestEvent, TermDepositPrincipalEvent, EarlyRedemptionEvent, FutureMarkToMarketEvent, AdjustGlobalCommitmentEvent, ContractInitialisationEvent, DrawdownEvent, LoanInterestRepaymentEvent, UpdateDepositAmountEvent, LoanPrincipalRepaymentEvent, DepositInterestPaymentEvent, DepositCloseEvent, LoanFacilityContractRolloverEvent, RepurchaseOfferEvent, RepoPartialClosureEvent, RepoCashFlowEvent, FlexibleRepoInterestPaymentEvent, FlexibleRepoCashFlowEvent, FlexibleRepoCollateralEvent, ConversionEvent, FlexibleRepoPartialClosureEvent, FlexibleRepoFullClosureEvent, CapletFloorletCashFlowEvent, EarlyCloseOutEvent, DepositRollEvent")
|
|
36
37
|
additional_properties: Dict[str, Any] = {}
|
|
37
|
-
__properties = ["instrumentEventType", "amount", "date", "contractDetails"]
|
|
38
|
+
__properties = ["instrumentEventType", "amount", "date", "contractDetails", "agencyFxRate"]
|
|
38
39
|
|
|
39
40
|
@validator('instrument_event_type')
|
|
40
41
|
def instrument_event_type_validate_enum(cls, value):
|
|
@@ -158,7 +159,8 @@ class DrawdownEvent(InstrumentEvent):
|
|
|
158
159
|
"instrument_event_type": obj.get("instrumentEventType"),
|
|
159
160
|
"amount": obj.get("amount"),
|
|
160
161
|
"var_date": obj.get("date"),
|
|
161
|
-
"contract_details": ContractDetails.from_dict(obj.get("contractDetails")) if obj.get("contractDetails") is not None else None
|
|
162
|
+
"contract_details": ContractDetails.from_dict(obj.get("contractDetails")) if obj.get("contractDetails") is not None else None,
|
|
163
|
+
"agency_fx_rate": obj.get("agencyFxRate") if obj.get("agencyFxRate") is not None else 1
|
|
162
164
|
})
|
|
163
165
|
# store additional fields in additional_properties
|
|
164
166
|
for _key in obj.keys():
|
|
@@ -42,7 +42,8 @@ class NavTypeDefinition(BaseModel):
|
|
|
42
42
|
transaction_type_scope: StrictStr = Field(...,alias="transactionTypeScope")
|
|
43
43
|
cash_gain_loss_calculation_date: StrictStr = Field(...,alias="cashGainLossCalculationDate")
|
|
44
44
|
amortisation_rule_set_id: Optional[ResourceId] = Field(default=None, alias="amortisationRuleSetId")
|
|
45
|
-
|
|
45
|
+
leader_nav_type_code: Optional[StrictStr] = Field(None,alias="leaderNavTypeCode")
|
|
46
|
+
__properties = ["code", "displayName", "description", "chartOfAccountsId", "postingModuleCodes", "cleardownModuleCodes", "valuationRecipeId", "holdingRecipeId", "accountingMethod", "subHoldingKeys", "amortisationMethod", "transactionTypeScope", "cashGainLossCalculationDate", "amortisationRuleSetId", "leaderNavTypeCode"]
|
|
46
47
|
|
|
47
48
|
class Config:
|
|
48
49
|
"""Pydantic configuration"""
|
|
@@ -118,6 +119,11 @@ class NavTypeDefinition(BaseModel):
|
|
|
118
119
|
if self.sub_holding_keys is None and "sub_holding_keys" in self.__fields_set__:
|
|
119
120
|
_dict['subHoldingKeys'] = None
|
|
120
121
|
|
|
122
|
+
# set to None if leader_nav_type_code (nullable) is None
|
|
123
|
+
# and __fields_set__ contains the field
|
|
124
|
+
if self.leader_nav_type_code is None and "leader_nav_type_code" in self.__fields_set__:
|
|
125
|
+
_dict['leaderNavTypeCode'] = None
|
|
126
|
+
|
|
121
127
|
return _dict
|
|
122
128
|
|
|
123
129
|
@classmethod
|
|
@@ -143,7 +149,8 @@ class NavTypeDefinition(BaseModel):
|
|
|
143
149
|
"amortisation_method": obj.get("amortisationMethod"),
|
|
144
150
|
"transaction_type_scope": obj.get("transactionTypeScope"),
|
|
145
151
|
"cash_gain_loss_calculation_date": obj.get("cashGainLossCalculationDate"),
|
|
146
|
-
"amortisation_rule_set_id": ResourceId.from_dict(obj.get("amortisationRuleSetId")) if obj.get("amortisationRuleSetId") is not None else None
|
|
152
|
+
"amortisation_rule_set_id": ResourceId.from_dict(obj.get("amortisationRuleSetId")) if obj.get("amortisationRuleSetId") is not None else None,
|
|
153
|
+
"leader_nav_type_code": obj.get("leaderNavTypeCode")
|
|
147
154
|
})
|
|
148
155
|
return _obj
|
|
149
156
|
|
|
@@ -35,7 +35,8 @@ class UpsertValuationPointRequest(BaseModel):
|
|
|
35
35
|
query_as_at: Optional[datetime] = Field(default=None, description="The query time of the diary entry. Defaults to latest.", alias="queryAsAt")
|
|
36
36
|
properties: Optional[Dict[str, ModelProperty]] = Field(default=None, description="A set of properties for the diary entry.")
|
|
37
37
|
apply_clear_down: Optional[StrictBool] = Field(default=None, description="Defaults to false. Set to true if you want that the closed period to have the clear down applied.", alias="applyClearDown")
|
|
38
|
-
|
|
38
|
+
update_inclusion_date_nav_adjustments: Optional[StrictBool] = Field(default=None, description="Defaults to false. Set to true if you have the required licence and want the InclusionDate property values to be used to determine whether items should be automatically included in the post close activities.", alias="updateInclusionDateNavAdjustments")
|
|
39
|
+
__properties = ["diaryEntryCode", "diaryEntryVariant", "name", "effectiveAt", "queryAsAt", "properties", "applyClearDown", "updateInclusionDateNavAdjustments"]
|
|
39
40
|
|
|
40
41
|
class Config:
|
|
41
42
|
"""Pydantic configuration"""
|
|
@@ -119,7 +120,8 @@ class UpsertValuationPointRequest(BaseModel):
|
|
|
119
120
|
)
|
|
120
121
|
if obj.get("properties") is not None
|
|
121
122
|
else None,
|
|
122
|
-
"apply_clear_down": obj.get("applyClearDown")
|
|
123
|
+
"apply_clear_down": obj.get("applyClearDown"),
|
|
124
|
+
"update_inclusion_date_nav_adjustments": obj.get("updateInclusionDateNavAdjustments")
|
|
123
125
|
})
|
|
124
126
|
return _obj
|
|
125
127
|
|
|
@@ -81,7 +81,7 @@ lusid/api/translation_api.py,sha256=ykq--aAObjON30cqkCgtlvNVN_X9o1kCFHBuhx0TqOY,
|
|
|
81
81
|
lusid/api/workspace_api.py,sha256=cIVlsVXulKjrNIF1NMaEH11-YRF3gOmLN6KaXVeECnk,120530
|
|
82
82
|
lusid/api_client.py,sha256=9ShwOKmMJEOUj82dVLKP8CIkwu0aGV2H5qwGxTVJp7w,31170
|
|
83
83
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
|
84
|
-
lusid/configuration.py,sha256=
|
|
84
|
+
lusid/configuration.py,sha256=Z8Jn68UlJGgXc6-Kh-0bMQ7_hzRDxzj4ZQSA7Hj-JKA,17980
|
|
85
85
|
lusid/exceptions.py,sha256=lYAJyHpruxMPUtZ95NwiYJvqzInY8S0yhRE0-JFYCww,5873
|
|
86
86
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
|
87
87
|
lusid/extensions/api_client.py,sha256=cq0kCulu3hsJ7jMPQfsE8B6FIa8ppTSXqneHo19RrXQ,30973
|
|
@@ -460,7 +460,7 @@ lusid/models/discounting_dependency.py,sha256=Q9MG1axWyLsDzQWwEr6mNk5n9cCPxf17FI
|
|
|
460
460
|
lusid/models/discounting_method.py,sha256=VSJNBp-Ysqt-UTvqNNMJr5EFCtRfAq16a1jlm5iZBjU,1015
|
|
461
461
|
lusid/models/dividend_option_event.py,sha256=uGNewQ6AbGTYKyzSo-SaUlU44XpRw2SsnmDP6YSoiJQ,15139
|
|
462
462
|
lusid/models/dividend_reinvestment_event.py,sha256=T6_6ERVnoHvCgLGsTqzpJnCXaqxTA1Ww66nXpmbFd9o,15270
|
|
463
|
-
lusid/models/drawdown_event.py,sha256=
|
|
463
|
+
lusid/models/drawdown_event.py,sha256=F_nbFtn9yJM_y1g1IgdMoZfhubeSjDwZ7llVp-dLlBg,13014
|
|
464
464
|
lusid/models/early_close_out_event.py,sha256=agF86569deAnfYTy_LCVw2KdMXlWInh1B9xWBebgUMQ,14735
|
|
465
465
|
lusid/models/early_redemption_election.py,sha256=_jmJhusPyZDGdKQsQRCrWm5hh34A2lYRkV4OWy095ss,3012
|
|
466
466
|
lusid/models/early_redemption_event.py,sha256=KAUxnFlWDe-bUQztfW16rBIwSM6ykS2RnVKeySIP_gs,14996
|
|
@@ -769,7 +769,7 @@ lusid/models/movement_type.py,sha256=qj1WoFCbN9vCWz1tJ3_5mfrMQVWiavhcZ7Rd-fu3Cd4
|
|
|
769
769
|
lusid/models/multi_currency_amounts.py,sha256=e0KJp-e1LDkE2yL3xdNcToo_phmy4WJGi07wbHSv6cM,2518
|
|
770
770
|
lusid/models/nav_activity_adjustment.py,sha256=yaSaWH5tOMaUHO_cddl3Q1HyGFNw2YlZMOkpZpmHSKI,7143
|
|
771
771
|
lusid/models/nav_activity_adjustment_type.py,sha256=YdKyabzmsosfhnNfLWj4hWxDpbqxmdNWyu5mqPPQ04U,1011
|
|
772
|
-
lusid/models/nav_type_definition.py,sha256
|
|
772
|
+
lusid/models/nav_type_definition.py,sha256=-8WIxf_r0VFTPyFAHnRY76hZ1taCGzbwP1IOjMqBmv0,7663
|
|
773
773
|
lusid/models/new_instrument.py,sha256=HUSYHinyI1rWGZQPp2t2uoaqb-oKx9ktifidu5zecVw,4110
|
|
774
774
|
lusid/models/next_value_in_sequence_response.py,sha256=mhhsgn8RNV0_3n_kOXjuuRyOwd7ZwEBEjpiRyv-8BeA,3148
|
|
775
775
|
lusid/models/numeric_comparison_type.py,sha256=aZgnpyXYo56W3ZYZMPyZvAy2D_I95fAbrQg6pPhQ9lQ,1053
|
|
@@ -1389,7 +1389,7 @@ lusid/models/upsert_structured_data_response.py,sha256=mSngI1s3Bo_r1GsNE4-0OU6CO
|
|
|
1389
1389
|
lusid/models/upsert_structured_result_data_request.py,sha256=X9y1QMtJbMACFXHHm4nODBbxDgiEvujG79_yLSCop-I,3156
|
|
1390
1390
|
lusid/models/upsert_transaction_properties_response.py,sha256=2mHWGRSA5Ku7DYliDeSxdTLnWIivs6bRnGuvW7rAK6E,4806
|
|
1391
1391
|
lusid/models/upsert_translation_script_request.py,sha256=huEybnVm1KecVBtRcBvuEX8xdFTS2K2NVCeubaAAp3A,2848
|
|
1392
|
-
lusid/models/upsert_valuation_point_request.py,sha256=
|
|
1392
|
+
lusid/models/upsert_valuation_point_request.py,sha256=1LspxDLVOmpZUTARhNwUCnn_Wg5JAQlDqMBpDfFY2yM,5828
|
|
1393
1393
|
lusid/models/user.py,sha256=dZ1qu8ZinkMTdY7_qSZpwBTAj07R_R6RkWIgPLdKzkI,2474
|
|
1394
1394
|
lusid/models/valuation_point_data_query_parameters.py,sha256=AJaTAtOgJDGzodMblzKotCkNPCj6PQwKJFe8vxQoC0o,3506
|
|
1395
1395
|
lusid/models/valuation_point_data_request.py,sha256=lv7Zs-o7WdFNBKRB2GgW2TzXIVNa3aMr61-CEne9wYU,3050
|
|
@@ -1438,6 +1438,6 @@ lusid/models/year_month_day.py,sha256=H4OeBzWuMg6mwiOAHFfAvrzjd3QrFCqx1ldsB4L9YQ
|
|
|
1438
1438
|
lusid/models/yield_curve_data.py,sha256=_BmEhhFXrGpBb7qL9WZJpVPeat4twES7nSQggts6_WI,10457
|
|
1439
1439
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1440
1440
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
|
1441
|
-
lusid_sdk-2.3.
|
|
1442
|
-
lusid_sdk-2.3.
|
|
1443
|
-
lusid_sdk-2.3.
|
|
1441
|
+
lusid_sdk-2.3.10.dist-info/METADATA,sha256=FYyT8XPDgX9cCulJEU6GAKWKU4PYZFgBJIsUDmCRaJA,241785
|
|
1442
|
+
lusid_sdk-2.3.10.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
1443
|
+
lusid_sdk-2.3.10.dist-info/RECORD,,
|
|
File without changes
|