sdk.lusid.models.market_data_key_rule.MarketDataKeyRule

class MarketDataKeyRule(**data)[source]

When performing analytics, instruments and models have dependencies on market data. A market data key rule essentially tells lusid to “resolve dependencies matching the pattern ‘X’ using data of the form ‘Y’”. The parameter ‘X’ is defined by the key of the key rule, and might specify “all USD rates curves” or “all RIC-based prices”. The parameter ‘Y’ is defined by the remaining fields of the key rule, and allows the user to configure things such as where to look for data, what sort of data should be looked for (e.g. bid/mid/ask), and how old the data is allowed to be. # 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

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 MarketDataKeyRule from a dict

Return type:

MarketDataKeyRule

classmethod from_json(json_str)[source]

Create an instance of MarketDataKeyRule from a JSON string

Return type:

MarketDataKeyRule

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