ClickAPIs
Examples · QQQ hourly Fibonacci levels

Examples / Everyday

QQQ hourly Fibonacci levels

Level 2 · EverydayPOST/v1/fibonacci1hour bars

What it answers

Takes the dominant swing over the last 300 hourly bars and returns retracement and extension levels with their distance from the current price.

Request

Input POST /v1/fibonacci
{
  "symbol": "QQQ",
  "interval": "1hour",
  "lookback_bars": 300
}
Open in playground

Response

Output 200 OK
{
  "ok": true,
  "data": {
    "symbol": "QQQ",
    "as_of": "2026-11-12 15:30",
    "close": 688.0,
    "lookback_bars": 300,
    "swing": {
      "direction": "down",
      "high": 762.86,
      "high_date": "2026-10-06 10:30",
      "low": 647.26,
      "low_date": "2026-11-05 15:30",
      "range": 115.6,
      "range_pct": 0.178599
    },
    "retracement_now": 0.352422,
    "levels": [
      {
        "ratio": 1.0,
        "label": "100%",
        "kind": "swing",
        "price": 762.86,
        "distance": 0.108808,
        "position": "above"
      },
      {
        "ratio": 0.786,
        "label": "78.6%",
        "kind": "retracement",
        "price": 738.1216,
        "distance": 0.072851,
        "position": "above"
      },
      {
        "ratio": 0.618,
        "label": "61.8%",
        "kind": "retracement",
        "price": 718.7008,
        "distance": 0.044623,
        "position": "above"
      },
      {
        "ratio": 0.5,
        "label": "50%",
        "kind": "retracement",
        "price": 705.06,
        "distance": 0.024797,
        "position": "above"
      },
      {
        "ratio": 0.382,
        "label": "38.2%",
        "kind": "retracement",
        "price": 691.4192,
        "distance": 0.00497,
        "position": "above"
      },
      {
        "ratio": 0.236,
        "label": "23.6%",
        "kind": "retracement",
        "price": 674.5416,
        "distance": -0.019562,
        "position": "below"
      },
      {
        "ratio": 0.0,
        "label": "0%",
        "kind": "swing",
        "price": 647.26,
        "distance": -0.059215,
        "position": "below"
      },
      {
        "ratio": 1.272,
        "label": "127.2%",
        "kind": "extension",
        "price": 615.8168,
        "distance": -0.104917,
        "position": "below"
      },
      {
        "ratio": 1.618,
        "label": "161.8%",
        "kind": "extension",
        "price": 575.8192,
        "distance": -0.163053,
        "position": "below"
      },
      {
        "ratio": 2.618,
        "label": "261.8%",
        "kind": "extension",
        "price": 460.2192,
        "distance": -0.331077,
        "position": "below"
      }
    ],
    "nearest_resistance": {
      "ratio": 0.382,
      "label": "38.2%",
      "kind": "retracement",
      "price": 691.4192,
      "distance": 0.00497,
      "position": "above"
    },
    "nearest_support": {
      "ratio": 0.236,
      "label": "23.6%",
      "kind": "retracement",
      "price": 674.5416,
      "distance": -0.019562,
      "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": "1hour"
  },
  "meta": {
    "op": "fibonacci",
    "units": 5,
    "cost_usd": 0.0,
    "billing": "internal",
    "free_call": false,
    "free_calls_left": 0,
    "balance_usd": 5.0,
    "ms": 199,
    "interval": "1hour",
    "data_as_of": "2026-11-12 15:30",
    "partial_last_bar": false
  }
}

How to read it

levels lists each ratio with its price; nearest_support and nearest_resistance are the closest levels below and above the last close.

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