{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/t0ll-xyz/json-schema/t0ll-xyz-stock-events-schema.json",
  "title": "StockEvents",
  "description": "One page of the stock event feed (lib/markets/events.ts EventsAnswer).",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/t0ll-xyz-openapi.json#/components/schemas/StockEvents",
  "type": "object",
  "properties": {
    "tier": {
      "type": "string",
      "enum": [
        "house",
        "team",
        "pro",
        "preview"
      ],
      "description": "the access the answer was read at"
    },
    "delay_s": {
      "type": "integer",
      "description": "rows found less than this many seconds ago are left out (0 = live)"
    },
    "as_of": {
      "type": "string",
      "description": "when this answer was put together, ISO UTC"
    },
    "count": {
      "type": "integer"
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "the row id: the cursor"
          },
          "kind": {
            "type": "string",
            "enum": [
              "listed",
              "delisted",
              "multiplier_scheduled",
              "multiplier_applied",
              "corporate_action",
              "feed_stale",
              "feed_paused",
              "feed_resumed",
              "filing"
            ]
          },
          "ticker": {
            "type": [
              "string",
              "null"
            ]
          },
          "token": {
            "type": [
              "string",
              "null"
            ],
            "description": "the Stock Token contract"
          },
          "at": {
            "type": [
              "string",
              "null"
            ],
            "description": "the source's time, ISO UTC"
          },
          "at_kind": {
            "type": [
              "string",
              "null"
            ],
            "description": "what at is: accepted / effective / date / detected"
          },
          "seen_at": {
            "type": "string",
            "description": "when Toll's poller found it, ISO UTC"
          },
          "data": {
            "description": "the event's facts, as the source gave them"
          },
          "page": {
            "type": [
              "string",
              "null"
            ],
            "description": "the token's Markets page"
          },
          "check": {
            "type": [
              "string",
              "null"
            ],
            "description": "Toll's check of the token contract"
          }
        }
      }
    },
    "next": {
      "type": [
        "integer",
        "null"
      ],
      "description": "poll again with since = next; it stays = since when nothing is new"
    },
    "poller_as_of": {
      "type": [
        "string",
        "null"
      ],
      "description": "the poller's last run, ISO UTC"
    },
    "behind": {
      "type": "string",
      "description": "only when the poller's last run is older than 15 minutes"
    },
    "poller_note": {
      "type": "string",
      "description": "only when the poller's last run could not be read"
    },
    "poll_s": {
      "type": "integer",
      "description": "how often to poll, seconds"
    },
    "kinds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "filings_note": {
      "type": "string"
    },
    "disclaimer": {
      "type": "string"
    }
  },
  "required": [
    "tier",
    "delay_s",
    "as_of",
    "count",
    "rows",
    "next",
    "poller_as_of"
  ]
}