数据分析

polymarket-elon-tweets

试用

当 XTracker 预测的推文总数落在某桶簇内时,买入 Polymarket "Elon Musk # tweets" 对应桶及其相邻桶。

它能做什么

通过 Simmer SDK 拉取 XTracker 当前 Elon 推文事件的实时数据,定位预测总数所在的桶,再评估 center ± spread 的相邻桶。仅当簇总价低于 max_bucket_sum(默认 0.90)时,按 max_position_usd 对每个桶下单,并打上 sdk:elon-tweets 标签。默认 dry run,只打印簇评估结果;必须显式加 --live 才会真实下单。每次交易前都会检查翻转告警、滑点和极端价位三重保护。

什么时候用它

  • 在 Polymarket 上交易周度 Elon Musk 推文数量市场
  • 配置 @noovd 风格的桶簇开仓/平仓参数
  • 查看某个推文事件当前的 XTracker 已发数、预测数和剩余天数
  • 监控已有推文市场仓位并在达到 exit_threshold 时自动卖出

技能文档

Polymarket Elon Tweet Trader

Trade "Elon Musk # tweets" markets on Polymarket using XTracker post count data.

🚨 Framework, not a production trading system. Read DISCLAIMER.md before connecting to a wallet with real funds.

When to Use This Skill

Use this skill when the user wants to:

  • Trade Elon Musk tweet count markets automatically
  • Set up @noovd-style bucket trading
  • Check XTracker pace and stats for current tweet events
  • Monitor and exit existing tweet market positions
  • Configure bucket spread or entry thresholds

How the Strategy Works

Polymarket runs weekly "How many tweets will Elon post?" events with range buckets (e.g., 200-219, 220-239, 240-259). Exactly one bucket resolves YES = $1. The strategy:

  1. Get XTracker pace — XTracker tracks Elon's real-time post count and projects the final total
  2. Find center bucket — The bucket containing XTracker's projected pace
  3. Buy adjacent buckets — Buy the center + neighbors (configurable spread)
  4. Check combined cost — Only buy if the sum of bucket prices < $1 (the +EV threshold)
  5. One bucket pays $1 — When the event resolves, one of your buckets pays $1, covering costs

Setup Flow

When user asks to install or configure this skill:

  1. Install the Simmer SDK

    pip install simmer-sdk
    
  2. Ask for Simmer API key

    • They can get it from simmer.markets/dashboard → SDK tab
    • Store in environment as SIMMER_API_KEY
  3. Ask for wallet private key (required for live trading)

    • This is the private key for their Polymarket wallet (the wallet that holds USDC)
    • Store in environment as WALLET_PRIVATE_KEY
    • The SDK uses this to sign orders client-side automatically — no manual signing needed
  4. Ask about settings (or confirm defaults)

    • Max bucket sum: Combined price threshold (default 90¢)
    • Max position: Amount per bucket (default $5.00)
    • Bucket spread: How many neighbors to buy (default 1 = center ± 1)
    • Exit threshold: When to sell (default 65¢)
  5. Save settings to config.json or environment variables

  6. Set up cron (disabled by default — user must enable scheduling)

Configuration

SettingEnv VariableConfig KeyDefaultDescription
Max bucket sumSIMMER_ELON_MAX_BUCKET_SUMmax_bucket_sum0.90Only buy if cluster prices sum < this
Max positionSIMMER_ELON_MAX_POSITION_USDmax_position_usd5.00Maximum USD per bucket
Bucket spreadSIMMER_ELON_BUCKET_SPREADbucket_spread1Neighbors on each side (1 = 3 buckets)
Smart sizing %SIMMER_ELON_SIZING_PCTsizing_pct0.05% of balance per trade
Max trades/runSIMMER_ELON_MAX_TRADES_PER_RUNmax_trades_per_run6Maximum trades per scan cycle
Exit thresholdSIMMER_ELON_EXIT_THRESHOLDexit_threshold0.65Sell when bucket price above this
Slippage maxSIMMER_ELON_SLIPPAGE_BPSslippage_max_bps100Skip trade if slippage exceeds this (basis points, e.g. 100 = 1%)
Min positionSIMMER_ELON_MIN_POSITIONmin_position_usd2.00Floor for smart sizing (USD)
Data sourceSIMMER_ELON_DATA_SOURCEdata_sourcextrackerData source (xtracker)
Order typeSIMMER_ELON_ORDER_TYPEorder_typeGTCOrder type: GTC (good-til-cancelled) or FAK (fill-and-kill)

Config priority: config.json > environment variables > defaults.

Quick Commands

# Check account balance and positions
python scripts/status.py

# Detailed position list
python scripts/status.py --positions

API Reference:

  • Base URL: https://api.simmer.markets
  • Auth: Authorization: Bearer $SIMMER_API_KEY
  • Portfolio: GET /api/sdk/portfolio
  • Positions: GET /api/sdk/positions

Running the Skill

# Dry run (default — shows opportunities, no trades)
python elon_tweets.py

# Execute real trades
python elon_tweets.py --live

# With smart position sizing (uses portfolio balance)
python elon_tweets.py --live --smart-sizing

# Show XTracker stats only
python elon_tweets.py --stats

# Check positions only
python elon_tweets.py --positions

# View config
python elon_tweets.py --config

# Update config
python elon_tweets.py --set max_position_usd=10.00

# Disable safeguards (not recommended)
python elon_tweets.py --no-safeguards

# Quiet mode — only output on trades/errors (ideal for cron)
python elon_tweets.py --live --quiet

# Combine: frequent scanning, minimal noise
python elon_tweets.py --live --smart-sizing --quiet

