QS.CONTEXT.ADD.QUOTE¶
Adds one quote identifier, finite value and explicit Mid, Bid or Ask level to a context
Category: QuantSupport - Pricing.
- QS.CONTEXT.ADD.QUOTE(context: text, identifier: text, value: number, level: text or blank) text¶
- Parameters:
context (text) – The same root context cell from QS.CONTEXT.CREATE for every addition; never reference the previous addition
identifier (text) – Quote identifier understood by QuantSupport, for example OIS_USD_SOFR_1Y
value (number) – Numeric fixing value
level (text or blank) – Optional Mid, Bid or Ask; omitted or blank uses Mid; missing selected sides raise an error
- Returns:
Context contribution owned by its source cell. All additions reference the same stable root; edits, removals and failed inputs invalidate registered consumers after the definition pass.
- Return Type:
text
- Errors:
#VALUE! for invalid root context, malformed arrays or conventions, invalid configuration, duplicate observations or registry errors. Market-dependent validation runs at pricing.
Formula¶
=QS.CONTEXT.ADD.QUOTE(context, identifier, value, level)
Calculation¶
Runs on Excel’s main calculation thread.
Native Declaration¶
fn qs_context_add_quote (context : & str , identifier : & str , value : f64 , level : Option < String > ,) -> Result < String , XllError >