Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "note": "win_rate accepts 0-1 or a percentage; payoff is reward-to-risk (default 1); risk_per_trade is a fraction or percent (default 0.02). Negative expectancy makes ruin certain.",
        "source": "Computed in-process from caller-supplied edge parameters (no upstream)",
        "service": "riskofruin-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/ruin": "Risk of ruin from your edge (win_rate=55&payoff=1.5&risk_per_trade=0.02).",
            "GET /v1/drawdown": "Probability of hitting drawdown levels + recovery gain (win_rate=55&payoff=1.5&risk_per_trade=0.02&levels=10,20,50).",
            "GET /v1/recovery": "Drawdown-to-recovery asymmetry + recovery factor (drawdowns=10,20,50&net_profit=5000&max_drawdown=1200)."
        },
        "description": "Live risk-of-ruin and drawdown-survival analytics computed on demand from your edge. The ruin endpoint returns the probability of ever losing your capital given a win rate, reward-to-risk payoff and risk per trade, solved analytically from the gambler's-ruin equation; the drawdown endpoint returns the probability of ever hitting given drawdown levels and the gain needed to recover; the recovery endpoint returns the loss/gain asymmetry and the recovery factor. An analytic risk engine, distinct from Monte-Carlo simulators and price-series drawdown feeds. Computed locally, nothing stored.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:13.095Z",
        "request_id": "60bd53d8-4eb5-4792-9be1-85f0c26f184b"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}