Skip to main content
POST
/
quantlib
/
volatility
/
surface
/
grid
Volatility Surface Grid
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/volatility/surface/grid \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "expiries": [
    0.25,
    0.5,
    1
  ],
  "strikes": [
    90,
    95,
    100,
    105,
    110
  ],
  "vol_matrix": [
    [
      0.28,
      0.26,
      0.24,
      0.25,
      0.27
    ],
    [
      0.27,
      0.25,
      0.23,
      0.24,
      0.26
    ],
    [
      0.26,
      0.24,
      0.22,
      0.23,
      0.25
    ]
  ],
  "query_expiry": 0.5,
  "query_strike": 102.5
}
'
{
  "success": true,
  "data": {
    "volatility": 0.2375,
    "total_variance": 0.028203125,
    "expiry": 0.5,
    "strike": 102.5
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
expiries
number[]
required

Array of expiry times in years (must be strictly increasing)

Minimum array length: 2
Example:
[0.25, 0.5, 1]
strikes
number[]
required

Array of strike prices (must be strictly increasing)

Minimum array length: 2
Example:
[90, 95, 100, 105, 110]
vol_matrix
number[][]
required

2D matrix of volatilities [expiry_index][strike_index]. Dimensions must match expiries x strikes

Example:
[
[0.28, 0.26, 0.24, 0.25, 0.27],
[0.27, 0.25, 0.23, 0.24, 0.26],
[0.26, 0.24, 0.22, 0.23, 0.25]
]
query_expiry
number
required

Expiry time in years for the query point

Required range: x >= 0
Example:

0.5

query_strike
number
required

Strike price for the query point

Required range: x >= 0
Example:

102.5

Response

Successful Response

success
boolean
Example:

true

data
object