When it fires
ThemarketId (UUID) you passed doesn’t match any market.
Why it happens
- Typo in the market id.
- Cross-environment confusion: a staging market id sent to production, or vice versa. Markets do not exist across environments.
- The market was never created — you may have a placeholder id from documentation rather than a real one.
- Redemptions only: the market exists but has no on-chain id yet (it hasn’t been created on-chain), so it cannot be redeemed against.
POST /v1/redemptionsreports this asMARKET_NOT_FOUND— wait until the market is live on-chain.
How to fix
- Look up real market ids via
GET /v1/markets?status=active(filterable by status). - Cache the id once you’ve found it; markets are immutable in their identity.
- If you suspect the market should exist (e.g., you saw it in the webapp), confirm you’re hitting the same environment.
Related codes
MARKET_NOT_TRADEABLE— market exists but is FROZEN/RESOLVED