Zum Inhalt springen
GET /v1/plan

Risk/reward, RR ratio, break-even + position size

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/tradesetup-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "reward_risk_ratio = reward / risk; break-even win rate = 1 / (1 + RR). Give account & risk_pct for position sizing.",
        "side": "long",
        "stop": 98,
        "entry": 100,
        "source": "TRADE-SETUP",
        "target": 106,
        "account": 10000,
        "risk_pct": 1,
        "risk_amount": 100,
        "position_size": 50,
        "reward_amount": 300,
        "risk_per_unit": 2,
        "reward_per_unit": 6,
        "reward_risk_ratio": 3,
        "risk_pct_from_entry": 2,
        "reward_pct_from_entry": 6,
        "breakeven_win_rate_pct": 25
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:07.024Z",
        "request_id": "c46c324d-4a64-48c9-a955-f3d7527b3fd2"
    },
    "status": "ok",
    "message": "Trade plan computed",
    "success": true
}