Naar de inhoud
GET /v1/asset

One market drawdown & recovery card

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

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