FixedLegMtm#
- class rateslib.legs.FixedLegMtm(*args, fixed_rate=NoInput.blank, **kwargs)#
Bases:
_FixedLegMixin,BaseLegMtmCreate a leg of
FixedPeriods and initial, mtm and finalCashflows.- Parameters:
args (dict) – Required positional args to
BaseLeg.fixed_rate (float or None) – The fixed rate applied to determine cashflows. Can be set to None and designated later, perhaps after a mid-market rate for all periods has been calculated.
fx_fixings (float, Dual, Dual2, list of such) – Specify a known initial FX fixing or a list of such for historical legs. Fixings that are not specified will be calculated at pricing time with an
FXForwardsobject.alt_currency (str) – The alternative currency against which mark-to-market fixings and payments are made. This is considered as the domestic currency in FX fixings.
alt_notional (float, optional) – The notional of the alternative currency from which to calculate
notionalunder the determinedfx_fixings. If None sets a default foralt_notional.kwargs (dict) – Required keyword arguments to
BaseLeg.
Notes
Warning
amortizationis currently not implemented for onFloatLegExchangeMtm.notionalis not used on anFloatLegMtm. It is determined fromalt_notionalunder givenfx_fixings.currencyandalt_currencyare required in order to determine FX fixings from anFXForwardsobject at pricing time.Examples
For an example see Mtm Legs.