Skip to content
Fourohtwo

derivatives-pricer-production.up.railway.app/v1/portfolio/scenario

What-if P&L under relative spot/vol shocks and calendar time decay on a scalar-σ book. Base plus per-scenario MTM and Greeks.

SolanaUnchecked
POSThttps://derivatives-pricer-production.up.railway.app/v1/portfolio/scenario

UptimeNot checked yet

30 days agoToday

Call it from an agent

curl -i -X POST -H 'content-type: application/json' "https://derivatives-pricer-production.up.railway.app/v1/portfolio/scenario" \
  -d '{"rate":0.05,"positions":[{"strike":100,"quantity":10,"optionType":"call","underlying":100,"volatility":0.2,"timeToExpiry":1},{"strike":110,"quantity":-5,"optionType":"put","underlying":100,"volatility":0.22,"timeToExpiry":1}],"scenarios":[{"name":"spot_down_10","volShock":0,"spotShock":-0.1,"timeDecayDays":0},{"name":"vol_up_20pct_rel","volShock":0.2,"spotShock":0,"timeDecayDays":1}],"dividendYie'

# 402 Payment Required comes back with the price and where to pay.

Example input

{"rate":0.05,"positions":[{"strike":100,"quantity":10,"optionType":"call","underlying":100,"volatility":0.2,"timeToExpiry":1},{"strike":110,"quantity":-5,"optionType":"put","underlying":100,"volatility":0.22,"timeToExpiry":1}],"scenarios":[{"name":"spot_down_10","volShock":0,"spotShock":-0.1,"timeDecayDays":0},{"name":"vol_up_20pct_rel","volShock":0.2,"spotShock":0,"timeDecayDays":1}],"dividendYie