Recording 7 venues

GET/api/v1/markets/{ticker}/preview

Get market preview

Recorded window, YES price when the book moved, plus a slice of snapshots (top of book over time) and L2 market data (every book change). This is the UI path — not a full dump.

Auth required. No query parameters. The server owns the window, downsample, and cache.

Try it

Loading…

GET/api/v1/markets/KXBTC15M-26OCT131200-00/preview

What you get

  • coverage: first and last recorded print, and whether L2 was found
  • path: up to 240 YES bid/ask points from the 1-minute bars, only when chartable (bid range of at least 0.04). A locked book at the end is cut off.
  • path_source: which stretch path covers. life is the market's whole published life, busiest is the stretch where most of its contracts traded, and window is the preview window (up to 40 points). null when the path is empty.
  • sample: up to 8 snapshot rows (top of book over time)
  • l2_sample: up to 8 L2 rows. An l2_snapshot_msg row is a full book (yes_bids and no_bids); an l2_delta row is one level change (side, price, delta).
  • style: close for a window of 90 minutes or less, span for a longer one
  • cached: true when served from the cache
  • pending: true on a cold miss while the preview is built in the background, with everything else empty. Poll this endpoint until it is false.
  • span_complete and l2_pending: l2_pending is true while the L2 rows come from live quotes or a rebuild that did not cover the whole window (span_complete: false). A fresh rebuild has started; ask again later.

The preview is the one place a short window applies. Its sample and l2_sample rows come from at most the last 24 hours of the market's life, ending at its close or at the end of the last published day, whichever is earlier; path comes from the 1-minute bars over the stretch path_source names. (On Get snapshots, preview=true likewise keeps only the last 15 minutes of a window.) For a window of your own, any length, use Get snapshots, which pages with next_start_ts. For history, list daily files or save a request on Downloads. Book replay for one market-day is replay.

curl
curl "https://kalshieye.com/api/v1/markets/KXBTC15M-26OCT131200-00/preview" \
  -H "Authorization: Bearer $KALSHIEYE_API_KEY"
200 response (trimmed)
{
  "ticker": "KXBTC15M-26OCT131200-00",
  "series": "KXBTC15M",
  "layer": "preview",
  "schema": 4,
  "start_ts": 1791906300.0,
  "end_ts": 1791907140.0,
  "chartable": true,
  "path_source": "life",
  "style": "close",
  "cached": true,
  "pending": false,
  "span_complete": true,
  "l2_pending": false,
  "coverage": { "first_print_ts": 1791906359.0, "last_print_ts": 1791907203.0, "has_l2": true, "prints": 831 },
  "useful": { "start_ts": 1791906300.0, "end_ts": 1791907140.0, "reason": "locked" },
  "path": [
    { "ts": 1791906300.0, "yes_best_bid": 0.43, "yes_best_ask": 0.44 },
    { "ts": 1791906360.0, "yes_best_bid": 0.35, "yes_best_ask": 0.36 },
    { "ts": 1791907080.0, "yes_best_bid": 0.997, "yes_best_ask": 0.998 }
  ],
  "sample": [
    { "ts": 1791906359.0, "yes_best_bid": 0.43, "yes_best_ask": 0.44 }
  ],
  "l2_sample": [
    {
      "ts": 1791906358.762517,
      "type": "l2_snapshot_msg",
      "seq": 647839,
      "yes_bids": [[0.43, 7226.7], [0.42, 4511.23], [0.41, 4164.1]],
      "no_bids": [[0.56, 7344.3], [0.55, 8126.06], [0.54, 3300.1]]
    },
    { "ts": 1791906358.762517, "type": "l2_delta", "seq": 647840, "side": "no", "price": 0.25, "delta": 100.0 }
  ]
}

This window's path has 14 points, one a minute until the book locked near 1 (useful.reason: locked). A market that ran for days has up to 240.