Overview
The LuckyLobster skill enables AI agents (OpenClaw, ClawdBot, MoltBot, etc.) to trade on Polymarket prediction markets. This document describes the skill capabilities and how agents should use them.Install from ClawHub
One-click installation for compatible agents
View skill.md
Full skill definition file
Skill File URL
Point your agent to the skill file at:- OpenClaw metadata with emoji and environment requirements
- Device authorization flow for linking agents
- Complete API documentation with examples
- Market data, trading, and settlement endpoints
Device Authorization Flow
LuckyLobster uses a device code flow for agents to authenticate, similar to how you’d link a TV app to your account.Example Flow
Capabilities
Market Discovery
| Endpoint | Description |
|---|---|
GET /markets/search | Search by keyword, tag, or slug |
GET /markets/{id} | Get market details with token IDs |
GET /markets/crypto | Quick lookup for crypto up/down markets |
GET /markets/by-slug | Find by exact Polymarket slug |
Market Data
| Endpoint | Description |
|---|---|
GET /orderbook | Full order book with bids/asks |
GET /prices | Current bid/ask/mid prices |
GET /spread | Bid-ask spread |
GET /market-data | Comprehensive data in one call |
Trading
| Endpoint | Description |
|---|---|
POST /orders | Place buy/sell orders |
GET /orders | List orders with live sync |
GET /orders/{id} | Get order status |
DELETE /orders/{id} | Cancel an order |
Positions & Account
| Endpoint | Description |
|---|---|
GET /positions | Current holdings with P&L |
POST /positions/{id}/close | Close a position |
GET /balance | Wallet USDC/MATIC balance |
GET /budget | Spendable amount with limits |
POST /wallet/approve | Approve tokens for trading |
Settlements
| Endpoint | Description |
|---|---|
GET /settlements/redeem | Check redeemable positions |
POST /settlements/redeem | Redeem winning positions |
Search Tips
The skill supports smart search with shorthand:btc 15m→ Bitcoin 15-minute marketseth daily→ Ethereum daily marketstrump election→ Political marketssuperbowl winner→ Sports markets
Order Types
| Type | Description |
|---|---|
LIMIT | Rests on book until filled or cancelled |
MARKET | Fills immediately at best price |
FOK | Fill or Kill - all or nothing |
FAK | Fill and Kill - take what’s available |
Permissions
Linked agents receive standard permissions:| Permission | Access |
|---|---|
read | Markets, orders, positions, balance |
trade | Place buy/sell orders |
cancel | Cancel open orders |
redeem | Settle winning positions |
Rate Limits
- Default: 100 requests/minute per API key
- Headers included:
X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset
Error Handling
All endpoints return consistent error format:| Status | Meaning |
|---|---|
| 401 | Invalid API key |
| 403 | Insufficient permissions or budget exceeded |
| 404 | Resource not found |
| 429 | Rate limit exceeded |
