[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FP816DGCNVYNPR3R9CDQS9":3,"skill-same:01M6FP816DGCNVYNPR3R9CDQS9":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":45,"install":46,"resources":59},"01M6FP816DGCNVYNPR3R9CDQS9","Vincent - Polymarket for agents",null,"Use this skill to create a Polymarket wallet for your agent and trade on prediction markets. Browse markets, place bets, manage positions — all without exposing private keys.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fglitch003\u002Fvincentpolymarket\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33],"polymarket","Vincent   Polymarket for agents","create","browse","use","Wallet","manage","positions","trade","prediction markets","markets","2026-11-10 10:12:30",false,"---\nname: Vincent - Polymarket for agents\ndescription: Use this skill to create a Polymarket wallet for your agent and trade on prediction markets. Browse markets, place bets, manage positions — all without exposing private keys.\n---\n\n# Vincent - Polymarket for agents\n\nUse this skill to create a Polymarket wallet for your agent and trade on prediction markets. Browse markets, place bets, track positions, and manage orders — all without exposing private keys to the agent. Wallets use Gnosis Safe on Polygon with gasless trading through Polymarket's relayer.\n\n**The agent never sees the private key.** All operations are executed server-side. The wallet owner controls what the agent can do via configurable policies.\n\n## Configuration\n\nAll API requests require a Bearer token (the API key returned when creating a wallet). If you're an openclaw instance, store and retrieve it from `~\u002F.openclaw\u002Fcredentials\u002Fagentwallet\u002F\u003CAPI_KEY_ID>.json`. Otherwise, you can store it in your current working directory at `agentwallet\u002F\u003CAPI_KEY_ID>.json`.\n\n```\nAuthorization: Bearer \u003CAPI_KEY>\n```\n\n## Quick Start\n\n### 1. Create a Polymarket Wallet\n\n```bash\ncurl -X POST \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fsecrets\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"type\": \"POLYMARKET_WALLET\",\n    \"memo\": \"My prediction market wallet\"\n  }'\n```\n\nResponse includes:\n\n- `apiKey` -- use as Bearer token for all Polymarket requests\n- `claimUrl` -- share with the user to claim ownership and set policies\n- `walletAddress` -- the EOA address (Safe is deployed lazily on first use)\n\nAfter creating, tell the user:\n\n> \"Here is your wallet claim URL: `\u003CclaimUrl>`. Use this to claim ownership, set spending policies, and monitor your agent's wallet activity.\"\n\n**Important:** After creation, the wallet has no funds. The user must send **USDC.e (bridged USDC)** on Polygon to the Safe address before placing bets.\n\n### 2. Get Balance\n\n```bash\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Fbalance\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n```\n\nReturns:\n\n- `walletAddress` -- the Safe address (deployed on first call if needed)\n- `collateral.balance` -- USDC.e balance available for trading\n- `collateral.allowance` -- approved amount for Polymarket contracts\n\n**Note:** The first balance call triggers Safe deployment and collateral approval (gasless via relayer). This may take 30-60 seconds.\n\n### 3. Fund the Wallet\n\nBefore placing bets, the user must send USDC.e to the Safe address:\n\n1. Get the wallet address from `\u002Fbalance` endpoint\n2. Send USDC.e (bridged USDC, contract `0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174`) on Polygon to that address\n3. Minimum $1 required per bet (Polymarket minimum)\n\n**Do not send native USDC** (`0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359`). Polymarket only accepts bridged USDC.e.\n\n### 4. Browse & Search Markets\n\n```bash\n# Search markets by keyword (recommended)\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Fmarkets?query=bitcoin&limit=20\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n\n# Get all active markets (paginated)\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Fmarkets?active=true&limit=50\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n\n# Get specific market by condition ID\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Fmarket\u002F\u003CCONDITION_ID>\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n```\n\n**Market response includes:**\n\n- `question`: The market question\n- `outcomes`: Array like `[\"Yes\", \"No\"]` or `[\"Team A\", \"Team B\"]`\n- `outcomePrices`: Current prices for each outcome\n- `tokenIds`: **Array of token IDs for each outcome** - use these for placing bets\n- `acceptingOrders`: Whether the market is open for trading\n- `closed`: Whether the market has resolved\n\n**Important:** Always use the `tokenIds` array from the market response. Each outcome has a corresponding token ID at the same index. For a \"Yes\u002FNo\" market:\n\n- `tokenIds[0]` = \"Yes\" token ID\n- `tokenIds[1]` = \"No\" token ID\n\n### 5. Get Order Book\n\n```bash\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Forderbook\u002F\u003CTOKEN_ID>\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n```\n\nReturns bids and asks with prices and sizes. Use this to determine current market prices before placing orders.\n\n### 6. Place a Bet\n\n```bash\ncurl -X POST \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Fbet\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"tokenId\": \"\u003COUTCOME_TOKEN_ID>\",\n    \"side\": \"BUY\",\n    \"amount\": 5,\n    \"price\": 0.55\n  }'\n```\n\nParameters:\n\n- `tokenId`: The outcome token ID (from market data or order book)\n- `side`: `\"BUY\"` or `\"SELL\"`\n- `amount`: For BUY orders, USD amount to spend. For SELL orders, number of shares to sell.\n- `price`: Limit price (0.01 to 0.99). Optional -- omit for market order.\n\n**BUY orders:**\n\n- `amount` is the USD you want to spend (e.g., `5` = $5)\n- You'll receive `amount \u002F price` shares (e.g., $5 at 0.50 = 10 shares)\n- Minimum order is $1\n\n**SELL orders:**\n\n- `amount` is the number of shares to sell\n- You'll receive `amount * price` USD\n- Must own the shares first (from a previous BUY)\n\n**Important timing:** After a BUY fills, wait a few seconds before selling. Shares need time to settle on-chain.\n\n### 7. View Positions & Orders\n\n```bash\n# Get open orders\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Fpositions\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n\n# Get trade history\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Ftrades\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n```\n\n### 8. Cancel Orders\n\n```bash\n# Cancel specific order\ncurl -X DELETE \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Forders\u002F\u003CORDER_ID>\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n\n# Cancel all open orders\ncurl -X DELETE \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Forders\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n```\n\n## Policies\n\nThe wallet owner controls what the agent can do by setting policies via the claim URL. If a transaction violates a policy, the API will reject it or require human approval via Telegram.\n\n| Policy                      | What it does                                                        |\n| --------------------------- | ------------------------------------------------------------------- |\n| **Spending limit (per tx)** | Max USD value per transaction                                       |\n| **Spending limit (daily)**  | Max USD value per rolling 24 hours                                  |\n| **Spending limit (weekly)** | Max USD value per rolling 7 days                                    |\n| **Require approval**        | Every transaction needs human approval via Telegram                 |\n| **Approval threshold**      | Transactions above a USD amount need human approval                 |\n\nIf no policies are set, all actions are allowed by default. Once the owner claims the wallet and adds policies, the agent operates within those boundaries.\n\n## Re-linking (Recovering API Access)\n\nIf the agent loses its API key, the wallet owner can generate a **re-link token** from the frontend. The agent then exchanges this token for a new API key.\n\n**How it works:**\n\n1. The user generates a re-link token from the wallet detail page in the frontend\n2. The user gives the token to the agent (e.g. by pasting it in chat)\n3. The agent calls the re-link endpoint to exchange the token for a new API key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fsecrets\u002Frelink\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"relinkToken\": \"\u003CTOKEN_FROM_USER>\",\n    \"apiKeyName\": \"Re-linked API Key\"\n  }'\n```\n\nResponse includes:\n\n- `secret` -- the wallet metadata (id, type, address, chainId, etc.)\n- `apiKey.key` -- the new API key to use as Bearer token for all future requests\n\n**Important:** Re-link tokens are one-time use and expire after 10 minutes. No authentication is required on this endpoint -- the token itself is the authorization.\n\nIf a user tells you they have a re-link token, use this endpoint to regain access to the wallet. Store the returned API key and use it for all subsequent requests.\n\n## Workflow Example\n\n1. **Create wallet:**\n\n   ```bash\n   POST \u002Fapi\u002Fsecrets {\"type\": \"POLYMARKET_WALLET\", \"memo\": \"Betting wallet\"}\n   ```\n\n2. **Get Safe address (triggers deployment):**\n\n   ```bash\n   GET \u002Fapi\u002Fskills\u002Fpolymarket\u002Fbalance\n   # Returns walletAddress -- give this to user to fund\n   ```\n\n3. **User sends USDC.e to the Safe address on Polygon**\n\n4. **Search for a market:**\n\n   ```bash\n   # Search by keyword - returns only active, tradeable markets\n   GET \u002Fapi\u002Fskills\u002Fpolymarket\u002Fmarkets?query=bitcoin&active=true\n   ```\n\n   Response example:\n\n   ```json\n   {\n     \"markets\": [\n       {\n         \"question\": \"Will Bitcoin hit $100k by end of 2025?\",\n         \"outcomes\": [\"Yes\", \"No\"],\n         \"outcomePrices\": [\"0.65\", \"0.35\"],\n         \"tokenIds\": [\"123456...\", \"789012...\"],\n         \"acceptingOrders\": true\n       }\n     ]\n   }\n   ```\n\n5. **Check order book for the outcome you want:**\n\n   ```bash\n   # Use the tokenId from the market response\n   GET \u002Fapi\u002Fskills\u002Fpolymarket\u002Forderbook\u002F123456...\n   # Note the bid\u002Fask prices\n   ```\n\n6. **Place BUY bet using the correct token ID:**\n\n   ```bash\n   # tokenId must be from the tokenIds array, NOT the conditionId\n   POST \u002Fapi\u002Fskills\u002Fpolymarket\u002Fbet\n   {\"tokenId\": \"123456...\", \"side\": \"BUY\", \"amount\": 5, \"price\": 0.55}\n   ```\n\n7. **Wait for settlement** (a few seconds)\n\n8. **Sell position:**\n   ```bash\n   POST \u002Fapi\u002Fskills\u002Fpolymarket\u002Fbet\n   {\"tokenId\": \"123456...\", \"side\": \"SELL\", \"amount\": 9.09, \"price\": 0.54}\n   ```\n\n## Important Notes\n\n- **After any bet or trade**, share the user's Polymarket profile link so they can verify and view their positions: `https:\u002F\u002Fpolymarket.com\u002Fprofile\u002F\u003CpolymarketWalletAddress>` (use the wallet's Safe address).\n- **No gas needed.** All Polymarket transactions are gasless via Polymarket's relayer.\n- **Never try to access raw secret values.** The private key stays server-side -- that's the whole point.\n- Always store the API key from wallet creation. If you're an openclaw instance, store it in `~\u002F.openclaw\u002Fcredentials\u002Fagentwallet\u002F\u003CAPI_KEY_ID>.json`. Otherwise, you can store it in your current working directory at `agentwallet\u002F\u003CAPI_KEY_ID>.json`.\n- Always search for the API keys in the credentials folder before using the API. If you're an openclaw instance, search for the API key in `~\u002F.openclaw\u002Fcredentials\u002Fagentwallet\u002F\u003CAPI_KEY_ID>.json`. Otherwise, you can search for the API key in your current working directory at `agentwallet\u002F\u003CAPI_KEY_ID>.json`.\n- Always share the claim URL with the user after creating a wallet.\n- If a transaction requires approval, it will return `status: \"pending_approval\"`. The wallet owner will receive a Telegram notification to approve or deny.\n\n**Common Errors:**\n\n- `\"No orderbook exists for the requested token id\"` - The market is closed or you're using the wrong ID. Make sure:\n  - The market has `acceptingOrders: true`\n  - You're using a `tokenId` from the `tokenIds` array, not the `conditionId`\n  - The market hasn't already resolved\n","# Vincent - Polymarket for agents\n\nUse this skill to create a Polymarket wallet for your agent and trade on prediction markets. Browse markets, place bets, track positions, and manage orders — all without exposing private keys to the agent. Wallets use Gnosis Safe on Polygon with gasless trading through Polymarket's relayer.\n\n**The agent never sees the private key.** All operations are executed server-side. The wallet owner controls what the agent can do via configurable policies.\n\n## Configuration\n\nAll API requests require a Bearer token (the API key returned when creating a wallet). If you're an openclaw instance, store and retrieve it from `~\u002F.openclaw\u002Fcredentials\u002Fagentwallet\u002F\u003CAPI_KEY_ID>.json`. Otherwise, you can store it in your current working directory at `agentwallet\u002F\u003CAPI_KEY_ID>.json`.\n\n```\nAuthorization: Bearer \u003CAPI_KEY>\n```\n\n## Quick Start\n\n### 1. Create a Polymarket Wallet\n\n```bash\ncurl -X POST \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fsecrets\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"type\": \"POLYMARKET_WALLET\",\n    \"memo\": \"My prediction market wallet\"\n  }'\n```\n\nResponse includes:\n\n- `apiKey` -- use as Bearer token for all Polymarket requests\n- `claimUrl` -- share with the user to claim ownership and set policies\n- `walletAddress` -- the EOA address (Safe is deployed lazily on first use)\n\nAfter creating, tell the user:\n\n> \"Here is your wallet claim URL: `\u003CclaimUrl>`. Use this to claim ownership, set spending policies, and monitor your agent's wallet activity.\"\n\n**Important:** After creation, the wallet has no funds. The user must send **USDC.e (bridged USDC)** on Polygon to the Safe address before placing bets.\n\n### 2. Get Balance\n\n```bash\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Fbalance\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n```\n\nReturns:\n\n- `walletAddress` -- the Safe address (deployed on first call if needed)\n- `collateral.balance` -- USDC.e balance available for trading\n- `collateral.allowance` -- approved amount for Polymarket contracts\n\n**Note:** The first balance call triggers Safe deployment and collateral approval (gasless via relayer). This may take 30-60 seconds.\n\n### 3. Fund the Wallet\n\nBefore placing bets, the user must send USDC.e to the Safe address:\n\n1. Get the wallet address from `\u002Fbalance` endpoint\n2. Send USDC.e (bridged USDC, contract `0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174`) on Polygon to that address\n3. Minimum $1 required per bet (Polymarket minimum)\n\n**Do not send native USDC** (`0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359`). Polymarket only accepts bridged USDC.e.\n\n### 4. Browse & Search Markets\n\n```bash\n# Search markets by keyword (recommended)\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Fmarkets?query=bitcoin&limit=20\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n\n# Get all active markets (paginated)\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Fmarkets?active=true&limit=50\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n\n# Get specific market by condition ID\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Fmarket\u002F\u003CCONDITION_ID>\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n```\n\n**Market response includes:**\n\n- `question`: The market question\n- `outcomes`: Array like `[\"Yes\", \"No\"]` or `[\"Team A\", \"Team B\"]`\n- `outcomePrices`: Current prices for each outcome\n- `tokenIds`: **Array of token IDs for each outcome** - use these for placing bets\n- `acceptingOrders`: Whether the market is open for trading\n- `closed`: Whether the market has resolved\n\n**Important:** Always use the `tokenIds` array from the market response. Each outcome has a corresponding token ID at the same index. For a \"Yes\u002FNo\" market:\n\n- `tokenIds[0]` = \"Yes\" token ID\n- `tokenIds[1]` = \"No\" token ID\n\n### 5. Get Order Book\n\n```bash\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Forderbook\u002F\u003CTOKEN_ID>\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n```\n\nReturns bids and asks with prices and sizes. Use this to determine current market prices before placing orders.\n\n### 6. Place a Bet\n\n```bash\ncurl -X POST \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Fbet\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"tokenId\": \"\u003COUTCOME_TOKEN_ID>\",\n    \"side\": \"BUY\",\n    \"amount\": 5,\n    \"price\": 0.55\n  }'\n```\n\nParameters:\n\n- `tokenId`: The outcome token ID (from market data or order book)\n- `side`: `\"BUY\"` or `\"SELL\"`\n- `amount`: For BUY orders, USD amount to spend. For SELL orders, number of shares to sell.\n- `price`: Limit price (0.01 to 0.99). Optional -- omit for market order.\n\n**BUY orders:**\n\n- `amount` is the USD you want to spend (e.g., `5` = $5)\n- You'll receive `amount \u002F price` shares (e.g., $5 at 0.50 = 10 shares)\n- Minimum order is $1\n\n**SELL orders:**\n\n- `amount` is the number of shares to sell\n- You'll receive `amount * price` USD\n- Must own the shares first (from a previous BUY)\n\n**Important timing:** After a BUY fills, wait a few seconds before selling. Shares need time to settle on-chain.\n\n### 7. View Positions & Orders\n\n```bash\n# Get open orders\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Fpositions\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n\n# Get trade history\ncurl -X GET \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Ftrades\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n```\n\n### 8. Cancel Orders\n\n```bash\n# Cancel specific order\ncurl -X DELETE \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Forders\u002F\u003CORDER_ID>\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n\n# Cancel all open orders\ncurl -X DELETE \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fskills\u002Fpolymarket\u002Forders\" \\\n  -H \"Authorization: Bearer \u003CAPI_KEY>\"\n```\n\n## Policies\n\nThe wallet owner controls what the agent can do by setting policies via the claim URL. If a transaction violates a policy, the API will reject it or require human approval via Telegram.\n\n| Policy                      | What it does                                                        |\n| --------------------------- | ------------------------------------------------------------------- |\n| **Spending limit (per tx)** | Max USD value per transaction                                       |\n| **Spending limit (daily)**  | Max USD value per rolling 24 hours                                  |\n| **Spending limit (weekly)** | Max USD value per rolling 7 days                                    |\n| **Require approval**        | Every transaction needs human approval via Telegram                 |\n| **Approval threshold**      | Transactions above a USD amount need human approval                 |\n\nIf no policies are set, all actions are allowed by default. Once the owner claims the wallet and adds policies, the agent operates within those boundaries.\n\n## Re-linking (Recovering API Access)\n\nIf the agent loses its API key, the wallet owner can generate a **re-link token** from the frontend. The agent then exchanges this token for a new API key.\n\n**How it works:**\n\n1. The user generates a re-link token from the wallet detail page in the frontend\n2. The user gives the token to the agent (e.g. by pasting it in chat)\n3. The agent calls the re-link endpoint to exchange the token for a new API key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fheyvincent.ai\u002Fapi\u002Fsecrets\u002Frelink\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"relinkToken\": \"\u003CTOKEN_FROM_USER>\",\n    \"apiKeyName\": \"Re-linked API Key\"\n  }'\n```\n\nResponse includes:\n\n- `secret` -- the wallet metadata (id, type, address, chainId, etc.)\n- `apiKey.key` -- the new API key to use as Bearer token for all future requests\n\n**Important:** Re-link tokens are one-time use and expire after 10 minutes. No authentication is required on this endpoint -- the token itself is the authorization.\n\nIf a user tells you they have a re-link token, use this endpoint to regain access to the wallet. Store the returned API key and use it for all subsequent requests.\n\n## Workflow Example\n\n1. **Create wallet:**\n\n   ```bash\n   POST \u002Fapi\u002Fsecrets {\"type\": \"POLYMARKET_WALLET\", \"memo\": \"Betting wallet\"}\n   ```\n\n2. **Get Safe address (triggers deployment):**\n\n   ```bash\n   GET \u002Fapi\u002Fskills\u002Fpolymarket\u002Fbalance\n   # Returns walletAddress -- give this to user to fund\n   ```\n\n3. **User sends USDC.e to the Safe address on Polygon**\n\n4. **Search for a market:**\n\n   ```bash\n   # Search by keyword - returns only active, tradeable markets\n   GET \u002Fapi\u002Fskills\u002Fpolymarket\u002Fmarkets?query=bitcoin&active=true\n   ```\n\n   Response example:\n\n   ```json\n   {\n     \"markets\": [\n       {\n         \"question\": \"Will Bitcoin hit $100k by end of 2025?\",\n         \"outcomes\": [\"Yes\", \"No\"],\n         \"outcomePrices\": [\"0.65\", \"0.35\"],\n         \"tokenIds\": [\"123456...\", \"789012...\"],\n         \"acceptingOrders\": true\n       }\n     ]\n   }\n   ```\n\n5. **Check order book for the outcome you want:**\n\n   ```bash\n   # Use the tokenId from the market response\n   GET \u002Fapi\u002Fskills\u002Fpolymarket\u002Forderbook\u002F123456...\n   # Note the bid\u002Fask prices\n   ```\n\n6. **Place BUY bet using the correct token ID:**\n\n   ```bash\n   # tokenId must be from the tokenIds array, NOT the conditionId\n   POST \u002Fapi\u002Fskills\u002Fpolymarket\u002Fbet\n   {\"tokenId\": \"123456...\", \"side\": \"BUY\", \"amount\": 5, \"price\": 0.55}\n   ```\n\n7. **Wait for settlement** (a few seconds)\n\n8. **Sell position:**\n   ```bash\n   POST \u002Fapi\u002Fskills\u002Fpolymarket\u002Fbet\n   {\"tokenId\": \"123456...\", \"side\": \"SELL\", \"amount\": 9.09, \"price\": 0.54}\n   ```\n\n## Important Notes\n\n- **After any bet or trade**, share the user's Polymarket profile link so they can verify and view their positions: `https:\u002F\u002Fpolymarket.com\u002Fprofile\u002F\u003CpolymarketWalletAddress>` (use the wallet's Safe address).\n- **No gas needed.** All Polymarket transactions are gasless via Polymarket's relayer.\n- **Never try to access raw secret values.** The private key stays server-side -- that's the whole point.\n- Always store the API key from wallet creation. If you're an openclaw instance, store it in `~\u002F.openclaw\u002Fcredentials\u002Fagentwallet\u002F\u003CAPI_KEY_ID>.json`. Otherwise, you can store it in your current working directory at `agentwallet\u002F\u003CAPI_KEY_ID>.json`.\n- Always search for the API keys in the credentials folder before using the API. If you're an openclaw instance, search for the API key in `~\u002F.openclaw\u002Fcredentials\u002Fagentwallet\u002F\u003CAPI_KEY_ID>.json`. Otherwise, you can search for the API key in your current working directory at `agentwallet\u002F\u003CAPI_KEY_ID>.json`.\n- Always share the claim URL with the user after creating a wallet.\n- If a transaction requires approval, it will return `status: \"pending_approval\"`. The wallet owner will receive a Telegram notification to approve or deny.\n\n**Common Errors:**\n\n- `\"No orderbook exists for the requested token id\"` - The market is closed or you're using the wrong ID. Make sure:\n  - The market has `acceptingOrders: true`\n  - You're using a `tokenId` from the `tokenIds` array, not the `conditionId`\n  - The market hasn't already resolved\n",{"name":5,"description":7},"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fglitch003\u002Fvincentpolymarket",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add kbarbel640-del\u002Fskills --skill \"Vincent - Polymarket for agents\"",{"tool":52,"command":53},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill \"Vincent - Polymarket for agents\"",{"tool":55,"command":56},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill \"Vincent - Polymarket for agents\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fglitch003\u002Fvincentpolymarket\u002FSKILL.md",true,[60],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"_meta.json","REFERENCE","参考文档",293,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fglitch003\u002Fvincentpolymarket\u002F_meta.json",[67,98,121,142,148,168],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":78,"publishedAt":34},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[73],{"categoryNo":74,"categoryName":75,"taxonomyType":76,"taxonomyTypeDesc":77},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":105,"publishedAt":34},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[104],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[106,81,107,108,109,110,25,111,112,113,114,115,116,117,118,119,120,86,27],"dilemm ai","arena","analyze","browser","openclaw agent","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":130,"publishedAt":34},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[127],{"categoryNo":128,"categoryName":129,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000021","资料检索与研究",[131,132,133,134,135,136,137,82,138,119,27,139,81,140,141],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":143,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":147,"publishedAt":34},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[146],{"categoryNo":128,"categoryName":129,"taxonomyType":20,"taxonomyTypeDesc":21},[134,133,132,131,141,136,137,82,135,119,27,138,139,81,140],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":34},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[155,156,157,158,159,160,161,162,163,164,165,166,167],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":178,"publishedAt":34},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[174,175],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":176,"categoryName":177,"taxonomyType":76,"taxonomyTypeDesc":77},"01JBSEEDCAT000000000000037","律师与法务",[179,180,181,182,82,183,184,39,185,139,186,187,188,189,190,95,191,192,193],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]