/v1/black-scholes
Option price
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/options-api/v1/black-scholes" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/options-api/v1/black-scholes", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/options-api/v1/black-scholes");
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/options-api/v1/black-scholes",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"d1": 0.35,
"d2": 0.15,
"note": "Black-Scholes-Merton. Call = S·e^(−qT)·Φ(d1) − K·e^(−rT)·Φ(d2); put by parity. Rates/vol are decimals; time in years.",
"inputs": {
"rate": 0.05,
"spot": 100,
"time": 1,
"strike": 100,
"volatility": 0.2,
"dividend_yield": 0
},
"put_price": 5.573518,
"call_price": 10.450575,
"put_call_parity": 4.877058
},
"meta": {
"timestamp": "2026-06-05T03:09:00.614Z",
"request_id": "e420d234-4aa8-4575-9b55-452d7c07c557"
},
"status": "ok",
"message": "Black-Scholes",
"success": true
}