Skip to main content

tenor

Function tenor 

pub(crate) fn tenor(spelling: &str) -> PyResult<String>
Expand description

Normalizes a tenor to its canonical spelling ("12M" stays "12M"; "1Y" stays "1Y" — the unit is part of the tenor, not a quantity to convert away).