> 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.
Install the AION SDK:
pip install aionmarket-sdk
AION_KELLY_MULTIPLIER) for position control.--live is explicitly passed with signed order payload.--daemon) uses randomized wait intervals to avoid synchronized order bursts.MARKET_QUERYMODEL_PROBABILITYAionMarketClient.trade() when you explicitly provide --live and a signed order payloadMARKET_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=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
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 payloadThe 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.共 1 个版本