ClickAPIs
Docs · Fibonacci levels

Docs / Endpoints

Fibonacci levels

POST/v1/fibonacciunits: 1intraday

Fibonacci retracements (23.6% to 78.6%) and extensions (127.2% to 261.8%) of the dominant swing in the lookback, with prices, distances from the last close and the nearest support and resistance.

Add "async": true to run it as a job, and "webhook_url" to be called when it finishes (Jobs & async). Calls estimated above 1,000 units run as jobs automatically. Supports interval for intraday bars at 5× the units (Intraday).

Parameters

FieldTypeDefaultDescription
symbolrequiredstring—Ticker.
lookback_barsinteger252Bars to find the swing high and low in, 10–5000.
intervalstring"1day""1day" | "1hour" | "30min" | "15min" | "5min" | "1min". Intraday costs 5× the units; see Intraday.

Example request

AAPL Fibonacci retracement levels Read the walkthrough →

Request POST /v1/fibonacci
{
  "symbol": "AAPL"
}
The same call with curl, Python and JavaScript
curl https://clickapis.com/v1/fibonacci \
  -H "Authorization: Bearer $CLICKAPIS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"symbol":"AAPL"}'
import os, requests

r = requests.post(
    "https://clickapis.com/v1/fibonacci",
    headers={"Authorization": f"Bearer {os.environ['CLICKAPIS_KEY']}"},
    json={
      "symbol": "AAPL"
    },
    timeout=60,
)
print(r.json()["data"])
const r = await fetch("https://clickapis.com/v1/fibonacci", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.CLICKAPIS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "symbol": "AAPL"
  }),
});
console.log((await r.json()).data);

Example response

Response 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
  }
}

Every response has the same envelope: ok, data and meta (op, units, cost_usd, ms, interval, billing, balance_usd, data_as_of, partial_last_bar). Numbers are decimals (0.05 = 5%), dates ISO, and a value that cannot be computed is null.

More examples