Aller au contenu
GET /v1/meta

Service metadata and endpoint list

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/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/strategysim-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/strategysim-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/strategysim-api/v1/meta",
    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": "win_rate 0-1, payoff = reward:risk ratio, risk_pct = % of equity risked per trade. Runs are deterministic per seed (default 12345).",
        "source": "Computed in-process (seeded mulberry32 PRNG, fixed-fractional compounding)",
        "service": "strategysim-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/simulate": "Monte-Carlo equity outcome + ruin & drawdown (win_rate=0.55, payoff=1.5, risk_pct=2, trades=100, capital=10000).",
            "GET /v1/expectancy": "Analytical edge — expectancy, breakeven win rate, profit factor (win_rate=0.55, payoff=1.5).",
            "GET /v1/risk-of-ruin": "Modelled probability of ruin (win_rate=0.5, payoff=1, risk_pct=5, trades=100, ruin_drawdown=0.5)."
        },
        "description": "Live Monte-Carlo simulation of a trading strategy's outcome, computed on demand and reproducibly. The simulate endpoint runs a sequence of trades many times from a win rate, reward-to-risk payoff and risk-per-trade, and returns the distribution of final equity, the probability of profit, the probability of ruin and the drawdown distribution; the risk-of-ruin endpoint returns the modelled chance of blowing up the account; the expectancy endpoint returns the analytical edge (expectancy per trade, breakeven win rate, profit factor). Every run is seeded, so the same inputs always give the same numbers. A strategy-outcome engine, distinct from position-sizing tools and price simulators.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:31.468Z",
        "request_id": "6bfa4fd0-a366-4a3e-8374-d4c09ddb8981"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}