CLOB Read (Public)
Get Market By Token
Polymarket-compat GET /markets-by-token/{token_id}.
Reverse-resolve a CLOB token id to its parent condition_id
- the canonical outcome label.
When MARKETS_BY_TOKEN_CLOB_FALLBACK_ENABLED is on, checks the
outcome-validated positive cache first. It then resolves through the
JSONB-indexed markets.clob_token_ids column and Redis poller cache;
a local miss falls back to Polymarket’s authoritative endpoints and is
cached for 24 hours. Definitive upstream 400/404 remains a 404;
retryable upstream failures return 503 with Retry-After.