← 返回 Skills 市场
sbaker5

PolyEdge - Polymarket Correlation Analyzer

作者 sbaker5 · GitHub ↗ · v0.1.1
cross-platform ⚠ suspicious
3294
总下载
4
收藏
6
当前安装
2
版本数
在 OpenClaw 中安装
/install polyedge
功能描述
Detect mispriced correlations between Polymarket prediction markets. Cross-market arbitrage finder for AI agents.
安全使用建议
High-level points to consider before installing or running this skill: - Purpose and behavior: The code implements a Polymarket correlation analyzer and an optional paid HTTP API (x402) as described. Running analyzer.py locally to inspect two markets is low-risk aside from normal network calls to Polymarket's API. - Default payment recipient: If you run the API server or deploy the provided docker-compose, the code's default PAYMENT_WALLET is hardcoded to an external address. Unless you explicitly set PAYMENT_WALLET to your own address via environment variables, payments will go to the author's wallet. This is not secret exfiltration but is a monetization choice you should be aware of. - Undeclared env vars: The SKILL.md / registry metadata say “no required env vars,” but the code reads env vars (PAYMENT_WALLET, PRICE_USDC, BASESCAN_API_KEY, BASE_RPC, REQUIRE_PAYMENT). If you intend to host the service, set these deliberately and inspect defaults. - Network behavior: The skill makes outbound requests to Polymarket (gamma-api.polymarket.com), BaseScan, and multiple public Base RPC providers. If you are in a restricted environment, be aware of these external calls. The x402 payment verification uses multiple third-party RPC endpoints as fallbacks — review those endpoints if you expect to control network endpoints. - Audit before deploying publicly: If you plan to host the API or expose it to agents, do a quick code audit: verify the PAYMENT_WALLET is set to your address (or remove payment logic if you don't want payg behavior), confirm BASESCAN_KEY usage and rate limits, and test the payment verification logic to ensure it matches your security/financial expectations (e.g., re-check minimal amount/slippage tolerance, on-chain verification robustness). - When to avoid: Do not give this skill any private keys or credentials. If you are not comfortable with the default payment wallet or with an external pay-to endpoint (api.nshrt.com referenced in docs), do not run the API server; instead run analyzer.py locally for one-off analyses. If you want, I can: (1) point out the exact lines where PAYMENT_WALLET is set and used, (2) produce a minimal checklist of env vars to set before deploying, or (3) summarize how the x402 verification works step-by-step.
功能分析
Type: OpenClaw Skill Name: polyedge Version: 0.1.1 The skill bundle provides a Polymarket correlation analyzer, which can be run locally or accessed via a paid API. All external network calls (Polymarket API, Basescan API, Base RPCs) are directly related to fetching market data and verifying payments for the API service, as seen in `src/polymarket.py`, `src/dashboard.py`, and `src/x402.py`. Configuration is handled via environment variables (`os.environ.get`), which is standard practice and does not indicate exfiltration of unrelated sensitive data. The `SKILL.md` and `PLAN.md` documents contain no prompt injection attempts or instructions for the AI agent to perform unauthorized actions; `PLAN.md` even explicitly outlines several security best practices.
能力评估
Purpose & Capability
The code implements the claimed functionality (fetch Polymarket markets, analyze correlations, surface signals, and optionally expose an x402-payg HTTP API). However the registry metadata / SKILL.md declare no required environment variables while the code expects and uses several environment variables (PAYMENT_WALLET, PRICE_USDC, BASESCAN_API_KEY, BASE_RPC, REQUIRE_PAYMENT via env). Payment-related configuration is consistent with the advertised pay-per-query API, but the lack of declared env requirements and the presence of a hardcoded PAYMENT_WALLET (an external address) is an editorial/information mismatch that users should be aware of.
Instruction Scope
Runtime instructions in SKILL.md focus on running analyzer.py and editing patterns.py; they do not instruct the agent to read local user files or secrets. The code performs only network calls to public APIs (Polymarket Gamma API, Base RPCs, BaseScan) and does not attempt to read the user's filesystem or env files beyond standard os.environ usage. The SKILL.md advertises an external pay endpoint (api.nshrt.com) which matches links and dashboard references in the code.
Install Mechanism
No install spec is provided (instruction-only / source-included). That minimizes hidden install-time risk. The repository is pure Python code that uses urllib for network I/O; nothing is downloaded at install time. If you run the docker-compose it references traefik and an external network, which is a deployment detail — but there is no remote arbitrary archive or shortener URL being pulled during install.
Credentials
The skill declares no required env vars but the code uses several environment variables and has defaults baked in. In particular PAYMENT_WALLET defaults to a specific hardcoded address (0xB8B9...), and PRICE_USDC and BASESCAN_API_KEY can be set via env. Directing payments to a default external wallet is a behavior users should treat as intentional monetization by the author; it's not a secret-exfiltration technique but it is a potentially surprising default if you deploy the API yourself without overriding PAYMENT_WALLET. There are no requests for unrelated credentials (AWS keys, github tokens, etc.), which is good.
Persistence & Privilege
The skill doesn't request permanent 'always' inclusion and doesn't modify other skills or system settings. It's a code bundle that can be run locally or hosted; it does not install agents or persist credentials into the host environment. Running the API server will accept requests and may cache verified payments in memory (VERIFIED_PAYMENTS), but that's local to the process.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install polyedge
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /polyedge 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
Added live API endpoint at api.nshrt.com
v0.1.0
Initial release: x402 trading signals for Polymarket correlation analysis
元数据
Slug polyedge
版本 0.1.1
许可证
累计安装 6
当前安装数 6
历史版本数 2
常见问题

PolyEdge - Polymarket Correlation Analyzer 是什么?

Detect mispriced correlations between Polymarket prediction markets. Cross-market arbitrage finder for AI agents. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3294 次。

如何安装 PolyEdge - Polymarket Correlation Analyzer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install polyedge」即可一键安装,无需额外配置。

PolyEdge - Polymarket Correlation Analyzer 是免费的吗?

是的,PolyEdge - Polymarket Correlation Analyzer 完全免费(开源免费),可自由下载、安装和使用。

PolyEdge - Polymarket Correlation Analyzer 支持哪些平台?

PolyEdge - Polymarket Correlation Analyzer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 PolyEdge - Polymarket Correlation Analyzer?

由 sbaker5(@sbaker5)开发并维护,当前版本 v0.1.1。

💬 留言讨论