Skip to main content
POST
/
quantlib
/
pricing
/
bs
/
price
Black-Scholes Option Price
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/pricing/bs/price \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "spot": 100,
  "strike": 105,
  "risk_free_rate": 0.05,
  "dividend_yield": 0.02,
  "volatility": 0.25,
  "time_to_maturity": 1,
  "option_type": "call"
}
'
{
  "success": true,
  "data": {
    "price": 7.853,
    "option_type": "call"
  }
}

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
spot
number
required

Current price of the underlying asset

Example:

100

strike
number
required

Strike price of the option

Example:

105

risk_free_rate
number
required

Risk-free interest rate (annualized, decimal format)

Example:

0.05

volatility
number
required

Annualized volatility (decimal format)

Example:

0.25

time_to_maturity
number
required

Time to expiration in years

Example:

1

dividend_yield
number
default:0

Continuous dividend yield (annualized, decimal format)

Example:

0.02

option_type
enum<string>
default:call

Type of option

Available options:
call,
put
Example:

"call"

Response

Successful calculation

success
boolean
Example:

true

data
object