/v1/expectancy
Analytical edge — expectancy, breakeven, profit factor
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/expectancy" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/strategysim-api/v1/expectancy", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/strategysim-api/v1/expectancy");
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/expectancy",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "Analytical edge per trade. expectancy_R > 0 means a positive edge; breakeven_win_rate is the win rate at which the strategy is flat for this payoff.",
"inputs": {
"payoff": 1.5,
"risk_pct": 2,
"win_rate": 0.55
},
"source": "STRATEGYSIM",
"has_edge": true,
"expectancy_R": 0.375,
"profit_factor": 1.8333,
"breakeven_win_rate": 0.4,
"expected_return_per_trade_pct": 0.75
},
"meta": {
"timestamp": "2026-06-11T07:49:31.371Z",
"request_id": "0c518a35-34a1-4126-8d82-5aacba9b27a7"
},
"status": "ok",
"message": "Expectancy computed",
"success": true
}