polymarket-ticker-resolver
v1.0.0
Published
Resolve any Polymarket market ID format (numeric, conditionId, CLOB token, slug) to a full market object. Zero dependencies.
Maintainers
Readme
polymarket-ticker-resolver
Resolve any Polymarket market ID format to a full market object. Zero dependencies.
import { resolve, detectFormat } from 'polymarket-ticker-resolver'
const market = await resolve('1744803') // numeric ID
const market2 = await resolve('0xabc...') // conditionId
const market3 = await resolve('will-oil-...') // slugSupported formats
- Numeric ID (
1744803) - Condition ID (
0x+ 64 hex chars) - CLOB Token ID (long hex)
- Slug (
will-oil-exceed-100)
License
MIT — SimpleFunctions
