lusid-sdk 2.3.9__py3-none-any.whl → 2.3.11__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_sdk-2.3.9.dist-info → lusid_sdk-2.3.11.dist-info}/METADATA +1 -1
- {lusid_sdk-2.3.9.dist-info → lusid_sdk-2.3.11.dist-info}/RECORD +6 -6
- {lusid_sdk-2.3.9.dist-info → lusid_sdk-2.3.11.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.8724\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
|
|
|
@@ -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=4QFkoYkGDQbaXg01bq4g99AZbYuVip0IiTbrXQwzejs,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
|
|
@@ -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.11.dist-info/METADATA,sha256=verqJ2515JG7d-BVL6V4St7RoRitJjdBxsCG20sIFFE,241785
|
|
1442
|
+
lusid_sdk-2.3.11.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
1443
|
+
lusid_sdk-2.3.11.dist-info/RECORD,,
|
|
File without changes
|