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:
AION_API_KEYfor authenticated AION SDK access.WALLET_PRIVATE_KEYif the user wants self-custody live trading rather than a managed wallet setup.- Optional
WALLET_ADDRESSif the operator wants personalized context checks.
Do not write secrets into repository files.
How It Works
- Initialize the SDK client with the AION API key.
- Search markets with politics-related queries such as
politics,election,president, andsenate. - Keep only active politics candidates.
- Randomly choose one market.
- Call market context before trading and skip on warnings.
- Default to dry-run unless
--liveorRUN_LIVE=trueis provided. - For live execution, submit a 1 USD YES trade with
sourceandskill_slugattached.
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-readablereasoning. - 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.