lusid-sdk 2.1.782__py3-none-any.whl → 2.1.784__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/api/identifier_definitions_api.py +6 -6
- lusid/configuration.py +1 -1
- lusid/models/dividend_option_event.py +5 -0
- lusid/models/equity.py +9 -3
- lusid/models/flexible_deposit.py +9 -3
- lusid/models/fund_share_class.py +8 -2
- lusid/models/term_deposit.py +8 -2
- {lusid_sdk-2.1.782.dist-info → lusid_sdk-2.1.784.dist-info}/METADATA +1 -1
- {lusid_sdk-2.1.782.dist-info → lusid_sdk-2.1.784.dist-info}/RECORD +10 -10
- {lusid_sdk-2.1.782.dist-info → lusid_sdk-2.1.784.dist-info}/WHEEL +0 -0
@@ -787,15 +787,15 @@ class IdentifierDefinitionsApi:
|
|
787
787
|
|
788
788
|
|
789
789
|
@overload
|
790
|
-
async def update_identifier_definition(self, domain : Annotated[StrictStr, Field(..., description="The type of entity to which the identifier relates")], identifier_scope : Annotated[StrictStr, Field(..., description="The scope that the identifier exists in")], identifier_type : Annotated[StrictStr, Field(..., description="What the identifier represents. Together with \"domain\" and \"identifierScope\" this uniquely identifies the Identifier Definition")], update_identifier_definition_request : Annotated[Optional[UpdateIdentifierDefinitionRequest], Field(description="The request containing the updated details of the
|
790
|
+
async def update_identifier_definition(self, domain : Annotated[StrictStr, Field(..., description="The type of entity to which the identifier relates")], identifier_scope : Annotated[StrictStr, Field(..., description="The scope that the identifier exists in")], identifier_type : Annotated[StrictStr, Field(..., description="What the identifier represents. Together with \"domain\" and \"identifierScope\" this uniquely identifies the Identifier Definition")], update_identifier_definition_request : Annotated[Optional[UpdateIdentifierDefinitionRequest], Field(description="The request containing the updated details of the Identifier Definition.")] = None, **kwargs) -> IdentifierDefinition: # noqa: E501
|
791
791
|
...
|
792
792
|
|
793
793
|
@overload
|
794
|
-
def update_identifier_definition(self, domain : Annotated[StrictStr, Field(..., description="The type of entity to which the identifier relates")], identifier_scope : Annotated[StrictStr, Field(..., description="The scope that the identifier exists in")], identifier_type : Annotated[StrictStr, Field(..., description="What the identifier represents. Together with \"domain\" and \"identifierScope\" this uniquely identifies the Identifier Definition")], update_identifier_definition_request : Annotated[Optional[UpdateIdentifierDefinitionRequest], Field(description="The request containing the updated details of the
|
794
|
+
def update_identifier_definition(self, domain : Annotated[StrictStr, Field(..., description="The type of entity to which the identifier relates")], identifier_scope : Annotated[StrictStr, Field(..., description="The scope that the identifier exists in")], identifier_type : Annotated[StrictStr, Field(..., description="What the identifier represents. Together with \"domain\" and \"identifierScope\" this uniquely identifies the Identifier Definition")], update_identifier_definition_request : Annotated[Optional[UpdateIdentifierDefinitionRequest], Field(description="The request containing the updated details of the Identifier Definition.")] = None, async_req: Optional[bool]=True, **kwargs) -> IdentifierDefinition: # noqa: E501
|
795
795
|
...
|
796
796
|
|
797
797
|
@validate_arguments
|
798
|
-
def update_identifier_definition(self, domain : Annotated[StrictStr, Field(..., description="The type of entity to which the identifier relates")], identifier_scope : Annotated[StrictStr, Field(..., description="The scope that the identifier exists in")], identifier_type : Annotated[StrictStr, Field(..., description="What the identifier represents. Together with \"domain\" and \"identifierScope\" this uniquely identifies the Identifier Definition")], update_identifier_definition_request : Annotated[Optional[UpdateIdentifierDefinitionRequest], Field(description="The request containing the updated details of the
|
798
|
+
def update_identifier_definition(self, domain : Annotated[StrictStr, Field(..., description="The type of entity to which the identifier relates")], identifier_scope : Annotated[StrictStr, Field(..., description="The scope that the identifier exists in")], identifier_type : Annotated[StrictStr, Field(..., description="What the identifier represents. Together with \"domain\" and \"identifierScope\" this uniquely identifies the Identifier Definition")], update_identifier_definition_request : Annotated[Optional[UpdateIdentifierDefinitionRequest], Field(description="The request containing the updated details of the Identifier Definition.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[IdentifierDefinition, Awaitable[IdentifierDefinition]]: # noqa: E501
|
799
799
|
"""[EXPERIMENTAL] UpdateIdentifierDefinition: Update Identifier Definition defined by domain, identifierScope, and identifierType # noqa: E501
|
800
800
|
|
801
801
|
Overwrites an existing Identifier Definition. # noqa: E501
|
@@ -811,7 +811,7 @@ class IdentifierDefinitionsApi:
|
|
811
811
|
:type identifier_scope: str
|
812
812
|
:param identifier_type: What the identifier represents. Together with \"domain\" and \"identifierScope\" this uniquely identifies the Identifier Definition (required)
|
813
813
|
:type identifier_type: str
|
814
|
-
:param update_identifier_definition_request: The request containing the updated details of the
|
814
|
+
:param update_identifier_definition_request: The request containing the updated details of the Identifier Definition.
|
815
815
|
:type update_identifier_definition_request: UpdateIdentifierDefinitionRequest
|
816
816
|
:param async_req: Whether to execute the request asynchronously.
|
817
817
|
:type async_req: bool, optional
|
@@ -832,7 +832,7 @@ class IdentifierDefinitionsApi:
|
|
832
832
|
return self.update_identifier_definition_with_http_info(domain, identifier_scope, identifier_type, update_identifier_definition_request, **kwargs) # noqa: E501
|
833
833
|
|
834
834
|
@validate_arguments
|
835
|
-
def update_identifier_definition_with_http_info(self, domain : Annotated[StrictStr, Field(..., description="The type of entity to which the identifier relates")], identifier_scope : Annotated[StrictStr, Field(..., description="The scope that the identifier exists in")], identifier_type : Annotated[StrictStr, Field(..., description="What the identifier represents. Together with \"domain\" and \"identifierScope\" this uniquely identifies the Identifier Definition")], update_identifier_definition_request : Annotated[Optional[UpdateIdentifierDefinitionRequest], Field(description="The request containing the updated details of the
|
835
|
+
def update_identifier_definition_with_http_info(self, domain : Annotated[StrictStr, Field(..., description="The type of entity to which the identifier relates")], identifier_scope : Annotated[StrictStr, Field(..., description="The scope that the identifier exists in")], identifier_type : Annotated[StrictStr, Field(..., description="What the identifier represents. Together with \"domain\" and \"identifierScope\" this uniquely identifies the Identifier Definition")], update_identifier_definition_request : Annotated[Optional[UpdateIdentifierDefinitionRequest], Field(description="The request containing the updated details of the Identifier Definition.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
836
836
|
"""[EXPERIMENTAL] UpdateIdentifierDefinition: Update Identifier Definition defined by domain, identifierScope, and identifierType # noqa: E501
|
837
837
|
|
838
838
|
Overwrites an existing Identifier Definition. # noqa: E501
|
@@ -848,7 +848,7 @@ class IdentifierDefinitionsApi:
|
|
848
848
|
:type identifier_scope: str
|
849
849
|
:param identifier_type: What the identifier represents. Together with \"domain\" and \"identifierScope\" this uniquely identifies the Identifier Definition (required)
|
850
850
|
:type identifier_type: str
|
851
|
-
:param update_identifier_definition_request: The request containing the updated details of the
|
851
|
+
:param update_identifier_definition_request: The request containing the updated details of the Identifier Definition.
|
852
852
|
:type update_identifier_definition_request: UpdateIdentifierDefinitionRequest
|
853
853
|
:param async_req: Whether to execute the request asynchronously.
|
854
854
|
:type async_req: bool, optional
|
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.7751\n"\
|
449
449
|
"SDK Package Version: {package_version}".\
|
450
450
|
format(env=sys.platform, pyversion=sys.version, package_version=package_version)
|
451
451
|
|
@@ -160,6 +160,11 @@ class DividendOptionEvent(InstrumentEvent):
|
|
160
160
|
if self.record_date is None and "record_date" in self.__fields_set__:
|
161
161
|
_dict['recordDate'] = None
|
162
162
|
|
163
|
+
# set to None if security_settlement_date (nullable) is None
|
164
|
+
# and __fields_set__ contains the field
|
165
|
+
if self.security_settlement_date is None and "security_settlement_date" in self.__fields_set__:
|
166
|
+
_dict['securitySettlementDate'] = None
|
167
|
+
|
163
168
|
return _dict
|
164
169
|
|
165
170
|
@classmethod
|
lusid/models/equity.py
CHANGED
@@ -23,6 +23,7 @@ from pydantic.v1 import StrictStr, Field, Field, StrictInt, StrictStr, validator
|
|
23
23
|
from lusid.models.equity_all_of_identifiers import EquityAllOfIdentifiers
|
24
24
|
from lusid.models.lusid_instrument import LusidInstrument
|
25
25
|
from lusid.models.time_zone_conventions import TimeZoneConventions
|
26
|
+
from lusid.models.trading_conventions import TradingConventions
|
26
27
|
|
27
28
|
class Equity(LusidInstrument):
|
28
29
|
"""
|
@@ -30,11 +31,12 @@ class Equity(LusidInstrument):
|
|
30
31
|
"""
|
31
32
|
identifiers: Optional[EquityAllOfIdentifiers] = None
|
32
33
|
dom_ccy: StrictStr = Field(...,alias="domCcy", description="The domestic currency of the instrument.")
|
33
|
-
lot_size: Optional[StrictInt] = Field(None, alias="lotSize", description="Equity LotSize, the minimum number of shares that can be bought at once. Optional, if set must be non-negative, if not set defaults to 1. Note this property does not impact valuation. From a LUSID analytics perspective, it is purely informational.")
|
34
|
+
lot_size: Optional[StrictInt] = Field(None, alias="lotSize", description="Deprecated: Use TradingConventions field instead Equity LotSize, the minimum number of shares that can be bought at once. Optional, if set must be non-negative, if not set defaults to 1. Note this property does not impact valuation. From a LUSID analytics perspective, it is purely informational.")
|
34
35
|
time_zone_conventions: Optional[TimeZoneConventions] = Field(None, alias="timeZoneConventions")
|
36
|
+
trading_conventions: Optional[TradingConventions] = Field(None, alias="tradingConventions")
|
35
37
|
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, FlexibleDeposit")
|
36
38
|
additional_properties: Dict[str, Any] = {}
|
37
|
-
__properties = ["instrumentType", "identifiers", "domCcy", "lotSize", "timeZoneConventions"]
|
39
|
+
__properties = ["instrumentType", "identifiers", "domCcy", "lotSize", "timeZoneConventions", "tradingConventions"]
|
38
40
|
|
39
41
|
@validator('instrument_type')
|
40
42
|
def instrument_type_validate_enum(cls, value):
|
@@ -134,6 +136,9 @@ class Equity(LusidInstrument):
|
|
134
136
|
# override the default output from pydantic by calling `to_dict()` of time_zone_conventions
|
135
137
|
if self.time_zone_conventions:
|
136
138
|
_dict['timeZoneConventions'] = self.time_zone_conventions.to_dict()
|
139
|
+
# override the default output from pydantic by calling `to_dict()` of trading_conventions
|
140
|
+
if self.trading_conventions:
|
141
|
+
_dict['tradingConventions'] = self.trading_conventions.to_dict()
|
137
142
|
# puts key-value pairs in additional_properties in the top level
|
138
143
|
if self.additional_properties is not None:
|
139
144
|
for _key, _value in self.additional_properties.items():
|
@@ -160,7 +165,8 @@ class Equity(LusidInstrument):
|
|
160
165
|
"identifiers": EquityAllOfIdentifiers.from_dict(obj.get("identifiers")) if obj.get("identifiers") is not None else None,
|
161
166
|
"dom_ccy": obj.get("domCcy"),
|
162
167
|
"lot_size": obj.get("lotSize"),
|
163
|
-
"time_zone_conventions": TimeZoneConventions.from_dict(obj.get("timeZoneConventions")) if obj.get("timeZoneConventions") is not None else None
|
168
|
+
"time_zone_conventions": TimeZoneConventions.from_dict(obj.get("timeZoneConventions")) if obj.get("timeZoneConventions") is not None else None,
|
169
|
+
"trading_conventions": TradingConventions.from_dict(obj.get("tradingConventions")) if obj.get("tradingConventions") is not None else None
|
164
170
|
})
|
165
171
|
# store additional fields in additional_properties
|
166
172
|
for _key in obj.keys():
|
lusid/models/flexible_deposit.py
CHANGED
@@ -18,10 +18,11 @@ import re # noqa: F401
|
|
18
18
|
import json
|
19
19
|
|
20
20
|
from datetime import datetime
|
21
|
-
from typing import Any, Dict, List
|
21
|
+
from typing import Any, Dict, List, Optional
|
22
22
|
from pydantic.v1 import StrictStr, Field, Field, StrictStr, conlist, validator
|
23
23
|
from lusid.models.lusid_instrument import LusidInstrument
|
24
24
|
from lusid.models.schedule import Schedule
|
25
|
+
from lusid.models.trading_conventions import TradingConventions
|
25
26
|
|
26
27
|
class FlexibleDeposit(LusidInstrument):
|
27
28
|
"""
|
@@ -31,9 +32,10 @@ class FlexibleDeposit(LusidInstrument):
|
|
31
32
|
maturity_date: datetime = Field(..., alias="maturityDate", description="The final maturity date of the instrument. This means the last date on which the instruments makes a payment of any amount. For the avoidance of doubt, that is not necessarily prior to its last sensitivity date for the purposes of risk; e.g. instruments such as Constant Maturity Swaps (CMS) often have sensitivities to rates that may well be observed or set prior to the maturity date, but refer to a termination date beyond it.")
|
32
33
|
dom_ccy: StrictStr = Field(...,alias="domCcy", description="The domestic currency of the instrument.")
|
33
34
|
schedules: conlist(Schedule) = Field(..., description="Repayment schedules for the deposit instrument.")
|
35
|
+
trading_conventions: Optional[TradingConventions] = Field(None, alias="tradingConventions")
|
34
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, FlexibleDeposit")
|
35
37
|
additional_properties: Dict[str, Any] = {}
|
36
|
-
__properties = ["instrumentType", "startDate", "maturityDate", "domCcy", "schedules"]
|
38
|
+
__properties = ["instrumentType", "startDate", "maturityDate", "domCcy", "schedules", "tradingConventions"]
|
37
39
|
|
38
40
|
@validator('instrument_type')
|
39
41
|
def instrument_type_validate_enum(cls, value):
|
@@ -134,6 +136,9 @@ class FlexibleDeposit(LusidInstrument):
|
|
134
136
|
if _item:
|
135
137
|
_items.append(_item.to_dict())
|
136
138
|
_dict['schedules'] = _items
|
139
|
+
# override the default output from pydantic by calling `to_dict()` of trading_conventions
|
140
|
+
if self.trading_conventions:
|
141
|
+
_dict['tradingConventions'] = self.trading_conventions.to_dict()
|
137
142
|
# puts key-value pairs in additional_properties in the top level
|
138
143
|
if self.additional_properties is not None:
|
139
144
|
for _key, _value in self.additional_properties.items():
|
@@ -155,7 +160,8 @@ class FlexibleDeposit(LusidInstrument):
|
|
155
160
|
"start_date": obj.get("startDate"),
|
156
161
|
"maturity_date": obj.get("maturityDate"),
|
157
162
|
"dom_ccy": obj.get("domCcy"),
|
158
|
-
"schedules": [Schedule.from_dict(_item) for _item in obj.get("schedules")] if obj.get("schedules") is not None else None
|
163
|
+
"schedules": [Schedule.from_dict(_item) for _item in obj.get("schedules")] if obj.get("schedules") is not None else None,
|
164
|
+
"trading_conventions": TradingConventions.from_dict(obj.get("tradingConventions")) if obj.get("tradingConventions") is not None else None
|
159
165
|
})
|
160
166
|
# store additional fields in additional_properties
|
161
167
|
for _key in obj.keys():
|
lusid/models/fund_share_class.py
CHANGED
@@ -22,6 +22,7 @@ from typing import Any, Dict, List, Optional
|
|
22
22
|
from pydantic.v1 import StrictStr, Field, Field, StrictStr, conlist, constr, validator
|
23
23
|
from lusid.models.lusid_instrument import LusidInstrument
|
24
24
|
from lusid.models.simple_rounding_convention import SimpleRoundingConvention
|
25
|
+
from lusid.models.trading_conventions import TradingConventions
|
25
26
|
|
26
27
|
class FundShareClass(LusidInstrument):
|
27
28
|
"""
|
@@ -33,9 +34,10 @@ class FundShareClass(LusidInstrument):
|
|
33
34
|
hedging: StrictStr = Field(...,alias="hedging", description="A flag to indicate the ShareClass is operating currency hedging as a means to limit currency risk as part of it's investment strategy. Supported string (enumeration) values are: [Invalid, None, ApplyHedging].")
|
34
35
|
dom_ccy: StrictStr = Field(...,alias="domCcy", description="The domestic currency of the instrument.")
|
35
36
|
rounding_conventions: Optional[conlist(SimpleRoundingConvention)] = Field(None, alias="roundingConventions", description="Rounding Convention used for the FundShareClass quotes")
|
37
|
+
trading_conventions: Optional[TradingConventions] = Field(None, alias="tradingConventions")
|
36
38
|
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, FlexibleDeposit")
|
37
39
|
additional_properties: Dict[str, Any] = {}
|
38
|
-
__properties = ["instrumentType", "shortCode", "fundShareClassType", "distributionPaymentType", "hedging", "domCcy", "roundingConventions"]
|
40
|
+
__properties = ["instrumentType", "shortCode", "fundShareClassType", "distributionPaymentType", "hedging", "domCcy", "roundingConventions", "tradingConventions"]
|
39
41
|
|
40
42
|
@validator('instrument_type')
|
41
43
|
def instrument_type_validate_enum(cls, value):
|
@@ -136,6 +138,9 @@ class FundShareClass(LusidInstrument):
|
|
136
138
|
if _item:
|
137
139
|
_items.append(_item.to_dict())
|
138
140
|
_dict['roundingConventions'] = _items
|
141
|
+
# override the default output from pydantic by calling `to_dict()` of trading_conventions
|
142
|
+
if self.trading_conventions:
|
143
|
+
_dict['tradingConventions'] = self.trading_conventions.to_dict()
|
139
144
|
# puts key-value pairs in additional_properties in the top level
|
140
145
|
if self.additional_properties is not None:
|
141
146
|
for _key, _value in self.additional_properties.items():
|
@@ -164,7 +169,8 @@ class FundShareClass(LusidInstrument):
|
|
164
169
|
"distribution_payment_type": obj.get("distributionPaymentType"),
|
165
170
|
"hedging": obj.get("hedging"),
|
166
171
|
"dom_ccy": obj.get("domCcy"),
|
167
|
-
"rounding_conventions": [SimpleRoundingConvention.from_dict(_item) for _item in obj.get("roundingConventions")] if obj.get("roundingConventions") is not None else None
|
172
|
+
"rounding_conventions": [SimpleRoundingConvention.from_dict(_item) for _item in obj.get("roundingConventions")] if obj.get("roundingConventions") is not None else None,
|
173
|
+
"trading_conventions": TradingConventions.from_dict(obj.get("tradingConventions")) if obj.get("tradingConventions") is not None else None
|
168
174
|
})
|
169
175
|
# store additional fields in additional_properties
|
170
176
|
for _key in obj.keys():
|
lusid/models/term_deposit.py
CHANGED
@@ -22,6 +22,7 @@ from typing import Any, Dict, Optional, Union
|
|
22
22
|
from pydantic.v1 import StrictStr, Field, Field, StrictFloat, StrictInt, StrictStr, validator
|
23
23
|
from lusid.models.flow_conventions import FlowConventions
|
24
24
|
from lusid.models.lusid_instrument import LusidInstrument
|
25
|
+
from lusid.models.trading_conventions import TradingConventions
|
25
26
|
|
26
27
|
class TermDeposit(LusidInstrument):
|
27
28
|
"""
|
@@ -33,9 +34,10 @@ class TermDeposit(LusidInstrument):
|
|
33
34
|
flow_convention: FlowConventions = Field(..., alias="flowConvention")
|
34
35
|
rate: Union[StrictFloat, StrictInt] = Field(..., description="The fixed rate for the term deposit. Specified as a decimal, e.g 0.03 is meant to be 3% interest")
|
35
36
|
dom_ccy: Optional[StrictStr] = Field(None,alias="domCcy", description="The domestic currency of the instrument. This should be the same as the Currency set on the FlowConventions. You do not need to populate this field for Term Deposits in LUSID as all functionality is driven by the Currency set on the FlowConventions. LUSID will not store values saved on this field.")
|
37
|
+
trading_conventions: Optional[TradingConventions] = Field(None, alias="tradingConventions")
|
36
38
|
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, FlexibleDeposit")
|
37
39
|
additional_properties: Dict[str, Any] = {}
|
38
|
-
__properties = ["instrumentType", "startDate", "maturityDate", "contractSize", "flowConvention", "rate", "domCcy"]
|
40
|
+
__properties = ["instrumentType", "startDate", "maturityDate", "contractSize", "flowConvention", "rate", "domCcy", "tradingConventions"]
|
39
41
|
|
40
42
|
@validator('instrument_type')
|
41
43
|
def instrument_type_validate_enum(cls, value):
|
@@ -132,6 +134,9 @@ class TermDeposit(LusidInstrument):
|
|
132
134
|
# override the default output from pydantic by calling `to_dict()` of flow_convention
|
133
135
|
if self.flow_convention:
|
134
136
|
_dict['flowConvention'] = self.flow_convention.to_dict()
|
137
|
+
# override the default output from pydantic by calling `to_dict()` of trading_conventions
|
138
|
+
if self.trading_conventions:
|
139
|
+
_dict['tradingConventions'] = self.trading_conventions.to_dict()
|
135
140
|
# puts key-value pairs in additional_properties in the top level
|
136
141
|
if self.additional_properties is not None:
|
137
142
|
for _key, _value in self.additional_properties.items():
|
@@ -160,7 +165,8 @@ class TermDeposit(LusidInstrument):
|
|
160
165
|
"contract_size": obj.get("contractSize"),
|
161
166
|
"flow_convention": FlowConventions.from_dict(obj.get("flowConvention")) if obj.get("flowConvention") is not None else None,
|
162
167
|
"rate": obj.get("rate"),
|
163
|
-
"dom_ccy": obj.get("domCcy")
|
168
|
+
"dom_ccy": obj.get("domCcy"),
|
169
|
+
"trading_conventions": TradingConventions.from_dict(obj.get("tradingConventions")) if obj.get("tradingConventions") is not None else None
|
164
170
|
})
|
165
171
|
# store additional fields in additional_properties
|
166
172
|
for _key in obj.keys():
|
@@ -29,7 +29,7 @@ lusid/api/fee_types_api.py,sha256=qRVfNS91XHBlD_CrewsPMsetIHB6M0mn3RWbD4LTuro,54
|
|
29
29
|
lusid/api/fund_configuration_api.py,sha256=S4x4AZbacsLqvnHM2YJPppeWWdmXe4Nj-UGFbwU08EU,72655
|
30
30
|
lusid/api/funds_api.py,sha256=ZM47ve9di_m4tmBiA7ZFw-TP4QoIM7O2NnNvkgNs1nA,311756
|
31
31
|
lusid/api/group_reconciliations_api.py,sha256=U8qg3jGd39E1epaiOcjOV_uO8BUivbvKAdujvQ5fFNE,163197
|
32
|
-
lusid/api/identifier_definitions_api.py,sha256=
|
32
|
+
lusid/api/identifier_definitions_api.py,sha256=x79uhIBI0BJITjwmE7oPMWFOtox60FrrL9Dq4YH60MI,64305
|
33
33
|
lusid/api/instrument_event_types_api.py,sha256=RHuGNd8Xf8x0vyvAUFwRNgEB_kpzQTtbsBwlFC3QJcs,79862
|
34
34
|
lusid/api/instrument_events_api.py,sha256=o_VlUMrovreM3P6N84W5jMUrZmc6tVsvD7Ckhf05sfw,57764
|
35
35
|
lusid/api/instruments_api.py,sha256=-pOWq9bPcXvXULKV-FPWlRugZuBEPwVp2oPX91PEzTs,298533
|
@@ -75,7 +75,7 @@ lusid/api/translation_api.py,sha256=xpRuTfwQvYBlWe6r_L2EI_uVpXqHFnEOim-i-kVQ85E,
|
|
75
75
|
lusid/api/workspace_api.py,sha256=QmcywrL34lbVo4CbSwyyJDh0kRG7Gt91xrQB0ShqQQQ,106017
|
76
76
|
lusid/api_client.py,sha256=ewMTmf9SRurY8pYnUx9jy24RdldPCOa4US38pnrVxjA,31140
|
77
77
|
lusid/api_response.py,sha256=6-gnhty6lu8MMAERt3_kTVD7UxQgWFfcjgpcq6iN5IU,855
|
78
|
-
lusid/configuration.py,sha256=
|
78
|
+
lusid/configuration.py,sha256=gnTtx7M93GMKwkWSnFzdUxt19PSZIPVSBfdrPA40o7s,17972
|
79
79
|
lusid/exceptions.py,sha256=HIQwgmQrszLlcVCLaqex8dO0laVuejUyOMz7U2ZWJ6s,5326
|
80
80
|
lusid/extensions/__init__.py,sha256=dzDHEzpn-9smd2-_UMWQzeyX6Ha4jGf6fnqx7qxKxNI,630
|
81
81
|
lusid/extensions/api_client.py,sha256=GzygWg_h603QK1QS2HvAijuE2R1TnvoF6-Yg0CeM3ug,30943
|
@@ -418,7 +418,7 @@ lusid/models/diary_entry_request.py,sha256=SUbE6EJ7IKNWqaFdtek43hy5ZQy5jbWIJmGlE
|
|
418
418
|
lusid/models/discount_factor_curve_data.py,sha256=27orY3jBbTfuyco3Ss4pOdguKdj0nOI7nyI6nkHGphs,8762
|
419
419
|
lusid/models/discounting_dependency.py,sha256=A9aTJzswDoMQ0W602cWuiX96rDBhuD1J9uAzzL0-O5s,7656
|
420
420
|
lusid/models/discounting_method.py,sha256=MlWtNqjuA9R4G5hosNUyP5NgFDnzlOpVHgnRH44uo-k,734
|
421
|
-
lusid/models/dividend_option_event.py,sha256=
|
421
|
+
lusid/models/dividend_option_event.py,sha256=fUZmjLoUJIFcOsiJN3bpWHo_g8Yz07vZjkxzEJbdYOE,13667
|
422
422
|
lusid/models/dividend_reinvestment_event.py,sha256=84klv-srL-iSJu2Ii2b_8r0W95F1KfgO86Kd-fwaxxI,13519
|
423
423
|
lusid/models/drawdown_event.py,sha256=I88kFxJ0vjFZem2WG_QsGnLcr05BKSLXBLKFvn3bZsg,11119
|
424
424
|
lusid/models/early_redemption_election.py,sha256=2e0EoSNJiybg_9RRVhgyuzOhxTN2s2THi0zksdV5LUA,2785
|
@@ -432,7 +432,7 @@ lusid/models/election_specification.py,sha256=3VJre2H4qid96ZR5SXhXfPhvA5Oq_qqnN7
|
|
432
432
|
lusid/models/eligibility_calculation.py,sha256=97wEddIjii77XbgiFbEDj7W1J-t83eNMY_Vip_Qi2ZI,2558
|
433
433
|
lusid/models/empty_model_options.py,sha256=3uQ--ty6rPl6AnCIFkuDO6JiKCai-j5YzKpYSu5fUrc,6455
|
434
434
|
lusid/models/entity_identifier.py,sha256=EQViVLb6TAjWij-L4_E6YsuhVJyOeoH0WpOT6Ry9s00,2862
|
435
|
-
lusid/models/equity.py,sha256=
|
435
|
+
lusid/models/equity.py,sha256=wtSO1sI1xPpLRTjYdmJkeUMdrdRI3i7b-aksC7-IreU,10394
|
436
436
|
lusid/models/equity_all_of_identifiers.py,sha256=cGcoWnJWfKFLEfa_YNKZB5vEpSRA3eCJJK5Mp0ryW14,3967
|
437
437
|
lusid/models/equity_curve_by_prices_data.py,sha256=aVxZN7MSBy2Mu8Vweaih1v8mNZPdxVAH7DV_wrOqrcw,8861
|
438
438
|
lusid/models/equity_curve_dependency.py,sha256=p8kOoHal82ZoDXn0JewVeVreAW6mtiEBFrCy1ZBzA2s,8188
|
@@ -474,7 +474,7 @@ lusid/models/filter_step_request.py,sha256=VUQu6zFreEF6guCWnaUGe1OWPldyzNH41AtEK
|
|
474
474
|
lusid/models/fixed_leg.py,sha256=mljV-GER8ObzWxvgsc3qhBpwYFCbPbS5SVvrFpiDUnc,10101
|
475
475
|
lusid/models/fixed_leg_all_of_overrides.py,sha256=vNWZ2AveN2lZLW2VUUtH--sq5U9qOxI3e4K4w5ZrMt0,3111
|
476
476
|
lusid/models/fixed_schedule.py,sha256=zSV3b8nETOe1VdRaO3BlZkP6mehn845rNAmP3L6aZMM,11886
|
477
|
-
lusid/models/flexible_deposit.py,sha256=
|
477
|
+
lusid/models/flexible_deposit.py,sha256=AGdumIHUMFdGCOHYaSWDHvlIFb-zm4AoGs_ngFdLbN8,10331
|
478
478
|
lusid/models/flexible_loan.py,sha256=17W4_Y3tz62ARtxKFZXRRXuuhNL1YC0zQRNumlpOBOc,9740
|
479
479
|
lusid/models/float_schedule.py,sha256=HBRAyDO9dYVhAUtOZmojKoXbKWEwYmjLjKCCgkLZFmg,14245
|
480
480
|
lusid/models/floating_leg.py,sha256=tzEXrGWz8aLSRdfRBrE0m8IGsYLND9FgTdXSwJMFRAw,11044
|
@@ -494,7 +494,7 @@ lusid/models/fund_pnl_breakdown.py,sha256=VnRhnpqPP6QNFaIKjJRx9UT77Rcquxl--ynKEz
|
|
494
494
|
lusid/models/fund_previous_nav.py,sha256=pS6RoeqlQRytoJq_vplGYDGX2oH-6Q44B7elZGRfYsE,2162
|
495
495
|
lusid/models/fund_properties.py,sha256=SfdvEcARxxk_Akxr92DTGxM_0Ode9T6bBcExeG6K7ys,4489
|
496
496
|
lusid/models/fund_request.py,sha256=edLnVKYbKVHVeTCMCGueA61VRdmBgDJJ5bSnE8jnWAg,7819
|
497
|
-
lusid/models/fund_share_class.py,sha256=
|
497
|
+
lusid/models/fund_share_class.py,sha256=qftPyL3N0ZjIGaUUWx8x-MRHN8naTs1f9uUBHTQe4Io,11619
|
498
498
|
lusid/models/fund_valuation_point_data.py,sha256=e4AoY_OBFZLpMvpoChDzm7oD-KUluVPcfeWH1VdalxQ,7042
|
499
499
|
lusid/models/funding_leg.py,sha256=g4LWvqfIPGKZvIFZEdKWv5fCbq93L2TnCXl39HaHW-4,10869
|
500
500
|
lusid/models/funding_leg_options.py,sha256=nNKvJJXO93OEfoOfFEYGgWC0eAg5TPB56N1TzgZx23c,6751
|
@@ -1118,7 +1118,7 @@ lusid/models/tax_rule_set.py,sha256=dQ_701sqNnZ1ihxEWuv4PD3XenGLqO1w0GTidHAJ-uU,
|
|
1118
1118
|
lusid/models/template_field.py,sha256=bHfeDHrM4XpMeS44f-3tCJETxEjsRpQk22baBEf3ih0,2668
|
1119
1119
|
lusid/models/tender_event.py,sha256=whCym3aTHnegOrvsLl1Ekwie5tPfW5uey-SCT5Ehpzs,16570
|
1120
1120
|
lusid/models/tender_offer_election.py,sha256=3OPXYirLZbytDvx12H7Aj8WKKvL4bggeXyywV4pjjdQ,3258
|
1121
|
-
lusid/models/term_deposit.py,sha256=
|
1121
|
+
lusid/models/term_deposit.py,sha256=O-G2mrPDiOnthLNX9XyD-YQLaua2lEleGUgbaKN3zEE,10688
|
1122
1122
|
lusid/models/term_deposit_interest_event.py,sha256=NZoyTLwIKZQ9T9YuSkh3Hms4lT91T3wb2yyRWULi5_4,11280
|
1123
1123
|
lusid/models/term_deposit_principal_event.py,sha256=vlhRk0bhPLz5osgFHaR7GiWgEevGslJhQVz2qLiBK-o,11301
|
1124
1124
|
lusid/models/time_zone_conventions.py,sha256=ug2QOnAlo1cDO2zik4QcM0qOVQ4mfwZEtO_VveXpPHI,3390
|
@@ -1306,6 +1306,6 @@ lusid/models/year_month_day.py,sha256=gwSoxFwlD_wffKdddo1wfvAcLq3Cht3FHQidiaHzAA
|
|
1306
1306
|
lusid/models/yield_curve_data.py,sha256=I1ZSWxHMgUxj9OQt6i9a4S91KB4_XtmrfFxpN_PV3YQ,9561
|
1307
1307
|
lusid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1308
1308
|
lusid/rest.py,sha256=HQT__5LQEMu6_1sLKvYj-DI4FH1DJXBIPYfZCTTyrY4,13431
|
1309
|
-
lusid_sdk-2.1.
|
1310
|
-
lusid_sdk-2.1.
|
1311
|
-
lusid_sdk-2.1.
|
1309
|
+
lusid_sdk-2.1.784.dist-info/METADATA,sha256=UBjN8scqW3N-AdxNYM84nkSv2HHQu3YEL928ECTTU9s,218414
|
1310
|
+
lusid_sdk-2.1.784.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
1311
|
+
lusid_sdk-2.1.784.dist-info/RECORD,,
|
File without changes
|