Examples / Basics
Where are SPY's support and resistance levels?
Level 1 · BasicsPOST/v1/levels
What it answers
Finds price levels where SPY repeatedly turned over the last 250 bars, clusters nearby swing highs and lows, and reports classic pivot points for the next session.
Request
Input
POST /v1/levels{ "symbol": "SPY", "lookback_bars": 250 }
Live output billed to your account
Response
Output 200 OK
{ "ok": true, "data": { "symbol": "SPY", "as_of": "2026-11-12", "close": 756.35, "pivot_basis": { "date": "2026-11-12", "high": 763.03, "low": 753.7, "close": 756.35, "partial_bar_skipped": false }, "pivots": { "classic": { "r3": 771.0167, "r2": 767.0233, "r1": 761.6867, "p": 757.6933, "s1": 752.3567, "s2": 748.3633, "s3": 743.0267 }, "fibonacci": { "r3": 767.0233, "r2": 763.4593, "r1": 761.2574, "p": 757.6933, "s1": 754.1293, "s2": 751.9274, "s3": 748.3633 }, "camarilla": { "r4": 761.4815, "r3": 758.9158, "r2": 758.0605, "r1": 757.2052, "p": 757.6933, "s1": 755.4948, "s2": 754.6395, "s3": 753.7843, "s4": 751.2185 } }, "lookback_bars": 250, "lookback_range": { "high": 781.62, "high_date": "2026-10-06", "low": 627.6669, "low_date": "2026-03-30" }, "resistance": [ { "price": 775.767, "touches": 9, "last_touch": "2026-11-04", "distance": 0.025672 } ], "support": [ { "price": 754.8275, "touches": 13, "last_touch": "2026-10-30", "distance": -0.002013 }, { "price": 734.4976, "touches": 6, "last_touch": "2026-11-05", "distance": -0.028892 }, { "price": 718.6585, "touches": 2, "last_touch": "2026-06-26", "distance": -0.049833 }, { "price": 708.5612, "touches": 2, "last_touch": "2026-04-29", "distance": -0.063183 }, { "price": 700.4858, "touches": 1, "last_touch": "2026-04-23", "distance": -0.07386 } ], "range_52w": { "high": 781.62, "high_date": "2026-10-06", "low": 627.6669, "low_date": "2026-03-30", "dist_from_high": -0.03233, "dist_from_low": 0.205018, "position": 0.835859 }, "atr14": 10.9458, "notes": [ "Swing levels: fractal highs/lows (3 bars each side) merged when within 5.4729 (max of 0.5% and half an ATR)." ], "interval": "1day" }, "meta": { "op": "levels", "units": 2, "cost_usd": 0.0, "billing": "internal", "free_call": false, "free_calls_left": 0, "balance_usd": 5.0, "ms": 5, "interval": "1day", "data_as_of": "2026-11-12", "partial_last_bar": false } }
How to read it
support lists levels below the last close and resistance above it, each with how many times price touched it and how far away it is (distance is a decimal: −0.021 = 2.1% below). More touches mean a more established level.
Parameters and limits: Support & resistance reference. Analytics, not advice.