Fetch a Market
All data endpoints are public — no API key or authentication needed. Use the markets endpoint to find a market and get its token IDs:Save a token ID from
- cURL
- TypeScript
- Python
clobTokenIds — you’ll need it to place an order. The first ID is the Yes token, the second is the No token. See Fetching Markets for more strategies like fetching by slug, tag, or event.Set Up Your Client
Derive API credentials and initialize the trading client:
- TypeScript
- Python
This example uses an EOA wallet (signature type
0) — your wallet pays its
own gas. Proxy wallet users (types 1 and 2) can use Polymarket’s gasless
relayer instead. See Authentication for
details on signature types.