Struct Demand
pub struct Demand {
pub as_of: NaiveDate,
pub reporting: Option<Currency>,
pub keys: Vec<CollateralSpec>,
pub strips: Vec<StripKey>,
pub fixings: Vec<(String, NaiveDate)>,
pub fx: Vec<CurrencyPair>,
pub unresolved: Vec<Unresolved>,
pub out_of_scope: Vec<String>,
}Expand description
Everything a book needs from outside, derived from what its trades declare and the market’s recipes. Sorted and de-duplicated, so two equal books on one market demand equal things.
Fields§
§as_of: NaiveDateThe date the market is as of.
reporting: Option<Currency>The currency the book reports in, where it has one.
keys: Vec<CollateralSpec>The collateral keys whose recipes the snapshot builds, in build order: every own-collateral key, then every cross key.
strips: Vec<StripKey>The quote strips, one per template a built key’s recipe names.
fixings: Vec<(String, NaiveDate)>The published fixings a valuation reads — rate indices and FX fixing
series alike — as (series, date).
fx: Vec<CurrencyPair>The FX spots, each in its conventional quotation.
unresolved: Vec<Unresolved>The curves the book reads that no recipe builds.
out_of_scope: Vec<String>What the book declares that sources do not yet serve — credit, vol, inflation, repo, spread and model inputs — so a caller sees what a snapshot will not fill.
Implementations§
§impl Demand
impl Demand
pub fn recipe_ask(&self) -> RecipeAsk
pub fn recipe_ask(&self) -> RecipeAsk
The recipe keys a source is asked about.