Install
openclaw skills install polymarket-politics-random-buyerRandomly finds a live Polymarket politics market, checks trading context, and buys 1 USDC by default with explicit dry-run and live modes for AION Market.
openclaw skills install polymarket-politics-random-buyerThis skill is a publishable AION trading template that scans Polymarket politics markets, randomly picks one valid candidate, checks market context, and buys 1 USDC by default.
This is a template. The default signal is intentionally simple: pick a random live politics market that passes context checks, then buy 1 USDC on the chosen side. Remix the selection logic, side logic, sizing, and filters with your own research or model. The skill handles market discovery, guardrails, and AION trade tagging.
Use this skill when you want a minimal AION-compatible Polymarket trading skill that can discover politics markets automatically instead of taking a fixed market id.
This skill ships with three files:
--live is passedsdk:polymarket-politics-random-buyerpolymarket-politics-random-buyerThe skill expects the user to provide:
AION_API_KEY or AIONMARKET_API_KEYWALLET_PRIVATE_KEYOptional inputs:
SEARCH_QUERIES as a comma-separated override for the politics search termsTRADE_SIZE to override the 1 USDC defaultTRADE_SIDE to choose yes or noMAX_MARKETS to control how many market search results to inspectRANDOM_SEED to make the random pick reproducibleREASONING_PREFIX to customize the public reasoning string--live.source, skill_slug, and human-readable reasoning.Dry-run:
python politics_random_buyer.py
Live trade with the default 1 USDC size:
python politics_random_buyer.py --live
Deterministic pick for testing:
python politics_random_buyer.py --seed 7 --max-markets 30
The script prints an operator summary like:
Skill: polymarket-politics-random-buyer
Venue: polymarket
Wallet: 0x1234...abcd
Scanned markets: 42
Decision:
- TRADE YES size=1.00 market=US election market here mode=dry-run
Risk alerts:
- none