一键导入
polymarket-clob-auth-trade
Advanced procedural workflow for L1/L2 authentication, EIP-712 signing, and placing trades on Polymarket CLOB API.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Advanced procedural workflow for L1/L2 authentication, EIP-712 signing, and placing trades on Polymarket CLOB API.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | polymarket-clob-auth-trade |
| description | Advanced procedural workflow for L1/L2 authentication, EIP-712 signing, and placing trades on Polymarket CLOB API. |
You are an AI agent implementing a trading bot (Rust) for Polymarket. Trading requires a two-level authentication flow. Follow this pipeline strictly.
name="Polymarket CTF Exchange", version="1", chainId=137 (must be Polygon).POLY_ADDRESS, POLY_SIGNATURE, POLY_TIMESTAMP, POLY_NONCE to generate/retrieve POLY_API_KEY, secret, and passphrase.Every POST/DELETE request to the CLOB (e.g. /order) requires an L2 signature.
secret.timestamp + method + path + body.POLY_SIGNATURE header along with POLY_API_KEY and POLY_PASSPHRASE.Build the Order struct.
CRITICAL TYPING RULES:
token_id obtained from Gamma API as a string ("217426...") must be cast to U256 for the EIP-712 signature.signature_type: set 0 for EOA (standalone wallet), 1 for POLY_PROXY (Magic Link), or 2 for GNOSIS_SAFE.expiration: u64 unix timestamp, or 0 for Good Till Cancelled.POST https://clob.polymarket.com/order.Procedural workflow for finding markets, extracting token IDs, and reading orderbooks on Polymarket using Gamma and CLOB APIs. Read-only, no auth required.
Procedural guide for managing Polymarket WebSockets (CLOB and RTDS) for real-time prices, orderbooks, and user fills.