Aller au contenu
GET /v1/expectancy

Analytical edge — expectancy, breakeven, profit factor

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/strategysim-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}