eth_signTypedData_v4 request: the Polymarket order that accepts the quote. Nothing costs gas.
The wallet must be set up on Polymarket first. Setup grants the approvals that combos spend: pUSD to Exchange V3 for buying, and Position Manager rights for Exchange V3 (cash-out) and the Router (redeem).
Quotes last about 5 seconds. Polymarket holds a combo quote for 5 seconds;
expiresAtMs is when it lapses. Show the price with comboQuote first, then start combo and open the wallet at once. If the signature arrives later, nothing is traded: Kairos gets a fresh quote under the same maxPrice or minProceeds, and the action asks for a new signature (needs_signature again, with a new request). This happens up to 3 times; after that the action fails with SIGNATURE_EXPIRED. The SDK’s run signs each request as it comes.Legs
A leg is a Polymarket Protocol V2 outcome position id, as a decimal string: one outcome of a market on Polymarket’s newer exchange. Only markets that Polymarket opens to combos can be legs; Polymarket lists them, with the position ids of each outcome, athttps://combos-rfq-api.polymarket.com/v1/rfq/combo-markets (position_ids[0] is the first outcome, [1] the second). Legs must be on different markets and must not contradict each other. Their order does not matter.
Makers decide what they price. A combo with a leg in play, or one that is already decided, may get no quote (NO_QUOTES), and a maker may still decline after the signature (VENUE_REJECTED; nothing is traded).
Quote
amount is pUSD to spend on a buy, or shares on a sell. The action ends done at once.
Quotes are limited to 20 a minute per wallet.
Buy
maxPrice (optional, 0–1) is the highest price per share the signed order may carry. If the quote is worse, the action is refused with 400 and code: PRICE_LIMIT; nothing is traded.
After the signature the action is working while Polymarket settles the trade on Polygon, usually a few seconds. The done result is the quote’s fields plus rfqId, status and transactionHash.
Cash out
List the wallet’s combos, then sell one back to the makers before it resolves:amount must equal sharesBalance. A maker may round the size down by less than 0.01 shares; the result’s shares is what was sold, and the remainder (worth under a cent) drops off the combos list. minProceeds (optional) is the least pUSD that may land after Polymarket’s and Kairos’s fees. A quote below it is refused with 422 and code: PRICE_LIMIT.
A combo can’t be cashed out once a leg has lost (it can no longer pay) or every leg has resolved (no maker buys a settled combo). Redeem a won combo instead.
Redeem a win
When a combo’sredeemable is true, every leg won. Redeem its shares for $1 each with an on-chain intent:
combo.market is polymarket: plus the combo’s condition id. sharesRaw is sharesBalance in 6-decimal base units ("19.32381" is "19323810"). Kairos checks the payout on chain before the wallet signs. Until every leg has resolved the intent answers 503, and a combo that lost is refused with 400. Only redeem works on a combo; split and merge answer 400.
A trading wallet enrolled in Polymarket’s auto-redeem (setup grants the Auto Redeemer when it is offered) is paid for a winning combo automatically, as soon as its last leg resolves: the combo leaves
GET /v3/wallets/{address}/combos and the pUSD is in the trading wallet. An intent prepared for a combo that was just auto-redeemed ends expired with nothing executed.What the wallet signs
The combo order is the same kind of request as a Polymarket order on the newer exchange (details):eth_signTypedData_v4on Polygon (0x89), an ERC-7739TypedDataSign- Domain
{ name: "Polymarket CTF Exchange", version: "3", chainId: 137, verifyingContract: 0xe3333700cA9d93003F00f0F71f8515005F6c00Aa } contentsis theOrder:makerandsignerare the trading wallet,signatureTypeis3,tokenIdis the combo’s YES position,sideis0to buy and1to sell,builderandmetadataare zero- Price is
makerAmount / takerAmountfor a buy,takerAmount / makerAmountfor a sell
side matches.
Errors
The first three come back as HTTP errors from
POST /v3/actions. The others are on a failed step’s errorCode. After ORDER_OUTCOME_UNKNOWN, read /v3/wallets/{address}/combos before you try again.
