What you’ll build: a parlay portfolio view for a Polymarket wallet — every combo the trader holds, each expanded into its legs with live prices, won/lost/pending status, and the combo-level PnL row.
implied_probability, potential_payout, is_dead, leg counts).
When to use this
- Wallet pages that separate parlays from standard binary and neg-risk positions.
- Drilldowns from a combo row into “which legs are still live?”
- Leaderboard or scout tools that rank wallets by
combo_trade_countand then open their combo book.
Combo vs combos
Both return the same entry shape (
ComboPnlResponse). Listing is for the portfolio; the singular endpoint is for a detail view after the user clicks a row.
Step 1: list the trader’s combos
Page through open parlays first, then widen the status filter as needed.Filters and sort
Each call costs 1 credit.
Step 2: read one combo entry
Each list item (and the singular endpoint response) looks like this:
A Yes combo dies when any leg loses. A No combo dies when every leg has resolved and none lost (the all-win case). Use
is_dead and the leg tallies to drive “still alive” badges without re-deriving the rules client-side.
Step 3: expand a single combo
Pass exactly one ofcondition_id or position_id. Use position_id when you already have a row from positions or from /combos (it selects that outcome side). Use condition_id when you only know the market; the API prefers the Yes side and falls back to whichever side the trader holds.
data: null and an unknown combo message (not a 404). Passing both ids, neither id, a non-combo id, or a malformed id returns 400.
Each call costs 1 credit.
Finding combos from the rest of the PnL suite
You do not have to start on/combos. Related fields on existing trader PnL surfaces:
- Positions / markets: rows carry
combo_type: "combinatorial"when the market is a combo (parlay). Filter withcombo=combinatorial(ortrue/false) on positions and markets. - Trader summary / global leaderboard:
combo_trade_countis the number of combo-exchange fills. Sort the global PnL leaderboard withsort_by=combo_trade_countto find active parlay traders, then open/combosfor that wallet.
position_id into /combo for the leg breakdown.
Related
- API reference: List combo PnL, Single combo PnL
- Trader open and closed positions
- Live trader PnL dashboard
- Market-level Combos APIs (list, metrics, analytics, candlesticks, holders): List combo markets, Global combo analytics snapshot,
GET /v1/polymarket/combos/legs