Python and TypeScript SDKs for integrating with the Polymarket US API. Both libraries handle authentication, request signing, and provide typed interfaces for all endpoints.Documentation Index
Fetch the complete documentation index at: https://docs.polymarket.us/llms.txt
Use this file to discover all available pages before exploring further.
Generate API Keys
Visit the developer portal to generate your API keys. Your private key will be shown only once.
Choose Your SDK
Installation
Features
- Automatic authentication - request signing handled internally
- Type safety - Full typing for all requests and responses
- WebSocket support - Real-time market data and order updates
- Error handling - Typed exceptions for all error cases
API Coverage
| Resource | Methods |
|---|---|
| Events | list, retrieve, retrieveBySlug |
| Markets | list, retrieve, retrieveBySlug, book, bbo, settlement |
| Orders | create, list, retrieve, cancel, modify, cancelAll, preview, closePosition |
| Portfolio | positions, activities |
| Account | balances |
| Series | list, retrieve |
| Sports | list, teams |
| Search | query |
| WebSocket | private, markets |