QS.SIMULATION.NPATHS¶
Returns the number of paths in a context simulation
Category: QuantSupport - Market.
- QS.SIMULATION.NPATHS(context: text, market_index: text) integer¶
- Parameters:
context (text) – Stable workbook-scoped root from QS.CONTEXT.CREATE or revisioned historical context; additions belong to the context and commit after the definition pass
market_index (text) – Market index, for example SOFR; prefixes include Equity:, Credit:, FX:, and Collateral:
- Returns:
Integer number of simulated paths for the requested market index.
- Return Type:
integer
- Errors:
#VALUE! for invalid index/context handles, a simulation not constructed for the index, or a path count that does not fit in i32.
Formula¶
=QS.SIMULATION.NPATHS(context, market_index)
Calculation¶
Runs on Excel’s main calculation thread.
Native Declaration¶
fn qs_simulation_n_paths (context : & str , market_index : & str) -> Result < i32 , XllError >