How combos work
How combos work
Combos bundle 2–32 outcomes from ACTIVE ORDER_BOOK markets and trade through requests for quotes (RFQs). Select one outcome per market and at most one market per group. Check the enabled flag from GET /api/v1/combos/config; every participating category must also allow combos and satisfy its size limits.
Request, accept, confirm
Request a BUY or SELL quote, accept an OPEN quote, then wait for maker confirmation. ACCEPTED is not a trade. Requests last up to 60 seconds, quotes 30 seconds, and confirmation 3 seconds, all capped by the earliest leg cutoff. Fills cover the full quantity. Only OPEN requests can be cancelled. Poll the request’s quotes endpoint until it returns a fill or a terminal EXPIRED/CANCELLED request; an empty quotes array alone does not establish the outcome.
Funds and settlement
BUY requests and acceptance do not lock cash. SELL requests reserve available gross long shares, even when net shares are zero. Minting locks price × quantity from the buyer and (1 − price) × quantity from the seller: $1 per share. Existing long claims can also be sold. Once every leg resolves or is voided, the long payout is quantity × product of leg values; shorts receive the remaining collateral. A winning leg is 1, a losing leg 0. Voided legs use their payout vector, otherwise the frozen YES mark (NO uses 1 − mark; fallback 0.5), or 1/N for categorical outcomes.
Authentication and retries
Use the scopes listed on each endpoint. Email accounts must be verified to request, post, accept, or confirm quotes. Save request and quote IDs. On combo writes, an optional Idempotency-Key can replay a successful response for up to 60 seconds. Use the same account, method, URL, and JSON body. Changing the body while the response is cached returns 409. Concurrent requests can both execute. Check the request or fill state after a timeout.
Maker notifications
Connect to wss://api.unhedged.gg/ws before quoting and send {"type":"auth","token":"ak_..."}, with order:read. Authentication joins your private room automatically. MARKET_MAKER or SUPER_ADMIN accounts can subscribe with {"type":"subscribe","room":"combo-quotes"}. This feed sends combo_quote_request and combo_quote_request_closed, initially replaying at most 100 OPEN requests. Private combo_quote, combo_quote_accepted, and combo_fill events carry updates in data. Send periodic ping messages. Private events and ACCEPTED quotes are not replayed after reconnect. Requesters reconcile through REST; makers cannot recover a missed confirmation window. Use the request’s fill to identify execution: combo_fill includes fillId, but no requestId or quoteId.