Trade prediction markets on Polymarket. Search markets, place orders, and manage positions.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install luckylobster-skill或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install luckylobster-skill⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/luckylobster-skill/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: luckylobster description: Trade prediction markets on Polymarket. Search markets, place orders, and manage positions. homepage: https://luckylobster.io user-invocable: true metadata: {"openclaw":{"version":10,"primaryEnv":"LUCKYLOBSTER_API_KEY","emoji":"🦞","homepage":"https://luckylobster.io","requires":{"env":["LUCKYLOBSTER_API_KEY"]}}} ---
Trade prediction markets on Polymarket through a secure API designed for AI agents.
Polymarket is a prediction market where you trade on the outcomes of real-world events.
Buying Contracts:
Selling Contracts:
Market Resolution:
Example: You buy 100 "Yes" shares at $0.35 each (cost: $35). If "Yes" wins, you receive $100 (profit: $65). If "No" wins, you lose your $35.
If you don't have an API key configured, use the device authorization flow to link your account.
Step 1: Request a Device Code
POST https://luckylobster.io/api/auth/device
Content-Type: application/json
{
"agent_name": "OpenClaw Agent"
}
Response:
{
"device_code": "abc123...",
"user_code": "ABCD-1234",
"verification_uri": "https://luckylobster.io/link",
"verification_uri_complete": "https://luckylobster.io/link?code=ABCD-1234",
"expires_in": 900,
"interval": 5
}
Step 2: Direct the User
Parse the JSON response and extract the verification_uri_complete field. Display it to the user as a clickable link:
🦞 To connect LuckyLobster, click: {verification_uri_complete}
Important: Use the verification_uri_complete value exactly as returned — do NOT concatenate fields or build the URL yourself. The value is a complete, ready-to-use URL.
Step 3: Poll for Authorization
Poll every 5 seconds until authorized:
GET https://luckylobster.io/api/auth/device/token?device_code=abc123...
Pending response:
{ "error": "authorization_pending" }
Success response:
{
"api_key": "ll_abc123...",
"user_email": "[email protected]",
"permissions": ["read", "trade", "cancel", "redeem"]
}
All linked agents receive standard permissions: read (view markets/orders/positions), trade (buy/sell), cancel (cancel orders), and redeem (settle positions).
Step 4: Store the API Key
Save the API key persistently so it survives restarts. It is only returned once.
Use the gateway tool with config.patch to save it in the skill config:
gateway.config.patch({
patch: {
skills: {
entries: {
luckylobster: {
env: {
LUCKYLOBSTER_API_KEY: "ll_abc123..."
}
}
}
}
}
})
---
All API requests require an API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
https://luckylobster.io/api/agent/v1
- X-RateLimit-Limit: Max requests allowed - X-RateLimit-Remaining: Requests remaining - X-RateLimit-Reset: Reset time (ISO 8601)
Find prediction markets on Polymarket. The search uses smart relevance scoring to return the best matches first.
GET /markets/search?q={query}
Parameters:
q (required for search): Natural language query - "bitcoin 15m", "trump election", "superbowl winner"limit (optional): Max results (default: 10, max: 100)offset (optional): Pagination offsetsort (optional): "relevance" (default), "volume", "liquidity", "end_date", "recent"ending_soon (optional): Prioritize markets ending within 24h (default: false)min_volume (optional): Minimum volume in USD (default: 100)min_liquidity (optional): Minimum liquidity in USDtag (optional): Filter by category: "crypto", "politics", "sports", "entertainment"accepting_orders (optional): Only tradeable markets (default: true)Search Tips:
ending_soon=true to prioritize markets expiring within 24hcontext.topMatchExample - Find Current BTC Market:
curl -H "Authorization: Bearer $LUCKYLOBSTER_API_KEY" \
"https://luckylobster.io/api/agent/v1/markets/search?q=bitcoin%20up%20down&ending_soon=true&limit=5"
Example - High-Volume Politics Markets:
curl -H "Authorization: Bearer $LUCKYLOBSTER_API_KEY" \
"https://luckylobster.io/api/agent/v1/markets/search?q=election&tag=politics&sort=volume"
Response:
{
"success": true,
"data": [
{
"id": "1314069",
"slug": "bitcoin-up-or-down-on-february-3",
"question": "Bitcoin Up or Down on February 3?",
"outcomes": ["Up", "Down"],
"outcomePrices": ["0.65", "0.35"],
"volume": "409100.65",
"liquidity": "39255.13",
"endDate": "2026-02-03T17:00:00Z",
"active": true,
"acceptingOrders": true
}
],
"pagination": { "limit": 5, "offset": 0, "count": 1, "hasMore": false },
"context": {
"hasResults": true,
"topMatch": { "id": "1314069", "question": "Bitcoin Up or Down on February 3?", "acceptingOrders": true },
"endingSoonCount": 1
},
"options": {
"sortBy": ["relevance", "volume", "liquidity", "end_date", "recent"],
"tags": ["crypto", "politics", "sports", "entertainment"]
}
}
Workflow for Trading:
GET /markets/search?q=bitcoin up downid from the top result to get full details: GET /markets/{id}clobTokenIds - use these with trading endpoints---
For crypto up/down markets, use this dedicated endpoint. It uses deterministic slug-based lookups (not text search) and is the most reliable way to find crypto markets:
GET /markets/crypto?asset={btc|eth|sol|xrp|doge|matic}&timeframe={daily|hourly|15m}
Examples:
/markets/crypto?asset=btc - Today's Bitcoin daily market/markets/crypto?asset=btc&timeframe=15m - Current Bitcoin 15-minute market/markets/crypto?asset=eth&timeframe=hourly - Current Ethereum hourly market/markets/crypto?asset=xrp&timeframe=15m - Current XRP 15-minute marketResponse includes tokens array with tokenId, negRisk, and live spread data ready for trading.
---
If you know the exact market slug (from a Polymarket URL), use this for direct lookup:
GET /markets/by-slug?slug={slug}
Example: For URL https://polymarket.com/event/btc-updown-15m-1770129900
curl -H "Authorization: Bearer $LUCKYLOBSTER_API_KEY" \
"https://luckylobster.io/api/agent/v1/markets/by-slug?slug=btc-updown-15m-1770129900"
Response includes clobTokenIds and tokens ready for trading.
Note: For crypto markets, always prefer /markets/crypto over /markets/search — it uses the same deterministic slug lookups as the internal market-data-worker and is far more reliable.
...
安装 LuckyLobster 后,可以对 AI 说这些话来触发它
Help me get started with LuckyLobster
Explains what LuckyLobster does, walks through the setup, and runs a quick demo based on your current project
Use LuckyLobster to trade prediction markets on Polymarket
Invokes LuckyLobster with the right parameters and returns the result directly in the conversation
What can I do with LuckyLobster in my finance & investment workflow?
Lists the top use cases for LuckyLobster, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/luckylobster-skill/ 目录(个人级,所有项目可用),或 .claude/skills/luckylobster-skill/(项目级)。重启 AI 客户端后,用 /luckylobster-skill 主动调用,或让 AI 根据上下文自动发现并使用。
LuckyLobster 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
LuckyLobster 可免费安装使用。请查阅仓库了解许可证信息。
Trade prediction markets on Polymarket. Search markets, place orders, and manage positions.
LuckyLobster 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using LuckyLobster
Identifies repetitive steps in your workflow and sets up LuckyLobster to handle them automatically