Naar de inhoud
GET /v1/asset

One instrument full risk profile

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/assetvolatility-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}