Aller au contenu
GET /v1/asset

One market drawdown & recovery card

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/assetdrawdown-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/assetdrawdown-api/v1/asset" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/assetdrawdown-api/v1/asset", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/assetdrawdown-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/assetdrawdown-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": "bitcoin",
        "note": "One market's drawdown card over a two-year window: current drawdown from the peak, the worst drawdown, the peak date/level, days underwater and how much of the fall has recovered.",
        "class": "crypto",
        "label": "Bitcoin",
        "price": 63675.5781,
        "source": "Yahoo Finance",
        "status": "deep drawdown",
        "symbol": "BTC-USD",
        "peak_date": "2025-10-06",
        "peak_price": 124752.5313,
        "at_new_high": false,
        "days_since_peak": 249,
        "max_drawdown_pct": -51.21,
        "current_drawdown_pct": -48.96,
        "recovery_from_trough_pct": 4.4
    },
    "meta": {
        "timestamp": "2026-06-12T10:35:11.154Z",
        "request_id": "70050a9b-f9bb-4b98-80d1-9ebfce89a755"
    },
    "status": "ok",
    "message": "Asset drawdown retrieved successfully",
    "success": true
}