ClickAPIs
Examples · AAPL Fibonacci retracement levels

Examples / Basics

AAPL Fibonacci retracement levels

Level 1 · BasicsPOST/v1/fibonacci

What it answers

The dominant swing of the last year (its highest high and lowest low) with Fibonacci retracement levels inside it and extension levels beyond it, each with its price and distance from the last close.

Request

Input POST /v1/fibonacci
{
  "symbol": "AAPL"
}
Open in playground

Response

Output 200 OK
{
  "ok": true,
  "data": {
    "symbol": "AAPL",
    "as_of": "2026-11-12",
    "close": 355.3,
    "lookback_bars": 252,
    "swing": {
      "direction": "up",
      "high": 359.3684,
      "high_date": "2026-11-12",
      "low": 242.7589,
      "low_date": "2026-01-20",
      "range": 116.6095,
      "range_pct": 0.480351
    },
    "retracement_now": 0.034889,
    "levels": [
      {
        "ratio": 2.618,
        "label": "261.8%",
        "kind": "extension",
        "price": 548.0426,
        "distance": 0.542478,
        "position": "above"
      },
      {
        "ratio": 1.618,
        "label": "161.8%",
        "kind": "extension",
        "price": 431.4331,
        "distance": 0.214278,
        "position": "above"
      },
      {
        "ratio": 1.272,
        "label": "127.2%",
        "kind": "extension",
        "price": 391.0862,
        "distance": 0.100721,
        "position": "above"
      },
      {
        "ratio": 0.0,
        "label": "0%",
        "kind": "swing",
        "price": 359.3684,
        "distance": 0.011451,
        "position": "above"
      },
      {
        "ratio": 0.236,
        "label": "23.6%",
        "kind": "retracement",
        "price": 331.8486,
        "distance": -0.066005,
        "position": "below"
      },
      {
        "ratio": 0.382,
        "label": "38.2%",
        "kind": "retracement",
        "price": 314.8236,
        "distance": -0.113922,
        "position": "below"
      },
      {
        "ratio": 0.5,
        "label": "50%",
        "kind": "retracement",
        "price": 301.0637,
        "distance": -0.152649,
        "position": "below"
      },
      {
        "ratio": 0.618,
        "label": "61.8%",
        "kind": "retracement",
        "price": 287.3037,
        "distance": -0.191377,
        "position": "below"
      },
      {
        "ratio": 0.786,
        "label": "78.6%",
        "kind": "retracement",
        "price": 267.7133,
        "distance": -0.246515,
        "position": "below"
      },
      {
        "ratio": 1.0,
        "label": "100%",
        "kind": "swing",
        "price": 242.7589,
        "distance": -0.316749,
        "position": "below"
      }
    ],
    "nearest_resistance": {
      "ratio": 0.0,
      "label": "0%",
      "kind": "swing",
      "price": 359.3684,
      "distance": 0.011451,
      "position": "above"
    },
    "nearest_support": {
      "ratio": 0.236,
      "label": "23.6%",
      "kind": "retracement",
      "price": 331.8486,
      "distance": -0.066005,
      "position": "below"
    },
    "notes": [
      "Swing = highest high and lowest low of the lookback; the direction is set by which came last (low then high = up swing).",
      "retracement_now: how much of the swing price has given back (0 = at the swing end, 1 = all of it). Levels are sorted from highest to lowest price; distance = level / close - 1."
    ],
    "interval": "1day"
  },
  "meta": {
    "op": "fibonacci",
    "units": 1,
    "cost_usd": 0.0,
    "billing": "internal",
    "free_call": false,
    "free_calls_left": 0,
    "balance_usd": 5.0,
    "ms": 0,
    "interval": "1day",
    "data_as_of": "2026-11-12",
    "partial_last_bar": false
  }
}

How to read it

swing.direction tells whether the low or the high came last. nearest_support and nearest_resistance are the closest levels below and above the close. retracement_now says how much of the swing price has already given back (0.382 = at the 38.2% level).

Parameters and limits: Fibonacci levels reference. Analytics, not advice.