Get Neg Risk
Polymarket-compat GET /neg-risk/{token_id}.
Returns whether the market routes through Polymarket’s
negative-risk contract — the REAL upstream flag, not a stub. The
value comes from the upstream CLOB book payload (the same source
GET /v1/book serializes), so an SDK port branching on
get_neg_risk() — e.g. to pick the neg-risk exchange adapter or
filter mutually-exclusive event groups — agrees with the book.
Resolution cascade:
- Live CLOB
/bookpayload’sneg_riskbool (same sourceGET /v1/bookserializes). - Last-known cached book (
orderbook:/clob:book:Redis layers) when the live fetch blips. - Catalog classification off the market row’s tags/category
(
_classify_neg_risk) when no book is available at all. 404 {"error": "market not found"}— PM’s live message verbatim — when the token resolves to no known market.
Note: sim EXECUTION semantics don’t change for neg-risk markets — we report the real flag so routing/branching code behaves like it would against PM, but fills still settle per the standard binary flow (documented divergence).