360 Secure SkillHub
360 安全技能中心

Polymarket Politics Random 1U

基于 AION SDK 的 Polymarket 政治类市场交易模板:按政治关键词检索活跃市场并随机选一个,先查市场上下文,默认以 dry-run 运行,仅在显式提供 --live 或 RUN_LIVE=true 时下单 1 美元 YES。需 AION_API_KEY,可选钱包私钥用于自托管实盘。

fivegive249-ship-it
fivegive249-ship-it
热度 34.10
最近更新 2026-05-18 11:50:36
分类:自动化依赖:代码执行 / 第三方 API应用场景:自动化脚本 / 财务 / 市场分析

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add polymarket-politics-random-1u
Metadata
name
polymarket-politics-random-1u
description
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.
metadata
{"author":"GitHub Copilot","version":"1.0.0","displayName":"Polymarket Politics Random 1U","difficulty":"intermediate"}

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.