Skip to main content
Prefer WebSocket for order submission. Placing and cancelling orders over the persistent /ws socket is lower-latency (one round trip instead of the REST submit/poll pair) and simpler to build: one connection, one auth handshake, and pushed order_update/fill events instead of polling. See Order Execution over WebSocket.
Kairos provides a unified order entry layer that abstracts the differences between venue order models. You submit orders through a single Execution API, and Kairos handles the translation, routing, and signature requirements for each underlying venue. This page covers how orders are structured, how they move through their lifecycle, and how to cancel them when needed.

Order Types

Kairos supports two fundamental order types across prediction market venues:

Limit Orders

You specify a maximum buy price or minimum sell price. The order rests on the order book until it matches or you cancel it.

Market Orders

You accept the best available price immediately, up to the price you send. Market orders fill against the existing book and do not rest. Every supported venue accepts them; a venue’s supported_order_types capability says so.

Key Order Fields

Every order you submit includes a standard set of fields. The table below describes the ones you use most. Submit Order lists every field.

Example Order Payload

Submit it with POST /orders:
queued means Kairos accepted the order. It is not yet live on the venue.

Order Lifecycle

Once submitted, an order moves through these statuses:
1

pending, then executing

Kairos accepted the order (pending), then a worker submits it to the venue (executing).
2

live

The venue accepted the order and it is resting on the book.
3

partial

Some of the size has filled. A resting remainder stays live; an immediate order (FAK/IOC) cancels it.
4

filled, cancelled, expired, or failed

The order is done. expired is a GTD order that reached its expiry. failed means it could not execute — read failure on the order.
A market order or an explicit FAK, IOC, or FOK that the venue kills with no fill ends as failed, not cancelled. Treat status as the source of truth. See Order Status Types.

Checking Order Status

Fetch a single order by the order_id that submit returned:
The full order carries more fields; see Get Order. List your orders with GET /orders.

Fee Quotes

Before submitting an order, request a combined platform + venue fee quote so you know the cost. GET /orders/fee-quote supports polymarket, kalshi, predictfun, and hyperliquid, and needs trade:read.
Check two flags before you show the quote:
  • pricing_unavailable: true means there was no price. Every number is a "0" placeholder. Show a “pricing…” state.
  • builder_approval_required: true means the user’s Hyperliquid orders will be refused until their wallet re-approves the Kairos builder fee. It is always false on other venues.
Every field is described in Fee Quote. For a live stream as the user sizes an order, use the Fee Quote WebSocket.
Always fetch a fee quote before displaying a trade confirmation UI to your users. Fees vary by venue and can differ between maker and taker.

Hosted and self-custody execution

Kairos offers two execution modes for on-chain venues (Polymarket, Predict.fun, Hyperliquid):
Kairos holds signing keys on your behalf. You call POST /orders and Kairos signs and submits the on-chain transaction for you. This is the simplest integration path.

Cancelling Orders

Cancel a single order

Cancel a specific set of orders

Use POST /orders/cancel-batch to cancel up to 100 orders on one exchange. Kairos validates the whole selection first: if any order is missing, someone else’s, already terminal, or not yet at the venue, nothing is cancelled.

Cancel all open orders on a venue

cancel-all cancels every open order you have on the specified exchange. There is no undo. Confirm the exchange_id value carefully before calling this endpoint. Add market_id to cancel only one market’s orders.

Cross-Venue Routing

When the same contract is listed on several venues, Kairos can split one buy across them. This fills sizes that no single venue’s book can absorb. Name any leg of the market link with provider and market_id. Step 1 — Price the route:
The response shows the per-venue split and the blended_effective price, venue fees included. Check routed — an unroutable plan is still a 200. Step 2 — Execute the routed buy:
Always send a price bound (slippage_cents, max_effective_price, or both) and a client_route_id. Without a bound the plan can walk every level of every book, and without the id a retry is a second buy. Step 3 — Close it later with POST /orders/route-close. Send a client_route_id so a retried close is returned (replayed: true) instead of selling twice.
Use GET /orders/routes to list your routed parent orders and track each leg’s fill status. The full flow, with responses and errors, is in Cross-venue routing.

Synthetic Books

Kairos can create a Synthetic Book — a virtual order book that combines liquidity across multiple related markets or venues. Synthetic books are useful for cross-venue arbitrage strategies and unified pricing views. Create or join a Synthetic Book definition with POST /v1/synthetics. Inspect an existing one with GET /v1/synthetics/{synthetic_id}. Leases expire and must be refreshed with POST /v1/synthetics/subscriptions/{subscription_id}/refresh.

Combos and Parlays

For Polymarket, Kairos supports combo orders — multi-leg parlays where you take a position on multiple independent outcomes simultaneously. Get a quote without executing with POST /combo/quote, then execute with POST /combo/execute. Manage open positions with GET /combo/positions.

Current Position Exposure

Check your live position exposure across all open orders and fills. It needs position:read: