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/crypto/all | All active crypto markets with live prices, oracle data, spreads |
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 balance |
GET /budget | Spendable amount with limits |
GET /stats | Trading performance statistics |
POST /wallet/approve | Approve tokens for trading |
Settlements
| Endpoint | Description |
|---|---|
GET /settlements/redeem | Check redeemable positions |
POST /settlements/redeem | Redeem winning positions |
Heartbeat
| Endpoint | Description |
|---|---|
GET /heartbeat | Aggregated status, actions, portfolio, and scheduling |
Autonomous Strategies
| Endpoint | Description |
|---|---|
POST /strategies | Create a strategy (PRICE_ALERT, RECURRING_BUY, BUY_LOW_SELL_HIGH, COPY_TRADE) |
GET /strategies | List strategies with execution history |
GET /strategies/types | Get available strategy types and their config schemas |
GET /strategies/{id} | Get strategy details |
PATCH /strategies/{id} | Update strategy config |
POST /strategies/{id}/pause | Pause a strategy |
POST /strategies/{id}/resume | Resume a paused strategy |
DELETE /strategies/{id} | Cancel a strategy |
Search Tips
For a full snapshot of all active crypto markets with prices, spreads, and oracle data in one call:trump election→ Political marketssuperbowl winner→ Sports marketsoscars→ Entertainment markets
marketQuery (e.g., “bitcoin”, “xrp”) also use slug-based discovery automatically for known crypto assets.
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 |
Example Workflow
Next Steps
API Reference
Detailed endpoint documentation
Quickstart
Get started in 5 minutes