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.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
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.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 theorder_id that submit returned:
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.
pricing_unavailable: truemeans there was no price. Every number is a"0"placeholder. Show a “pricing…” state.builder_approval_required: truemeans the user’s Hyperliquid orders will be refused until their wallet re-approves the Kairos builder fee. It is alwaysfalseon other venues.
Hosted and self-custody execution
Kairos offers two execution modes for on-chain venues (Polymarket, Predict.fun, Hyperliquid):- Hosted (API key)
- Self-custody (Partner API)
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
UsePOST /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
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 withprovider and market_id.
Step 1 — Price the route:
blended_effective price, venue fees included. Check routed — an unroutable plan is still a 200.
Step 2 — Execute the routed buy:
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.
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 withPOST /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 withPOST /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 needsposition:read:

