sdk.lusid.models.economic_dependency.EconomicDependency

class EconomicDependency(**data)[source]

Base class for representing economic dependencies. Economic dependencies are a way of indicating how one concept depends upon another. For example, when pricing an instrument with a particular model, that model will declare that it has an EconomicDependency for each bit of market data that it needs to complete the calculation. Concretely, a pricing an FxForward will declare a dependency on the exchange rate between the two currencies at the forward date. Another example is when data is included in a data-structure only by reference. Concretely, an object depending on a FlowConvention that is referenced only semantically via a FlowConventionName will declare a FlowConventionDependency so that the full data-structure of the referenced FlowConvention can be retrieved. For deserialization purposes, this class contains a discriminator EconomicDependencyType to indicate the derived type. # noqa: E501

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

Attributes

This is a Pydantic class. For now, click on the green [source] link in the class signature above to see descriptions/allowed values for these attributes.

dependency_type

class Config[source]

Pydantic configuration

classmethod dependency_type_validate_enum(value)[source]

Validates the enum

classmethod from_dict(obj)[source]

Create an instance of EconomicDependency from a dict

Return type:

Union(CalendarDependency, CashDependency, DiscountingDependency, EquityCurveDependency, EquityVolDependency, FxDependency, FxForwardsDependency, FxVolDependency, IndexProjectionDependency, InflationFixingDependency, IrVolDependency, OpaqueDependency, QuoteDependency, VendorDependency)

classmethod from_json(json_str)[source]

Create an instance of EconomicDependency from a JSON string

Return type:

Union(CalendarDependency, CashDependency, DiscountingDependency, EquityCurveDependency, EquityVolDependency, FxDependency, FxForwardsDependency, FxVolDependency, IndexProjectionDependency, InflationFixingDependency, IrVolDependency, OpaqueDependency, QuoteDependency, VendorDependency)

classmethod get_discriminator_value(obj)[source]

Returns the discriminator value (object type) of the data

Return type:

str

to_dict()[source]

Returns the dictionary representation of the model using alias

to_json()[source]

Returns the JSON representation of the model using alias

Return type:

str

to_str()[source]

Returns the string representation of the model using alias

Return type:

str