{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://firmtape.com/contracts/public/events/alerts/level_beyond.schema.json",
 "title": "level_beyond",
 "description": "Sent when the price closes your chosen number of one-minute bars in a row on the other side of the flip, the call wall or the put wall.",
 "allOf": [
  {
   "$ref": "envelope.schema.json"
  }
 ],
 "properties": {
  "type": {
   "const": "level_beyond",
   "description": "`level_beyond`."
  },
  "direction": {
   "enum": [
    "above",
    "below"
   ],
   "description": "The side the price closed on."
  },
  "threshold_minutes": {
   "type": "number",
   "description": "The minutes you picked, one close each."
  }
 },
 "x-when": [
  "Read on one-minute closes: a reading back inside the minute does not undo it, a close back on the first side starts the count again.",
  "Each size is sent once per crossing; after five closes beyond, the level counts as on that side.",
  "Not sent for where the price already is when the level is first seen."
 ],
 "x-features": [
  "level-alerts",
  "webhooks"
 ],
 "examples": [
  {
   "version": 1,
   "id": "evt_3f9a0c6e21d4b7a8e5f10c2d",
   "type": "level_beyond",
   "symbol": "SPX",
   "price": 6756.25,
   "book": "volume",
   "ts": "2026-10-29T14:32:05-04:00",
   "day": "2026-10-29",
   "levels": {
    "flip": 6715.5,
    "call_wall": 6750,
    "put_wall": 6700,
    "put_support": 6700
   },
   "level": {
    "kind": "call_wall",
    "value": 6750
   },
   "direction": "above",
   "threshold_minutes": 3,
   "text": "SPX closed 3 minutes above the call wall 6,750.00"
  }
 ],
 "x-source": "alerts",
 "x-product": "live",
 "x-plan": "live",
 "x-version": 1,
 "x-since": "2026-10-29",
 "x-switch-on": "Account, Level alerts: a webhook address, and the event on the watchlist.",
 "required": [
  "threshold_minutes"
 ]
}