← 返回
效率工具 Key 中文

Polymarket AutoTrader

Auto-trade BTC, ETH, SOL, XRP on Polymarket price prediction markets at 5-minute and 15-minute intervals using RSI, MACD, and EMA signals.
利用RSI、MACD和EMA信号,在Polymarket价格预测市场按5分钟和15分钟周期自动交易BTC、ETH、SOL、XRP。
hyy2099
效率工具 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 764
下载
💾 39
安装
1
版本
#latest

概述

Polymarket AutoTrader

Automatically trades BTC, ETH, SOL, and XRP price prediction markets on Polymarket using short-term technical analysis signals.

How It Works

  1. Signal Generation — Fetches OHLCV candles from Binance (public API, no key required) for each asset on the selected timeframe (5m or 15m). Computes RSI(14), MACD(12/26), and EMA(9/21) crossover.
  1. Market Discovery — Queries the Polymarket Gamma API to find active, unclosed price prediction markets for the relevant asset expiring soon.
  1. Order Placement — If signal confidence ≥ MIN_CONFIDENCE (default 60%), places a limit order on the soonest-expiring market:
    • BUY signal → buy YES tokens
    • SELL signal → buy NO tokens
  1. Billing — Each cycle deducts 0.001 USDT via SkillPay before executing. If balance is insufficient, a top-up link is returned.
  1. Scheduler — Runs automatically every 5 or 15 minutes (set via TRADE_TIMEFRAME).

Required Environment Variables

VariableDescription
------
POLYMARKET_PRIVATE_KEYEthereum wallet private key (Polygon/MATIC network). Used to sign orders.
SKILLPAY_API_KEYSkillPay API key for billing (from your SkillPay dashboard).
SKILLPAY_USER_IDYour SkillPay user ID for billing.
POLYMARKET_API_KEY_(Optional)_ Polymarket CLOB API key for higher rate limits.
POLYMARKET_API_SECRET_(Optional)_ Polymarket CLOB API secret.
POLYMARKET_API_PASSPHRASE_(Optional)_ Polymarket CLOB API passphrase.

Optional Environment Variables

VariableDefaultDescription
---------
TRADE_TIMEFRAME5m5m or 15m
TRADE_ASSETSBTC,ETH,SOL,XRPComma-separated list of assets to trade
MAX_TRADE_USDC10Maximum USDC to spend per trade
MIN_CONFIDENCE60Minimum signal confidence % required to place a trade
DRY_RUNfalseSet true to simulate without placing real orders

Quickstart

1. Install dependencies

npm install

2. Set environment variables

export POLYMARKET_PRIVATE_KEY="0xYOUR_WALLET_PRIVATE_KEY"
export SKILLPAY_USER_ID="your_skillpay_user_id"
export TRADE_TIMEFRAME="5m"
export DRY_RUN="true"   # Start with dry run!

3. Get Polymarket API credentials (optional but recommended)

Visit https://clob.polymarket.com and follow the authentication guide to generate API keys for higher order limits.

4. Run

node trader.js

5. Run as a persistent service (Linux/Mac)

# Using pm2
npm install -g pm2
pm2 start trader.js --name polymarket-autotrader
pm2 save

Strategy Details

5-Minute Timeframe

Optimized for scalping short-duration markets. Uses tighter RSI thresholds (35/65) and requires volume confirmation.

15-Minute Timeframe

Captures medium-term momentum. Suitable for markets expiring same-day or next day.

Signal Scoring

IndicatorBullishBearish
---------
RSI < 35+2
RSI > 65+2
MACD > 0+1
EMA9 > EMA21+2
Volume spike (bullish)+1

Signal is BUY or SELL only when the winning side scores ≥ 4.

Risk Warning

⚠️ Polymarket prediction markets are binary (YES/NO) and highly volatile. Past signal performance does not guarantee future results. Always start with DRY_RUN=true and small position sizes. Never risk capital you cannot afford to lose.

Usage (via Claude Code)

When this skill is active, you can ask Claude to:

  • "Run the Polymarket AutoTrader for BTC and ETH on the 15m timeframe"
  • "Show me the current signals for all assets"
  • "Start the trader in dry-run mode"
  • "Check what Polymarket markets are available for SOL"

Claude will run trader.js with the appropriate environment variables set.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 08:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 274 📥 114,718
security-compliance

AegisClaw - 金甲龙虾

hyy2099
当用户要求管理币安资产、检查账户安全、扫描套利机会或执行自动小额资产清理时使用此技能。
★ 0 📥 620
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 444 📥 226,101