Skip to main content

ZeqDerivatives — Options Pricing

Options pricing using Black-Scholes and binomial models computed via the HULYAS solver. Greeks (delta, gamma, theta, vega, rho) at each Zeqond.

EndpointPOST /api/finance/derivatives/price
Authapi-key
Rate limit30/min
Categoryfinance

Parameters

NameTypeRequiredDescription
typestringYes'call' or 'put'.
spotPricenumberYesCurrent asset price.
strikePricenumberYesStrike price.
timeToExpirynumberYesTime to expiry in years.
volatilitynumberYesImplied volatility.
riskFreeRatenumberNoRisk-free rate. Default: 0.05.

Returns

{ price, delta, gamma, theta, vega, rho, impliedVol, model }

Example

curl -sS -X POST \
-H "Authorization: Bearer zsm_..." \
-H "Content-Type: application/json" \
-d '{
"type": "<type>",
"spotPrice": 0,
"strikePrice": 0,
"timeToExpiry": 0,
"volatility": 0,
"riskFreeRate": 0.05
}' \
"https://zeqsdk.com/api/finance/derivatives/price"

This protocol is a named building block — one of the operations you compose inside a state contract. Call it directly with the request above, or invoke it from a contract that fires on your machine's clock. Browse the whole library at GET /api/protocols; fetch this one at GET /api/protocols/zeq-derivatives.