What should an AI prediction market system check before submitting an order?
Before submitting, freeze venue, product and resolution identity; rebuild the executable ask from the book; compute the current fee tier and all-in debit; verify the correct write bucket and idempotency; and separate cash locked by a fill from unresolved-outcome exposure. Reject on missing rules, stale or thin books, fee-budget breach, batch admission failure, or a perps price-band violation; clip only after all other checks pass.
Freeze venue, product and resolution identity
Start by requiring the system to resolve venue, product and resolution mechanism: Kalshi event contract, Kalshi perps, Polymarket international CLOB, or Polymarket US. Polymarket’s international prediction markets use UMA, while its up-down markets use Chainlink TWAP; the title is not the rules. Hash the resolution source, end date and edge-case text into the order record. If any field is absent or ambiguous, fail closed rather than infer.
Match the credential and fee table to the selected surface. Polymarket’s international CLOB is documented at clob.polymarket.com for prices, books and orders; Polymarket US publishes its own fee schedule. For Kalshi, tag event-contract versus perps before any budget or risk check, because the documentation meters those lanes separately. An AI system should never let a generic “Polymarket” or “Kalshi” label stand in for the actual venue and product.
Rebuild the executable price and fee-inclusive limit
Kalshi’s order book returns bids only, sorted ascending, with the best bid last. Rebuild the best YES ask as $1.00 minus the highest NO bid. In the documented example, $1.00 − $0.56 = $0.44, against a best YES bid of $0.42, so the spread is $0.02. For a marketable or taker buy, reject if the intended limit is below that implied ask or if depth at or better than the limit cannot fill the clip. Use decimal arithmetic.
Polymarket US prices taker fees by volume tier. Effective 1:00 PM ET on November 6, 2026, Tier 1 uses Θ = 0.095 and Tier 4 uses 0.0695. The coefficient is set when an order is inserted. Hypothetical: buy 100 contracts at $0.44 on Tier 1. Fee = 0.095 × 100 × 0.44 × 0.56 = $2.3408, rounded to $2.34. All-in cash = $44.00 + $2.34 = $46.34. A $45.00 cap means reject or clip to 97 contracts.
Budget writes and make batch admission explicit
For Kalshi event-contract writes, most authenticated requests cost 10 tokens. A 25-order create batch costs 250 tokens and the whole batch must fit at once. If the unscoped Write bucket holds 200, reject and split the batch. A single REST write with exchange_index ≥1 bills that shard; exchange_index 0 bills unscoped; auto-routed traffic bills every shard; batch creates and cancels always bill unscoped.
Polymarket’s CLOB uses per-signer order and cancel buckets. Under live enforcement, a batch is admitted only when the bucket covers every entry; otherwise the whole request is rejected. Its docs still describe warning mode and Poly-RateLimit-Warning, so do not assume enforcement is active without venue confirmation. Kalshi perps use separate Write buckets, and the price band rejects a bid above the higher of twice the best ask or best ask plus 1,000 ticks. Empty other side means no band.
Separate locked cash from unresolved-outcome exposure
Record two quantities separately: cash locked by a fill and unresolved-outcome exposure. A filled event-contract buy locks premium plus fee, but the position still carries full settlement risk. On Polymarket international, a disputed UMA market can take four to six days, and trading stops once resolved; Chainlink TWAP up-down markets use a fixed comparison and do not import UMA delay. A Kalshi perps margin check must not be reused as an event-contract cash check.
Polymarket US measures volume by dollars paid for the position, not face value: buy volume is C × p, sell volume is C × (1 − p). That supports tier checks, not resolution-risk sizing. The gate should reserve the debit and fee, mark maximum loss separately, and block new orders when unresolved exposure plus locked cash breaches the desk limit. For UMA markets, add dispute-delay capital; reconcile fills before any retry.
| Check | Observed (hypothetical) | Decision |
|---|---|---|
| Resolution scope | Polymarket intl UMA; rules, source and edge cases present | Pass; store rules hash and UMA dispute flag |
| Kalshi YES ask | Best YES bid $0.42; best NO bid $0.56 | Pass at $0.44; spread $0.02 |
| Polymarket US fee | 100 contracts at $0.44; Tier 1 Θ=0.095 | Fee $2.34; all-in cash $46.34 |
| Kalshi batch write | 25 creates = 250 tokens; unscoped Write balance 200 | Reject; split below unscoped capacity |
| Kalshi perps band | Bid above higher of 2× best ask or best ask + 1,000 ticks | Reject invalid price; re-limit inside band |
Assumptions and scope
- All prices, sizes, token balances, fee tiers and the $45.00 cap are hypothetical and illustrate the gate, not a live quote.
- The system already holds authenticated credentials for the selected venue and maintains a local idempotency and reconciliation ledger.
- Fees are checked against the venue’s current schedule at order time; the Polymarket US example uses Tier 1, not Table Tennis or combo.
- Resolution-source checks assume the market’s rules are machine-readable; if they are not, the gate must fail closed.
Sources and verification
- Polymarket resolution mechanisms
Source checked Nov 7, 2026. - Polymarket API surfaces
Source checked Nov 7, 2026. - Polymarket US fee schedule
Source checked Nov 7, 2026. - Kalshi order book conventions
Source checked Nov 7, 2026. - Kalshi API rate limits
Source checked Nov 7, 2026. - Polymarket trading rate limits
Source checked Nov 7, 2026. - Kalshi API changelog
Source checked Nov 7, 2026.
Prepared by Skybit Research with AI assistance and automated source checks. Examples and assumptions are identified in the article. No human reviewer is implied. Check the exact contract and current venue documentation before applying a method.