Aller au contenu
GET /v1/asset

One instrument full risk profile

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/assetvolatility-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}