Docs

Data dictionary

Every field RulesWatch publishes for a change, in the API, exports and webhooks, and every part of a rules history record file.

Sample dataset

Every edit and dispute on Polymarket and Kalshi from November 9 to 15, 2026, in the export format: CSV, one row per changed field, and JSON, one object per edit with the full old and new text. No key needed. Firm adds every week of the history, every edit the moment we find it instead of an hour later, the time of each price reading, the API and webhooks for both venues, a key for each seat, and a licence to use the data in your product. The Firm plan.

A change

FieldTypeMeaning
idintegerThe change's number. Unique and increasing. Ids removed as false are listed on /corrections.
venuetextpm (Polymarket) or kalshi.
market_idtextPolymarket's market id, or Kalshi's market ticker.
tsUnix secondsObserved: when RulesWatch first observed the new text. The edit was made at or before it. For a dispute, the block time of the dispute transaction.
prev_seenUnix seconds or nullEdited after: a time when the venue's public data still held the old text. The edit was made after it.
venue_tsUnix seconds or nullKalshi only: Kalshi's last-updated time for the market when RulesWatch observed the new text. Not part of the hashed content.
kindtextOne of clarification, rules, source, dates, title, dispute, resolution, filled. Defined on /methodology#kinds.
titletextThe market's title when the change was recorded.
slug, eventtextThe market's slug and event on the venue, for building its link.
summarytextA one-line description written by RulesWatch, such as "Rules: 4 words added".
addedtext or nullThe added words, as plain text, for previews.
noisetext or nullNull for an edit. Otherwise why the change is not counted as one: flap (a date or status value the venue showed, then withdrew within hours), stale (an out-of-date copy of the data), duplicate, format (spacing or formatting alone), amended or replaced (corrected; the corrected entry is linked from the change page) or uma (no matching dispute on the oracle's on-chain record). Entries with a noise value are no version of the rules.
url, history_url, market_urltextThe change page and the market page on RulesWatch (paths), and the market on its venue (a full address).
event_titletext or nullIn /api/change/<id> only: the title of the market's event.
diffarrayOne item per changed field: f (the venue's field name), label, and either ops, a list of [0 kept | 1 added | -1 removed, text] that rebuilds the old text from 0 and -1 and the new text from 0 and 1, or before and after for whole values such as dates.
leadinteger or nullWhen one edit lands on several markets of an event, the id of the first entry; null on that first entry.
p_before, p_before_ts0 to 1, Unix secondsYes price at the last reading before the edit, and when it was read. The reading can be earlier than prev_seen.
p_at0 to 1Yes price at observation.
p_after, p_after_ts0 to 1, Unix secondsA second Yes price reading after the change, and when it was read.
content_hashhexSHA-256 of the hashed text: the JSON array [id, venue, market_id, ts, prev_seen, kind, title, diff], with diff as stored. Given by /api/change/<id>/hashed.

prev_seen, p_before_ts and p_after_ts come with a Pro or Firm key and in exports; record files carry the window times, not prices. Times are Unix seconds in the API and ISO 8601 UTC in record files. Prices are defined on methodology.

A record file

PartMeaning
formatThe file format and its version, such as "RulesWatch rules history record, version 1".
referenceRWR-<VENUE>-<market id>-<latest change id>. Changes when a new version is recorded.
sha256SHA-256 of the record object serialized as compact JSON, in the order given.
sha256_ofWhat sha256 covers, in words.
integrity_logThe address of the integrity log.
recordreference, venue, market_id, title, market_url (the market on its venue), record_url (this record on RulesWatch), latest_version_at, versions and changes.
record.versions[]Every recorded version of the rules, oldest first: version, first_seen_with_this_text, last_seen_with_this_text, replaced_at, introduced_by_change and fields (field, label, full text).
record.changes[]Every change: change_id, kind, kind_label (the kind in words), last_seen_with_old_text (edited after), first_seen_with_new_text (observed), fields_changed, content_sha256 and url.
record.changes[].reverted_atOn an edit a later edit undid: when the reverting edit was observed, and reverted_by_change, its id. The edit stays a version.
record.changes[].recorded_late_atOn an entry written well after the event: when it was written. first_seen_with_new_text stays the event's time.
record.not_counted[]Entries that are not edits and make no version: the same fields as changes[], plus reason (the noise value) and reason_text.
verification.versionsHow each version follows from the hashed diffs.
text_snapshots.days[]For each version, the first and the last daily text snapshot that hold it: version, version_text_sha256 (computed from the version's fields), matches_version, day, cut, text_sha256 (the value in the snapshot), bucket, proof (steps to the root), root, prev, day_hash, anchor (the Bitcoin block).
integrity[]The integrity log day hash for each day that holds one of the record's changes; null until the day is sealed.
verification.howThe steps that check each change against the integrity log.
verification.changes[]For each change: change_id, log_day and hashed_text, the exact text whose SHA-256 is content_sha256.
timingThe meaning of the two times, as on /methodology#timing.
exported_atWhen the file was built. Not part of the record's hash.
reconstructed_disputesOnly on Polymarket markets with UMA disputes reconstructed from the on-chain record: provenance, note and disputes[] (proposed, proposed_at, disputed_at, dispute_tx, dispute_tx_url, settled, settled_at, settle_tx, yes_before, yes_at, yes_after). Not part of the record's hash or the integrity log.

Download a sample record file, the full file of one real market. Check it with node verify.mjs record sample-record.json (how).

Proof formats

The terms the proof page and its files use, each defined once.

Content hash
SHA-256 of the JSON array [id, venue, market_id, ts, prev_seen, kind, title, diff], where diff is the change's stored JSON text and ts and prev_seen are Unix seconds.
Day root
SHA-256 of the day's lines "id:change_hash", in id order, joined by a newline.
Day hash
SHA-256 of "previous day_hash\nYYYY-MM-DD\nrecords\nday_root". The first day's previous hash is 64 zeros. The day's line file holds exactly that text.
Day membership
A day holds the changes first observed that UTC day. A change recorded after its day was sealed is held by the next day sealed; the change's verification file names its day.
OpenTimestamps proof
A .ots file: the SHA-256 of the line file, then the operations (SHA-256, append, prepend) that lead from it to a Bitcoin block's Merkle root. The block's header holds that root, in reversed byte order.

Daily text snapshots

One commitment a day to the full rules text of every market RulesWatch holds. /api/snapshot/<venue>/<market id>/<YYYY-MM-DD> gives one market's text hash for that day and the steps to the day's root; the line is at /integrity/text/<day>.line.txt and its proof at /integrity/text/<day>.line.txt.ots.

text_sha256
SHA-256 of JSON.stringify([venue, market_id, [[field, text], ...]]): the market's fields in the order a record file lists them, empty fields left out, each value as a string.
bucket
The first three hex digits of SHA-256("venue:market_id"), read as a number from 0 to 4095.
tree
Each bucket is a Merkle tree over its markets' text_sha256 values in (venue, market_id) order; the day's root is a Merkle tree over the 4,096 bucket roots in order. A node is SHA-256 of the left and right child hashes written as 128 hex characters; a lone last node moves up unchanged; an empty bucket's root is 64 zeros.
line
The day's line is "previous day hash\nYYYY-MM-DD\ncut\nroot"; its SHA-256 is the day hash. The first day's previous hash is 64 zeros. Each day hash is timestamped through OpenTimestamps.
cut
A snapshot holds, for every market RulesWatch holds, the latest text RulesWatch had observed before the cut.
proof
Steps from text_sha256 to the root: for {left: h}, SHA-256 of h followed by the current hash; for {right: h}, the current hash followed by h.