Aller au contenu
GET /v1/donchian

Donchian Channel + breakout signal

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/trendindicators-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/trendindicators-api/v1/donchian" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/trendindicators-api/v1/donchian", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/trendindicators-api/v1/donchian");
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/trendindicators-api/v1/donchian",
    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": {
        "note": "Donchian Channel = highest high and lowest low over the period; middle is their average. position_pct is where the close sits in the channel.",
        "lower": 102,
        "upper": 123,
        "width": 21,
        "middle": 112.5,
        "period": 20,
        "signal": "inside_channel",
        "source": "TREND",
        "candles": 30,
        "last_close": 122,
        "position_pct": 95.2381
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:04.036Z",
        "request_id": "cc77ada6-0578-454c-8471-0bc1f033117f"
    },
    "status": "ok",
    "message": "Donchian channel computed",
    "success": true
}