polymarket-btc15m
Trade Polymarket Bitcoin Up/Down 15-minute markets using TA signals. Supports Clawbot mode (dynamic sizing, TP/SL, pre-settlement) or fixed mode. Use when checking signals, placing trades, or automating via private key.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- polymarket-btc15m
- description
- Trade Polymarket Bitcoin Up/Down 15-minute markets using TA signals. Supports Clawbot mode (dynamic sizing, TP/SL, pre-settlement) or fixed mode. Use when checking signals, placing trades, or automating via private key.
02 资源文件 37
- 参考文档_meta.json475 B
- 其他.env835 B
- 脚本clawbot-skill/scripts/execute-trade.sh555 B
- 脚本clawbot-skill/scripts/get-signal.sh205 B
- 资产文件logs/signals.csv4.8 KB
- 参考文档package-lock.json58.6 KB
- 参考文档package.json774 B
- 参考文档README.md7.8 KB
- 脚本scripts/shrink-node-modules.js1.8 KB
- 脚本src/clawbot-execute.js4.1 KB
- 脚本src/config.js1.3 KB
- 脚本src/data/binance.js1.1 KB
- 脚本src/data/binanceWs.js1.7 KB
- 脚本src/data/chainlink.js3.8 KB
- 脚本src/data/chainlinkWs.js4.1 KB
- 脚本src/data/polymarket.js9.2 KB
- 脚本src/data/polymarketLiveWs.js3.2 KB
- 脚本src/engines/edge.js1.8 KB
- 脚本src/engines/probability.js1.5 KB
- 脚本src/engines/regime.js875 B
- 脚本src/get-signal.js4.8 KB
- 脚本src/index.js26.3 KB
- 脚本src/indicators/heikenAshi.js1.1 KB
- 脚本src/indicators/macd.js1.2 KB
- 脚本src/indicators/rsi.js1.1 KB
- 脚本src/indicators/vwap.js534 B
- 脚本src/monitor-daemon.js1.3 KB
- 脚本src/monitor-runner.js348 B
- 脚本src/net/proxy.js1.4 KB
- 脚本src/sessionSync.js2.8 KB
- 脚本src/trade-cli.js3.4 KB
- 脚本src/trading/clawbotContext.js3.6 KB
- 脚本src/trading/clawbotSizing.js2.1 KB
- 脚本src/trading/polymarketTrader.js5.5 KB
- 脚本src/trading/positionMonitor.js3.5 KB
- 脚本src/trading/positionsStore.js1.1 KB
- 脚本src/utils.js1.7 KB
03 SKILL.md 正文
Polymarket BTC 15m Trading Skill
Clawbot manages Polymarket BTC 15m trades using signals from PolymarketBTC15mAssistant.
Important Notice:
For proper operation, you must correctly configure your environment. In the POLYMARKET_PRIVATE_KEY variable, specify the private key associated with your Polymarket trading account.
Next, to configure the POLYMARKET_FUNDER variable, visit polymarket.com/settings, locate your Funder Address, and assign it to the POLYMARKET_FUNDER variable.
Modes
| Mode | Toggle | Position size | Take-profit | Stop-loss | Pre-settlement sell |
|---|---|---|---|---|---|
| Clawbot | CLAWBOT_MODE=true |
Dynamic from balance & risk | Yes | Yes | Yes |
| Fixed | CLAWBOT_MODE=false (default) |
Fixed (ORDER_SIZE) | No | No | No |
Clawbot mode logic
- High risk (late phase, low edge): small % of balance (2–3%), tighter SL
- Strong signal (STRONG, high edge): larger % (up to 15%), wider TP
- Reserve: always keeps 20% of balance
- Max per trade: never more than 30% of balance
Environment Variables
| Variable | Required | Description |
|---|---|---|
POLYMARKET_PRIVATE_KEY |
Yes (trading) | Wallet private key |
POLYMARKET_FUNDER |
Yes (trading) | Funder from polymarket.com/settings |
CLAWBOT_MODE |
No | true or false (default) |
POLYMARKET_ORDER_SIZE |
No | Shares when Clawbot OFF (default: 5) |
POLYMARKET_SIGNATURE_TYPE |
No | 0/1/2 (default: 2) |
Commands
Get signal
npm run signal
With CLAWBOT_MODE=true, output includes clawbotParams (balance, size, TP%, SL%, sellBeforeMin).
Execute trade
npm run trade:up
npm run trade:down
node src/trade-cli.js --execute=UP --yes
Position monitor (Clawbot mode only)
One cycle:
node src/trade-cli.js --monitor
Background daemon (runs until Ctrl+C):
npm run monitor
Workflow for Clawbot
-
"What's the signal?"
- Run
npm run signal - Summarize: action, side, phase, strength, model probs, time left
- If Clawbot mode: include clawbotParams (balance, suggested size, TP/SL)
- Run
-
"Place trade for UP"
- Run
npm run signal→ verify ENTER + side UP - If match:
npm run trade:up(or--execute=UP --yesif approved) - If mismatch: abort and explain
- Run
-
"Enable/disable Clawbot mode"
- Set
CLAWBOT_MODE=trueorfalsein .env - Explain: Clawbot = dynamic sizing + auto TP/SL; Fixed = manual only
- Set
-
"Run monitor" (when Clawbot mode + open positions)
- Run
npm run monitorin background, ornode src/trade-cli.js --monitorfor one cycle
- Run
Safety
- No system guarantees profits. Clawbot improves edge but does not eliminate risk.
- Prefer user confirmation for trades unless automation is explicitly approved.
- Never log or expose
POLYMARKET_PRIVATE_KEY.
Installation
cp -r clawbot-skill ~/.clawbot/skills/polymarket-btc15m
# or
ln -s /path/to/PolymarketBTC15mAssistant-main ~/.clawbot/skills/polymarket-btc15m
Ensure execution engine allows npm and node from the project directory.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.