How It Works

Each cycle the script:

  1. Fetches active XTracker trackings for Elon Musk tweet events
  2. Gets real-time stats: current count, projected pace, days remaining
  3. Searches Simmer for matching tweet count markets (auto-imports if missing)
  4. Finds the bucket matching XTracker's pace projection
  5. Evaluates adjacent buckets (center ± spread)
  6. Entry: If sum of cluster prices < max_bucket_sum → BUY each bucket
  7. Exit: Checks open positions, sells if any bucket price > exit_threshold
  8. Safeguards: Checks context for flip-flop warnings, slippage
  9. Tagging: All trades tagged with sdk:elon-tweets for tracking

Auto-Import

If tweet count markets aren't on Simmer yet, the skill automatically imports them:

  • Derives the Polymarket event URL from the XTracker tracking title
  • Uses the SDK import endpoint (supports multi-outcome events)
  • Imports all outcome buckets as a group
  • Counts as 1 daily import regardless of bucket count

Smart Sizing

With --smart-sizing, position size is calculated as:

  • 5% of available USDC balance (configurable via sizing_pct)
  • Capped at max position setting ($5.00 default)
  • Falls back to fixed size if portfolio unavailable

Safeguards

Before trading, the skill checks:

  • Flip-flop warning: Skips if you've been reversing too much
  • Slippage: Skips if estimated slippage > 15%
  • Market status: Skips closed or resolved markets
  • Extreme prices: Skips buckets priced > 98% or < 2%

Disable with --no-safeguards (not recommended).

Source Tagging

All trades are tagged with source: "sdk:elon-tweets". This means:

  • Portfolio shows breakdown by strategy
  • Other skills won't sell your tweet positions
  • You can track tweet trading P&L separately

Example Output

🐦 Simmer Elon Tweet Trader
==================================================

⚙️ Configuration:
  Max bucket sum:  $0.90
  Max position:    $5.00
  Bucket spread:   1 (center ± 1 = 3 buckets)
  Exit threshold:  65%
  Data source:     xtracker

📊 XTracker Stats:
  Tracking: Elon Musk # tweets Feb 13 - Feb 20
  Current count: 187 posts
  Pace: 243 projected
  Days remaining: 2.3

🎯 Target cluster: 240-259 (center) + 220-239, 260-279
  240-259: $0.35
  220-239: $0.22
  260-279: $0.18
  Cluster sum: $0.75 (< $0.90 threshold) ✅

  Executing trades...
  ✅ Bought 14.3 shares of 240-259 @ $0.35
  ✅ Bought 22.7 shares of 220-239 @ $0.22
  ✅ Bought 27.8 shares of 260-279 @ $0.18

📊 Summary:
  Events scanned: 2
  Clusters evaluated: 2
  Trades executed: 3
  Exits: 0

Troubleshooting

"No XTracker trackings found"

  • XTracker may not have active Elon tweet events
  • New events usually start on Wednesdays/Thursdays

"Cluster sum $X.XX exceeds threshold"

  • Buckets are too expensive — edge is too thin
  • Wait for prices to drop or widen bucket_spread

"No matching Simmer markets found"

  • Markets may not be imported yet — skill will auto-import on next run
  • Check that your API key has import capacity (10/day free, 50/day Pro)

"Safeguard blocked: flip-flop warning"

  • You've been changing direction too much on this market
  • Wait before trading again

"External wallet requires a pre-signed order"

  • WALLET_PRIVATE_KEY is not set in the environment
  • The SDK signs orders automatically when this env var is present — no manual signing code needed
  • Fix: export WALLET_PRIVATE_KEY=0x
  • Do NOT attempt to sign orders manually or modify the skill code — the SDK handles it

"Balance shows $0 but I have funds on Polygon"

  • Polymarket V2 (live 2026-04-28) uses pUSD (PolyUSD, 1:1 backed by USDC.e). If your wallet holds USDC.e, migrate at simmer.markets/dashboard with one click (~30s)
  • If you bridged native USDC (Circle), swap to USDC.e first, then migrate to pUSD
  • Full migration guide: docs.simmer.markets/v2-migration

"API key invalid"

  • Get new key from simmer.markets/dashboard → SDK tab

相关技能

通过一个命令行工具完成多链加密货币交易、钱包管理与 AI 市场分析。

作者 lowesyang162 次安装109 星标

通过 6551 REST API 查询 Twitter/X 用户资料、推文、粉丝事件与 KOL 数据。

作者 infra403840 次安装27 星标

通过一次 REST API 调用,向 10 个社交平台发布视频、图片、文字与文档。

作者 victorcavero14375 次安装50 星标

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván555 次安装18 星标

simmer 的更多技能

浏览全部技能

用 Binance 价格动量作为信号,通过 Simmer SDK 在 Polymarket 上交易 5 分钟/15 分钟 BTC 闪盘。

作者 simmer263 次安装50 星标

通过一套 SDK 在 Polymarket、Kalshi 与 $SIM 虚拟练习市场间交易预测市场。

作者 simmer312 次安装23 星标

用 NOAA 或 Open-Meteo 预报扫描 Polymarket 温度市场,支持试运行与实盘控制。

作者 Simmer.Markets215 次安装5 星标

批量或实时镜像顶级 Polymarket 巨鲸仓位,内置再平衡与单笔限额。

作者 simmer123 次安装4 星标

扫描临近结算的 Polymarket 市场,按 60/40 以上强偏度筛选,并在受控仓位下押注高概率一方。

作者 simmer92 次安装

把交易灵感变成可安装的 Simmer 预测市场技能

作者 simmer58 次安装