/v1/risk-of-ruin
Modelled probability of ruin
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/strategysim-api/v1/risk-of-ruin" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/strategysim-api/v1/risk-of-ruin", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/strategysim-api/v1/risk-of-ruin");
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/strategysim-api/v1/risk-of-ruin",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"edge": {
"has_edge": false,
"expectancy_R": 0,
"profit_factor": 1,
"breakeven_win_rate": 0.5,
"expected_return_per_trade_pct": 0
},
"note": "Ruin = the equity ever falls to a 50% drawdown from the starting capital, over 100 trades.",
"inputs": {
"runs": 10000,
"seed": 12345,
"payoff": 1,
"trades": 100,
"risk_pct": 5,
"win_rate": 0.5,
"ruin_drawdown": 0.5
},
"source": "STRATEGYSIM",
"probability_of_ruin": 0.2174,
"probability_of_profit": 0.3732
},
"meta": {
"timestamp": "2026-06-11T07:49:31.600Z",
"request_id": "fb35d261-1c14-4d6b-a076-eb25eed5d80b"
},
"status": "ok",
"message": "Risk of ruin computed",
"success": true
}