Metrics ======= .. currentmodule:: rateslib.instruments .. autoclass:: Metrics :show-inheritance: .. rubric:: Attributes Summary .. autosummary:: ~Metrics.fixed_rate ~Metrics.float_spread ~Metrics.index_base ~Metrics.leg2_fixed_rate ~Metrics.leg2_float_spread ~Metrics.leg2_index_base .. rubric:: Methods Summary .. autosummary:: ~Metrics.analytic_delta ~Metrics.cashflows ~Metrics.cashflows_table ~Metrics.npv ~Metrics.rate .. rubric:: Attributes Documentation .. autoattribute:: fixed_rate .. autoattribute:: float_spread .. autoattribute:: index_base .. autoattribute:: leg2_fixed_rate .. autoattribute:: leg2_float_spread .. autoattribute:: leg2_index_base .. rubric:: Methods Documentation .. automethod:: analytic_delta .. automethod:: cashflows .. automethod:: cashflows_table .. automethod:: npv .. automethod:: rate