sdk.lusid.models.market_data_specific_rule.MarketDataSpecificRule

class MarketDataSpecificRule(**data)[source]

Extends market data key rules to be able to catch dependencies depending on where the dependency comes from, as opposed to what the dependency is asking for. For example, a market data rule might instruct all rates curves to be retrieved from a particular scope. This class gives the ability to set different behaviour depending on what is requesting the rates curve. Using two specific rules, one could instruct rates curves requested by bonds to be retrieved from a different scope than rates curves requested by swaps. # 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.

key

supplier

data_scope

quote_type

field

quote_interval

as_at

price_source

mask

dependency_source_filter

source_system

class Config[source]

Pydantic configuration

classmethod data_scope_validate_regular_expression(value)[source]

Validates the regular expression

classmethod from_dict(obj)[source]

Create an instance of MarketDataSpecificRule from a dict

Return type:

MarketDataSpecificRule

classmethod from_json(json_str)[source]

Create an instance of MarketDataSpecificRule from a JSON string

Return type:

MarketDataSpecificRule

classmethod quote_type_validate_enum(value)[source]

Validates the enum

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