Skip to main content
You want remaining Yes and No for a wallet that traded the ETH question. This is the indexer share list. It is not live token balances in the wallet and not liquidity lots. There is no live ERC-20 overlay. If the indexer is down, you get an empty list. Do not mix the three lists. Inventory, remaining cost, and realized PnL come from that table. Mark price comes from the indexer’s outcome row (0 or 1 after resolve). Raw fills stay on trades(). AMM LP lots stay on lpPositions().
You can filter with markets (addresses or summaries). Summaries also supply labels, tokens, and resolution. Inventory still comes from the indexer. The indexer updates lots from: Proceeds on a Router transfer: That includes post-resolve redeem (winner proceeds = amount) and an open-market market.merge (Router pulls wrapped tokens; proceeds = 0). A merge that empties an open lot is dropped (shares == 0 and not resolved). After resolve, a full exit stays (redeemed: true) so the profile can show Redeemed. Open lots with shares == 0 are dropped. After resolve, a fully exited lot stays (redeemed: true). PnL for a remaining lot:

Next

Get LP positions