Zum Inhalt springen
GET /v1/drawdown

Worst & current drawdown

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "coin": "BTC",
        "note": "max_drawdown_pct is the worst peak-to-trough decline over the window; current_drawdown_pct is how far the last close sits below the window high. Indices count days from the window start.",
        "source": "Binance",
        "last_close": 63354.69,
        "peak_index": 116,
        "window_days": 365,
        "observations": 366,
        "trough_index": 359,
        "all_time_high": 124658.54,
        "max_drawdown_pct": -51.16,
        "current_drawdown_pct": -49.18,
        "drawdown_length_days": 243
    },
    "meta": {
        "timestamp": "2026-06-12T01:41:05.666Z",
        "request_id": "643f4485-ef1f-436a-9df3-25c4e4ee368d"
    },
    "status": "ok",
    "message": "Drawdown retrieved successfully",
    "success": true
}