Scenarios
Scenario runs across priced positions and portfolio scenario targets.
Run named shocks across positions that know how to price themselves, and bind scenarios to a portfolio's holdings.
Try it live
Common APIs
fn
runScenariosRun one validated ScenarioSet over heterogeneous builder-owned targets and one market snapshot.constscenarioTargetBuilder namespace for opaque, immutable scenario targets.fnscenarioTargetsFromPortfolioConvert every open position in one validated durable portfolio snapshot into exactly one opaque scenario target.constscenarioPortfolioBindingOpaque builder namespace for durable portfolio-to-scenario bindings.fnspotAssetPricerFirst-party Gate-C adapter for a directly observed spot asset.Complete API reference
Browse all public exports, types, and feature imports below.