Skip to main content
A lead.executable event describes a two-leg purchase that, because of a proven relation between two markets, pays at least $1 per pair in every outcome, and that could be filled at a profit when both order books were read. The body is the LeadEvent schema in the API reference; this page explains each field and walks through the numbers of one delivery. Slack subscriptions receive a text rendering instead (see the overview).

Example delivery

The body is shown formatted; the delivered bytes are compact and their key order is not guaranteed. Signatures are computed over the bytes as sent (see Verifying signatures, which uses this same event).

Fields

All fields are always present. Amounts are exact decimal strings (Decimal in the reference), never floats; timestamps are RFC 3339 in UTC.

Envelope

lead

Which sides cover which relation is fixed:

lead.depth

Walks both books’ asks, taking quantity while each additional pair, with both legs’ taker fees, still costs less than the $1 it pays. Whole contracts and each venue’s order minimum are then applied.

limited_by values

Issues and caveats

Every string starts with a category: caveats always contains unverified: top-of-book depth is unknown; asks are discovery observations. It describes the legs[].ask_usd estimate, which depth supersedes; read depth for the sizing and the caveats for what was assumed.

Worked example

Taking the delivery above:
  1. Relation. Kalshi’s “Kansas City at Las Vegas winner?” is proven equivalent to Polymarket’s “Chiefs win”, so buying No on Kalshi and Yes on Polymarket pays exactly $1 per pair whichever team wins.
  2. Top of book. At the crawl, the asks were 30¢ and 64¢: 94¢ for a guaranteed $1.
  3. Depth. Walking both books, 60 pairs could be bought before Kalshi’s No side ran out (limited_by: depth). The principal for 60 pairs was $56.40; the Kalshi leg's taker fee at the series rate came to $0.89 after rounding up to the cent, and the Polymarket market charges no fee.
  4. Net. 60 − 56.40 − 0.89 = 2.71. With the subscription’s default min_net of 1, the lead was delivered.
  5. Caveats. The fee is estimated, and the cross-venue caveat applies: if the game is postponed or cancelled, the two venues may settle differently, and the pair is no longer guaranteed.
The books were read at 18:10:12 UTC and the event created a second later; by the time you act, the asks may have moved. Re-read both books before ordering.

Handling advice

  • Acknowledge with 2xx before doing anything slow; Routeur waits 10 seconds in total.
  • Deduplicate on Routeur-Delivery; the same lead can also legitimately arrive again after six hours or when its net doubles, with a new delivery id and a new graph_run.
  • Treat net_usd as the ceiling for the whole size, not a per-contract figure.
  • Compare version with the one you built against and log anything else rather than failing.