Skip to content
GET /v1/price

Option price (call & put)

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/blackscholes-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/blackscholes-api/v1/price" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/blackscholes-api/v1/price", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/blackscholes-api/v1/price");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/blackscholes-api/v1/price",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "d1": 0.35,
        "d2": 0.15,
        "note": "Black-Scholes-Merton. Call = S·e^(−qT)·N(d1) − K·e^(−rT)·N(d2); Put by put-call parity. Rate, dividend yield and volatility are annualized; time in years. ATM S=K=100, r=5%, σ=20%, T=1 gives a call ≈ 10.45.",
        "inputs": {
            "rate": 0.05,
            "spot": 100,
            "time": 1,
            "strike": 100,
            "volatility": 0.2,
            "dividend_yield": 0
        },
        "put_price": 5.57351807,
        "call_price": 10.45057562
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:26.122Z",
        "request_id": "6a37ee3c-690f-4e0a-a8c2-e2f4534fcb95"
    },
    "status": "ok",
    "message": "Option price",
    "success": true
}