HTTP JSON Pricing API · v1
Rough Bergomi option pricing,
without Monte Carlo or neural networks.
Zero sampling noise. No fitted surrogates. Zero butterfly arbitrage. Validated within 0.07 vol points of 1M-path exact simulation—served in milliseconds over a single HTTPS endpoint.
Note: this site was put together by a scientific researcher, not a frontend engineer—the focus is on the pricing engine, not the CSS.
Quickstart
Authenticate every pricing request with your personal key in the X-API-Key header.
curl -s -X POST "https://api.enrilab.dev/v1/rbergomi/quote" \
-H "Content-Type: application/json" \
-H "X-API-Key: <YOUR_API_KEY>" \
-d '{
"H": 0.1,
"eta": 2.3,
"rho": -0.9,
"expiries": [
{
"T": 0.0493,
"forward_variance": 0.05,
"log_strikes": [-0.10, -0.05, 0.0, 0.05]
}
]
}'
import requests
resp = requests.post(
"https://api.enrilab.dev/v1/rbergomi/quote",
headers={"X-API-Key": "<YOUR_API_KEY>"},
json={
"H": 0.1,
"eta": 2.3,
"rho": -0.9,
"expiries": [{
"T": 0.0493,
"forward_variance": 0.05,
"log_strikes": [-0.10, -0.05, 0.0, 0.05],
}],
},
timeout=10,
)
resp.raise_for_status()
print(resp.json())
{
"model": "rough_bergomi",
"expiries": [
{
"T": 0.0493,
"log_strikes": [-0.1, -0.05, 0.0, 0.05],
"price": [0.002325, 0.005899, 0.017078, 0.000538],
"implied_vol": [0.31639, 0.25807, 0.19281, 0.13184],
"status": [0, 0, 0, 0],
"message": ["ok", "ok", "ok", "ok"],
"validity": "validated"
}
]
}
API Reference
Base URL: https://api.enrilab.dev · Content-Type: application/json ·
Liveness check: GET /health returns {"status":"ok"}.
Request Schema — POST /v1/rbergomi/quote
| Field | Type | Constraints | Description |
|---|---|---|---|
H |
number | 0.01 ≤ H ≤ 0.49 |
Hurst exponent. |
eta |
number | 0.01 ≤ eta ≤ 10, eta² T2H ≤ 25 |
Volatility of volatility. |
rho |
number | -0.99 ≤ rho ≤ 0.99 |
Spot-variance correlation. |
expiries |
array | 1..max_expiries, strictly increasing T (step ≥ 0.0001) |
Term structure slices. |
expiries[].T |
number | 0.001 ≤ T ≤ 5 |
Expiry in years. |
expiries[].forward_variance |
number | 0.0001 ≤ ξ ≤ 4 |
Annualized forward variance on the interval from the previous expiry (or 0) to T. |
expiries[].log_strikes |
number[] | 1..max_strikes, each in [-3, 3] |
Log-moneyness log(K / F), where F is the expiry forward. |
All numeric fields must be finite (no NaN or Infinity). Unknown fields are rejected.
Response Schema
| Field | Type | Description |
|---|---|---|
model |
string | Always "rough_bergomi". |
expiries[].T |
number | Expiry in years. |
expiries[].log_strikes |
number[] | Echoed log-strikes log(K / F). |
expiries[].price |
number[] | Out-of-the-money price in units of the forward (put for k < 0, call for k ≥ 0). |
expiries[].implied_vol |
(number | null)[] | Annualized Black implied volatility (null when status != 0; never NaN). |
expiries[].status |
int[] | 0 ok · 1 price below inversion floor · 2 implied volatility unavailable. |
expiries[].message |
string[] | Human-readable status label corresponding to status. |
expiries[].validity |
string | Regime indicator: validated caution unverified |
Error Responses
| Status | Meaning |
|---|---|
400 | Malformed HTTP headers or excessively nested JSON. |
401 | Missing, invalid, revoked, or expired X-API-Key. |
413 | Request body exceeds 32 KB size limit. |
415 | Content-Type header is not application/json. |
422 | Out-of-range parameters or request exceeds per-key expiry/strike caps. |
429 | Per-IP or per-key rate limit / quota exceeded (Retry-After included when applicable). |
500 / 503 | Temporary server error. |
Validation & Benchmarks
Verified against high-precision exact simulation of the rough Bergomi model (up to 1,000,000 paths).
Here a = η² T2H is the log-variance scale and v = ξ T is total variance.
Validated Accuracy Regimes
| Parameter Regime (flat forward variance, −2 to +1 std dev) | Max Observed Error (% of ATM vol) |
|---|---|
0.05 ≤ H ≤ 0.20, a ≤ 3.0, v ≤ 0.04, −0.90 ≤ ρ ≤ +0.70 |
≤ 0.45% |
0.05 ≤ H ≤ 0.20, a ≤ 1.5, v ≤ 0.20, ρ ≤ +0.50 |
≤ 0.44% |
Zero correlation (ρ = 0), a ≤ 4.5 |
≤ 0.47% |
Arbitrage & Numerical Guarantees
| Check | Result |
|---|---|
| Static butterfly arbitrage | 0 violations across 209 parameter sets × 601 strikes (from −8 to +6 std dev). |
| Calendar arbitrage | 0 violations across all tested benchmark surfaces (2 days to 2 years); extreme off-benchmark corners may exhibit minor calendar discrepancies. |
| Smoothness & JSON hygiene | Smooth across H, η, ρ, T, ξ, and strike (no step discontinuities); 27,000 stress-test quotes returned valid JSON with zero NaN values. |
Built-in Per-Expiry Validity Flag
Every expiry in the API response carries a conservative regime indicator so downstream systems know when a quote lies inside the benchmarked envelope:
| Label | What it means |
|---|---|
| validated | Inside the verified parameter regime with no established error above 0.5% of ATM vol. |
| caution | Elevated error (typically 0.5%–1.5% of ATM vol) is possible, e.g. high vol-of-vol (a ≥ 4.5), extreme correlation (ρ ≤ −0.95), or steep forward-variance term structures at strong negative correlation. |
| unverified | Outside the currently benchmarked parameter grid (e.g. H < 0.05 or high-variance positive correlation where reference uncertainty exceeds 1% of vol). Does not imply inaccuracy. |
Free Trial Limits & Quotas
Every successful response includes X-Quota-Day-Remaining and
X-Quota-Total-Remaining headers so your client can track usage.
Trial Terms of Use
- Trial API keys are personal and non-transferable; do not publish or share your key.
- You may not systematically scrape or sweep the parameter space, harvest training datasets, train surrogate or machine-learning models on API outputs, or attempt to reverse-engineer the pricing engine.
- Keys violating these terms or automated rate limits may be revoked without notice.
Questions, higher quotas, or commercial licensing: enquiries@enrilab.dev