Skip to main content

basis

Function basis 

fn basis(
    first: StreamLeg,
    second: StreamLeg,
    ctx: &Context<'_>,
) -> Result<(AnyInstrument, [usize; 2]), FpmlError>
Expand description

Two floating streams in one currency: a tenor basis swap, the spread on the stream that states one. The legs keep their own sides, so the spread leg may be paid.