Skip to main content

Giving times

Every time parameter (start, end, at, the time filters) takes one of three forms: Digits beyond milliseconds are dropped. Every time in a response is RFC 3339 UTC with milliseconds, such as 2026-11-03T14:00:00.000Z.
Epoch times are in milliseconds. A time in seconds (ten digits) is rejected with invalid_parameter.

Windows

A window is [start, end): start is included and end is not. An end later than now is treated as now.

How recent the data is

New data arrives hour by hour.
  • Kalshi: data for an hour is normally available about 30 minutes after the hour ends.
  • Polymarket: prices and books for an hour are normally available about 2½ hours after the hour ends. Trades for an hour are normally available 1 hour 40 minutes to 2 hours 40 minutes after it ends. Prices with last and mid candles read both the mids and the trades, so they wait for both; trade candles wait for the trades. Statistics are about 6½ hours behind, and an interval appears once it has ended before that, so hourly rows can be up to 7½ hours behind and a day’s row arrives the next morning. A new market appears the day after it’s created.
A history request whose window reaches past the newest data ends there, and so does one that reaches a day whose data is still loading. An interval is never shown as empty before its data has arrived: ask again later for the rest. A repeated request for a list of series, events or markets may be answered from a copy up to a minute old.

Grid rows

Prices, candles, statistics and sampled books come as rows on a UTC time grid, one row per interval. A row’s t is the start of its interval [t, t + resolution). Its prices, its book and the state fields of its statistics are as of the interval’s end: the close. So a 1h row with t = 14:00 holds the book as it stood just before 15:00, and every grid endpoint lines up on t. Only whole intervals inside the window are returned. A row has carried: true when nothing changed in its interval, so its values repeat the previous row’s. Where there is no data at an interval’s end, its values are null.
The same t means the same instant on every endpoint and every venue, so you can join prices, candles, statistics and books from different markets on t without shifting anything.

Event rows

Best bid and ask changes, book changes and trades come as one row per event, with:
  • ts, the venue’s time of the event, in milliseconds;
  • seq, which orders a market’s rows that share the same ts, from 1.
(ts, seq) is a row’s position in its market. It orders rows within one market; don’t compare it across markets. Book changes come in (ts, seq, side, price) order, and the starting book of a window has seq 0. See Sub-minute data.