sdk.lusid.models.instrument_leg.InstrumentLeg
- class InstrumentLeg(**data)[source]
Base class for representing instrument legs in LUSID. An instrument leg describes a set of cashflows that are paid at a set of points in time according to some set of conventions. This base class should not be directly instantiated; only its inheritors should be used. # 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.
instrument_type
additional_properties
- classmethod from_dict(obj)[source]
Create an instance of InstrumentLeg from a dict
- Return type:
Union(FixedLeg, FloatingLeg, FundingLeg)
- classmethod from_json(json_str)[source]
Create an instance of InstrumentLeg from a JSON string
- Return type:
Union(FixedLeg, FloatingLeg, FundingLeg)