Skip to main content

recipe_rungs_at

Function recipe_rungs_at 

pub fn recipe_rungs_at(
    market: &MarketContext,
    key: &CollateralSpec,
    sheet: &QuoteSheet,
    notional: f64,
) -> Result<Vec<Rung>, RecipeQuoteError>
Expand description

The helpers sheet binds to under market’s effective recipe for key, each on notional — rungs_for on the recipe the market resolves.

§Errors

RecipeQuoteError::NoRecipe for a market carrying no recipe under key; otherwise as rungs_for.