Zum Inhalt springen
GET /v1/asset

One instrument full risk profile

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "key": "gold",
        "note": "ann_volatility_pct is annualised realised volatility; sharpe_ratio is annualised return divided by annualised volatility (zero risk-free); max_drawdown_pct is the worst peak-to-trough fall over the window. Computed from daily closes.",
        "class": "commodities",
        "label": "Gold",
        "source": "Yahoo Finance",
        "symbol": "GLD",
        "vol_regime": "elevated volatility",
        "window_days": 90,
        "observations": 90,
        "sharpe_ratio": -0.78,
        "ann_return_pct": -24.5,
        "max_drawdown_pct": -23.56,
        "total_return_pct": -9.55,
        "ann_volatility_pct": 31.5
    },
    "meta": {
        "timestamp": "2026-06-12T10:35:16.937Z",
        "request_id": "fcb7a655-4fad-4590-a70d-afd80f527acb"
    },
    "status": "ok",
    "message": "Asset risk profile retrieved successfully",
    "success": true
}