polymarket-politics-random-1u

Build and run a Polymarket politics-market trading skill with the AION SDK. Use when the user wants to search active political markets on Polymarket, randomly choose one market, and place a 1 USD trade through Aionmarket using an API key and optionally a wallet private key for self-custody live trading.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "polymarket-politics-random-1u" with this command: npx skills add GitHub Copilot/polymarket-politics-random-1u

Polymarket Politics Random 1U

This is a template. The default signal is intentionally simple: search active politics markets, pick one at random, and buy 1 USD of YES. Remix the market filter, sizing rule, side selection, or risk checks while keeping the AION plumbing intact.

Use this skill when the user wants a minimal AION SDK trading template for Polymarket politics markets.

What This Skill Does

  • Uses the documented AION SDK pattern from the building-skills guide.
  • Searches active Polymarket markets with politics-related keywords.
  • Filters to politics-style markets and randomly selects one candidate.
  • Checks market context before trading.
  • Defaults to dry-run mode.
  • Places a live 1 USD trade only when the operator explicitly enables live execution.

Inputs To Request From The User

Ask the user for these secrets or environment values before live trading:

  1. AION_API_KEY for authenticated AION SDK access.
  2. WALLET_PRIVATE_KEY if the user wants self-custody live trading rather than a managed wallet setup.
  3. Optional WALLET_ADDRESS if the operator wants personalized context checks.

Do not write secrets into repository files.

How It Works

  1. Initialize the SDK client with the AION API key.
  2. Search markets with politics-related queries such as politics, election, president, and senate.
  3. Keep only active politics candidates.
  4. Randomly choose one market.
  5. Call market context before trading and skip on warnings.
  6. Default to dry-run unless --live or RUN_LIVE=true is provided.
  7. For live execution, submit a 1 USD YES trade with source and skill_slug attached.

Files

Run Examples

Dry-run:

python politics_random_1u.py

Live run:

python politics_random_1u.py --live

Safety Rules

  • Always default to dry-run.
  • Always include source, skill_slug, and human-readable reasoning.
  • Always pass venue="polymarket" on read paths.
  • Never hardcode API keys or private keys.
  • Treat the random entry logic as a demo template, not a production strategy.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Debugging R Environment And Dependencies

Diagnose and fix R environment issues, including package installation failures, dependency conflicts, system library problems, renv errors, and Bioconductor...

Registry SourceRecently Updated
General

Sci Data Extractor

AI-powered tool for extracting structured data from scientific literature PDFs

Registry SourceRecently Updated
General

MoreLogin

Manage MoreLogin anti-detect browser profiles and cloud phones through the official Local API (http://127.0.0.1:40000), including browser profile lifecycle,...

Registry SourceRecently Updated
General

realtime-interact-overlay

实时交互浮窗技能。在需要用户确认、输入或交互的场景中,通过浮窗方式在当前操作界面旁边进行交互, 而不是回到OpenClaw聊天窗口。适用于:(1) 评论内容需要用户确认后执行,(2) 删除文件前需要用户确认, (3) 购物付款时需要输入密码,(4) 任何需要即时交互的场景。支持系统级浮窗和浏览器内浮窗。

Registry SourceRecently Updated