[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115439":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":14,"starSnapshotCount":14,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},115439,"polymarket-proxy","dennisyang1986\u002Fpolymarket-proxy","dennisyang1986","Polymarket Proxy — a local Polymarket desk inside DeepSeek Harness: deposit address, portfolio, market radar and live trading when the official site is unavailable.",null,"JavaScript",160,26,1,0,9,30,28,80.24,"MIT License",false,"main",true,[24,25,26,27,28,29],"deepseek-harness","dsh","dsh-plugin","polymarket","prediction-markets","trading","2026-11-18 04:07:13","2026-11-23 16:19:26","\u003Cdiv align=\"center\">\n\n# Polymarket Proxy\n\n**A local Polymarket desk inside DeepSeek Harness — check your portfolio, deposit and trade, even when the official website won't let you.**\n\n[English](README.md) · [简体中文](README.zh-CN.md)\n\n![platform](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-DeepSeek%20Harness-4d6bfe?style=flat-square)\n![market](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fmarket-Polymarket-2d6bfe?style=flat-square)\n![interface](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Finterface-English%20%7C%20%E4%B8%AD%E6%96%87-lightgrey?style=flat-square)\n\n\u003C\u002Fdiv>\n\n---\n\n## Why Polymarket Proxy?\n\nPolymarket's own website is not available everywhere. The deposit page may refuse to\nload, the trading UI may fail to connect a wallet, or the whole site may be blocked on\nyour network — while your account, your positions and Polymarket's liquidity are still\nthere.\n\nPolymarket Proxy is a **local panel for DeepSeek Harness** that talks to the same public\nPolymarket services directly:\n\n- it reconstructs your **deposit address** from the public Polygon deposit history, so you\n  can fund an account without the website's deposit modal;\n- it signs order requests with **your own private key** through Polymarket's official CLOB\n  client, so you can buy and sell without the website's trading screen;\n- it keeps a **live market radar** of Polymarket's highest-volume events, so you can find\n  and open a market without the website's front page.\n\n> **Eligibility is still Polymarket's decision.** This project does not create accounts,\n> bypass KYC, or change where you are. Use it only with an account you are allowed to use,\n> and follow Polymarket's terms and your local laws. See [Disclaimer](#disclaimer).\n\n## Screenshots\n\n| Market radar | Event detail |\n|---|---|\n| [![Market radar](assets\u002FSnipaste1.png)](assets\u002FSnipaste1.png) | [![Event detail](assets\u002FSnipaste2.png)](assets\u002FSnipaste2.png) |\n| Auto-refreshing events, ten categories, 24h volume, top outcomes — click any row to open it. | Original English rules, background tab, every outcome with live Yes\u002FNo prices. |\n\n| Order confirmation |\n|---|\n| [![Order confirmation](assets\u002FSnipaste3.png)](assets\u002FSnipaste3.png) |\n| Market or limit order, live order book, estimated average price, shares and potential payout. |\n\nThe screenshots show the Chinese interface; the English interface is identical apart from\nthe language. The panel follows the DeepSeek Harness language automatically — see\n[Language](#language).\n\n## Before you start\n\n1. **You need a Polymarket account.** Register one here:\n   [https:\u002F\u002Fpolymarket.com\u002Fperps?via=dEz1eSn](https:\u002F\u002Fpolymarket.com\u002Fperps?via=dEz1eSn)\n2. **Install and configure DeepSeek Harness first.** Official site:\n   [https:\u002F\u002Fwww.deepseek.com\u002Fharness\u002F](https:\u002F\u002Fwww.deepseek.com\u002Fharness\u002F)\n3. **Install this plugin.** In the DeepSeek Harness **Plugins** page, click **Add plugin**\n   and enter the npm package name **`dsh-polymarket-proxy`**. Alternatively, send this\n   GitHub repository URL to a DeepSeek chat and let the AI install it.\n\n## Features\n\n- **Portfolio** — total value, cash, positions value and your proxy wallet address, read\n  from Polymarket's public data APIs.\n- **Deposit** — Polymarket deposit address recovered from public deposit history, with\n  QR code and copy button; a manual paste fallback for brand-new accounts.\n- **Market radar** — Gamma API sweep every 30 minutes by default (configurable), grouped\n  by event and ranked by 24h volume; ten category chips, search, and a pasted\n  `polymarket.com` event\u002Fmarket link opens markets the sweep leaves out.\n- **Event detail** — rules and resolution source kept in the original English, a\n  background tab, and every outcome with live Yes\u002FNo prices and 24h volume.\n- **Betting** — market buy by USD amount or limit (GTC) buy by price and shares; the\n  confirmation modal shows the order book, estimated average price, estimated shares,\n  today's remaining budget and the potential payout.\n- **Approvals** — the one-time gasless approval trading needs. The panel walks four\n  steps (credentials → session → on-chain state → submit and verify), reporting pass or\n  fail, timing and the real reason (for example `fetch failed (ENOTFOUND\n  clob.polymarket.com)`); *Refresh status* re-probes the account and retries one\n  transient network failure.\n- **Positions** — current and redeemable positions, history, and one-click market close.\n- **Orders** — open orders listed in the panel, cancellable in place.\n- **Agent tools** — two read-only tools let the agent list the radar\n  (`polymarket_markets`) and summarize the portfolio (`polymarket_portfolio`).\n- **Keyword filter** — a plain-text blocklist hides matching events from the radar and\n  from the agent tool.\n- **Language** — Chinese when DeepSeek Harness is Chinese, English for every other\n  language; market titles are fetched in the same language.\n\n## How it works\n\n```\nDeepSeek Harness Web UI\n└── Polymarket Proxy panel (browser half: client.js)\n    │  \u002Fapi\u002Fpolymarket-agent\u002F*   (local HTTP, JSON)\n    └── Polymarket Proxy Host plugin (index.js)\n        ├── Gamma API        markets, events, tags, titles\n        ├── Data API v2      portfolio, positions, activity feed\n        ├── Polygon RPC      deposit history for address recovery\n        ├── CLOB API         order book, cash balance, order placement\n        └── @polymarket\u002Fclient + viem   signing and submission\n```\n\n- **No backend service.** The Host half is a normal DSH plugin; it serves the panel from\n  the same `dsh web` process on `127.0.0.1` and caches the radar in memory.\n- **No Cookie or website session.** Only Polymarket's public APIs are used, plus the\n  credentials you configure.\n- **No `.env`.** Account material is written only to the DSH credentials store\n  (`$DSH_HOME\u002F.credentials.yaml`, mode `0600`); non-secret plugin state lives in\n  `$DSH_HOME\u002Fpolymarket-agent\u002Fstate.json`.\n\n## Requirements\n\n- A [DeepSeek Harness](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@deepseek-ai\u002Fdsh) Web profile\n  (`dsh web`).\n- Node.js 24 or newer (the version DSH itself runs on).\n- A Polymarket account with a proxy wallet (Proxy, Safe or Deposit type) and some USDC on\n  Polygon. Trading needs Polymarket's gasless approvals once.\n- A Relayer API key only if your account has never been approved for trading.\n\n## Install\n\nThree ways, from easiest to most manual. All of them end with **Polymarket Proxy** in the\nleft sidebar; reload the page once if it does not appear.\n\n1. **npm package (recommended)** — open *Plugins* in the sidebar, choose *Add plugin*, enter\n   `dsh-polymarket-proxy`, and confirm. Or simply ask the agent: *install the\n   `dsh-polymarket-proxy` plugin*.\n2. **GitHub repository** — send this repository's URL to a DeepSeek chat and ask it to\n   install the plugin. The package is at the repository root, so the AI can install it\n   directly.\n3. **Local checkout** — for development, clone the repository and install its directory as\n   a local bundle:\n\n   ```bash\n   git clone https:\u002F\u002Fgithub.com\u002Fdennisyang1986\u002Fpolymarket-proxy.git polymarket-proxy\n   ```\n\n   *Plugins* → *Install* → absolute path to the checkout\n   (for example `\u002Fhome\u002Fme\u002Fpolymarket-proxy`).\n\nOpen the panel afterwards; a short setup guide runs the first time — see below.\n\n## Setup\n\nThe first time you open the panel, a four-step guide collects what signing and reading\nyour account needs. Nothing is sent anywhere except Polymarket's own services; secrets go\nstraight into the DSH credentials store.\n\n1. **Signing key** — copy the private key from polymarket.com (avatar → *Settings* →\n   *Account* → sensitive section → *Export private key*). It signs orders locally and is\n   stored only in the DSH credentials store.\n2. **Account wallet** — the wallet tied to your Polymarket account (Proxy \u002F Safe \u002F\n   Deposit). Copy it from your Polymarket profile; do **not** use your browser wallet\n   address.\n3. **Relayer** — only needed for the first gasless approval. Create an API key under\n   *Settings* → *API keys* and paste both the API key and the signer address shown above\n   it.\n4. **Approve and caps** — run the one-time approvals, then set the per-order and daily\n   USD caps. Defaults are deliberately small; raise them when you trust the setup.\n\nYou can reopen the guide from *Settings* at any time, and *Settings → Logout* clears the\nlocal credentials and local order records (it never touches positions, open orders or\nhistory on Polymarket).\n\n## Usage\n\n| Area | What you can do |\n|---|---|\n| Portfolio strip | Total value, cash, positions value, proxy wallet — refreshed automatically. |\n| Radar | Filter by category or search; press *Refresh* to rescan; paste a Polymarket event\u002Fmarket link to open it directly. |\n| Event detail | Read rules and resolution source, check outcomes, then *Buy Yes\u002FNo*. |\n| Order modal | Choose *Market* (spend USD) or *Limit* (GTC, price and shares); review the order book, estimated price, shares, remaining daily budget and potential payout; confirm. |\n| Positions | Current and redeemable positions, history; close a position at market in one click. |\n| Orders | See in-progress and filled orders, cancel an open limit order. |\n| Settings | Refresh interval (radar header); credentials, approvals, per-order and daily caps (guided); logout. |\n\n**One click, no deal?** Orders are submitted to Polymarket's CLOB through the official\nclient; fills happen against live liquidity. The modal's estimate is not a guarantee.\n\n### Deposit when the website's deposit page is unavailable\n\nOpen *Deposit*. For an account that has deposited before, the address is recovered from\nthe public Polygon deposit history of your account wallet — send USDC\u002FUSDT on Polygon to\nthat address and it arrives in the same account. A brand-new account has no history to\nrecover from: open the official deposit modal once (if you can), copy the address, and\npaste it into the panel; it is remembered in the DSH credentials store.\n\n## Agent tools\n\n| Tool | What it returns |\n|---|---|\n| `polymarket_markets` | Radar events ranked by 24h volume, filtered by `query` \u002F `category`, or one pasted Polymarket link; read-only. |\n| `polymarket_portfolio` | Portfolio total, cash, deposit address source, open positions and trading status; read-only. |\n\nOrdering and closing always stay with the human in the panel.\n\n## Language\n\nPolymarket Proxy does not add its own language switch. It follows DeepSeek Harness:\n\n- Harness UI is **Chinese** → the panel and Polymarket market titles\u002Fquestions are Chinese.\n- Harness UI is **any other language** → everything is **English**, and market titles are\n  fetched from Polymarket's English locale.\n\nChange the language in DeepSeek Harness settings; the panel re-syncs and reloads the radar\nin the matching language. Rules, resolution sources and other long descriptions always\ncome from Polymarket in the original English.\n\n## Keyword filter\n\nEvents matching any word in `keywords.txt` (repository root, or\n`$DSH_HOME\u002Fpolymarket-agent\u002Fkeywords.txt` for a packaged install) are hidden from the\nradar and from the agent tool. It is edited as a plain text file, not in the panel. One\nkeyword per line; `#` starts a comment; commas and semicolons also separate words. The\nfile is read on every scan — save it and press *Refresh*. Links you paste are never\nfiltered. `keywords.default.txt` seeds a new file.\n\n## Privacy and security\n\n- **Local only.** The Host plugin serves under the same `dsh web` origin, and every route\n  passes DSH's connection admission (Host\u002FOrigin checks plus the browser credential) before\n  it runs. Credential and logout endpoints additionally accept loopback requests only.\n- **Secrets in one place.** The wallet, private key and Relayer key live in the DSH\n  credentials store (`$DSH_HOME\u002F.credentials.yaml`, mode `0600`) — never in `.env`, logs,\n  `state.json` or workspace snapshots. That store is plaintext YAML: rely on your OS account\n  permissions and disk encryption, and prefer a dedicated or hardware wallet for large\n  balances.\n- **Orders are capped.** Per-order and daily USD caps are enforced by the Host before\n  anything is signed. A cap change applies immediately.\n- **Read-only tools.** Agent tools cannot place or cancel orders; that stays in the panel.\n- **Public data only.** Market data and portfolio reads use Polymarket's public endpoints;\n  no website cookies or scraped sessions.\n\n## Troubleshooting\n\n| Symptom | Fix |\n|---|---|\n| `Trading bridge not ready` | Complete the signing key and account wallet steps, then run *Approve everything* in *Settings*. |\n| `Approvals missing` | Polymarket's one-time approvals were not submitted. Fill in the Relayer key\u002Fsigner address and approve again. |\n| `fetch failed (…)` | The Host cannot reach Polymarket or the relayer; the parentheses name the real error code and host. Check `clob.polymarket.com`, `polygon-bor-rpc.publicnode.com` and `relayer-v2.polymarket.com`, then press *Refresh status*. |\n| Deposit address not identified | The account has no public deposit history yet. Paste the address from the official deposit modal once. |\n| The radar is empty | Clear the search and category, then press *Refresh*; if it stays empty, lower `minVolume24h` or raise `maxDays` in the plugin settings and reload. |\n| Titles do not match the interface language | Switch the Harness language once, or reload the page after changing it. The Host re-sweeps automatically. |\n| Panel stopped working after an update | Reinstall the bundle from the `plugin` directory and reload the page. |\n\n## Project layout\n\n```\npolymarket-proxy\u002F\n├── README.md              English README (this file)\n├── README.zh-CN.md        Chinese README\n├── LICENSE                MIT\n├── package.json           npm package and DeepSeek Harness bundle manifest\n├── cordis.patch.yml       Loader row inserted into the profile\n├── index.js               Host half: APIs, radar, trading bridge, agent tools\n├── bridge.js              @polymarket\u002Fclient + viem signing\u002Fsubmission\n├── client.js              Browser half: panel, views, i18n\n├── locale\u002F                plugin display title\u002Fdescription (en, zh)\n├── keywords.txt           active keyword filter for this checkout\n├── keywords.default.txt   seed for a new keyword file\n├── screenshots.json       market screenshots declaration\n└── assets\u002F                icons and screenshots\n```\n\n## Disclaimer\n\nPolymarket Proxy is an unofficial, local tool. It is **not affiliated with, endorsed by\nor operated by Polymarket**. Polymarket's services and terms are owned by Polymarket; your\nuse of them is between you and Polymarket. Prediction markets involve risk of total loss,\nand trading may be restricted or illegal in your jurisdiction. This software is provided\n\"as is\", without warranty of any kind; you are solely responsible for the keys you load,\nthe orders you place and the laws that apply to you.\n\n## License\n\nMIT © 2026 Polymarket Proxy contributors. See [LICENSE](LICENSE).\n","Polymarket Proxy 是一个运行在 DeepSeek Harness 平台上的本地插件，为用户提供离线可用的 Polymarket 交易功能。它通过直接调用 Polymarket 公共 API 实现三大核心能力：基于 Polygon 链历史自动推导存款地址、使用用户私钥本地签名并提交 CLOB 订单、实时聚合高流动性预测市场形成雷达视图。项目不依赖官方网页前端，在网站不可访问、钱包连接失败或网络受限时仍可查看持仓、充值和交易。适用于预测市场参与者、链上交易者及需绕过前端故障的合规 Polymarket 用户。",2,"2026-11-24 04:51:00","CREATED_QUERY"]