{"skill":{"slug":"polymarket-politics-random-1u","displayName":"Polymarket Politics Random 1U","summary":"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, randoml...","description":"---\nname: polymarket-politics-random-1u\ndescription: 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.\nmetadata:\n  author: \"GitHub Copilot\"\n  version: \"1.0.0\"\n  displayName: \"Polymarket Politics Random 1U\"\n  difficulty: \"intermediate\"\n---\n\n# Polymarket Politics Random 1U\n\n> **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.\n\nUse this skill when the user wants a minimal AION SDK trading template for Polymarket politics markets.\n\n## What This Skill Does\n\n- Uses the documented AION SDK pattern from the building-skills guide.\n- Searches active Polymarket markets with politics-related keywords.\n- Filters to politics-style markets and randomly selects one candidate.\n- Checks market context before trading.\n- Defaults to dry-run mode.\n- Places a live 1 USD trade only when the operator explicitly enables live execution.\n\n## Inputs To Request From The User\n\nAsk the user for these secrets or environment values before live trading:\n\n1. `AION_API_KEY` for authenticated AION SDK access.\n2. `WALLET_PRIVATE_KEY` if the user wants self-custody live trading rather than a managed wallet setup.\n3. Optional `WALLET_ADDRESS` if the operator wants personalized context checks.\n\nDo not write secrets into repository files.\n\n## How It Works\n\n1. Initialize the SDK client with the AION API key.\n2. Search markets with politics-related queries such as `politics`, `election`, `president`, and `senate`.\n3. Keep only active politics candidates.\n4. Randomly choose one market.\n5. Call market context before trading and skip on warnings.\n6. Default to dry-run unless `--live` or `RUN_LIVE=true` is provided.\n7. For live execution, submit a 1 USD YES trade with `source` and `skill_slug` attached.\n\n## Files\n\n- [clawhub.json](./clawhub.json)\n- [politics_random_1u.py](./politics_random_1u.py)\n\n## Run Examples\n\nDry-run:\n\n```bash\npython politics_random_1u.py\n```\n\nLive run:\n\n```bash\npython politics_random_1u.py --live\n```\n\n## Safety Rules\n\n- Always default to dry-run.\n- Always include `source`, `skill_slug`, and human-readable `reasoning`.\n- Always pass `venue=\"polymarket\"` on read paths.\n- Never hardcode API keys or private keys.\n- Treat the random entry logic as a demo template, not a production strategy.","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":354,"installsAllTime":0,"installsCurrent":0,"stars":0,"versions":1},"createdAt":1778034930206,"updatedAt":1779076236978},"latestVersion":{"version":"1.0.0","createdAt":1778034930206,"changelog":"Initial release: AION SDK skill that searches active Polymarket politics markets, randomly selects one, and defaults to a 1 USD dry-run/live trade template.","license":"MIT-0"},"metadata":null,"owner":{"handle":"fivegive249-ship-it","userId":"s172jk7etnpkb41q5etc69xb0585hn29","displayName":"fivegive249-ship-it","image":"https://avatars.githubusercontent.com/u/273296578?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1780090750817}}