Skip to content
Fourohtwo

derivatives-pricer-production.up.railway.app/v1/option/scenario-from-surface

Book reval on an IV surface under F/rate/time/vol shocks with sticky moneyness|strike|fixed_vol. Not for scalar-σ portfolio scenarios.

SolanaAnswering
POSThttps://derivatives-pricer-production.up.railway.app/v1/option/scenario-from-surface

Uptime100% of 4 checks in 30 days

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/option/scenario-from-surface" \
  -d '{"rate":0.05,"sticky":"moneyness","surface":[{"k":-0.1,"iv":0.22,"timeToExpiry":0.25},{"k":0,"iv":0.2,"timeToExpiry":0.25},{"k":0.1,"iv":0.23,"timeToExpiry":0.25},{"k":-0.1,"iv":0.21,"timeToExpiry":0.5},{"k":0,"iv":0.2,"timeToExpiry":0.5},{"k":0.1,"iv":0.22,"timeToExpiry":0.5},{"k":-0.1,"iv":0.205,"timeToExpiry":1},{"k":0,"iv":0.2,"timeToExpiry":1},{"k":0.1,"iv":0.215,"timeToExpiry":1}],"scenario"'

# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.

Example input

{"rate":0.05,"sticky":"moneyness","surface":[{"k":-0.1,"iv":0.22,"timeToExpiry":0.25},{"k":0,"iv":0.2,"timeToExpiry":0.25},{"k":0.1,"iv":0.23,"timeToExpiry":0.25},{"k":-0.1,"iv":0.21,"timeToExpiry":0.5},{"k":0,"iv":0.2,"timeToExpiry":0.5},{"k":0.1,"iv":0.22,"timeToExpiry":0.5},{"k":-0.1,"iv":0.205,"timeToExpiry":1},{"k":0,"iv":0.2,"timeToExpiry":1},{"k":0.1,"iv":0.215,"timeToExpiry":1}],"scenario"