Vai al contenuto
GET /v1/expected-value

Expected value of a stake

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/roulette-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/roulette-api/v1/expected-value" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/roulette-api/v1/expected-value", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/roulette-api/v1/expected-value");
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/roulette-api/v1/expected-value",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Expected value = stake × (win probability × (payout + 1) − 1) — always negative, equal to minus the stake times the house edge (about 2.7 % European, 5.26 % American) no matter the bet. Over many spins you lose that fraction of everything you wager; no betting pattern changes it.",
        "inputs": {
            "stake": 10,
            "wheel": "european",
            "bet_type": "straight"
        },
        "expected_loss": 0.2703,
        "payout_on_win": 350,
        "expected_value": -0.2703,
        "win_probability_pct": 2.7
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:39.373Z",
        "request_id": "43894bd8-004b-4a95-9b83-215b2e348653"
    },
    "status": "ok",
    "message": "Expected value",
    "success": true
}