Base URL:
https://execution.kairos.trade. Send the API key triple (X-Client-Id / X-Api-Key / X-Api-Secret) on every call. route-buy, route-close, and market-links are mutations; the triple satisfies their mutation gate.How routing works
A market link says that markets on two or more venues are the same real-world contract. Every routing call names one leg of a link withprovider and market_id. Kairos finds the link from that leg.
- You quote a size with
GET /orders/route-quote. Kairos plans per-venue sizes and limit prices. - You buy with
POST /orders/route-buy. Kairos creates a parent route and submits one child order per planned leg. - You track the parent with
GET /orders/routes, and each child withGET /orders/{order_id}. - You close with
POST /orders/route-close. Kairos sells your holdings on every leg.
A leg you can’t trade is display-only. Kairos never plans an order on it. Hiding Kalshi never blocks a close:
route-close still sells what you hold there.
Bridge funding is not available in production yet.
collateral: "fund" is accepted, but a leg whose venue is short is refused instead of funded. Keep enough balance on each venue you route to, or send collateral: "check" to learn about a shortfall before anything is sent.403 from route-buy or route-close has one of two causes. Kairos checks your API key’s trade:execute scope for provider first, then whether routed execution is on. Both refusals have an empty body. GET /orders/routes works either way, so your history stays readable.
Step 1: Find a market link
Kairos publishes approved links on the Data API. You don’t need credentials to read them.GET /market-links/featuredlists every approved link with a union order book, ranked by recent market activity.GET /market-links/lookupreturns the link that holds a market you already know.
venues. Pass any leg’s provider and marketId to the routing calls below.
A venue’s executable flag in the catalog is the same for every account. It is never true on Kalshi, because Kalshi routes only for accounts with a Kalshi credential connected. To learn what you can route, read executable from GET /orders/route-fees, which answers for your account.
To show every venue’s prints for the link on one stream, subscribe to its union id on the synthetic.trades topic.
If no published link covers your markets, you can create your own in Step 2. Otherwise skip to Step 3.
Step 2 (optional): Create your own link
POST /orders/market-links creates a link that only you can route. It is a two-call flow: preview first, then confirm. An API key needs the trade:execute scope, because a link changes where your later routed orders go. You can also send an optional title for the link.
1
Preview the pairing
Send exactly two legs on two different venues. Only Check that the YES and NO labels pair the way you expect. Read every entry in
polymarket and predictfun are accepted. confirm defaults to false, so nothing is written.warnings.2
Confirm the link
Send the same legs with The response has
"confirm": true and the preview’s verification_fingerprint as fingerprint.status: "created" and a link_id. If you can already route these markets, status is exists and scope says whether the link is global or your own user link.Yes/No market never pairs with a Trump/Harris market. It doesn’t check that the two markets ask the same question or settle the same way. That is yours to confirm, and a different expiry is only a warning. A link you create can’t be deleted, and it counts toward your limit. You can hold up to 25 links, and you can send up to 15 link requests per minute, previews included.
What a routed order costs
A routed order has no routing fee. Each child order pays what a single order on that venue would pay:
The planner ranks venues by price after the venue fee, so a venue with a worse displayed price can still win the order. The venue formulas are on the fees page: Polymarket and Kalshi charge on a curve that peaks at 50¢, Predict.fun charges on the cheaper side of the price, and Hyperliquid charges nothing to buy.
Bridge funding is not switched on in production yet, so no leg is bridged there today and
est_bridge_fee reads "0". Once it is on, a leg whose venue is short pays the bridge fee on top of the venue fee, and blended_effective does not include it.
Bridge fee by route
Which bridge provider carries a leg is chosen per quote, so read the fee fromest_bridge_fee, never from a fixed rate. The example column is what a 100 USDC bridge cost when measured in November 2026; it is not a rate card. A figure marked as an estimate is the bridge provider’s own quote, not yet measured through Kairos.
- First-time Hyperliquid fee. Hyperliquid charges to open an account that has never held funds. The bridge provider passes that on: 1.00 to 1.20 USDC depending on the provider, once per account. It is already inside
est_bridge_fee, so the first bridge into a new Hyperliquid account quotes about 1 USDC higher than later ones. - You never pay gas for a bridge. Kairos sends and pays for the bridge transactions on every chain, so your account needs no POL, BNB or other gas token. Whatever the bridge provider charges for gas is already inside
est_bridge_fee. - Hyperliquid arrives in the spot balance. A bridged leg never funds the perp balance.
- Kalshi never funds another venue’s leg, and Hyperliquid’s perp balance never does. A leg that is short and could only be covered from one of them is refused like any other shortfall.
- The fee is not the worst case. A bridge also guarantees a minimum arrival, which can sit 1% to 2% below the amount sent. Kairos funds a leg only when that minimum covers the shortfall.
route-quote does not include it.
Step 3: Check the fee model
GET /orders/route-fees returns each leg’s fee model, so you can show the routing cost before you quote a size. It needs trade:read for provider.
synthetic_id_yes/synthetic_id_noare the link’s union books, one per side.book_synthetic_id_yes/book_synthetic_id_noare their deep twins, for a full-depth order-book view. Each isnullwhen that book isn’t available.token_id_yes/token_id_noare the tokens the union book reads for that leg. On Kalshi they are built from the ticker as<ticker>::0and<ticker>::1. Where another ticker books the NO side,token_id_nois that ticker’s YES token,<market_id_no>::0.market_id_noandstream_key_noappear only on a leg whose NO side is booked by another market, such as a Kalshi game that lists one ticker per team.yes/noare the taker fee for buying each side.yes_sell/no_sellappear only where selling costs a different fee.modeliscurve(rate_ppm/1e6 × (p × (1 − p))^exponent;exponentis omitted when it is 1),min_side_bps(bps/1e4 × min(p, 1 − p)),notional_bps(bps/1e4 × p), ornone.estimated: truemeans a default stood in because the live fee was unavailable.executablesays whether Kairos routes to this leg for you.connectableistrueon a Kalshi leg you could unlock by connecting a Kalshi account.routedistrueonly when at least two legs are executable for you.- An unknown market is still a
200, withrouted: falseand an emptylegs.
Step 4: Get a route quote
GET /orders/route-quote plans a buy without submitting anything. route-buy plans again from the live books when you submit, so treat the quote as a preview. It needs trade:read for provider.
Send the quote the same
collateral you will send route-buy. route-buy defaults to skip, which plans from the books alone. A quote without collateral may instead be planned as a fund buy, which only plans what your balances and bridge funding can cover: on an account with no balance it returns no legs and stop: "exhausted", where the same request with collateral=skip returns the full plan.
market_id is the id Kairos trades that venue’s market by, which can differ from the id you sent: the request above names Polymarket’s condition id and the leg comes back with Polymarket’s numeric market id. Match legs by provider.
A 400 means the query itself is wrong. A missing or unparseable parameter returns a plain-text message that names it, such as Failed to deserialize query string: missing field side“. A side other than yes or no, a quantity of 0 or less, and a slippage_cents outside 1–99 return a 400 with an empty body.
Two things differ from route-fees:
routedistruehere when a single leg is executable for you, so a quote can plan the whole size on one venue.route-feesreportsrouted: trueonly with two or more executable legs.- A quantity too small to place returns
routed: truewithplanned: "0"and no legs.stopisbelow_minimumwhen every leg fell under its venue’s minimum. Checkplannedbefore you buy.
"49.9990" or "0.4897959183673469387755102041". Parse them as decimals; don’t compare them as text.
Read these fields before you buy:
stop: "below_minimum" means every leg fell under its venue’s minimum order (Polymarket $1.00, Predict.fun 0.90 USD, Hyperliquid 10 USDC). Raise quantity.
Step 5: Execute the route
POST /orders/route-buy takes the quote’s inputs plus optional safety fields. Each child order goes through the same validation, scope checks (trade:execute per venue), and rate limits as POST /orders.
- It plans again when you submit. Your quote is a preview, not an instruction. Kairos re-reads the live books, so the split can differ from the quote. Use
max_effective_priceto bound the price you accept. - Always send a price bound. With neither
slippage_centsnormax_effective_price, the plan can walk every level of every book to fill your size. - Every child is an immediate order with a price limit. It fills what it can and cancels the rest, so a leg can under-fill. Without
slippage_cents, a child’s limit is itsplanned_limit_price. Withslippage_cents, a Polymarket, Predict.fun, or Kalshi child may pay up to your slippage cap, which can be above itsplanned_limit_price, and never abovemax_effective_price. A Hyperliquid child always uses its planned price. - Venues are not atomic. One leg can fill while another fails. The parent then ends
partial. Kairos doesn’t re-route or unwind the failed size.
Retry a buy safely
Send aclient_route_id, then resend the same body with the same id after a timeout or a dropped connection. Kairos matches on the id alone and doesn’t compare the body, so never reuse an id for a different order:
- If Kairos already placed that buy, you get it back with
replayed: true. Nothing is planned or sent again. - A replayed buy reports its stored
status, which may befilled,partial, orfailedby then. Replaying a buy that placed nothing returns the same422legs_refused, withreplayed: true. - If the id was already used by a route-close, the buy is refused with
409. Pick a new id.
client_route_id, every retry is a new buy.
Step 6: Track your routes
GET /orders/routes lists your routed parents, newest first, with each leg’s child order, status, and fill. It needs trade:read. limit defaults to 50 and is clamped to 1–200.
- The response is a bare array.
- Prices ending in
_bpsare basis points of $1: `6168` is $0.6168. actionisbuyfor aroute-buyparent andsellfor aroute-closeparent.- A parent’s
statusissubmittinguntil every child is final. It then becomesfilled,partial(some shares filled), orfailed(nothing filled). planned_limit_price_bpsis the planned buy price or the close floor. A buy child sent withslippage_centsmay have a higher limit, up to your slippage cap. It is0on a leg that was skipped, anderrorsays why.- A leg that failed before its order was placed has
nullformarket_id,token_id,outcome,order_id, andorder_status. Itserrorholds the reason as a debug rendering, for exampleCollateralLocation { message: "Bridge funding could not start (not_enabled); nothing was moved. Try again.", available: [] }. In production that one means the venue was short of funds: fund it and send a new buy. - A buy counts as
filledwhen fills reach the requested quantity. A whole-share venue can’t fill a fractional remainder, so a fully executed plan can still endpartial.
created_at and completed_at here have no timezone offset, unlike Order.created_at. Don’t parse them as RFC 3339 instants.Step 7: Close a routed position
POST /orders/route-close sells your holdings on every leg of the link. It doesn’t take a route id: name any leg with provider and market_id, and the side you hold.
Each leg sells with an immediate fill-and-kill order at a floor of its best bid minus
slippage_cents, never below 0.01. It is a limit order on every venue but Predict.fun, where the child is a market order capped at the same floor, so GET /orders/{id} shows market for it. A leg with no bid is recorded but not sold. Holdings are rounded down to the venue’s share precision. A leg below the venue’s minimum sellable size (0.01 shares on Predict.fun) is skipped.
closing is the total shares being sold. Check every leg’s error, as with route-buy.
Retry a close safely
Send aclient_route_id on every close. If the request times out or the connection drops, resend the same body with the same client_route_id:
- If Kairos already placed that close, you get it back with
replayed: true. Nothing is sold again. - A replayed close reports its stored
status, which may no longer besubmitting. Read the legs, or follow the parent inGET /orders/routes. - If the id was already used by a route-buy, the close is refused with
409. Pick a new id.
client_route_id, every retry is a new close request that sells whatever you still hold.
Error bodies on the routing endpoints are empty unless this page shows one. Branch on the status code.
Full workflow
Matched markets
Find linked markets and cross-venue prices.
Orders
Single-venue order entry and the child-order lifecycle.
Synthetic book stream
Stream a link’s union book and every venue’s trades.

