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
- Rust
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
- Rust
This example uses an EOA wallet (signature type
0) — your wallet pays its
own gas. New API users should use deposit wallets with signature type 3.
Existing Proxy and Safe users can keep using signature types 1 and 2. See
Authentication for details on signature
types.Next Steps
Authentication
Understand L1/L2 auth, signature types, and API credentials.
Trading Quickstart
Detailed trading guide with order management and troubleshooting.
Fetching Markets
Strategies for discovering markets by slug, tag, or category.
Core Concepts
Understand markets, events, prices, and positions.