/v1/probability
Modelled chance of reaching a target price
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/montecarlo-api/v1/probability" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/montecarlo-api/v1/probability", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/montecarlo-api/v1/probability");
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/montecarlo-api/v1/probability",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"seed": 12345,
"spot": 100,
"drift": 0.07,
"model": "GBM",
"paths": 10000,
"source": "MONTECARLO",
"target": 120,
"prob_below": 0.7447,
"volatility": 0.2,
"horizon_years": 1,
"prob_at_or_above": 0.2553,
"expected_terminal": 107.42775,
"expected_if_above_target": 136.156639
},
"meta": {
"timestamp": "2026-06-10T22:56:13.802Z",
"request_id": "6c1af5a6-5719-4c69-8595-5d9e3ee1dac7"
},
"status": "ok",
"message": "Probability computed",
"success": true
}