Skip to content
Fourohtwo

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

Price options on a submitted IV surface (total-variance bilinear in log-moneyness). Returns price, interpolated σ, and Greeks. Not for scalar σ.

SolanaUnchecked
POSThttps://derivatives-pricer-production.up.railway.app/v1/option/price-from-surface

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/option/price-from-surface" \
  -d '{"rate":0.05,"options":[{"strike":100,"quantity":1,"optionType":"call","underlying":100,"timeToExpiry":1}],"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'

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

Example input

{"rate":0.05,"options":[{"strike":100,"quantity":1,"optionType":"call","underlying":100,"timeToExpiry":1}],"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