sdk.lusid.models.market_options.MarketOptions

class MarketOptions(**data)[source]

The set of options that control miscellaneous and default market resolution behaviour. A default scope entered here will cause duplicate (“default”) rules to be created across all asset types, pointing at that scope. These are aimed at a ‘crude’ level of control for those who do not wish to fine tune the way that data is resolved. For clients who wish to simply match instruments to prices this is quite possibly sufficient. For those wishing to control market data sources according to requirements based on accuracy or timeliness it is not recommended. In more advanced cases the options should largely be ignored and rules specified per source. If no default scope is supplied, no default rules are created. Where a default scope is supplied, a default rule is constructed per asset type, pointing at that scope, and appended after all specified rules so it is only tried as a last resort. Each default rule is wild-carded within its asset type (for example Quote.{instrumentCodeType}.* or Fx.*.*) rather than being a single fully wild-carded rule, and one (two for Rates) is generated per asset type. Consequently, where no specified rule matches a dependency, the failure reported is this constructed default rule in the provided default scope. It is not recommended to rely on this behaviour, as these rules match a wide range of data and are likely to be slow to resolve. It is better to specify rules for the data you require in the MarketRules of the MarketContext. # 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.

default_supplier

default_instrument_code_type

default_scope

attempt_to_infer_missing_fx

calendar_scope

convention_scope

class Config[source]

Pydantic configuration

classmethod from_dict(obj)[source]

Create an instance of MarketOptions from a dict

Return type:

MarketOptions

classmethod from_json(json_str)[source]

Create an instance of MarketOptions from a JSON string

Return type:

MarketOptions

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