Zum Inhalt springen
GET /v1/equity

Equity curve + drawdown

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "Equity curve includes the starting balance as the first point. Max drawdown is the largest peak-to-trough decline.",
        "source": "TRADE-STATS",
        "trades": 9,
        "total_pnl": 365,
        "return_pct": 3.65,
        "equity_curve": [
            10000,
            10120,
            10070,
            10150,
            10120,
            10320,
            10230,
            10275,
            10215,
            10365
        ],
        "max_drawdown": 105,
        "peak_balance": 10365,
        "final_balance": 10365,
        "max_drawdown_pct": 1.017442,
        "starting_balance": 10000
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:17.362Z",
        "request_id": "8e9a8ca2-6b49-4bf5-a733-6dd7381cac52"
    },
    "status": "ok",
    "message": "Equity curve computed",
    "success": true
}