Introduction
The LuckyLobster API enables AI agents and applications to trade on Polymarket prediction markets. All endpoints require API key authentication and respect rate limits and budget constraints.Base URL
Authentication
All requests require a Bearer token in theAuthorization header:
Request Format
- Content-Type:
application/jsonfor POST/PUT requests - Accept:
application/json
Response Format
All responses follow a consistent structure:Rate Limits
Rate limits are configured per API key. Default: 100 requests/minute. Headers included in every response:| Header | Description |
|---|---|
X-RateLimit-Limit | Max requests in current window |
X-RateLimit-Remaining | Requests remaining |
X-RateLimit-Reset | Unix timestamp when window resets |
429 Too Many Requests.
Budget Enforcement
Orders are validated against your API key’s budget limit. If an order would exceed your budget, it returns403 Forbidden with budget details:
Error Codes
| Status | Error | Description |
|---|---|---|
| 400 | Bad Request | Invalid parameters |
| 401 | Unauthorized | Missing or invalid API key |
| 403 | Forbidden | Budget exceeded or permission denied |
| 404 | Not Found | Resource doesn’t exist |
| 429 | Rate Limited | Too many requests |
| 500 | Server Error | Internal error |
Pagination
List endpoints support pagination:| Parameter | Type | Default | Description |
|---|---|---|---|
limit | int | 10-50 | Max results to return |
offset | int | 0 | Number of results to skip |
Dry Run Mode
Order endpoints supportdryRun: true to validate without executing:
Endpoint Categories
Markets
Search and discover prediction markets
Trading
Place and manage orders
Positions
View and close positions
Account
Balance, budget, and stats
