[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-polygon-polymarket-skill":3,"mdc--hqj0o6-key":34,"related-org-polygon-polymarket-skill":3596,"related-repo-polygon-polymarket-skill":3648},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":32,"mdContent":33},"polymarket-skill","place bets on Polymarket prediction markets","Place bets on Polymarket prediction markets using the Polygon Agent CLI (CLOB V2). Browse markets, check prices, buy YES\u002FNO positions, sell positions, manage orders. Collateral is pUSD (auto-wrapped from USDC.e). All commands are JSON output. Dry-run by default — always add --broadcast to execute.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"polygon","Polygon","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fpolygon.jpg","0xPolygon",[13,17,20],{"name":14,"slug":15,"type":16},"Web3","web3","tag",{"name":18,"slug":19,"type":16},"Trading","trading",{"name":21,"slug":22,"type":16},"Ethereum","ethereum",26,"https:\u002F\u002Fgithub.com\u002F0xPolygon\u002Fpolygon-agent-cli","2026-07-24T05:37:28.436997",null,16,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":31},[],"Infrastructure for building agents on Polygon","https:\u002F\u002Fgithub.com\u002F0xPolygon\u002Fpolygon-agent-cli\u002Ftree\u002FHEAD\u002Fskills\u002Fpolygon-polymarket","---\nname: polymarket-skill\ndescription: Place bets on Polymarket prediction markets using the Polygon Agent CLI (CLOB V2). Browse markets, check prices, buy YES\u002FNO positions, sell positions, manage orders. Collateral is pUSD (auto-wrapped from USDC.e). All commands are JSON output. Dry-run by default — always add --broadcast to execute.\n---\n\n# Polymarket Skill (CLOB V2)\n\n## Session Initialization\n\nBefore any polymarket command, verify the Polymarket key is set:\n\n```bash\nagent polymarket proxy-wallet\n```\n\nIf this returns `ok: true` with an `eoaAddress` and `proxyWalletAddress`, the key is configured and you can proceed directly to trading. If it errors, the user needs to run `set-key` (see Onboarding below).\n\n---\n\n## Understanding the 3 Addresses\n\nEvery Polymarket user has three addresses. Do not confuse them:\n\n| Name | What it is | Used for |\n|------|-----------|---------|\n| EOA | Private key owner. Shown as `eoaAddress` in CLI output | Signs transactions and CLOB orders. Needs POL for gas only when running `approve` |\n| Proxy Wallet | Shown as `proxyWalletAddress` in CLI output. This is what Polymarket shows as \"your address\" in the UI | Holds pUSD and outcome tokens. The CLOB `maker` |\n| Smart Wallet | The OMS wallet (`agent wallet`) | Funds the proxy wallet with USDC.e per trade (auto-wrapped to pUSD) |\n\n**For trading:** USDC.e flows from the OMS smart wallet → proxy wallet → auto-wrapped to pUSD → CLOB orders. The proxy wallet is the trading identity.\n\n---\n\n## Pre-Trade Checklist\n\nBefore placing a trade, verify these four things in order:\n\n**1. EOA key is configured**\n```bash\nagent polymarket proxy-wallet\n# → must return ok: true with eoaAddress and proxyWalletAddress\n```\n\n**2. ToS accepted on Polymarket** ← one-time per EOA, permanent\n- Visit https:\u002F\u002Fpolymarket.com, connect with the EOA address, accept Terms of Service\n- If ToS is not accepted, CLOB order posting will fail with `not authorized`\n- If the user has previously traded on Polymarket with this EOA, ToS is already accepted — skip this\n\n**3. Proxy wallet approvals set for V2 exchange** ← required for all users after V2 migration\n- Approvals allow the proxy wallet to interact with the V2 CTF exchange contracts and CollateralOnramp\n- **All users must run `approve --broadcast` after the V2 migration (April 28 2026)** — V1 approvals on old exchange contracts do not carry over\n- After running V2 approvals once, they are permanent on-chain for that EOA\n\n**4. Smart wallet has USDC.e** ← required per trade, minimum $1\n```bash\nagent balances\n# → check USDC.e balance (0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174)\n# → must have at least $1 USDC.e to place any order\n# → USDC.e is auto-wrapped to pUSD during the buy flow\n```\n\n---\n\n## Onboarding: First-Time Setup\n\n### Option A — Using email login (existing Polymarket account)\n\n**Step 1: Get the private key from Polymarket**\n```\n1. Go to: https:\u002F\u002Freveal.magic.link\u002Fpolymarket\n2. Connect\u002Fauthenticate with the same email used for Polymarket\n3. Copy the exported private key (0x...)\n```\n\n**Step 2: Import the key into the CLI**\n```bash\nagent polymarket set-key \u003CprivateKey>\n```\nOutput confirms the `eoaAddress` and `proxyWalletAddress`.\n\n**Step 3: Show the user their addresses**\n```bash\nagent polymarket proxy-wallet\n```\nTell the user: \"Your EOA is `\u003CeoaAddress>` — this needs a small amount of POL for the one-time approval step. Your Polymarket trading address (proxy wallet) is `\u003CproxyWalletAddress>` — this is where your pUSD and outcome tokens live.\"\n\n**Step 4: Fund EOA with POL for gas (approval step only)**\n```bash\nagent send-native --to \u003CeoaAddress> --amount 0.1 --broadcast\n```\nThe EOA only needs POL for the one-time `approve` transaction. After that, trading requires no gas from the EOA.\n\n**Step 5: Accept Terms of Service**\n```\n1. Go to https:\u002F\u002Fpolymarket.com\n2. Connect with the EOA address\n3. Accept Terms of Service when prompted\n```\n\n**Step 6: Set proxy wallet approvals for V2 (one-time, permanent)**\n```bash\nagent polymarket approve --broadcast\n```\nThis sets approvals for the V2 exchange contracts and CollateralOnramp. Permanent on-chain — never needs to be run again for this EOA.\n\n### Option B — Using the builder EOA (no Polymarket account)\n\n**Step 1: Confirm addresses**\n```bash\nagent polymarket proxy-wallet\n```\n\n**Step 2: Accept Terms of Service (required)**\n```\n1. Go to https:\u002F\u002Fpolymarket.com\n2. Connect with the EOA address shown above\n3. Accept Terms of Service when prompted\n```\n\n**Step 3: Fund EOA with POL for gas**\n```bash\nagent send-native --to \u003CeoaAddress> --amount 0.1 --broadcast\n```\n\n**Step 4: Set proxy wallet approvals for V2 (one-time)**\n```bash\nagent polymarket approve --broadcast\n```\n\n---\n\n## Commands\n\n### Browse Markets\n\n```bash\n# List top markets by volume\nagent polymarket markets\n\n# Search by keyword\nagent polymarket markets --search \"bitcoin\" --limit 10\n\n# Paginate\nagent polymarket markets --limit 20 --offset 20\n```\n\nKey output fields per market:\n- `conditionId` — the ID needed for all trading commands\n- `question` — what the market is asking\n- `yesPrice` \u002F `noPrice` — current probability (0 to 1, e.g. `0.65` = 65%)\n- `negRisk` — if `true`, set neg-risk approvals before trading this market\n- `endDate` — when the market resolves\n\n### Get a Single Market\n\n```bash\nagent polymarket market \u003CconditionId>\n```\n\nUse this to confirm prices and token IDs before placing an order.\n\n### Show Proxy Wallet Address\n\n```bash\nagent polymarket proxy-wallet\n```\n\nConfirms which EOA and proxy wallet are active. The proxy wallet is where pUSD and tokens are held.\n\n### Set Approvals (Required After V2 Migration)\n\n```bash\n# Standard markets\nagent polymarket approve --broadcast\n\n# Neg-risk markets (only if you see negRisk: true on a market you want to trade)\nagent polymarket approve --neg-risk --broadcast\n```\n\n**All users must run this after the V2 migration** — previous V1 approvals on old exchange contracts do not carry over. V2 approvals cover: pUSD → V2 exchange, CTF → V2 exchange, and USDC.e → CollateralOnramp (for wrapping). Once set, they are permanent on-chain.\n\n### Buy a Position\n\n```bash\n# Dry-run first — always check before executing\nagent polymarket clob-buy \u003CconditionId> YES|NO \u003CusdcAmount>\n\n# Execute — funds proxy wallet, wraps USDC.e → pUSD, then places order\nagent polymarket clob-buy \u003CconditionId> YES|NO \u003CusdcAmount> --broadcast\n\n# If proxy wallet already has pUSD from a previous failed order (skip the funding step)\nagent polymarket clob-buy \u003CconditionId> YES|NO \u003CusdcAmount> --skip-fund --broadcast\n\n# Limit order — fill only at this price or better\nagent polymarket clob-buy \u003CconditionId> YES \u003CusdcAmount> --price 0.45 --broadcast\n```\n\n**How it works:**\n1. Smart wallet transfers `usdcAmount` USDC.e to the proxy wallet (OMS tx)\n2. Proxy wallet wraps USDC.e → pUSD via CollateralOnramp (on-chain, EOA gas)\n3. Posts CLOB BUY order: maker=proxy wallet, signer=EOA (off-chain, no gas)\n4. Tokens arrive in proxy wallet on fill\n\n**Order types:**\n- No `--price`: FOK market order (fill entirely or cancel)\n- `--fak`: FAK market order (partial fills allowed)\n- `--price 0.x`: GTC limit order (stays open until filled or cancelled)\n\n**Minimum order size: $1.** The CLOB rejects orders below $1. If the fund+wrap step runs but the order is rejected, the pUSD stays in the proxy wallet — use `--skip-fund` on the retry.\n\n### Sell a Position\n\n```bash\n# Dry-run first\nagent polymarket sell \u003CconditionId> YES|NO \u003Cshares>\n\n# Execute\nagent polymarket sell \u003CconditionId> YES|NO \u003Cshares> --broadcast\n\n# Limit sell\nagent polymarket sell \u003CconditionId> YES \u003Cshares> --price 0.80 --broadcast\n```\n\n`\u003Cshares>` is the number of outcome tokens (not USD). Get share count from `positions`.\nSelling is pure off-chain — no gas, no on-chain tx. Proceeds are received as pUSD in the proxy wallet.\n\n### Check Positions\n\n```bash\nagent polymarket positions\n```\n\nShows all open positions in the proxy wallet with current value, P&L, and outcome.\n\n### Check Open Orders\n\n```bash\nagent polymarket orders\n```\n\nLists GTC limit orders that are still open (FOK\u002FFAK orders are never \"open\" — they fill or cancel immediately).\n\n### Cancel an Order\n\n```bash\nagent polymarket cancel \u003CorderId>\n```\n\nGet `orderId` from the `orders` command or from the `orderId` field in `clob-buy` output.\n\n---\n\n## Full Autonomous Trading Flow\n\n```bash\n# ── FIRST TIME (run once per EOA) ──────────────────────────────────────\n\n# 1. Import Polymarket private key\nagent polymarket set-key 0x\u003CyourPrivateKey>\n# → save eoaAddress and proxyWalletAddress\n\n# 2. Accept ToS at https:\u002F\u002Fpolymarket.com (connect EOA, accept when prompted)\n\n# 3. Fund EOA with POL for the one-time approval tx\nagent send-native --to \u003CeoaAddress> --amount 0.1 --broadcast\n\n# 4. Set V2 approvals (one-time, permanent — covers pUSD, CTF, and CollateralOnramp)\nagent polymarket approve --broadcast\n\n# ── RETURNING USER ──────────────────────────────────────────────────────\n# If V2 approvals were already set: skip steps 1-4, go straight to trading.\n# NOTE: V1 approvals (pre-April 28 2026) do NOT carry over — re-run approve once.\n\n# ── FIND A MARKET ────────────────────────────────────────────────────────\n\n# 5. Search for markets\nagent polymarket markets --search \"bitcoin\" --limit 10\n\n# 6. Get details on a specific market\nagent polymarket market 0x\u003CconditionId>\n# → check: yesPrice, noPrice, negRisk, endDate\n# → if negRisk: true → run approve --neg-risk --broadcast first\n\n# ── ENTER A POSITION ────────────────────────────────────────────────────\n\n# 7. Dry-run to confirm\nagent polymarket clob-buy 0x\u003CconditionId> YES 5\n# → review: currentPrice, proxyWalletAddress, flow (includes pUSD wrapping)\n\n# 8. Execute\nagent polymarket clob-buy 0x\u003CconditionId> YES 5 --broadcast\n# → check: orderStatus === \"matched\"\n\n# ── MANAGE ──────────────────────────────────────────────────────────────\n\n# 9. Check positions\nagent polymarket positions\n# → review: size (shares), curPrice, cashPnl\n\n# 10. Sell when ready\nagent polymarket sell 0x\u003CconditionId> YES \u003Cshares> --broadcast\n# → orderStatus === \"matched\" means pUSD is back in proxy wallet\n```\n\n---\n\n## Decision Logic for an Autonomous Agent\n\nWhen deciding whether to buy:\n1. Run `proxy-wallet` — confirm EOA and proxy wallet addresses\n2. Run `balances` — confirm smart wallet has at least $1 USDC.e\n3. Check `positions` — avoid doubling up on already-held positions\n4. Check `markets` — use `yesPrice`\u002F`noPrice` as probability inputs\n5. Check `negRisk` on the target market — if `true`, verify neg-risk approvals were set\n6. Use `--skip-fund` if the proxy wallet already has enough pUSD from a previous attempt\n7. Always dry-run first, then broadcast\n\nWhen deciding whether to sell:\n1. Get current `size` (shares) from `positions`\n2. Use `curPrice` vs `avgPrice` to assess profit\u002Floss\n3. Market sell (`sell --broadcast`) for immediate exit\n4. Limit sell (`--price 0.x --broadcast`) to wait for a better price\n\n---\n\n## Troubleshooting\n\n| Error | Cause | Fix |\n|-------|-------|-----|\n| `No EOA key found` | `set-key` not run | Run `agent polymarket set-key \u003Cpk>` |\n| `Could not create api key` (stderr only) | ToS not accepted | Non-fatal — CLI retries with `deriveApiKey` and may still succeed. If orders fail too, visit polymarket.com and accept ToS with the EOA |\n| `CLOB order error: not authorized` | ToS not accepted | Visit polymarket.com, connect EOA wallet, accept terms |\n| `insufficient funds for gas` | EOA has no POL | `agent send-native --to \u003CeoaAddress> --amount 0.1 --broadcast` |\n| `Market not found` | Low-volume or closed market | Market may have resolved; try `--search` with different terms |\n| `Market has no tokenIds` | Closed market | Check `endDate` — market resolved |\n| `orderStatus: \"unmatched\"` on FOK | No liquidity at market price | Try `--fak` for partial fill, or `--price 0.x` for limit order |\n| `invalid amount for a marketable BUY order ($X), min size: $1` | Amount below CLOB minimum | Use at least $1. If pUSD was already funded, retry with `--skip-fund` |\n| `Wallet not found: main` | Not logged in | Run `agent wallet login` |\n| Session expired (`OMS_SESSION_EXPIRED`) | Login session lapsed (~1 week) | Run `agent wallet login` |\n| Approvals tx reverts after V2 migration | V1 approvals — wrong exchange contracts | Re-run `agent polymarket approve --broadcast` for V2 contracts |\n\n---\n\n## Key Facts for Agents\n\n- **CLOB V2** is active (since April 28, 2026). Collateral is **pUSD**, not USDC.e.\n- **All commands are dry-run by default.** `approve`, `clob-buy`, `sell` do nothing without `--broadcast`.\n- **V2 approvals are required for all users.** V1 approvals on old exchange contracts do not carry over. Run `approve --broadcast` once after migration.\n- **`clob-buy` handles the full flow automatically:** transfers USDC.e from smart wallet → proxy wallet, wraps USDC.e → pUSD, then places the CLOB order (unless `--skip-fund`).\n- **Positions live in the proxy wallet**, not the OMS smart wallet. `positions` queries the proxy wallet.\n- **Sell is free.** No gas, no on-chain tx. Selling via CLOB is a signed off-chain message only. Proceeds are pUSD.\n- **`orderStatus: \"matched\"`** means the trade filled. `\"unmatched\"` means FOK failed (no liquidity).\n- **Fees are protocol-determined at match time.** Makers never pay fees — only takers. No `feeRateBps` on orders.\n- **The proxy wallet address never changes.** It is deterministic from the EOA via CREATE2.\n- **`Could not create api key` in stderr is non-fatal.** The CLI handles this automatically.\n",{"data":35,"body":36},{"name":4,"description":6},{"type":37,"children":38},"root",[39,48,55,61,96,133,137,143,148,269,280,283,289,294,302,334,344,380,390,421,431,476,479,485,492,500,510,518,563,581,589,610,631,639,698,710,718,727,735,762,767,773,781,802,810,819,827,876,884,909,912,918,924,1071,1076,1158,1164,1205,1210,1216,1237,1242,1248,1321,1331,1337,1661,1669,1701,1709,1747,1765,1771,2004,2023,2029,2052,2057,2063,2086,2091,2097,2137,2173,2176,2182,2853,2856,2862,2867,2968,2973,3040,3043,3049,3392,3395,3401,3590],{"type":40,"tag":41,"props":42,"children":44},"element","h1",{"id":43},"polymarket-skill-clob-v2",[45],{"type":46,"value":47},"text","Polymarket Skill (CLOB V2)",{"type":40,"tag":49,"props":50,"children":52},"h2",{"id":51},"session-initialization",[53],{"type":46,"value":54},"Session Initialization",{"type":40,"tag":56,"props":57,"children":58},"p",{},[59],{"type":46,"value":60},"Before any polymarket command, verify the Polymarket key is set:",{"type":40,"tag":62,"props":63,"children":68},"pre",{"className":64,"code":65,"language":66,"meta":67,"style":67},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","agent polymarket proxy-wallet\n","bash","",[69],{"type":40,"tag":70,"props":71,"children":72},"code",{"__ignoreMap":67},[73],{"type":40,"tag":74,"props":75,"children":78},"span",{"class":76,"line":77},"line",1,[79,85,91],{"type":40,"tag":74,"props":80,"children":82},{"style":81},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[83],{"type":46,"value":84},"agent",{"type":40,"tag":74,"props":86,"children":88},{"style":87},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[89],{"type":46,"value":90}," polymarket",{"type":40,"tag":74,"props":92,"children":93},{"style":87},[94],{"type":46,"value":95}," proxy-wallet\n",{"type":40,"tag":56,"props":97,"children":98},{},[99,101,107,109,115,117,123,125,131],{"type":46,"value":100},"If this returns ",{"type":40,"tag":70,"props":102,"children":104},{"className":103},[],[105],{"type":46,"value":106},"ok: true",{"type":46,"value":108}," with an ",{"type":40,"tag":70,"props":110,"children":112},{"className":111},[],[113],{"type":46,"value":114},"eoaAddress",{"type":46,"value":116}," and ",{"type":40,"tag":70,"props":118,"children":120},{"className":119},[],[121],{"type":46,"value":122},"proxyWalletAddress",{"type":46,"value":124},", the key is configured and you can proceed directly to trading. If it errors, the user needs to run ",{"type":40,"tag":70,"props":126,"children":128},{"className":127},[],[129],{"type":46,"value":130},"set-key",{"type":46,"value":132}," (see Onboarding below).",{"type":40,"tag":134,"props":135,"children":136},"hr",{},[],{"type":40,"tag":49,"props":138,"children":140},{"id":139},"understanding-the-3-addresses",[141],{"type":46,"value":142},"Understanding the 3 Addresses",{"type":40,"tag":56,"props":144,"children":145},{},[146],{"type":46,"value":147},"Every Polymarket user has three addresses. Do not confuse them:",{"type":40,"tag":149,"props":150,"children":151},"table",{},[152,176],{"type":40,"tag":153,"props":154,"children":155},"thead",{},[156],{"type":40,"tag":157,"props":158,"children":159},"tr",{},[160,166,171],{"type":40,"tag":161,"props":162,"children":163},"th",{},[164],{"type":46,"value":165},"Name",{"type":40,"tag":161,"props":167,"children":168},{},[169],{"type":46,"value":170},"What it is",{"type":40,"tag":161,"props":172,"children":173},{},[174],{"type":46,"value":175},"Used for",{"type":40,"tag":177,"props":178,"children":179},"tbody",{},[180,212,243],{"type":40,"tag":157,"props":181,"children":182},{},[183,189,201],{"type":40,"tag":184,"props":185,"children":186},"td",{},[187],{"type":46,"value":188},"EOA",{"type":40,"tag":184,"props":190,"children":191},{},[192,194,199],{"type":46,"value":193},"Private key owner. Shown as ",{"type":40,"tag":70,"props":195,"children":197},{"className":196},[],[198],{"type":46,"value":114},{"type":46,"value":200}," in CLI output",{"type":40,"tag":184,"props":202,"children":203},{},[204,206],{"type":46,"value":205},"Signs transactions and CLOB orders. Needs POL for gas only when running ",{"type":40,"tag":70,"props":207,"children":209},{"className":208},[],[210],{"type":46,"value":211},"approve",{"type":40,"tag":157,"props":213,"children":214},{},[215,220,232],{"type":40,"tag":184,"props":216,"children":217},{},[218],{"type":46,"value":219},"Proxy Wallet",{"type":40,"tag":184,"props":221,"children":222},{},[223,225,230],{"type":46,"value":224},"Shown as ",{"type":40,"tag":70,"props":226,"children":228},{"className":227},[],[229],{"type":46,"value":122},{"type":46,"value":231}," in CLI output. This is what Polymarket shows as \"your address\" in the UI",{"type":40,"tag":184,"props":233,"children":234},{},[235,237],{"type":46,"value":236},"Holds pUSD and outcome tokens. The CLOB ",{"type":40,"tag":70,"props":238,"children":240},{"className":239},[],[241],{"type":46,"value":242},"maker",{"type":40,"tag":157,"props":244,"children":245},{},[246,251,264],{"type":40,"tag":184,"props":247,"children":248},{},[249],{"type":46,"value":250},"Smart Wallet",{"type":40,"tag":184,"props":252,"children":253},{},[254,256,262],{"type":46,"value":255},"The OMS wallet (",{"type":40,"tag":70,"props":257,"children":259},{"className":258},[],[260],{"type":46,"value":261},"agent wallet",{"type":46,"value":263},")",{"type":40,"tag":184,"props":265,"children":266},{},[267],{"type":46,"value":268},"Funds the proxy wallet with USDC.e per trade (auto-wrapped to pUSD)",{"type":40,"tag":56,"props":270,"children":271},{},[272,278],{"type":40,"tag":273,"props":274,"children":275},"strong",{},[276],{"type":46,"value":277},"For trading:",{"type":46,"value":279}," USDC.e flows from the OMS smart wallet → proxy wallet → auto-wrapped to pUSD → CLOB orders. The proxy wallet is the trading identity.",{"type":40,"tag":134,"props":281,"children":282},{},[],{"type":40,"tag":49,"props":284,"children":286},{"id":285},"pre-trade-checklist",[287],{"type":46,"value":288},"Pre-Trade Checklist",{"type":40,"tag":56,"props":290,"children":291},{},[292],{"type":46,"value":293},"Before placing a trade, verify these four things in order:",{"type":40,"tag":56,"props":295,"children":296},{},[297],{"type":40,"tag":273,"props":298,"children":299},{},[300],{"type":46,"value":301},"1. EOA key is configured",{"type":40,"tag":62,"props":303,"children":305},{"className":64,"code":304,"language":66,"meta":67,"style":67},"agent polymarket proxy-wallet\n# → must return ok: true with eoaAddress and proxyWalletAddress\n",[306],{"type":40,"tag":70,"props":307,"children":308},{"__ignoreMap":67},[309,324],{"type":40,"tag":74,"props":310,"children":311},{"class":76,"line":77},[312,316,320],{"type":40,"tag":74,"props":313,"children":314},{"style":81},[315],{"type":46,"value":84},{"type":40,"tag":74,"props":317,"children":318},{"style":87},[319],{"type":46,"value":90},{"type":40,"tag":74,"props":321,"children":322},{"style":87},[323],{"type":46,"value":95},{"type":40,"tag":74,"props":325,"children":327},{"class":76,"line":326},2,[328],{"type":40,"tag":74,"props":329,"children":331},{"style":330},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[332],{"type":46,"value":333},"# → must return ok: true with eoaAddress and proxyWalletAddress\n",{"type":40,"tag":56,"props":335,"children":336},{},[337,342],{"type":40,"tag":273,"props":338,"children":339},{},[340],{"type":46,"value":341},"2. ToS accepted on Polymarket",{"type":46,"value":343}," ← one-time per EOA, permanent",{"type":40,"tag":345,"props":346,"children":347},"ul",{},[348,364,375],{"type":40,"tag":349,"props":350,"children":351},"li",{},[352,354,362],{"type":46,"value":353},"Visit ",{"type":40,"tag":355,"props":356,"children":360},"a",{"href":357,"rel":358},"https:\u002F\u002Fpolymarket.com",[359],"nofollow",[361],{"type":46,"value":357},{"type":46,"value":363},", connect with the EOA address, accept Terms of Service",{"type":40,"tag":349,"props":365,"children":366},{},[367,369],{"type":46,"value":368},"If ToS is not accepted, CLOB order posting will fail with ",{"type":40,"tag":70,"props":370,"children":372},{"className":371},[],[373],{"type":46,"value":374},"not authorized",{"type":40,"tag":349,"props":376,"children":377},{},[378],{"type":46,"value":379},"If the user has previously traded on Polymarket with this EOA, ToS is already accepted — skip this",{"type":40,"tag":56,"props":381,"children":382},{},[383,388],{"type":40,"tag":273,"props":384,"children":385},{},[386],{"type":46,"value":387},"3. Proxy wallet approvals set for V2 exchange",{"type":46,"value":389}," ← required for all users after V2 migration",{"type":40,"tag":345,"props":391,"children":392},{},[393,398,416],{"type":40,"tag":349,"props":394,"children":395},{},[396],{"type":46,"value":397},"Approvals allow the proxy wallet to interact with the V2 CTF exchange contracts and CollateralOnramp",{"type":40,"tag":349,"props":399,"children":400},{},[401,414],{"type":40,"tag":273,"props":402,"children":403},{},[404,406,412],{"type":46,"value":405},"All users must run ",{"type":40,"tag":70,"props":407,"children":409},{"className":408},[],[410],{"type":46,"value":411},"approve --broadcast",{"type":46,"value":413}," after the V2 migration (April 28 2026)",{"type":46,"value":415}," — V1 approvals on old exchange contracts do not carry over",{"type":40,"tag":349,"props":417,"children":418},{},[419],{"type":46,"value":420},"After running V2 approvals once, they are permanent on-chain for that EOA",{"type":40,"tag":56,"props":422,"children":423},{},[424,429],{"type":40,"tag":273,"props":425,"children":426},{},[427],{"type":46,"value":428},"4. Smart wallet has USDC.e",{"type":46,"value":430}," ← required per trade, minimum $1",{"type":40,"tag":62,"props":432,"children":434},{"className":64,"code":433,"language":66,"meta":67,"style":67},"agent balances\n# → check USDC.e balance (0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174)\n# → must have at least $1 USDC.e to place any order\n# → USDC.e is auto-wrapped to pUSD during the buy flow\n",[435],{"type":40,"tag":70,"props":436,"children":437},{"__ignoreMap":67},[438,450,458,467],{"type":40,"tag":74,"props":439,"children":440},{"class":76,"line":77},[441,445],{"type":40,"tag":74,"props":442,"children":443},{"style":81},[444],{"type":46,"value":84},{"type":40,"tag":74,"props":446,"children":447},{"style":87},[448],{"type":46,"value":449}," balances\n",{"type":40,"tag":74,"props":451,"children":452},{"class":76,"line":326},[453],{"type":40,"tag":74,"props":454,"children":455},{"style":330},[456],{"type":46,"value":457},"# → check USDC.e balance (0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174)\n",{"type":40,"tag":74,"props":459,"children":461},{"class":76,"line":460},3,[462],{"type":40,"tag":74,"props":463,"children":464},{"style":330},[465],{"type":46,"value":466},"# → must have at least $1 USDC.e to place any order\n",{"type":40,"tag":74,"props":468,"children":470},{"class":76,"line":469},4,[471],{"type":40,"tag":74,"props":472,"children":473},{"style":330},[474],{"type":46,"value":475},"# → USDC.e is auto-wrapped to pUSD during the buy flow\n",{"type":40,"tag":134,"props":477,"children":478},{},[],{"type":40,"tag":49,"props":480,"children":482},{"id":481},"onboarding-first-time-setup",[483],{"type":46,"value":484},"Onboarding: First-Time Setup",{"type":40,"tag":486,"props":487,"children":489},"h3",{"id":488},"option-a-using-email-login-existing-polymarket-account",[490],{"type":46,"value":491},"Option A — Using email login (existing Polymarket account)",{"type":40,"tag":56,"props":493,"children":494},{},[495],{"type":40,"tag":273,"props":496,"children":497},{},[498],{"type":46,"value":499},"Step 1: Get the private key from Polymarket",{"type":40,"tag":62,"props":501,"children":505},{"className":502,"code":504,"language":46},[503],"language-text","1. Go to: https:\u002F\u002Freveal.magic.link\u002Fpolymarket\n2. Connect\u002Fauthenticate with the same email used for Polymarket\n3. Copy the exported private key (0x...)\n",[506],{"type":40,"tag":70,"props":507,"children":508},{"__ignoreMap":67},[509],{"type":46,"value":504},{"type":40,"tag":56,"props":511,"children":512},{},[513],{"type":40,"tag":273,"props":514,"children":515},{},[516],{"type":46,"value":517},"Step 2: Import the key into the CLI",{"type":40,"tag":62,"props":519,"children":521},{"className":64,"code":520,"language":66,"meta":67,"style":67},"agent polymarket set-key \u003CprivateKey>\n",[522],{"type":40,"tag":70,"props":523,"children":524},{"__ignoreMap":67},[525],{"type":40,"tag":74,"props":526,"children":527},{"class":76,"line":77},[528,532,536,541,547,552,558],{"type":40,"tag":74,"props":529,"children":530},{"style":81},[531],{"type":46,"value":84},{"type":40,"tag":74,"props":533,"children":534},{"style":87},[535],{"type":46,"value":90},{"type":40,"tag":74,"props":537,"children":538},{"style":87},[539],{"type":46,"value":540}," set-key",{"type":40,"tag":74,"props":542,"children":544},{"style":543},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[545],{"type":46,"value":546}," \u003C",{"type":40,"tag":74,"props":548,"children":549},{"style":87},[550],{"type":46,"value":551},"privateKe",{"type":40,"tag":74,"props":553,"children":555},{"style":554},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[556],{"type":46,"value":557},"y",{"type":40,"tag":74,"props":559,"children":560},{"style":543},[561],{"type":46,"value":562},">\n",{"type":40,"tag":56,"props":564,"children":565},{},[566,568,573,574,579],{"type":46,"value":567},"Output confirms the ",{"type":40,"tag":70,"props":569,"children":571},{"className":570},[],[572],{"type":46,"value":114},{"type":46,"value":116},{"type":40,"tag":70,"props":575,"children":577},{"className":576},[],[578],{"type":46,"value":122},{"type":46,"value":580},".",{"type":40,"tag":56,"props":582,"children":583},{},[584],{"type":40,"tag":273,"props":585,"children":586},{},[587],{"type":46,"value":588},"Step 3: Show the user their addresses",{"type":40,"tag":62,"props":590,"children":591},{"className":64,"code":65,"language":66,"meta":67,"style":67},[592],{"type":40,"tag":70,"props":593,"children":594},{"__ignoreMap":67},[595],{"type":40,"tag":74,"props":596,"children":597},{"class":76,"line":77},[598,602,606],{"type":40,"tag":74,"props":599,"children":600},{"style":81},[601],{"type":46,"value":84},{"type":40,"tag":74,"props":603,"children":604},{"style":87},[605],{"type":46,"value":90},{"type":40,"tag":74,"props":607,"children":608},{"style":87},[609],{"type":46,"value":95},{"type":40,"tag":56,"props":611,"children":612},{},[613,615,621,623,629],{"type":46,"value":614},"Tell the user: \"Your EOA is ",{"type":40,"tag":70,"props":616,"children":618},{"className":617},[],[619],{"type":46,"value":620},"\u003CeoaAddress>",{"type":46,"value":622}," — this needs a small amount of POL for the one-time approval step. Your Polymarket trading address (proxy wallet) is ",{"type":40,"tag":70,"props":624,"children":626},{"className":625},[],[627],{"type":46,"value":628},"\u003CproxyWalletAddress>",{"type":46,"value":630}," — this is where your pUSD and outcome tokens live.\"",{"type":40,"tag":56,"props":632,"children":633},{},[634],{"type":40,"tag":273,"props":635,"children":636},{},[637],{"type":46,"value":638},"Step 4: Fund EOA with POL for gas (approval step only)",{"type":40,"tag":62,"props":640,"children":642},{"className":64,"code":641,"language":66,"meta":67,"style":67},"agent send-native --to \u003CeoaAddress> --amount 0.1 --broadcast\n",[643],{"type":40,"tag":70,"props":644,"children":645},{"__ignoreMap":67},[646],{"type":40,"tag":74,"props":647,"children":648},{"class":76,"line":77},[649,653,658,663,667,672,677,682,687,693],{"type":40,"tag":74,"props":650,"children":651},{"style":81},[652],{"type":46,"value":84},{"type":40,"tag":74,"props":654,"children":655},{"style":87},[656],{"type":46,"value":657}," send-native",{"type":40,"tag":74,"props":659,"children":660},{"style":87},[661],{"type":46,"value":662}," --to",{"type":40,"tag":74,"props":664,"children":665},{"style":543},[666],{"type":46,"value":546},{"type":40,"tag":74,"props":668,"children":669},{"style":87},[670],{"type":46,"value":671},"eoaAddres",{"type":40,"tag":74,"props":673,"children":674},{"style":554},[675],{"type":46,"value":676},"s",{"type":40,"tag":74,"props":678,"children":679},{"style":543},[680],{"type":46,"value":681},">",{"type":40,"tag":74,"props":683,"children":684},{"style":87},[685],{"type":46,"value":686}," --amount",{"type":40,"tag":74,"props":688,"children":690},{"style":689},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[691],{"type":46,"value":692}," 0.1",{"type":40,"tag":74,"props":694,"children":695},{"style":87},[696],{"type":46,"value":697}," --broadcast\n",{"type":40,"tag":56,"props":699,"children":700},{},[701,703,708],{"type":46,"value":702},"The EOA only needs POL for the one-time ",{"type":40,"tag":70,"props":704,"children":706},{"className":705},[],[707],{"type":46,"value":211},{"type":46,"value":709}," transaction. After that, trading requires no gas from the EOA.",{"type":40,"tag":56,"props":711,"children":712},{},[713],{"type":40,"tag":273,"props":714,"children":715},{},[716],{"type":46,"value":717},"Step 5: Accept Terms of Service",{"type":40,"tag":62,"props":719,"children":722},{"className":720,"code":721,"language":46},[503],"1. Go to https:\u002F\u002Fpolymarket.com\n2. Connect with the EOA address\n3. Accept Terms of Service when prompted\n",[723],{"type":40,"tag":70,"props":724,"children":725},{"__ignoreMap":67},[726],{"type":46,"value":721},{"type":40,"tag":56,"props":728,"children":729},{},[730],{"type":40,"tag":273,"props":731,"children":732},{},[733],{"type":46,"value":734},"Step 6: Set proxy wallet approvals for V2 (one-time, permanent)",{"type":40,"tag":62,"props":736,"children":738},{"className":64,"code":737,"language":66,"meta":67,"style":67},"agent polymarket approve --broadcast\n",[739],{"type":40,"tag":70,"props":740,"children":741},{"__ignoreMap":67},[742],{"type":40,"tag":74,"props":743,"children":744},{"class":76,"line":77},[745,749,753,758],{"type":40,"tag":74,"props":746,"children":747},{"style":81},[748],{"type":46,"value":84},{"type":40,"tag":74,"props":750,"children":751},{"style":87},[752],{"type":46,"value":90},{"type":40,"tag":74,"props":754,"children":755},{"style":87},[756],{"type":46,"value":757}," approve",{"type":40,"tag":74,"props":759,"children":760},{"style":87},[761],{"type":46,"value":697},{"type":40,"tag":56,"props":763,"children":764},{},[765],{"type":46,"value":766},"This sets approvals for the V2 exchange contracts and CollateralOnramp. Permanent on-chain — never needs to be run again for this EOA.",{"type":40,"tag":486,"props":768,"children":770},{"id":769},"option-b-using-the-builder-eoa-no-polymarket-account",[771],{"type":46,"value":772},"Option B — Using the builder EOA (no Polymarket account)",{"type":40,"tag":56,"props":774,"children":775},{},[776],{"type":40,"tag":273,"props":777,"children":778},{},[779],{"type":46,"value":780},"Step 1: Confirm addresses",{"type":40,"tag":62,"props":782,"children":783},{"className":64,"code":65,"language":66,"meta":67,"style":67},[784],{"type":40,"tag":70,"props":785,"children":786},{"__ignoreMap":67},[787],{"type":40,"tag":74,"props":788,"children":789},{"class":76,"line":77},[790,794,798],{"type":40,"tag":74,"props":791,"children":792},{"style":81},[793],{"type":46,"value":84},{"type":40,"tag":74,"props":795,"children":796},{"style":87},[797],{"type":46,"value":90},{"type":40,"tag":74,"props":799,"children":800},{"style":87},[801],{"type":46,"value":95},{"type":40,"tag":56,"props":803,"children":804},{},[805],{"type":40,"tag":273,"props":806,"children":807},{},[808],{"type":46,"value":809},"Step 2: Accept Terms of Service (required)",{"type":40,"tag":62,"props":811,"children":814},{"className":812,"code":813,"language":46},[503],"1. Go to https:\u002F\u002Fpolymarket.com\n2. Connect with the EOA address shown above\n3. Accept Terms of Service when prompted\n",[815],{"type":40,"tag":70,"props":816,"children":817},{"__ignoreMap":67},[818],{"type":46,"value":813},{"type":40,"tag":56,"props":820,"children":821},{},[822],{"type":40,"tag":273,"props":823,"children":824},{},[825],{"type":46,"value":826},"Step 3: Fund EOA with POL for gas",{"type":40,"tag":62,"props":828,"children":829},{"className":64,"code":641,"language":66,"meta":67,"style":67},[830],{"type":40,"tag":70,"props":831,"children":832},{"__ignoreMap":67},[833],{"type":40,"tag":74,"props":834,"children":835},{"class":76,"line":77},[836,840,844,848,852,856,860,864,868,872],{"type":40,"tag":74,"props":837,"children":838},{"style":81},[839],{"type":46,"value":84},{"type":40,"tag":74,"props":841,"children":842},{"style":87},[843],{"type":46,"value":657},{"type":40,"tag":74,"props":845,"children":846},{"style":87},[847],{"type":46,"value":662},{"type":40,"tag":74,"props":849,"children":850},{"style":543},[851],{"type":46,"value":546},{"type":40,"tag":74,"props":853,"children":854},{"style":87},[855],{"type":46,"value":671},{"type":40,"tag":74,"props":857,"children":858},{"style":554},[859],{"type":46,"value":676},{"type":40,"tag":74,"props":861,"children":862},{"style":543},[863],{"type":46,"value":681},{"type":40,"tag":74,"props":865,"children":866},{"style":87},[867],{"type":46,"value":686},{"type":40,"tag":74,"props":869,"children":870},{"style":689},[871],{"type":46,"value":692},{"type":40,"tag":74,"props":873,"children":874},{"style":87},[875],{"type":46,"value":697},{"type":40,"tag":56,"props":877,"children":878},{},[879],{"type":40,"tag":273,"props":880,"children":881},{},[882],{"type":46,"value":883},"Step 4: Set proxy wallet approvals for V2 (one-time)",{"type":40,"tag":62,"props":885,"children":886},{"className":64,"code":737,"language":66,"meta":67,"style":67},[887],{"type":40,"tag":70,"props":888,"children":889},{"__ignoreMap":67},[890],{"type":40,"tag":74,"props":891,"children":892},{"class":76,"line":77},[893,897,901,905],{"type":40,"tag":74,"props":894,"children":895},{"style":81},[896],{"type":46,"value":84},{"type":40,"tag":74,"props":898,"children":899},{"style":87},[900],{"type":46,"value":90},{"type":40,"tag":74,"props":902,"children":903},{"style":87},[904],{"type":46,"value":757},{"type":40,"tag":74,"props":906,"children":907},{"style":87},[908],{"type":46,"value":697},{"type":40,"tag":134,"props":910,"children":911},{},[],{"type":40,"tag":49,"props":913,"children":915},{"id":914},"commands",[916],{"type":46,"value":917},"Commands",{"type":40,"tag":486,"props":919,"children":921},{"id":920},"browse-markets",[922],{"type":46,"value":923},"Browse Markets",{"type":40,"tag":62,"props":925,"children":927},{"className":64,"code":926,"language":66,"meta":67,"style":67},"# List top markets by volume\nagent polymarket markets\n\n# Search by keyword\nagent polymarket markets --search \"bitcoin\" --limit 10\n\n# Paginate\nagent polymarket markets --limit 20 --offset 20\n",[928],{"type":40,"tag":70,"props":929,"children":930},{"__ignoreMap":67},[931,939,955,964,972,1019,1027,1036],{"type":40,"tag":74,"props":932,"children":933},{"class":76,"line":77},[934],{"type":40,"tag":74,"props":935,"children":936},{"style":330},[937],{"type":46,"value":938},"# List top markets by volume\n",{"type":40,"tag":74,"props":940,"children":941},{"class":76,"line":326},[942,946,950],{"type":40,"tag":74,"props":943,"children":944},{"style":81},[945],{"type":46,"value":84},{"type":40,"tag":74,"props":947,"children":948},{"style":87},[949],{"type":46,"value":90},{"type":40,"tag":74,"props":951,"children":952},{"style":87},[953],{"type":46,"value":954}," markets\n",{"type":40,"tag":74,"props":956,"children":957},{"class":76,"line":460},[958],{"type":40,"tag":74,"props":959,"children":961},{"emptyLinePlaceholder":960},true,[962],{"type":46,"value":963},"\n",{"type":40,"tag":74,"props":965,"children":966},{"class":76,"line":469},[967],{"type":40,"tag":74,"props":968,"children":969},{"style":330},[970],{"type":46,"value":971},"# Search by keyword\n",{"type":40,"tag":74,"props":973,"children":975},{"class":76,"line":974},5,[976,980,984,989,994,999,1004,1009,1014],{"type":40,"tag":74,"props":977,"children":978},{"style":81},[979],{"type":46,"value":84},{"type":40,"tag":74,"props":981,"children":982},{"style":87},[983],{"type":46,"value":90},{"type":40,"tag":74,"props":985,"children":986},{"style":87},[987],{"type":46,"value":988}," markets",{"type":40,"tag":74,"props":990,"children":991},{"style":87},[992],{"type":46,"value":993}," --search",{"type":40,"tag":74,"props":995,"children":996},{"style":543},[997],{"type":46,"value":998}," \"",{"type":40,"tag":74,"props":1000,"children":1001},{"style":87},[1002],{"type":46,"value":1003},"bitcoin",{"type":40,"tag":74,"props":1005,"children":1006},{"style":543},[1007],{"type":46,"value":1008},"\"",{"type":40,"tag":74,"props":1010,"children":1011},{"style":87},[1012],{"type":46,"value":1013}," --limit",{"type":40,"tag":74,"props":1015,"children":1016},{"style":689},[1017],{"type":46,"value":1018}," 10\n",{"type":40,"tag":74,"props":1020,"children":1022},{"class":76,"line":1021},6,[1023],{"type":40,"tag":74,"props":1024,"children":1025},{"emptyLinePlaceholder":960},[1026],{"type":46,"value":963},{"type":40,"tag":74,"props":1028,"children":1030},{"class":76,"line":1029},7,[1031],{"type":40,"tag":74,"props":1032,"children":1033},{"style":330},[1034],{"type":46,"value":1035},"# Paginate\n",{"type":40,"tag":74,"props":1037,"children":1039},{"class":76,"line":1038},8,[1040,1044,1048,1052,1056,1061,1066],{"type":40,"tag":74,"props":1041,"children":1042},{"style":81},[1043],{"type":46,"value":84},{"type":40,"tag":74,"props":1045,"children":1046},{"style":87},[1047],{"type":46,"value":90},{"type":40,"tag":74,"props":1049,"children":1050},{"style":87},[1051],{"type":46,"value":988},{"type":40,"tag":74,"props":1053,"children":1054},{"style":87},[1055],{"type":46,"value":1013},{"type":40,"tag":74,"props":1057,"children":1058},{"style":689},[1059],{"type":46,"value":1060}," 20",{"type":40,"tag":74,"props":1062,"children":1063},{"style":87},[1064],{"type":46,"value":1065}," --offset",{"type":40,"tag":74,"props":1067,"children":1068},{"style":689},[1069],{"type":46,"value":1070}," 20\n",{"type":40,"tag":56,"props":1072,"children":1073},{},[1074],{"type":46,"value":1075},"Key output fields per market:",{"type":40,"tag":345,"props":1077,"children":1078},{},[1079,1090,1101,1128,1147],{"type":40,"tag":349,"props":1080,"children":1081},{},[1082,1088],{"type":40,"tag":70,"props":1083,"children":1085},{"className":1084},[],[1086],{"type":46,"value":1087},"conditionId",{"type":46,"value":1089}," — the ID needed for all trading commands",{"type":40,"tag":349,"props":1091,"children":1092},{},[1093,1099],{"type":40,"tag":70,"props":1094,"children":1096},{"className":1095},[],[1097],{"type":46,"value":1098},"question",{"type":46,"value":1100}," — what the market is asking",{"type":40,"tag":349,"props":1102,"children":1103},{},[1104,1110,1112,1118,1120,1126],{"type":40,"tag":70,"props":1105,"children":1107},{"className":1106},[],[1108],{"type":46,"value":1109},"yesPrice",{"type":46,"value":1111}," \u002F ",{"type":40,"tag":70,"props":1113,"children":1115},{"className":1114},[],[1116],{"type":46,"value":1117},"noPrice",{"type":46,"value":1119}," — current probability (0 to 1, e.g. ",{"type":40,"tag":70,"props":1121,"children":1123},{"className":1122},[],[1124],{"type":46,"value":1125},"0.65",{"type":46,"value":1127}," = 65%)",{"type":40,"tag":349,"props":1129,"children":1130},{},[1131,1137,1139,1145],{"type":40,"tag":70,"props":1132,"children":1134},{"className":1133},[],[1135],{"type":46,"value":1136},"negRisk",{"type":46,"value":1138}," — if ",{"type":40,"tag":70,"props":1140,"children":1142},{"className":1141},[],[1143],{"type":46,"value":1144},"true",{"type":46,"value":1146},", set neg-risk approvals before trading this market",{"type":40,"tag":349,"props":1148,"children":1149},{},[1150,1156],{"type":40,"tag":70,"props":1151,"children":1153},{"className":1152},[],[1154],{"type":46,"value":1155},"endDate",{"type":46,"value":1157}," — when the market resolves",{"type":40,"tag":486,"props":1159,"children":1161},{"id":1160},"get-a-single-market",[1162],{"type":46,"value":1163},"Get a Single Market",{"type":40,"tag":62,"props":1165,"children":1167},{"className":64,"code":1166,"language":66,"meta":67,"style":67},"agent polymarket market \u003CconditionId>\n",[1168],{"type":40,"tag":70,"props":1169,"children":1170},{"__ignoreMap":67},[1171],{"type":40,"tag":74,"props":1172,"children":1173},{"class":76,"line":77},[1174,1178,1182,1187,1191,1196,1201],{"type":40,"tag":74,"props":1175,"children":1176},{"style":81},[1177],{"type":46,"value":84},{"type":40,"tag":74,"props":1179,"children":1180},{"style":87},[1181],{"type":46,"value":90},{"type":40,"tag":74,"props":1183,"children":1184},{"style":87},[1185],{"type":46,"value":1186}," market",{"type":40,"tag":74,"props":1188,"children":1189},{"style":543},[1190],{"type":46,"value":546},{"type":40,"tag":74,"props":1192,"children":1193},{"style":87},[1194],{"type":46,"value":1195},"conditionI",{"type":40,"tag":74,"props":1197,"children":1198},{"style":554},[1199],{"type":46,"value":1200},"d",{"type":40,"tag":74,"props":1202,"children":1203},{"style":543},[1204],{"type":46,"value":562},{"type":40,"tag":56,"props":1206,"children":1207},{},[1208],{"type":46,"value":1209},"Use this to confirm prices and token IDs before placing an order.",{"type":40,"tag":486,"props":1211,"children":1213},{"id":1212},"show-proxy-wallet-address",[1214],{"type":46,"value":1215},"Show Proxy Wallet Address",{"type":40,"tag":62,"props":1217,"children":1218},{"className":64,"code":65,"language":66,"meta":67,"style":67},[1219],{"type":40,"tag":70,"props":1220,"children":1221},{"__ignoreMap":67},[1222],{"type":40,"tag":74,"props":1223,"children":1224},{"class":76,"line":77},[1225,1229,1233],{"type":40,"tag":74,"props":1226,"children":1227},{"style":81},[1228],{"type":46,"value":84},{"type":40,"tag":74,"props":1230,"children":1231},{"style":87},[1232],{"type":46,"value":90},{"type":40,"tag":74,"props":1234,"children":1235},{"style":87},[1236],{"type":46,"value":95},{"type":40,"tag":56,"props":1238,"children":1239},{},[1240],{"type":46,"value":1241},"Confirms which EOA and proxy wallet are active. The proxy wallet is where pUSD and tokens are held.",{"type":40,"tag":486,"props":1243,"children":1245},{"id":1244},"set-approvals-required-after-v2-migration",[1246],{"type":46,"value":1247},"Set Approvals (Required After V2 Migration)",{"type":40,"tag":62,"props":1249,"children":1251},{"className":64,"code":1250,"language":66,"meta":67,"style":67},"# Standard markets\nagent polymarket approve --broadcast\n\n# Neg-risk markets (only if you see negRisk: true on a market you want to trade)\nagent polymarket approve --neg-risk --broadcast\n",[1252],{"type":40,"tag":70,"props":1253,"children":1254},{"__ignoreMap":67},[1255,1263,1282,1289,1297],{"type":40,"tag":74,"props":1256,"children":1257},{"class":76,"line":77},[1258],{"type":40,"tag":74,"props":1259,"children":1260},{"style":330},[1261],{"type":46,"value":1262},"# Standard markets\n",{"type":40,"tag":74,"props":1264,"children":1265},{"class":76,"line":326},[1266,1270,1274,1278],{"type":40,"tag":74,"props":1267,"children":1268},{"style":81},[1269],{"type":46,"value":84},{"type":40,"tag":74,"props":1271,"children":1272},{"style":87},[1273],{"type":46,"value":90},{"type":40,"tag":74,"props":1275,"children":1276},{"style":87},[1277],{"type":46,"value":757},{"type":40,"tag":74,"props":1279,"children":1280},{"style":87},[1281],{"type":46,"value":697},{"type":40,"tag":74,"props":1283,"children":1284},{"class":76,"line":460},[1285],{"type":40,"tag":74,"props":1286,"children":1287},{"emptyLinePlaceholder":960},[1288],{"type":46,"value":963},{"type":40,"tag":74,"props":1290,"children":1291},{"class":76,"line":469},[1292],{"type":40,"tag":74,"props":1293,"children":1294},{"style":330},[1295],{"type":46,"value":1296},"# Neg-risk markets (only if you see negRisk: true on a market you want to trade)\n",{"type":40,"tag":74,"props":1298,"children":1299},{"class":76,"line":974},[1300,1304,1308,1312,1317],{"type":40,"tag":74,"props":1301,"children":1302},{"style":81},[1303],{"type":46,"value":84},{"type":40,"tag":74,"props":1305,"children":1306},{"style":87},[1307],{"type":46,"value":90},{"type":40,"tag":74,"props":1309,"children":1310},{"style":87},[1311],{"type":46,"value":757},{"type":40,"tag":74,"props":1313,"children":1314},{"style":87},[1315],{"type":46,"value":1316}," --neg-risk",{"type":40,"tag":74,"props":1318,"children":1319},{"style":87},[1320],{"type":46,"value":697},{"type":40,"tag":56,"props":1322,"children":1323},{},[1324,1329],{"type":40,"tag":273,"props":1325,"children":1326},{},[1327],{"type":46,"value":1328},"All users must run this after the V2 migration",{"type":46,"value":1330}," — previous V1 approvals on old exchange contracts do not carry over. V2 approvals cover: pUSD → V2 exchange, CTF → V2 exchange, and USDC.e → CollateralOnramp (for wrapping). Once set, they are permanent on-chain.",{"type":40,"tag":486,"props":1332,"children":1334},{"id":1333},"buy-a-position",[1335],{"type":46,"value":1336},"Buy a Position",{"type":40,"tag":62,"props":1338,"children":1340},{"className":64,"code":1339,"language":66,"meta":67,"style":67},"# Dry-run first — always check before executing\nagent polymarket clob-buy \u003CconditionId> YES|NO \u003CusdcAmount>\n\n# Execute — funds proxy wallet, wraps USDC.e → pUSD, then places order\nagent polymarket clob-buy \u003CconditionId> YES|NO \u003CusdcAmount> --broadcast\n\n# If proxy wallet already has pUSD from a previous failed order (skip the funding step)\nagent polymarket clob-buy \u003CconditionId> YES|NO \u003CusdcAmount> --skip-fund --broadcast\n\n# Limit order — fill only at this price or better\nagent polymarket clob-buy \u003CconditionId> YES \u003CusdcAmount> --price 0.45 --broadcast\n",[1341],{"type":40,"tag":70,"props":1342,"children":1343},{"__ignoreMap":67},[1344,1352,1417,1424,1432,1495,1502,1510,1578,1586,1595],{"type":40,"tag":74,"props":1345,"children":1346},{"class":76,"line":77},[1347],{"type":40,"tag":74,"props":1348,"children":1349},{"style":330},[1350],{"type":46,"value":1351},"# Dry-run first — always check before executing\n",{"type":40,"tag":74,"props":1353,"children":1354},{"class":76,"line":326},[1355,1359,1363,1368,1372,1376,1380,1384,1389,1394,1399,1403,1408,1413],{"type":40,"tag":74,"props":1356,"children":1357},{"style":81},[1358],{"type":46,"value":84},{"type":40,"tag":74,"props":1360,"children":1361},{"style":87},[1362],{"type":46,"value":90},{"type":40,"tag":74,"props":1364,"children":1365},{"style":87},[1366],{"type":46,"value":1367}," clob-buy",{"type":40,"tag":74,"props":1369,"children":1370},{"style":543},[1371],{"type":46,"value":546},{"type":40,"tag":74,"props":1373,"children":1374},{"style":87},[1375],{"type":46,"value":1195},{"type":40,"tag":74,"props":1377,"children":1378},{"style":554},[1379],{"type":46,"value":1200},{"type":40,"tag":74,"props":1381,"children":1382},{"style":543},[1383],{"type":46,"value":681},{"type":40,"tag":74,"props":1385,"children":1386},{"style":87},[1387],{"type":46,"value":1388}," YES",{"type":40,"tag":74,"props":1390,"children":1391},{"style":543},[1392],{"type":46,"value":1393},"|",{"type":40,"tag":74,"props":1395,"children":1396},{"style":81},[1397],{"type":46,"value":1398},"NO",{"type":40,"tag":74,"props":1400,"children":1401},{"style":543},[1402],{"type":46,"value":546},{"type":40,"tag":74,"props":1404,"children":1405},{"style":87},[1406],{"type":46,"value":1407},"usdcAmoun",{"type":40,"tag":74,"props":1409,"children":1410},{"style":554},[1411],{"type":46,"value":1412},"t",{"type":40,"tag":74,"props":1414,"children":1415},{"style":543},[1416],{"type":46,"value":562},{"type":40,"tag":74,"props":1418,"children":1419},{"class":76,"line":460},[1420],{"type":40,"tag":74,"props":1421,"children":1422},{"emptyLinePlaceholder":960},[1423],{"type":46,"value":963},{"type":40,"tag":74,"props":1425,"children":1426},{"class":76,"line":469},[1427],{"type":40,"tag":74,"props":1428,"children":1429},{"style":330},[1430],{"type":46,"value":1431},"# Execute — funds proxy wallet, wraps USDC.e → pUSD, then places order\n",{"type":40,"tag":74,"props":1433,"children":1434},{"class":76,"line":974},[1435,1439,1443,1447,1451,1455,1459,1463,1467,1471,1475,1479,1483,1487,1491],{"type":40,"tag":74,"props":1436,"children":1437},{"style":81},[1438],{"type":46,"value":84},{"type":40,"tag":74,"props":1440,"children":1441},{"style":87},[1442],{"type":46,"value":90},{"type":40,"tag":74,"props":1444,"children":1445},{"style":87},[1446],{"type":46,"value":1367},{"type":40,"tag":74,"props":1448,"children":1449},{"style":543},[1450],{"type":46,"value":546},{"type":40,"tag":74,"props":1452,"children":1453},{"style":87},[1454],{"type":46,"value":1195},{"type":40,"tag":74,"props":1456,"children":1457},{"style":554},[1458],{"type":46,"value":1200},{"type":40,"tag":74,"props":1460,"children":1461},{"style":543},[1462],{"type":46,"value":681},{"type":40,"tag":74,"props":1464,"children":1465},{"style":87},[1466],{"type":46,"value":1388},{"type":40,"tag":74,"props":1468,"children":1469},{"style":543},[1470],{"type":46,"value":1393},{"type":40,"tag":74,"props":1472,"children":1473},{"style":81},[1474],{"type":46,"value":1398},{"type":40,"tag":74,"props":1476,"children":1477},{"style":543},[1478],{"type":46,"value":546},{"type":40,"tag":74,"props":1480,"children":1481},{"style":87},[1482],{"type":46,"value":1407},{"type":40,"tag":74,"props":1484,"children":1485},{"style":554},[1486],{"type":46,"value":1412},{"type":40,"tag":74,"props":1488,"children":1489},{"style":543},[1490],{"type":46,"value":681},{"type":40,"tag":74,"props":1492,"children":1493},{"style":87},[1494],{"type":46,"value":697},{"type":40,"tag":74,"props":1496,"children":1497},{"class":76,"line":1021},[1498],{"type":40,"tag":74,"props":1499,"children":1500},{"emptyLinePlaceholder":960},[1501],{"type":46,"value":963},{"type":40,"tag":74,"props":1503,"children":1504},{"class":76,"line":1029},[1505],{"type":40,"tag":74,"props":1506,"children":1507},{"style":330},[1508],{"type":46,"value":1509},"# If proxy wallet already has pUSD from a previous failed order (skip the funding step)\n",{"type":40,"tag":74,"props":1511,"children":1512},{"class":76,"line":1038},[1513,1517,1521,1525,1529,1533,1537,1541,1545,1549,1553,1557,1561,1565,1569,1574],{"type":40,"tag":74,"props":1514,"children":1515},{"style":81},[1516],{"type":46,"value":84},{"type":40,"tag":74,"props":1518,"children":1519},{"style":87},[1520],{"type":46,"value":90},{"type":40,"tag":74,"props":1522,"children":1523},{"style":87},[1524],{"type":46,"value":1367},{"type":40,"tag":74,"props":1526,"children":1527},{"style":543},[1528],{"type":46,"value":546},{"type":40,"tag":74,"props":1530,"children":1531},{"style":87},[1532],{"type":46,"value":1195},{"type":40,"tag":74,"props":1534,"children":1535},{"style":554},[1536],{"type":46,"value":1200},{"type":40,"tag":74,"props":1538,"children":1539},{"style":543},[1540],{"type":46,"value":681},{"type":40,"tag":74,"props":1542,"children":1543},{"style":87},[1544],{"type":46,"value":1388},{"type":40,"tag":74,"props":1546,"children":1547},{"style":543},[1548],{"type":46,"value":1393},{"type":40,"tag":74,"props":1550,"children":1551},{"style":81},[1552],{"type":46,"value":1398},{"type":40,"tag":74,"props":1554,"children":1555},{"style":543},[1556],{"type":46,"value":546},{"type":40,"tag":74,"props":1558,"children":1559},{"style":87},[1560],{"type":46,"value":1407},{"type":40,"tag":74,"props":1562,"children":1563},{"style":554},[1564],{"type":46,"value":1412},{"type":40,"tag":74,"props":1566,"children":1567},{"style":543},[1568],{"type":46,"value":681},{"type":40,"tag":74,"props":1570,"children":1571},{"style":87},[1572],{"type":46,"value":1573}," --skip-fund",{"type":40,"tag":74,"props":1575,"children":1576},{"style":87},[1577],{"type":46,"value":697},{"type":40,"tag":74,"props":1579,"children":1581},{"class":76,"line":1580},9,[1582],{"type":40,"tag":74,"props":1583,"children":1584},{"emptyLinePlaceholder":960},[1585],{"type":46,"value":963},{"type":40,"tag":74,"props":1587,"children":1589},{"class":76,"line":1588},10,[1590],{"type":40,"tag":74,"props":1591,"children":1592},{"style":330},[1593],{"type":46,"value":1594},"# Limit order — fill only at this price or better\n",{"type":40,"tag":74,"props":1596,"children":1598},{"class":76,"line":1597},11,[1599,1603,1607,1611,1615,1619,1623,1627,1631,1635,1639,1643,1647,1652,1657],{"type":40,"tag":74,"props":1600,"children":1601},{"style":81},[1602],{"type":46,"value":84},{"type":40,"tag":74,"props":1604,"children":1605},{"style":87},[1606],{"type":46,"value":90},{"type":40,"tag":74,"props":1608,"children":1609},{"style":87},[1610],{"type":46,"value":1367},{"type":40,"tag":74,"props":1612,"children":1613},{"style":543},[1614],{"type":46,"value":546},{"type":40,"tag":74,"props":1616,"children":1617},{"style":87},[1618],{"type":46,"value":1195},{"type":40,"tag":74,"props":1620,"children":1621},{"style":554},[1622],{"type":46,"value":1200},{"type":40,"tag":74,"props":1624,"children":1625},{"style":543},[1626],{"type":46,"value":681},{"type":40,"tag":74,"props":1628,"children":1629},{"style":87},[1630],{"type":46,"value":1388},{"type":40,"tag":74,"props":1632,"children":1633},{"style":543},[1634],{"type":46,"value":546},{"type":40,"tag":74,"props":1636,"children":1637},{"style":87},[1638],{"type":46,"value":1407},{"type":40,"tag":74,"props":1640,"children":1641},{"style":554},[1642],{"type":46,"value":1412},{"type":40,"tag":74,"props":1644,"children":1645},{"style":543},[1646],{"type":46,"value":681},{"type":40,"tag":74,"props":1648,"children":1649},{"style":87},[1650],{"type":46,"value":1651}," --price",{"type":40,"tag":74,"props":1653,"children":1654},{"style":689},[1655],{"type":46,"value":1656}," 0.45",{"type":40,"tag":74,"props":1658,"children":1659},{"style":87},[1660],{"type":46,"value":697},{"type":40,"tag":56,"props":1662,"children":1663},{},[1664],{"type":40,"tag":273,"props":1665,"children":1666},{},[1667],{"type":46,"value":1668},"How it works:",{"type":40,"tag":1670,"props":1671,"children":1672},"ol",{},[1673,1686,1691,1696],{"type":40,"tag":349,"props":1674,"children":1675},{},[1676,1678,1684],{"type":46,"value":1677},"Smart wallet transfers ",{"type":40,"tag":70,"props":1679,"children":1681},{"className":1680},[],[1682],{"type":46,"value":1683},"usdcAmount",{"type":46,"value":1685}," USDC.e to the proxy wallet (OMS tx)",{"type":40,"tag":349,"props":1687,"children":1688},{},[1689],{"type":46,"value":1690},"Proxy wallet wraps USDC.e → pUSD via CollateralOnramp (on-chain, EOA gas)",{"type":40,"tag":349,"props":1692,"children":1693},{},[1694],{"type":46,"value":1695},"Posts CLOB BUY order: maker=proxy wallet, signer=EOA (off-chain, no gas)",{"type":40,"tag":349,"props":1697,"children":1698},{},[1699],{"type":46,"value":1700},"Tokens arrive in proxy wallet on fill",{"type":40,"tag":56,"props":1702,"children":1703},{},[1704],{"type":40,"tag":273,"props":1705,"children":1706},{},[1707],{"type":46,"value":1708},"Order types:",{"type":40,"tag":345,"props":1710,"children":1711},{},[1712,1725,1736],{"type":40,"tag":349,"props":1713,"children":1714},{},[1715,1717,1723],{"type":46,"value":1716},"No ",{"type":40,"tag":70,"props":1718,"children":1720},{"className":1719},[],[1721],{"type":46,"value":1722},"--price",{"type":46,"value":1724},": FOK market order (fill entirely or cancel)",{"type":40,"tag":349,"props":1726,"children":1727},{},[1728,1734],{"type":40,"tag":70,"props":1729,"children":1731},{"className":1730},[],[1732],{"type":46,"value":1733},"--fak",{"type":46,"value":1735},": FAK market order (partial fills allowed)",{"type":40,"tag":349,"props":1737,"children":1738},{},[1739,1745],{"type":40,"tag":70,"props":1740,"children":1742},{"className":1741},[],[1743],{"type":46,"value":1744},"--price 0.x",{"type":46,"value":1746},": GTC limit order (stays open until filled or cancelled)",{"type":40,"tag":56,"props":1748,"children":1749},{},[1750,1755,1757,1763],{"type":40,"tag":273,"props":1751,"children":1752},{},[1753],{"type":46,"value":1754},"Minimum order size: $1.",{"type":46,"value":1756}," The CLOB rejects orders below $1. If the fund+wrap step runs but the order is rejected, the pUSD stays in the proxy wallet — use ",{"type":40,"tag":70,"props":1758,"children":1760},{"className":1759},[],[1761],{"type":46,"value":1762},"--skip-fund",{"type":46,"value":1764}," on the retry.",{"type":40,"tag":486,"props":1766,"children":1768},{"id":1767},"sell-a-position",[1769],{"type":46,"value":1770},"Sell a Position",{"type":40,"tag":62,"props":1772,"children":1774},{"className":64,"code":1773,"language":66,"meta":67,"style":67},"# Dry-run first\nagent polymarket sell \u003CconditionId> YES|NO \u003Cshares>\n\n# Execute\nagent polymarket sell \u003CconditionId> YES|NO \u003Cshares> --broadcast\n\n# Limit sell\nagent polymarket sell \u003CconditionId> YES \u003Cshares> --price 0.80 --broadcast\n",[1775],{"type":40,"tag":70,"props":1776,"children":1777},{"__ignoreMap":67},[1778,1786,1847,1854,1862,1925,1932,1940],{"type":40,"tag":74,"props":1779,"children":1780},{"class":76,"line":77},[1781],{"type":40,"tag":74,"props":1782,"children":1783},{"style":330},[1784],{"type":46,"value":1785},"# Dry-run first\n",{"type":40,"tag":74,"props":1787,"children":1788},{"class":76,"line":326},[1789,1793,1797,1802,1806,1810,1814,1818,1822,1826,1830,1834,1839,1843],{"type":40,"tag":74,"props":1790,"children":1791},{"style":81},[1792],{"type":46,"value":84},{"type":40,"tag":74,"props":1794,"children":1795},{"style":87},[1796],{"type":46,"value":90},{"type":40,"tag":74,"props":1798,"children":1799},{"style":87},[1800],{"type":46,"value":1801}," sell",{"type":40,"tag":74,"props":1803,"children":1804},{"style":543},[1805],{"type":46,"value":546},{"type":40,"tag":74,"props":1807,"children":1808},{"style":87},[1809],{"type":46,"value":1195},{"type":40,"tag":74,"props":1811,"children":1812},{"style":554},[1813],{"type":46,"value":1200},{"type":40,"tag":74,"props":1815,"children":1816},{"style":543},[1817],{"type":46,"value":681},{"type":40,"tag":74,"props":1819,"children":1820},{"style":87},[1821],{"type":46,"value":1388},{"type":40,"tag":74,"props":1823,"children":1824},{"style":543},[1825],{"type":46,"value":1393},{"type":40,"tag":74,"props":1827,"children":1828},{"style":81},[1829],{"type":46,"value":1398},{"type":40,"tag":74,"props":1831,"children":1832},{"style":543},[1833],{"type":46,"value":546},{"type":40,"tag":74,"props":1835,"children":1836},{"style":87},[1837],{"type":46,"value":1838},"share",{"type":40,"tag":74,"props":1840,"children":1841},{"style":554},[1842],{"type":46,"value":676},{"type":40,"tag":74,"props":1844,"children":1845},{"style":543},[1846],{"type":46,"value":562},{"type":40,"tag":74,"props":1848,"children":1849},{"class":76,"line":460},[1850],{"type":40,"tag":74,"props":1851,"children":1852},{"emptyLinePlaceholder":960},[1853],{"type":46,"value":963},{"type":40,"tag":74,"props":1855,"children":1856},{"class":76,"line":469},[1857],{"type":40,"tag":74,"props":1858,"children":1859},{"style":330},[1860],{"type":46,"value":1861},"# Execute\n",{"type":40,"tag":74,"props":1863,"children":1864},{"class":76,"line":974},[1865,1869,1873,1877,1881,1885,1889,1893,1897,1901,1905,1909,1913,1917,1921],{"type":40,"tag":74,"props":1866,"children":1867},{"style":81},[1868],{"type":46,"value":84},{"type":40,"tag":74,"props":1870,"children":1871},{"style":87},[1872],{"type":46,"value":90},{"type":40,"tag":74,"props":1874,"children":1875},{"style":87},[1876],{"type":46,"value":1801},{"type":40,"tag":74,"props":1878,"children":1879},{"style":543},[1880],{"type":46,"value":546},{"type":40,"tag":74,"props":1882,"children":1883},{"style":87},[1884],{"type":46,"value":1195},{"type":40,"tag":74,"props":1886,"children":1887},{"style":554},[1888],{"type":46,"value":1200},{"type":40,"tag":74,"props":1890,"children":1891},{"style":543},[1892],{"type":46,"value":681},{"type":40,"tag":74,"props":1894,"children":1895},{"style":87},[1896],{"type":46,"value":1388},{"type":40,"tag":74,"props":1898,"children":1899},{"style":543},[1900],{"type":46,"value":1393},{"type":40,"tag":74,"props":1902,"children":1903},{"style":81},[1904],{"type":46,"value":1398},{"type":40,"tag":74,"props":1906,"children":1907},{"style":543},[1908],{"type":46,"value":546},{"type":40,"tag":74,"props":1910,"children":1911},{"style":87},[1912],{"type":46,"value":1838},{"type":40,"tag":74,"props":1914,"children":1915},{"style":554},[1916],{"type":46,"value":676},{"type":40,"tag":74,"props":1918,"children":1919},{"style":543},[1920],{"type":46,"value":681},{"type":40,"tag":74,"props":1922,"children":1923},{"style":87},[1924],{"type":46,"value":697},{"type":40,"tag":74,"props":1926,"children":1927},{"class":76,"line":1021},[1928],{"type":40,"tag":74,"props":1929,"children":1930},{"emptyLinePlaceholder":960},[1931],{"type":46,"value":963},{"type":40,"tag":74,"props":1933,"children":1934},{"class":76,"line":1029},[1935],{"type":40,"tag":74,"props":1936,"children":1937},{"style":330},[1938],{"type":46,"value":1939},"# Limit sell\n",{"type":40,"tag":74,"props":1941,"children":1942},{"class":76,"line":1038},[1943,1947,1951,1955,1959,1963,1967,1971,1975,1979,1983,1987,1991,1995,2000],{"type":40,"tag":74,"props":1944,"children":1945},{"style":81},[1946],{"type":46,"value":84},{"type":40,"tag":74,"props":1948,"children":1949},{"style":87},[1950],{"type":46,"value":90},{"type":40,"tag":74,"props":1952,"children":1953},{"style":87},[1954],{"type":46,"value":1801},{"type":40,"tag":74,"props":1956,"children":1957},{"style":543},[1958],{"type":46,"value":546},{"type":40,"tag":74,"props":1960,"children":1961},{"style":87},[1962],{"type":46,"value":1195},{"type":40,"tag":74,"props":1964,"children":1965},{"style":554},[1966],{"type":46,"value":1200},{"type":40,"tag":74,"props":1968,"children":1969},{"style":543},[1970],{"type":46,"value":681},{"type":40,"tag":74,"props":1972,"children":1973},{"style":87},[1974],{"type":46,"value":1388},{"type":40,"tag":74,"props":1976,"children":1977},{"style":543},[1978],{"type":46,"value":546},{"type":40,"tag":74,"props":1980,"children":1981},{"style":87},[1982],{"type":46,"value":1838},{"type":40,"tag":74,"props":1984,"children":1985},{"style":554},[1986],{"type":46,"value":676},{"type":40,"tag":74,"props":1988,"children":1989},{"style":543},[1990],{"type":46,"value":681},{"type":40,"tag":74,"props":1992,"children":1993},{"style":87},[1994],{"type":46,"value":1651},{"type":40,"tag":74,"props":1996,"children":1997},{"style":689},[1998],{"type":46,"value":1999}," 0.80",{"type":40,"tag":74,"props":2001,"children":2002},{"style":87},[2003],{"type":46,"value":697},{"type":40,"tag":56,"props":2005,"children":2006},{},[2007,2013,2015,2021],{"type":40,"tag":70,"props":2008,"children":2010},{"className":2009},[],[2011],{"type":46,"value":2012},"\u003Cshares>",{"type":46,"value":2014}," is the number of outcome tokens (not USD). Get share count from ",{"type":40,"tag":70,"props":2016,"children":2018},{"className":2017},[],[2019],{"type":46,"value":2020},"positions",{"type":46,"value":2022},".\nSelling is pure off-chain — no gas, no on-chain tx. Proceeds are received as pUSD in the proxy wallet.",{"type":40,"tag":486,"props":2024,"children":2026},{"id":2025},"check-positions",[2027],{"type":46,"value":2028},"Check Positions",{"type":40,"tag":62,"props":2030,"children":2032},{"className":64,"code":2031,"language":66,"meta":67,"style":67},"agent polymarket positions\n",[2033],{"type":40,"tag":70,"props":2034,"children":2035},{"__ignoreMap":67},[2036],{"type":40,"tag":74,"props":2037,"children":2038},{"class":76,"line":77},[2039,2043,2047],{"type":40,"tag":74,"props":2040,"children":2041},{"style":81},[2042],{"type":46,"value":84},{"type":40,"tag":74,"props":2044,"children":2045},{"style":87},[2046],{"type":46,"value":90},{"type":40,"tag":74,"props":2048,"children":2049},{"style":87},[2050],{"type":46,"value":2051}," positions\n",{"type":40,"tag":56,"props":2053,"children":2054},{},[2055],{"type":46,"value":2056},"Shows all open positions in the proxy wallet with current value, P&L, and outcome.",{"type":40,"tag":486,"props":2058,"children":2060},{"id":2059},"check-open-orders",[2061],{"type":46,"value":2062},"Check Open Orders",{"type":40,"tag":62,"props":2064,"children":2066},{"className":64,"code":2065,"language":66,"meta":67,"style":67},"agent polymarket orders\n",[2067],{"type":40,"tag":70,"props":2068,"children":2069},{"__ignoreMap":67},[2070],{"type":40,"tag":74,"props":2071,"children":2072},{"class":76,"line":77},[2073,2077,2081],{"type":40,"tag":74,"props":2074,"children":2075},{"style":81},[2076],{"type":46,"value":84},{"type":40,"tag":74,"props":2078,"children":2079},{"style":87},[2080],{"type":46,"value":90},{"type":40,"tag":74,"props":2082,"children":2083},{"style":87},[2084],{"type":46,"value":2085}," orders\n",{"type":40,"tag":56,"props":2087,"children":2088},{},[2089],{"type":46,"value":2090},"Lists GTC limit orders that are still open (FOK\u002FFAK orders are never \"open\" — they fill or cancel immediately).",{"type":40,"tag":486,"props":2092,"children":2094},{"id":2093},"cancel-an-order",[2095],{"type":46,"value":2096},"Cancel an Order",{"type":40,"tag":62,"props":2098,"children":2100},{"className":64,"code":2099,"language":66,"meta":67,"style":67},"agent polymarket cancel \u003CorderId>\n",[2101],{"type":40,"tag":70,"props":2102,"children":2103},{"__ignoreMap":67},[2104],{"type":40,"tag":74,"props":2105,"children":2106},{"class":76,"line":77},[2107,2111,2115,2120,2124,2129,2133],{"type":40,"tag":74,"props":2108,"children":2109},{"style":81},[2110],{"type":46,"value":84},{"type":40,"tag":74,"props":2112,"children":2113},{"style":87},[2114],{"type":46,"value":90},{"type":40,"tag":74,"props":2116,"children":2117},{"style":87},[2118],{"type":46,"value":2119}," cancel",{"type":40,"tag":74,"props":2121,"children":2122},{"style":543},[2123],{"type":46,"value":546},{"type":40,"tag":74,"props":2125,"children":2126},{"style":87},[2127],{"type":46,"value":2128},"orderI",{"type":40,"tag":74,"props":2130,"children":2131},{"style":554},[2132],{"type":46,"value":1200},{"type":40,"tag":74,"props":2134,"children":2135},{"style":543},[2136],{"type":46,"value":562},{"type":40,"tag":56,"props":2138,"children":2139},{},[2140,2142,2148,2150,2156,2158,2163,2165,2171],{"type":46,"value":2141},"Get ",{"type":40,"tag":70,"props":2143,"children":2145},{"className":2144},[],[2146],{"type":46,"value":2147},"orderId",{"type":46,"value":2149}," from the ",{"type":40,"tag":70,"props":2151,"children":2153},{"className":2152},[],[2154],{"type":46,"value":2155},"orders",{"type":46,"value":2157}," command or from the ",{"type":40,"tag":70,"props":2159,"children":2161},{"className":2160},[],[2162],{"type":46,"value":2147},{"type":46,"value":2164}," field in ",{"type":40,"tag":70,"props":2166,"children":2168},{"className":2167},[],[2169],{"type":46,"value":2170},"clob-buy",{"type":46,"value":2172}," output.",{"type":40,"tag":134,"props":2174,"children":2175},{},[],{"type":40,"tag":49,"props":2177,"children":2179},{"id":2178},"full-autonomous-trading-flow",[2180],{"type":46,"value":2181},"Full Autonomous Trading Flow",{"type":40,"tag":62,"props":2183,"children":2185},{"className":64,"code":2184,"language":66,"meta":67,"style":67},"# ── FIRST TIME (run once per EOA) ──────────────────────────────────────\n\n# 1. Import Polymarket private key\nagent polymarket set-key 0x\u003CyourPrivateKey>\n# → save eoaAddress and proxyWalletAddress\n\n# 2. Accept ToS at https:\u002F\u002Fpolymarket.com (connect EOA, accept when prompted)\n\n# 3. Fund EOA with POL for the one-time approval tx\nagent send-native --to \u003CeoaAddress> --amount 0.1 --broadcast\n\n# 4. Set V2 approvals (one-time, permanent — covers pUSD, CTF, and CollateralOnramp)\nagent polymarket approve --broadcast\n\n# ── RETURNING USER ──────────────────────────────────────────────────────\n# If V2 approvals were already set: skip steps 1-4, go straight to trading.\n# NOTE: V1 approvals (pre-April 28 2026) do NOT carry over — re-run approve once.\n\n# ── FIND A MARKET ────────────────────────────────────────────────────────\n\n# 5. Search for markets\nagent polymarket markets --search \"bitcoin\" --limit 10\n\n# 6. Get details on a specific market\nagent polymarket market 0x\u003CconditionId>\n# → check: yesPrice, noPrice, negRisk, endDate\n# → if negRisk: true → run approve --neg-risk --broadcast first\n\n# ── ENTER A POSITION ────────────────────────────────────────────────────\n\n# 7. Dry-run to confirm\nagent polymarket clob-buy 0x\u003CconditionId> YES 5\n# → review: currentPrice, proxyWalletAddress, flow (includes pUSD wrapping)\n\n# 8. Execute\nagent polymarket clob-buy 0x\u003CconditionId> YES 5 --broadcast\n# → check: orderStatus === \"matched\"\n\n# ── MANAGE ──────────────────────────────────────────────────────────────\n\n# 9. Check positions\nagent polymarket positions\n# → review: size (shares), curPrice, cashPnl\n\n# 10. Sell when ready\nagent polymarket sell 0x\u003CconditionId> YES \u003Cshares> --broadcast\n# → orderStatus === \"matched\" means pUSD is back in proxy wallet\n",[2186],{"type":40,"tag":70,"props":2187,"children":2188},{"__ignoreMap":67},[2189,2197,2204,2212,2250,2258,2265,2273,2280,2288,2331,2338,2347,2367,2375,2384,2392,2401,2409,2418,2426,2435,2475,2483,2492,2528,2536,2545,2553,2562,2570,2579,2624,2633,2641,2650,2699,2708,2716,2725,2733,2742,2758,2767,2775,2784,2844],{"type":40,"tag":74,"props":2190,"children":2191},{"class":76,"line":77},[2192],{"type":40,"tag":74,"props":2193,"children":2194},{"style":330},[2195],{"type":46,"value":2196},"# ── FIRST TIME (run once per EOA) ──────────────────────────────────────\n",{"type":40,"tag":74,"props":2198,"children":2199},{"class":76,"line":326},[2200],{"type":40,"tag":74,"props":2201,"children":2202},{"emptyLinePlaceholder":960},[2203],{"type":46,"value":963},{"type":40,"tag":74,"props":2205,"children":2206},{"class":76,"line":460},[2207],{"type":40,"tag":74,"props":2208,"children":2209},{"style":330},[2210],{"type":46,"value":2211},"# 1. Import Polymarket private key\n",{"type":40,"tag":74,"props":2213,"children":2214},{"class":76,"line":469},[2215,2219,2223,2227,2232,2237,2242,2246],{"type":40,"tag":74,"props":2216,"children":2217},{"style":81},[2218],{"type":46,"value":84},{"type":40,"tag":74,"props":2220,"children":2221},{"style":87},[2222],{"type":46,"value":90},{"type":40,"tag":74,"props":2224,"children":2225},{"style":87},[2226],{"type":46,"value":540},{"type":40,"tag":74,"props":2228,"children":2229},{"style":87},[2230],{"type":46,"value":2231}," 0x",{"type":40,"tag":74,"props":2233,"children":2234},{"style":543},[2235],{"type":46,"value":2236},"\u003C",{"type":40,"tag":74,"props":2238,"children":2239},{"style":87},[2240],{"type":46,"value":2241},"yourPrivateKe",{"type":40,"tag":74,"props":2243,"children":2244},{"style":554},[2245],{"type":46,"value":557},{"type":40,"tag":74,"props":2247,"children":2248},{"style":543},[2249],{"type":46,"value":562},{"type":40,"tag":74,"props":2251,"children":2252},{"class":76,"line":974},[2253],{"type":40,"tag":74,"props":2254,"children":2255},{"style":330},[2256],{"type":46,"value":2257},"# → save eoaAddress and proxyWalletAddress\n",{"type":40,"tag":74,"props":2259,"children":2260},{"class":76,"line":1021},[2261],{"type":40,"tag":74,"props":2262,"children":2263},{"emptyLinePlaceholder":960},[2264],{"type":46,"value":963},{"type":40,"tag":74,"props":2266,"children":2267},{"class":76,"line":1029},[2268],{"type":40,"tag":74,"props":2269,"children":2270},{"style":330},[2271],{"type":46,"value":2272},"# 2. Accept ToS at https:\u002F\u002Fpolymarket.com (connect EOA, accept when prompted)\n",{"type":40,"tag":74,"props":2274,"children":2275},{"class":76,"line":1038},[2276],{"type":40,"tag":74,"props":2277,"children":2278},{"emptyLinePlaceholder":960},[2279],{"type":46,"value":963},{"type":40,"tag":74,"props":2281,"children":2282},{"class":76,"line":1580},[2283],{"type":40,"tag":74,"props":2284,"children":2285},{"style":330},[2286],{"type":46,"value":2287},"# 3. Fund EOA with POL for the one-time approval tx\n",{"type":40,"tag":74,"props":2289,"children":2290},{"class":76,"line":1588},[2291,2295,2299,2303,2307,2311,2315,2319,2323,2327],{"type":40,"tag":74,"props":2292,"children":2293},{"style":81},[2294],{"type":46,"value":84},{"type":40,"tag":74,"props":2296,"children":2297},{"style":87},[2298],{"type":46,"value":657},{"type":40,"tag":74,"props":2300,"children":2301},{"style":87},[2302],{"type":46,"value":662},{"type":40,"tag":74,"props":2304,"children":2305},{"style":543},[2306],{"type":46,"value":546},{"type":40,"tag":74,"props":2308,"children":2309},{"style":87},[2310],{"type":46,"value":671},{"type":40,"tag":74,"props":2312,"children":2313},{"style":554},[2314],{"type":46,"value":676},{"type":40,"tag":74,"props":2316,"children":2317},{"style":543},[2318],{"type":46,"value":681},{"type":40,"tag":74,"props":2320,"children":2321},{"style":87},[2322],{"type":46,"value":686},{"type":40,"tag":74,"props":2324,"children":2325},{"style":689},[2326],{"type":46,"value":692},{"type":40,"tag":74,"props":2328,"children":2329},{"style":87},[2330],{"type":46,"value":697},{"type":40,"tag":74,"props":2332,"children":2333},{"class":76,"line":1597},[2334],{"type":40,"tag":74,"props":2335,"children":2336},{"emptyLinePlaceholder":960},[2337],{"type":46,"value":963},{"type":40,"tag":74,"props":2339,"children":2341},{"class":76,"line":2340},12,[2342],{"type":40,"tag":74,"props":2343,"children":2344},{"style":330},[2345],{"type":46,"value":2346},"# 4. Set V2 approvals (one-time, permanent — covers pUSD, CTF, and CollateralOnramp)\n",{"type":40,"tag":74,"props":2348,"children":2350},{"class":76,"line":2349},13,[2351,2355,2359,2363],{"type":40,"tag":74,"props":2352,"children":2353},{"style":81},[2354],{"type":46,"value":84},{"type":40,"tag":74,"props":2356,"children":2357},{"style":87},[2358],{"type":46,"value":90},{"type":40,"tag":74,"props":2360,"children":2361},{"style":87},[2362],{"type":46,"value":757},{"type":40,"tag":74,"props":2364,"children":2365},{"style":87},[2366],{"type":46,"value":697},{"type":40,"tag":74,"props":2368,"children":2370},{"class":76,"line":2369},14,[2371],{"type":40,"tag":74,"props":2372,"children":2373},{"emptyLinePlaceholder":960},[2374],{"type":46,"value":963},{"type":40,"tag":74,"props":2376,"children":2378},{"class":76,"line":2377},15,[2379],{"type":40,"tag":74,"props":2380,"children":2381},{"style":330},[2382],{"type":46,"value":2383},"# ── RETURNING USER ──────────────────────────────────────────────────────\n",{"type":40,"tag":74,"props":2385,"children":2386},{"class":76,"line":27},[2387],{"type":40,"tag":74,"props":2388,"children":2389},{"style":330},[2390],{"type":46,"value":2391},"# If V2 approvals were already set: skip steps 1-4, go straight to trading.\n",{"type":40,"tag":74,"props":2393,"children":2395},{"class":76,"line":2394},17,[2396],{"type":40,"tag":74,"props":2397,"children":2398},{"style":330},[2399],{"type":46,"value":2400},"# NOTE: V1 approvals (pre-April 28 2026) do NOT carry over — re-run approve once.\n",{"type":40,"tag":74,"props":2402,"children":2404},{"class":76,"line":2403},18,[2405],{"type":40,"tag":74,"props":2406,"children":2407},{"emptyLinePlaceholder":960},[2408],{"type":46,"value":963},{"type":40,"tag":74,"props":2410,"children":2412},{"class":76,"line":2411},19,[2413],{"type":40,"tag":74,"props":2414,"children":2415},{"style":330},[2416],{"type":46,"value":2417},"# ── FIND A MARKET ────────────────────────────────────────────────────────\n",{"type":40,"tag":74,"props":2419,"children":2421},{"class":76,"line":2420},20,[2422],{"type":40,"tag":74,"props":2423,"children":2424},{"emptyLinePlaceholder":960},[2425],{"type":46,"value":963},{"type":40,"tag":74,"props":2427,"children":2429},{"class":76,"line":2428},21,[2430],{"type":40,"tag":74,"props":2431,"children":2432},{"style":330},[2433],{"type":46,"value":2434},"# 5. Search for markets\n",{"type":40,"tag":74,"props":2436,"children":2438},{"class":76,"line":2437},22,[2439,2443,2447,2451,2455,2459,2463,2467,2471],{"type":40,"tag":74,"props":2440,"children":2441},{"style":81},[2442],{"type":46,"value":84},{"type":40,"tag":74,"props":2444,"children":2445},{"style":87},[2446],{"type":46,"value":90},{"type":40,"tag":74,"props":2448,"children":2449},{"style":87},[2450],{"type":46,"value":988},{"type":40,"tag":74,"props":2452,"children":2453},{"style":87},[2454],{"type":46,"value":993},{"type":40,"tag":74,"props":2456,"children":2457},{"style":543},[2458],{"type":46,"value":998},{"type":40,"tag":74,"props":2460,"children":2461},{"style":87},[2462],{"type":46,"value":1003},{"type":40,"tag":74,"props":2464,"children":2465},{"style":543},[2466],{"type":46,"value":1008},{"type":40,"tag":74,"props":2468,"children":2469},{"style":87},[2470],{"type":46,"value":1013},{"type":40,"tag":74,"props":2472,"children":2473},{"style":689},[2474],{"type":46,"value":1018},{"type":40,"tag":74,"props":2476,"children":2478},{"class":76,"line":2477},23,[2479],{"type":40,"tag":74,"props":2480,"children":2481},{"emptyLinePlaceholder":960},[2482],{"type":46,"value":963},{"type":40,"tag":74,"props":2484,"children":2486},{"class":76,"line":2485},24,[2487],{"type":40,"tag":74,"props":2488,"children":2489},{"style":330},[2490],{"type":46,"value":2491},"# 6. Get details on a specific market\n",{"type":40,"tag":74,"props":2493,"children":2495},{"class":76,"line":2494},25,[2496,2500,2504,2508,2512,2516,2520,2524],{"type":40,"tag":74,"props":2497,"children":2498},{"style":81},[2499],{"type":46,"value":84},{"type":40,"tag":74,"props":2501,"children":2502},{"style":87},[2503],{"type":46,"value":90},{"type":40,"tag":74,"props":2505,"children":2506},{"style":87},[2507],{"type":46,"value":1186},{"type":40,"tag":74,"props":2509,"children":2510},{"style":87},[2511],{"type":46,"value":2231},{"type":40,"tag":74,"props":2513,"children":2514},{"style":543},[2515],{"type":46,"value":2236},{"type":40,"tag":74,"props":2517,"children":2518},{"style":87},[2519],{"type":46,"value":1195},{"type":40,"tag":74,"props":2521,"children":2522},{"style":554},[2523],{"type":46,"value":1200},{"type":40,"tag":74,"props":2525,"children":2526},{"style":543},[2527],{"type":46,"value":562},{"type":40,"tag":74,"props":2529,"children":2530},{"class":76,"line":23},[2531],{"type":40,"tag":74,"props":2532,"children":2533},{"style":330},[2534],{"type":46,"value":2535},"# → check: yesPrice, noPrice, negRisk, endDate\n",{"type":40,"tag":74,"props":2537,"children":2539},{"class":76,"line":2538},27,[2540],{"type":40,"tag":74,"props":2541,"children":2542},{"style":330},[2543],{"type":46,"value":2544},"# → if negRisk: true → run approve --neg-risk --broadcast first\n",{"type":40,"tag":74,"props":2546,"children":2548},{"class":76,"line":2547},28,[2549],{"type":40,"tag":74,"props":2550,"children":2551},{"emptyLinePlaceholder":960},[2552],{"type":46,"value":963},{"type":40,"tag":74,"props":2554,"children":2556},{"class":76,"line":2555},29,[2557],{"type":40,"tag":74,"props":2558,"children":2559},{"style":330},[2560],{"type":46,"value":2561},"# ── ENTER A POSITION ────────────────────────────────────────────────────\n",{"type":40,"tag":74,"props":2563,"children":2565},{"class":76,"line":2564},30,[2566],{"type":40,"tag":74,"props":2567,"children":2568},{"emptyLinePlaceholder":960},[2569],{"type":46,"value":963},{"type":40,"tag":74,"props":2571,"children":2573},{"class":76,"line":2572},31,[2574],{"type":40,"tag":74,"props":2575,"children":2576},{"style":330},[2577],{"type":46,"value":2578},"# 7. Dry-run to confirm\n",{"type":40,"tag":74,"props":2580,"children":2582},{"class":76,"line":2581},32,[2583,2587,2591,2595,2599,2603,2607,2611,2615,2619],{"type":40,"tag":74,"props":2584,"children":2585},{"style":81},[2586],{"type":46,"value":84},{"type":40,"tag":74,"props":2588,"children":2589},{"style":87},[2590],{"type":46,"value":90},{"type":40,"tag":74,"props":2592,"children":2593},{"style":87},[2594],{"type":46,"value":1367},{"type":40,"tag":74,"props":2596,"children":2597},{"style":87},[2598],{"type":46,"value":2231},{"type":40,"tag":74,"props":2600,"children":2601},{"style":543},[2602],{"type":46,"value":2236},{"type":40,"tag":74,"props":2604,"children":2605},{"style":87},[2606],{"type":46,"value":1195},{"type":40,"tag":74,"props":2608,"children":2609},{"style":554},[2610],{"type":46,"value":1200},{"type":40,"tag":74,"props":2612,"children":2613},{"style":543},[2614],{"type":46,"value":681},{"type":40,"tag":74,"props":2616,"children":2617},{"style":87},[2618],{"type":46,"value":1388},{"type":40,"tag":74,"props":2620,"children":2621},{"style":689},[2622],{"type":46,"value":2623}," 5\n",{"type":40,"tag":74,"props":2625,"children":2627},{"class":76,"line":2626},33,[2628],{"type":40,"tag":74,"props":2629,"children":2630},{"style":330},[2631],{"type":46,"value":2632},"# → review: currentPrice, proxyWalletAddress, flow (includes pUSD wrapping)\n",{"type":40,"tag":74,"props":2634,"children":2636},{"class":76,"line":2635},34,[2637],{"type":40,"tag":74,"props":2638,"children":2639},{"emptyLinePlaceholder":960},[2640],{"type":46,"value":963},{"type":40,"tag":74,"props":2642,"children":2644},{"class":76,"line":2643},35,[2645],{"type":40,"tag":74,"props":2646,"children":2647},{"style":330},[2648],{"type":46,"value":2649},"# 8. Execute\n",{"type":40,"tag":74,"props":2651,"children":2653},{"class":76,"line":2652},36,[2654,2658,2662,2666,2670,2674,2678,2682,2686,2690,2695],{"type":40,"tag":74,"props":2655,"children":2656},{"style":81},[2657],{"type":46,"value":84},{"type":40,"tag":74,"props":2659,"children":2660},{"style":87},[2661],{"type":46,"value":90},{"type":40,"tag":74,"props":2663,"children":2664},{"style":87},[2665],{"type":46,"value":1367},{"type":40,"tag":74,"props":2667,"children":2668},{"style":87},[2669],{"type":46,"value":2231},{"type":40,"tag":74,"props":2671,"children":2672},{"style":543},[2673],{"type":46,"value":2236},{"type":40,"tag":74,"props":2675,"children":2676},{"style":87},[2677],{"type":46,"value":1195},{"type":40,"tag":74,"props":2679,"children":2680},{"style":554},[2681],{"type":46,"value":1200},{"type":40,"tag":74,"props":2683,"children":2684},{"style":543},[2685],{"type":46,"value":681},{"type":40,"tag":74,"props":2687,"children":2688},{"style":87},[2689],{"type":46,"value":1388},{"type":40,"tag":74,"props":2691,"children":2692},{"style":689},[2693],{"type":46,"value":2694}," 5",{"type":40,"tag":74,"props":2696,"children":2697},{"style":87},[2698],{"type":46,"value":697},{"type":40,"tag":74,"props":2700,"children":2702},{"class":76,"line":2701},37,[2703],{"type":40,"tag":74,"props":2704,"children":2705},{"style":330},[2706],{"type":46,"value":2707},"# → check: orderStatus === \"matched\"\n",{"type":40,"tag":74,"props":2709,"children":2711},{"class":76,"line":2710},38,[2712],{"type":40,"tag":74,"props":2713,"children":2714},{"emptyLinePlaceholder":960},[2715],{"type":46,"value":963},{"type":40,"tag":74,"props":2717,"children":2719},{"class":76,"line":2718},39,[2720],{"type":40,"tag":74,"props":2721,"children":2722},{"style":330},[2723],{"type":46,"value":2724},"# ── MANAGE ──────────────────────────────────────────────────────────────\n",{"type":40,"tag":74,"props":2726,"children":2728},{"class":76,"line":2727},40,[2729],{"type":40,"tag":74,"props":2730,"children":2731},{"emptyLinePlaceholder":960},[2732],{"type":46,"value":963},{"type":40,"tag":74,"props":2734,"children":2736},{"class":76,"line":2735},41,[2737],{"type":40,"tag":74,"props":2738,"children":2739},{"style":330},[2740],{"type":46,"value":2741},"# 9. Check positions\n",{"type":40,"tag":74,"props":2743,"children":2745},{"class":76,"line":2744},42,[2746,2750,2754],{"type":40,"tag":74,"props":2747,"children":2748},{"style":81},[2749],{"type":46,"value":84},{"type":40,"tag":74,"props":2751,"children":2752},{"style":87},[2753],{"type":46,"value":90},{"type":40,"tag":74,"props":2755,"children":2756},{"style":87},[2757],{"type":46,"value":2051},{"type":40,"tag":74,"props":2759,"children":2761},{"class":76,"line":2760},43,[2762],{"type":40,"tag":74,"props":2763,"children":2764},{"style":330},[2765],{"type":46,"value":2766},"# → review: size (shares), curPrice, cashPnl\n",{"type":40,"tag":74,"props":2768,"children":2770},{"class":76,"line":2769},44,[2771],{"type":40,"tag":74,"props":2772,"children":2773},{"emptyLinePlaceholder":960},[2774],{"type":46,"value":963},{"type":40,"tag":74,"props":2776,"children":2778},{"class":76,"line":2777},45,[2779],{"type":40,"tag":74,"props":2780,"children":2781},{"style":330},[2782],{"type":46,"value":2783},"# 10. Sell when ready\n",{"type":40,"tag":74,"props":2785,"children":2787},{"class":76,"line":2786},46,[2788,2792,2796,2800,2804,2808,2812,2816,2820,2824,2828,2832,2836,2840],{"type":40,"tag":74,"props":2789,"children":2790},{"style":81},[2791],{"type":46,"value":84},{"type":40,"tag":74,"props":2793,"children":2794},{"style":87},[2795],{"type":46,"value":90},{"type":40,"tag":74,"props":2797,"children":2798},{"style":87},[2799],{"type":46,"value":1801},{"type":40,"tag":74,"props":2801,"children":2802},{"style":87},[2803],{"type":46,"value":2231},{"type":40,"tag":74,"props":2805,"children":2806},{"style":543},[2807],{"type":46,"value":2236},{"type":40,"tag":74,"props":2809,"children":2810},{"style":87},[2811],{"type":46,"value":1195},{"type":40,"tag":74,"props":2813,"children":2814},{"style":554},[2815],{"type":46,"value":1200},{"type":40,"tag":74,"props":2817,"children":2818},{"style":543},[2819],{"type":46,"value":681},{"type":40,"tag":74,"props":2821,"children":2822},{"style":87},[2823],{"type":46,"value":1388},{"type":40,"tag":74,"props":2825,"children":2826},{"style":543},[2827],{"type":46,"value":546},{"type":40,"tag":74,"props":2829,"children":2830},{"style":87},[2831],{"type":46,"value":1838},{"type":40,"tag":74,"props":2833,"children":2834},{"style":554},[2835],{"type":46,"value":676},{"type":40,"tag":74,"props":2837,"children":2838},{"style":543},[2839],{"type":46,"value":681},{"type":40,"tag":74,"props":2841,"children":2842},{"style":87},[2843],{"type":46,"value":697},{"type":40,"tag":74,"props":2845,"children":2847},{"class":76,"line":2846},47,[2848],{"type":40,"tag":74,"props":2849,"children":2850},{"style":330},[2851],{"type":46,"value":2852},"# → orderStatus === \"matched\" means pUSD is back in proxy wallet\n",{"type":40,"tag":134,"props":2854,"children":2855},{},[],{"type":40,"tag":49,"props":2857,"children":2859},{"id":2858},"decision-logic-for-an-autonomous-agent",[2860],{"type":46,"value":2861},"Decision Logic for an Autonomous Agent",{"type":40,"tag":56,"props":2863,"children":2864},{},[2865],{"type":46,"value":2866},"When deciding whether to buy:",{"type":40,"tag":1670,"props":2868,"children":2869},{},[2870,2883,2895,2907,2933,2951,2963],{"type":40,"tag":349,"props":2871,"children":2872},{},[2873,2875,2881],{"type":46,"value":2874},"Run ",{"type":40,"tag":70,"props":2876,"children":2878},{"className":2877},[],[2879],{"type":46,"value":2880},"proxy-wallet",{"type":46,"value":2882}," — confirm EOA and proxy wallet addresses",{"type":40,"tag":349,"props":2884,"children":2885},{},[2886,2887,2893],{"type":46,"value":2874},{"type":40,"tag":70,"props":2888,"children":2890},{"className":2889},[],[2891],{"type":46,"value":2892},"balances",{"type":46,"value":2894}," — confirm smart wallet has at least $1 USDC.e",{"type":40,"tag":349,"props":2896,"children":2897},{},[2898,2900,2905],{"type":46,"value":2899},"Check ",{"type":40,"tag":70,"props":2901,"children":2903},{"className":2902},[],[2904],{"type":46,"value":2020},{"type":46,"value":2906}," — avoid doubling up on already-held positions",{"type":40,"tag":349,"props":2908,"children":2909},{},[2910,2911,2917,2919,2924,2926,2931],{"type":46,"value":2899},{"type":40,"tag":70,"props":2912,"children":2914},{"className":2913},[],[2915],{"type":46,"value":2916},"markets",{"type":46,"value":2918}," — use ",{"type":40,"tag":70,"props":2920,"children":2922},{"className":2921},[],[2923],{"type":46,"value":1109},{"type":46,"value":2925},"\u002F",{"type":40,"tag":70,"props":2927,"children":2929},{"className":2928},[],[2930],{"type":46,"value":1117},{"type":46,"value":2932}," as probability inputs",{"type":40,"tag":349,"props":2934,"children":2935},{},[2936,2937,2942,2944,2949],{"type":46,"value":2899},{"type":40,"tag":70,"props":2938,"children":2940},{"className":2939},[],[2941],{"type":46,"value":1136},{"type":46,"value":2943}," on the target market — if ",{"type":40,"tag":70,"props":2945,"children":2947},{"className":2946},[],[2948],{"type":46,"value":1144},{"type":46,"value":2950},", verify neg-risk approvals were set",{"type":40,"tag":349,"props":2952,"children":2953},{},[2954,2956,2961],{"type":46,"value":2955},"Use ",{"type":40,"tag":70,"props":2957,"children":2959},{"className":2958},[],[2960],{"type":46,"value":1762},{"type":46,"value":2962}," if the proxy wallet already has enough pUSD from a previous attempt",{"type":40,"tag":349,"props":2964,"children":2965},{},[2966],{"type":46,"value":2967},"Always dry-run first, then broadcast",{"type":40,"tag":56,"props":2969,"children":2970},{},[2971],{"type":46,"value":2972},"When deciding whether to sell:",{"type":40,"tag":1670,"props":2974,"children":2975},{},[2976,2994,3014,3027],{"type":40,"tag":349,"props":2977,"children":2978},{},[2979,2981,2987,2989],{"type":46,"value":2980},"Get current ",{"type":40,"tag":70,"props":2982,"children":2984},{"className":2983},[],[2985],{"type":46,"value":2986},"size",{"type":46,"value":2988}," (shares) from ",{"type":40,"tag":70,"props":2990,"children":2992},{"className":2991},[],[2993],{"type":46,"value":2020},{"type":40,"tag":349,"props":2995,"children":2996},{},[2997,2998,3004,3006,3012],{"type":46,"value":2955},{"type":40,"tag":70,"props":2999,"children":3001},{"className":3000},[],[3002],{"type":46,"value":3003},"curPrice",{"type":46,"value":3005}," vs ",{"type":40,"tag":70,"props":3007,"children":3009},{"className":3008},[],[3010],{"type":46,"value":3011},"avgPrice",{"type":46,"value":3013}," to assess profit\u002Floss",{"type":40,"tag":349,"props":3015,"children":3016},{},[3017,3019,3025],{"type":46,"value":3018},"Market sell (",{"type":40,"tag":70,"props":3020,"children":3022},{"className":3021},[],[3023],{"type":46,"value":3024},"sell --broadcast",{"type":46,"value":3026},") for immediate exit",{"type":40,"tag":349,"props":3028,"children":3029},{},[3030,3032,3038],{"type":46,"value":3031},"Limit sell (",{"type":40,"tag":70,"props":3033,"children":3035},{"className":3034},[],[3036],{"type":46,"value":3037},"--price 0.x --broadcast",{"type":46,"value":3039},") to wait for a better price",{"type":40,"tag":134,"props":3041,"children":3042},{},[],{"type":40,"tag":49,"props":3044,"children":3046},{"id":3045},"troubleshooting",[3047],{"type":46,"value":3048},"Troubleshooting",{"type":40,"tag":149,"props":3050,"children":3051},{},[3052,3073],{"type":40,"tag":153,"props":3053,"children":3054},{},[3055],{"type":40,"tag":157,"props":3056,"children":3057},{},[3058,3063,3068],{"type":40,"tag":161,"props":3059,"children":3060},{},[3061],{"type":46,"value":3062},"Error",{"type":40,"tag":161,"props":3064,"children":3065},{},[3066],{"type":46,"value":3067},"Cause",{"type":40,"tag":161,"props":3069,"children":3070},{},[3071],{"type":46,"value":3072},"Fix",{"type":40,"tag":177,"props":3074,"children":3075},{},[3076,3108,3140,3161,3187,3217,3245,3283,3310,3337,3366],{"type":40,"tag":157,"props":3077,"children":3078},{},[3079,3088,3098],{"type":40,"tag":184,"props":3080,"children":3081},{},[3082],{"type":40,"tag":70,"props":3083,"children":3085},{"className":3084},[],[3086],{"type":46,"value":3087},"No EOA key found",{"type":40,"tag":184,"props":3089,"children":3090},{},[3091,3096],{"type":40,"tag":70,"props":3092,"children":3094},{"className":3093},[],[3095],{"type":46,"value":130},{"type":46,"value":3097}," not run",{"type":40,"tag":184,"props":3099,"children":3100},{},[3101,3102],{"type":46,"value":2874},{"type":40,"tag":70,"props":3103,"children":3105},{"className":3104},[],[3106],{"type":46,"value":3107},"agent polymarket set-key \u003Cpk>",{"type":40,"tag":157,"props":3109,"children":3110},{},[3111,3122,3127],{"type":40,"tag":184,"props":3112,"children":3113},{},[3114,3120],{"type":40,"tag":70,"props":3115,"children":3117},{"className":3116},[],[3118],{"type":46,"value":3119},"Could not create api key",{"type":46,"value":3121}," (stderr only)",{"type":40,"tag":184,"props":3123,"children":3124},{},[3125],{"type":46,"value":3126},"ToS not accepted",{"type":40,"tag":184,"props":3128,"children":3129},{},[3130,3132,3138],{"type":46,"value":3131},"Non-fatal — CLI retries with ",{"type":40,"tag":70,"props":3133,"children":3135},{"className":3134},[],[3136],{"type":46,"value":3137},"deriveApiKey",{"type":46,"value":3139}," and may still succeed. If orders fail too, visit polymarket.com and accept ToS with the EOA",{"type":40,"tag":157,"props":3141,"children":3142},{},[3143,3152,3156],{"type":40,"tag":184,"props":3144,"children":3145},{},[3146],{"type":40,"tag":70,"props":3147,"children":3149},{"className":3148},[],[3150],{"type":46,"value":3151},"CLOB order error: not authorized",{"type":40,"tag":184,"props":3153,"children":3154},{},[3155],{"type":46,"value":3126},{"type":40,"tag":184,"props":3157,"children":3158},{},[3159],{"type":46,"value":3160},"Visit polymarket.com, connect EOA wallet, accept terms",{"type":40,"tag":157,"props":3162,"children":3163},{},[3164,3173,3178],{"type":40,"tag":184,"props":3165,"children":3166},{},[3167],{"type":40,"tag":70,"props":3168,"children":3170},{"className":3169},[],[3171],{"type":46,"value":3172},"insufficient funds for gas",{"type":40,"tag":184,"props":3174,"children":3175},{},[3176],{"type":46,"value":3177},"EOA has no POL",{"type":40,"tag":184,"props":3179,"children":3180},{},[3181],{"type":40,"tag":70,"props":3182,"children":3184},{"className":3183},[],[3185],{"type":46,"value":3186},"agent send-native --to \u003CeoaAddress> --amount 0.1 --broadcast",{"type":40,"tag":157,"props":3188,"children":3189},{},[3190,3199,3204],{"type":40,"tag":184,"props":3191,"children":3192},{},[3193],{"type":40,"tag":70,"props":3194,"children":3196},{"className":3195},[],[3197],{"type":46,"value":3198},"Market not found",{"type":40,"tag":184,"props":3200,"children":3201},{},[3202],{"type":46,"value":3203},"Low-volume or closed market",{"type":40,"tag":184,"props":3205,"children":3206},{},[3207,3209,3215],{"type":46,"value":3208},"Market may have resolved; try ",{"type":40,"tag":70,"props":3210,"children":3212},{"className":3211},[],[3213],{"type":46,"value":3214},"--search",{"type":46,"value":3216}," with different terms",{"type":40,"tag":157,"props":3218,"children":3219},{},[3220,3229,3234],{"type":40,"tag":184,"props":3221,"children":3222},{},[3223],{"type":40,"tag":70,"props":3224,"children":3226},{"className":3225},[],[3227],{"type":46,"value":3228},"Market has no tokenIds",{"type":40,"tag":184,"props":3230,"children":3231},{},[3232],{"type":46,"value":3233},"Closed market",{"type":40,"tag":184,"props":3235,"children":3236},{},[3237,3238,3243],{"type":46,"value":2899},{"type":40,"tag":70,"props":3239,"children":3241},{"className":3240},[],[3242],{"type":46,"value":1155},{"type":46,"value":3244}," — market resolved",{"type":40,"tag":157,"props":3246,"children":3247},{},[3248,3259,3264],{"type":40,"tag":184,"props":3249,"children":3250},{},[3251,3257],{"type":40,"tag":70,"props":3252,"children":3254},{"className":3253},[],[3255],{"type":46,"value":3256},"orderStatus: \"unmatched\"",{"type":46,"value":3258}," on FOK",{"type":40,"tag":184,"props":3260,"children":3261},{},[3262],{"type":46,"value":3263},"No liquidity at market price",{"type":40,"tag":184,"props":3265,"children":3266},{},[3267,3269,3274,3276,3281],{"type":46,"value":3268},"Try ",{"type":40,"tag":70,"props":3270,"children":3272},{"className":3271},[],[3273],{"type":46,"value":1733},{"type":46,"value":3275}," for partial fill, or ",{"type":40,"tag":70,"props":3277,"children":3279},{"className":3278},[],[3280],{"type":46,"value":1744},{"type":46,"value":3282}," for limit order",{"type":40,"tag":157,"props":3284,"children":3285},{},[3286,3295,3300],{"type":40,"tag":184,"props":3287,"children":3288},{},[3289],{"type":40,"tag":70,"props":3290,"children":3292},{"className":3291},[],[3293],{"type":46,"value":3294},"invalid amount for a marketable BUY order ($X), min size: $1",{"type":40,"tag":184,"props":3296,"children":3297},{},[3298],{"type":46,"value":3299},"Amount below CLOB minimum",{"type":40,"tag":184,"props":3301,"children":3302},{},[3303,3305],{"type":46,"value":3304},"Use at least $1. If pUSD was already funded, retry with ",{"type":40,"tag":70,"props":3306,"children":3308},{"className":3307},[],[3309],{"type":46,"value":1762},{"type":40,"tag":157,"props":3311,"children":3312},{},[3313,3322,3327],{"type":40,"tag":184,"props":3314,"children":3315},{},[3316],{"type":40,"tag":70,"props":3317,"children":3319},{"className":3318},[],[3320],{"type":46,"value":3321},"Wallet not found: main",{"type":40,"tag":184,"props":3323,"children":3324},{},[3325],{"type":46,"value":3326},"Not logged in",{"type":40,"tag":184,"props":3328,"children":3329},{},[3330,3331],{"type":46,"value":2874},{"type":40,"tag":70,"props":3332,"children":3334},{"className":3333},[],[3335],{"type":46,"value":3336},"agent wallet login",{"type":40,"tag":157,"props":3338,"children":3339},{},[3340,3352,3357],{"type":40,"tag":184,"props":3341,"children":3342},{},[3343,3345,3351],{"type":46,"value":3344},"Session expired (",{"type":40,"tag":70,"props":3346,"children":3348},{"className":3347},[],[3349],{"type":46,"value":3350},"OMS_SESSION_EXPIRED",{"type":46,"value":263},{"type":40,"tag":184,"props":3353,"children":3354},{},[3355],{"type":46,"value":3356},"Login session lapsed (~1 week)",{"type":40,"tag":184,"props":3358,"children":3359},{},[3360,3361],{"type":46,"value":2874},{"type":40,"tag":70,"props":3362,"children":3364},{"className":3363},[],[3365],{"type":46,"value":3336},{"type":40,"tag":157,"props":3367,"children":3368},{},[3369,3374,3379],{"type":40,"tag":184,"props":3370,"children":3371},{},[3372],{"type":46,"value":3373},"Approvals tx reverts after V2 migration",{"type":40,"tag":184,"props":3375,"children":3376},{},[3377],{"type":46,"value":3378},"V1 approvals — wrong exchange contracts",{"type":40,"tag":184,"props":3380,"children":3381},{},[3382,3384,3390],{"type":46,"value":3383},"Re-run ",{"type":40,"tag":70,"props":3385,"children":3387},{"className":3386},[],[3388],{"type":46,"value":3389},"agent polymarket approve --broadcast",{"type":46,"value":3391}," for V2 contracts",{"type":40,"tag":134,"props":3393,"children":3394},{},[],{"type":40,"tag":49,"props":3396,"children":3398},{"id":3397},"key-facts-for-agents",[3399],{"type":46,"value":3400},"Key Facts for Agents",{"type":40,"tag":345,"props":3402,"children":3403},{},[3404,3421,3459,3476,3498,3515,3525,3547,3565,3575],{"type":40,"tag":349,"props":3405,"children":3406},{},[3407,3412,3414,3419],{"type":40,"tag":273,"props":3408,"children":3409},{},[3410],{"type":46,"value":3411},"CLOB V2",{"type":46,"value":3413}," is active (since April 28, 2026). Collateral is ",{"type":40,"tag":273,"props":3415,"children":3416},{},[3417],{"type":46,"value":3418},"pUSD",{"type":46,"value":3420},", not USDC.e.",{"type":40,"tag":349,"props":3422,"children":3423},{},[3424,3429,3431,3436,3438,3443,3444,3450,3452,3458],{"type":40,"tag":273,"props":3425,"children":3426},{},[3427],{"type":46,"value":3428},"All commands are dry-run by default.",{"type":46,"value":3430}," ",{"type":40,"tag":70,"props":3432,"children":3434},{"className":3433},[],[3435],{"type":46,"value":211},{"type":46,"value":3437},", ",{"type":40,"tag":70,"props":3439,"children":3441},{"className":3440},[],[3442],{"type":46,"value":2170},{"type":46,"value":3437},{"type":40,"tag":70,"props":3445,"children":3447},{"className":3446},[],[3448],{"type":46,"value":3449},"sell",{"type":46,"value":3451}," do nothing without ",{"type":40,"tag":70,"props":3453,"children":3455},{"className":3454},[],[3456],{"type":46,"value":3457},"--broadcast",{"type":46,"value":580},{"type":40,"tag":349,"props":3460,"children":3461},{},[3462,3467,3469,3474],{"type":40,"tag":273,"props":3463,"children":3464},{},[3465],{"type":46,"value":3466},"V2 approvals are required for all users.",{"type":46,"value":3468}," V1 approvals on old exchange contracts do not carry over. Run ",{"type":40,"tag":70,"props":3470,"children":3472},{"className":3471},[],[3473],{"type":46,"value":411},{"type":46,"value":3475}," once after migration.",{"type":40,"tag":349,"props":3477,"children":3478},{},[3479,3489,3491,3496],{"type":40,"tag":273,"props":3480,"children":3481},{},[3482,3487],{"type":40,"tag":70,"props":3483,"children":3485},{"className":3484},[],[3486],{"type":46,"value":2170},{"type":46,"value":3488}," handles the full flow automatically:",{"type":46,"value":3490}," transfers USDC.e from smart wallet → proxy wallet, wraps USDC.e → pUSD, then places the CLOB order (unless ",{"type":40,"tag":70,"props":3492,"children":3494},{"className":3493},[],[3495],{"type":46,"value":1762},{"type":46,"value":3497},").",{"type":40,"tag":349,"props":3499,"children":3500},{},[3501,3506,3508,3513],{"type":40,"tag":273,"props":3502,"children":3503},{},[3504],{"type":46,"value":3505},"Positions live in the proxy wallet",{"type":46,"value":3507},", not the OMS smart wallet. ",{"type":40,"tag":70,"props":3509,"children":3511},{"className":3510},[],[3512],{"type":46,"value":2020},{"type":46,"value":3514}," queries the proxy wallet.",{"type":40,"tag":349,"props":3516,"children":3517},{},[3518,3523],{"type":40,"tag":273,"props":3519,"children":3520},{},[3521],{"type":46,"value":3522},"Sell is free.",{"type":46,"value":3524}," No gas, no on-chain tx. Selling via CLOB is a signed off-chain message only. Proceeds are pUSD.",{"type":40,"tag":349,"props":3526,"children":3527},{},[3528,3537,3539,3545],{"type":40,"tag":273,"props":3529,"children":3530},{},[3531],{"type":40,"tag":70,"props":3532,"children":3534},{"className":3533},[],[3535],{"type":46,"value":3536},"orderStatus: \"matched\"",{"type":46,"value":3538}," means the trade filled. ",{"type":40,"tag":70,"props":3540,"children":3542},{"className":3541},[],[3543],{"type":46,"value":3544},"\"unmatched\"",{"type":46,"value":3546}," means FOK failed (no liquidity).",{"type":40,"tag":349,"props":3548,"children":3549},{},[3550,3555,3557,3563],{"type":40,"tag":273,"props":3551,"children":3552},{},[3553],{"type":46,"value":3554},"Fees are protocol-determined at match time.",{"type":46,"value":3556}," Makers never pay fees — only takers. No ",{"type":40,"tag":70,"props":3558,"children":3560},{"className":3559},[],[3561],{"type":46,"value":3562},"feeRateBps",{"type":46,"value":3564}," on orders.",{"type":40,"tag":349,"props":3566,"children":3567},{},[3568,3573],{"type":40,"tag":273,"props":3569,"children":3570},{},[3571],{"type":46,"value":3572},"The proxy wallet address never changes.",{"type":46,"value":3574}," It is deterministic from the EOA via CREATE2.",{"type":40,"tag":349,"props":3576,"children":3577},{},[3578,3588],{"type":40,"tag":273,"props":3579,"children":3580},{},[3581,3586],{"type":40,"tag":70,"props":3582,"children":3584},{"className":3583},[],[3585],{"type":46,"value":3119},{"type":46,"value":3587}," in stderr is non-fatal.",{"type":46,"value":3589}," The CLI handles this automatically.",{"type":40,"tag":3591,"props":3592,"children":3593},"style",{},[3594],{"type":46,"value":3595},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3597,"total":469},[3598,3613,3626,3642],{"slug":3599,"name":3599,"fn":3600,"description":3601,"org":3602,"tags":3603,"stars":23,"repoUrl":24,"updatedAt":3612},"polygon-agent-cli","perform on-chain operations on Polygon","Complete Polygon agent toolkit for on-chain operations on Polygon. Use this skill whenever helping an agent set up a wallet, check balances, send or swap tokens, bridge assets, deposit or withdraw from yield (Aave aTokens, ERC-4626 vaults), register on-chain identity, submit or query reputation\u002Ffeedback, or make x402 micropayments. Covers the full lifecycle: OMS smart contract wallets, Trails DeFi actions, ERC-8004 identity + reputation, x402 payments. Single CLI entry point (`agent`), AES-256-GCM encrypted storage.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3604,3607,3610,3611],{"name":3605,"slug":3606,"type":16},"Automation","automation",{"name":3608,"slug":3609,"type":16},"CLI","cli",{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},"2026-07-27T06:07:29.717032",{"slug":3614,"name":3614,"fn":3615,"description":3616,"org":3617,"tags":3618,"stars":23,"repoUrl":24,"updatedAt":3625},"polygon-defi","execute DeFi operations on Polygon network","Swap, bridge, and deposit on Polygon using the Polygon Agent CLI. Covers same-chain token swaps, cross-chain bridging, yield deposits into Aave v3 and Morpho vaults, and withdrawals from those positions. Write commands preview by default; add --broadcast (or enable `agent mode auto`) to execute.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3619,3622,3623,3624],{"name":3620,"slug":3621,"type":16},"DeFi","defi",{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},"2026-07-27T06:07:30.737151",{"slug":3627,"name":3627,"fn":3628,"description":3629,"org":3630,"tags":3631,"stars":23,"repoUrl":24,"updatedAt":3641},"polygon-discovery","access pay-per-call services via Polygon","Agentic Services on Polygon — pay-per-call APIs gated by the x402 payment protocol, callable via the Polygon Agent CLI. No API keys or subscriptions; each call costs a small USDC amount drawn from the agent's smart wallet. Covers web search (Exa, SearchApi), web scraping (Firecrawl), news (NewsAPI), LLM inference (Llama 3.3\u002F3.2 via NVIDIA NIM, OpenRouter), cloud browsers (Browserbase), email (Resend, AgentMail), on-chain wallet analytics and prices (Allium), and multi-chain JSON-RPC (QuickNode, 16 chains).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3632,3635,3638,3639],{"name":3633,"slug":3634,"type":16},"API Development","api-development",{"name":3636,"slug":3637,"type":16},"Payments","payments",{"name":14,"slug":15,"type":16},{"name":3640,"slug":3640,"type":16},"x402","2026-07-24T05:37:26.414181",{"slug":4,"name":4,"fn":5,"description":6,"org":3643,"tags":3644,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3645,3646,3647],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"items":3649,"total":469},[3650,3657,3664,3671],{"slug":3599,"name":3599,"fn":3600,"description":3601,"org":3651,"tags":3652,"stars":23,"repoUrl":24,"updatedAt":3612},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3653,3654,3655,3656],{"name":3605,"slug":3606,"type":16},{"name":3608,"slug":3609,"type":16},{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},{"slug":3614,"name":3614,"fn":3615,"description":3616,"org":3658,"tags":3659,"stars":23,"repoUrl":24,"updatedAt":3625},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3660,3661,3662,3663],{"name":3620,"slug":3621,"type":16},{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"slug":3627,"name":3627,"fn":3628,"description":3629,"org":3665,"tags":3666,"stars":23,"repoUrl":24,"updatedAt":3641},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3667,3668,3669,3670],{"name":3633,"slug":3634,"type":16},{"name":3636,"slug":3637,"type":16},{"name":14,"slug":15,"type":16},{"name":3640,"slug":3640,"type":16},{"slug":4,"name":4,"fn":5,"description":6,"org":3672,"tags":3673,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3674,3675,3676],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16}]