Skip to main content
Cross-venue routing splits one buy across the venues that list the same contract and that your account can trade. Kairos plans the split from the live books, sends one child order per venue, and tracks them under a single parent route. You can close the whole position later in one call.
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.
This guide is for Kairos accounts. To route a buy from a user’s own wallet, where the wallet signs each venue’s order, use a routedOrder in the Partner API.

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 with provider and market_id. Kairos finds the link from that leg.
A link maps the sides. It doesn’t guarantee the venues settle the same way. Each child order is an ordinary position on its own venue and resolves under that venue’s rules, including its data source and its tie, void, and postponement rules. Check them before you hold a routed position to resolution.
  1. You quote a size with GET /orders/route-quote. Kairos plans per-venue sizes and limit prices.
  2. You buy with POST /orders/route-buy. Kairos creates a parent route and submits one child order per planned leg.
  3. You track the parent with GET /orders/routes, and each child with GET /orders/{order_id}.
  4. You close with POST /orders/route-close. Kairos sells your holdings on every leg.
Which legs Kairos can trade for you depends on your account: 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.
A 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.
Kairos publishes approved links on the Data API. You don’t need credentials to read them.
Each row lists its 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.
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 polymarket and predictfun are accepted. confirm defaults to false, so nothing is written.
Check that the YES and NO labels pair the way you expect. Read every entry in warnings.
2

Confirm the link

Send the same legs with "confirm": true and the preview’s verification_fingerprint as fingerprint.
The response has 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.
Kairos checks one thing: the venues’ YES/NO labels must match exactly (case-insensitive), so a 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.
This endpoint returns errors as {"message": "..."}, not {"error": "..."}, and has no code field. Read message.

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 from est_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.
The platform fee is configuration and can change. If your tier’s rate is above zero, add it to the quote yourself: 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_no are the link’s union books, one per side. book_synthetic_id_yes / book_synthetic_id_no are their deep twins, for a full-depth order-book view. Each is null when that book isn’t available.
  • token_id_yes / token_id_no are the tokens the union book reads for that leg. On Kalshi they are built from the ticker as <ticker>::0 and <ticker>::1. Where another ticker books the NO side, token_id_no is that ticker’s YES token, <market_id_no>::0.
  • market_id_no and stream_key_no appear only on a leg whose NO side is booked by another market, such as a Kalshi game that lists one ticker per team.
  • yes / no are the taker fee for buying each side. yes_sell / no_sell appear only where selling costs a different fee.
  • model is curve (rate_ppm/1e6 × (p × (1 − p))^exponent; exponent is omitted when it is 1), min_side_bps (bps/1e4 × min(p, 1 − p)), notional_bps (bps/1e4 × p), or none. estimated: true means a default stood in because the live fee was unavailable.
  • executable says whether Kairos routes to this leg for you.
  • connectable is true on a Kalshi leg you could unlock by connecting a Kalshi account.
  • routed is true only when at least two legs are executable for you.
  • An unknown market is still a 200, with routed: false and an empty legs.

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.
A leg’s 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 plan that can’t be built is still a 200. Check routed, not the status code. routed: false means no approved link, no live sources, or no routable leg with a live book. An unknown provider or market_id is also a 200 with routed: false.
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:
  • routed is true here when a single leg is executable for you, so a quote can plan the whole size on one venue. route-fees reports routed: true only with two or more executable legs.
  • A quantity too small to place returns routed: true with planned: "0" and no legs. stop is below_minimum when every leg fell under its venue’s minimum. Check planned before you buy.
Amounts are decimal strings with a varying number of decimal places, such as "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.
**API-key buys have a $5 minimum per leg.** The quote doesn't apply it. A leg under $5 of notional can appear in the plan and is then refused when route-buy submits it. The route ends partial if another leg was placed, and the whole buy is refused with 422 legs_refused if none was. Size the buy so every planned leg’s est_notional is at least 5.

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.
How Kairos executes the buy:
  • 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_price to bound the price you accept.
  • Always send a price bound. With neither slippage_cents nor max_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 its planned_limit_price. With slippage_cents, a Polymarket, Predict.fun, or Kalshi child may pay up to your slippage cap, which can be above its planned_limit_price, and never above max_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.
Partial success is a 200; a buy that placed nothing is a 422. A new route with at least one leg placed returns status: "submitting", because children are dispatched asynchronously. A leg that failed to submit has order_id: null and an error string. When every leg was refused, the response is a 422 with the same body plus "error": "legs_refused" and status: "failed": keep its route_order_id, the route is recorded. Don’t parse error; it is a debug rendering. Check every leg, then track the children. An error that starts with outcome unknown: means the child may be live: don’t buy that size again until GET /orders/routes shows the leg as final.

Retry a buy safely

Send a client_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 be filled, partial, or failed by then. Replaying a buy that placed nothing returns the same 422 legs_refused, with replayed: true.
  • If the id was already used by a route-close, the buy is refused with 409. Pick a new id.
Without a 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 _bps are basis points of $1: `6168` is $0.6168.
  • action is buy for a route-buy parent and sell for a route-close parent.
  • A parent’s status is submitting until every child is final. It then becomes filled, partial (some shares filled), or failed (nothing filled).
  • planned_limit_price_bps is the planned buy price or the close floor. A buy child sent with slippage_cents may have a higher limit, up to your slippage cap. It is 0 on a leg that was skipped, and error says why.
  • A leg that failed before its order was placed has null for market_id, token_id, outcome, order_id, and order_status. Its error holds the reason as a debug rendering, for example CollateralLocation { 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 filled when fills reach the requested quantity. A whole-share venue can’t fill a fractional remainder, so a fully executed plan can still end partial.
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.
leg_caps is fail-closed. If you send it, a leg with no entry is left out of the close. It is not closed in full. List every venue you want to sell on.

Retry a close safely

Send a client_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 be submitting. Read the legs, or follow the parent in GET /orders/routes.
  • If the id was already used by a route-buy, the close is refused with 409. Pick a new id.
Without a 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.