_KWArgs#

class rateslib.instruments.protocols._KWArgs(user_args, default_args=None, meta_args=None, spec=NoInput.blank)#

Bases: object

Class to manage keyword argument population of Leg based Instruments.

This will first populate any provided spec arguments if given. Second, the user input arguments that are specific values will overwrite these. Thridly, system defaults wil be populated. Finally, any remaining NoInput arguments of leg2 that are set to inherit or negate will derive their values from leg1.

Attributes Summary

leg1

Keyword arguments pass to construction of Leg1.

leg2

Keyword arguments pass to construction of Leg2.

meta

Meta keyword arguments associated with the Instrument.

Attributes Documentation

leg1#

Keyword arguments pass to construction of Leg1.

leg2#

Keyword arguments pass to construction of Leg2.

meta#

Meta keyword arguments associated with the Instrument.