Skip to main content

calibrate_recipe

Function calibrate_recipe 

pub fn calibrate_recipe(
    market: &MarketContext,
    key: &CollateralSpec,
    sheet: &QuoteSheet,
    options: &CalibrationOptions,
) -> Result<(MarketContext, Vec<HelperSolve>), CalibrationError>
Expand description

The market with the curves its recipe for key describes solved from sheet and pinned, beside the solves — recipe_rungs_at through the helper verb.

§Errors

CalibrationError::Recipe for a market carrying no recipe under key or a sheet the recipe cannot bind; whatever the helper verb refuses.