Aller au contenu
GET /v1/retracement

Fibonacci retracement levels and price position

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/fibonacci-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/fibonacci-api/v1/retracement" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fibonacci-api/v1/retracement", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fibonacci-api/v1/retracement");
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/fibonacci-api/v1/retracement",
    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": "Fibonacci retracement levels for AAPL on the 1d timeframe, built from the dominant swing over the last 60 candles. swing.direction is 'up' (low then high) or 'down' (high then low); 0% sits at the most recent extreme, 100% at the prior one. levels lists each ratio's price; position shows which two levels price is between and the nearest. The swing is detected mechanically (highest high / lowest low) — adjust lookback to measure a longer or shorter move. Levels in the instrument's own price. Live, cached ~5m.",
        "price": 291.130005,
        "swing": {
            "low": 245.509995,
            "high": 317.399994,
            "low_date": "2026-03-30",
            "direction": "up",
            "high_date": "2026-06-08"
        },
        "levels": [
            {
                "price": 317.399994,
                "ratio": 0
            },
            {
                "price": 300.433954,
                "ratio": 23.6
            },
            {
                "price": 289.938014,
                "ratio": 38.2
            },
            {
                "price": 281.454994,
                "ratio": 50
            },
            {
                "price": 272.971974,
                "ratio": 61.8
            },
            {
                "price": 260.894454,
                "ratio": 78.6
            },
            {
                "price": 245.509995,
                "ratio": 100
            }
        ],
        "source": "Yahoo Finance chart candles (query1.finance.yahoo.com), keyless",
        "symbol": "AAPL",
        "currency": "USD",
        "interval": "1d",
        "lookback": 60,
        "position": {
            "nearest_price": 289.938014,
            "nearest_ratio": 38.2,
            "between_ratios": [
                38.2,
                23.6
            ]
        }
    },
    "meta": {
        "timestamp": "2026-06-13T04:42:10.970Z",
        "request_id": "e1dd5b88-f4a3-49ee-b58f-fef0a0666438"
    },
    "status": "ok",
    "message": "Retracement retrieved successfully",
    "success": true
}