Polymarket OpenClaw Trader
Reusable Polymarket + OpenClaw trading operations skill for any workspace. Use when the user needs to set up, run, tune, monitor, and deploy an automated Pol...
by 08820048 · published 2026-03-20
$ claw add gh:08820048/08820048-polymarket-openclaw-trader---
name: polymarket-openclaw-trader
description: Reusable Polymarket + OpenClaw trading operations skill for any workspace. Use when the user needs to set up, run, tune, monitor, and deploy an automated Polymarket trading project (paper/live), including env configuration, risk controls, reporting, and dashboard operations.
---
# Polymarket + OpenClaw 自动化交易(可发布通用版)
0) 前置条件(先检查)
先确认项目路径(不要写死绝对路径):
pwd
ls -la如果用户没有给路径,询问并约定:`<PROJECT_DIR>`。
后续命令都基于:
cd <PROJECT_DIR>---
1) 初始化配置(敏感信息只进 .env)
必须项:
可选:
要求:
---
2) 启停与巡检
启动:
nohup env PYTHONUNBUFFERED=1 python3 cli_bot.py loop > logs/runner_v2.log 2>&1 < /dev/null &巡检:
ps -ef | grep 'python3 cli_bot.py loop' | grep -v grep
tail -n 120 logs/runner_v2.log若进程不在:自动重启并再次验证。
---
3) 策略参数(非敏感,建议面板/运行时可调)
优先写入 `runtime/settings.json`:
修改后重启策略进程。
---
4) 汇报口径(必须真实)
汇报优先使用真实来源:
禁止将估算余额伪装成真实账户余额。
---
5) 下单执行规范
执行前依次检查:
1. 私钥已配置
2. 市场与 token id 可解析
3. 风控阈值通过
4. 执行下单
5. 返回完整结果(成功回执或失败原因)
若返回 geoblock / region restriction:
---
6) Web 控制台与部署
本地:
python3 web_app.pyVercel:
vercel --prod --yes若 Flask 入口报错,检查是否存在 `app.py` 且内容为:
from web_app import app---
7) 持久化与交付
每次关键变更后:
1. 更新项目记忆文件(若工作区有 MEMORY 体系)
2. `git add/commit` 提交
3. 若用户要求,打包 skill:
python3 <skill_creator_scripts>/package_skill.py <skill_dir> <out_dir>---
8) 给最终用户的最小启动指令模板
cd <PROJECT_DIR>
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
# 填写必要环境变量后
nohup env PYTHONUNBUFFERED=1 python3 cli_bot.py loop > logs/runner_v2.log 2>&1 < /dev/null &More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...