Polymarket Edge Trader
by @fivegive249-ship-it
Trades the highest-edge active AION Polymarket market matching a query using a user-supplied fair probability, AION context safeguards, and Kelly-style sizing.
clawhub install polymarket-edge-traderπ About This Skill
name: polymarket-edge-trader description: Trades the highest-edge active AION Polymarket market matching a query using a user-supplied fair probability, AION context safeguards, and Kelly-style sizing. metadata: author: "GitHub Copilot" version: "2.0.0" displayName: "Polymarket Edge Trader" difficulty: "intermediate"
Polymarket Edge Trader
> This is a template. The default signal is a user-supplied fair YES probability for markets matching MARKET_QUERY β
> remix it with your own model output, external API, or ML prediction.
> The skill handles all the plumbing: market discovery, context safeguards, position sizing, trade execution,
> operator summaries, auto-redemption, and AION trade tagging. Your job is to provide the alpha.
Setup
Install the AION SDK:
pip install aionmarket-sdk
Key Safeguards (Built-In)
AION_KELLY_MULTIPLIER) for position control.--live is explicitly passed with signed order payload.--daemon) uses randomized wait intervals to avoid synchronized order bursts.What It Does
MARKET_QUERYMODEL_PROBABILITYAionMarketClient.trade() when you explicitly provide --live and a signed order payloadDefaults
MARKET_QUERY=bitcoinMODEL_PROBABILITY=0.60TARGET_VENUE=polymarketMAX_MARKETS=25MAX_STAKE_USD=50MIN_EDGE=0.03MAX_SLIPPAGE_PCT=0.15STARTING_BALANCE_USD=1000AION_BASE_URL=https://pm-t1.bxingupdate.com/bvapiAION_KELLY_MULTIPLIER=0.25AION_MIN_EV=0.03WALLET_ADDRESS=AION_SIGNED_ORDER_JSON=How To Run
Dry-run mode (default β no orders submitted):
python edge_trader.py
Scan a different market with custom probability:
python edge_trader.py --query "fed" --probability 0.64
Show ranked candidates before selecting best:
python edge_trader.py --show-candidates
Daemon mode with jitter (for cron/automaton orchestration):
python edge_trader.py --daemon --poll-interval 60
Live trading (requires --live, wallet address, and pre-signed order JSON):
WALLET_ADDRESS=0xYourWallet \
AION_SIGNED_ORDER_JSON='{"maker":"...","signer":"...","taker":"0x0000000000000000000000000000000000000000","tokenId":"...","makerAmount":"...","takerAmount":"...","side":"BUY","expiration":"...","signature":"...","salt":"...","signatureType":0,"nonce":"...","feeRateBps":"0"}' \
python edge_trader.py --query "bitcoin" --probability 0.58 --live
Required Credentials
AION_API_KEY is always requiredWALLET_PRIVATE_KEY is optional and only needed for self-custody Polymarket tradingWALLET_ADDRESS is required for user-scoped briefing and live order submissionAION_SIGNED_ORDER_JSON is only required for live order submission, because the AION SDK expects a complete signed order payloadRemix Ideas
The skill's plumbing is fixed (safeguards, sizing, execution, summaries). Your alpha is:
Signal replacement:
MODEL_PROBABILITY with your own ML model output, external API call, or ensemble forecast.discover_markets() for briefing.opportunityMarkets (pre-curated high-quality markets).Advanced position management:
get_bankroll() to scale position size dynamically with account growth.Extended safeguards:
MIN_EDGE for high-frequency strategies; relax for lower-frequency.Operational tweaks:
AION_KELLY_MULTIPLIER for more conservative or aggressive sizing.--max-slippage-pct and MAX_STAKE_USD as dynamic parameters from a config file.βοΈ Configuration
Install the AION SDK:
pip install aionmarket-sdk