polymarket-edge-trader

Trades the highest-edge active AION Polymarket market matching a query using a user-supplied fair probability, AION context safeguards, and Kelly-style sizing.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "polymarket-edge-trader" with this command: npx skills add GitHub Copilot/polymarket-edge-trader

Polymarket Edge Trader

Setup

Install the AION SDK:

pip install aion-sdk

This is a template. The default signal is a user-supplied fair YES probability for markets matching MARKET_QUERY. Remix the query, the probability model, or the candidate selection logic. The skill already handles market discovery, dry-run safety, pre-trade context checks, position sizing, operator summaries, and AION trade tagging.

What It Does

  • Scans active AION Polymarket markets matching MARKET_QUERY
  • Scores each candidate against MODEL_PROBABILITY
  • Picks the market with the largest absolute edge
  • Skips trades when edge is too small, slippage is too high, briefing risk alerts are active, or AION warns about flip-flopping
  • Sizes the position with a Kelly-style bankroll model
  • Prints an operator summary with risk state, decisions, and order updates
  • Executes through AionMarketClient.trade() when you explicitly provide --live and a signed order payload

Defaults

  • MARKET_QUERY=bitcoin
  • MODEL_PROBABILITY=0.60
  • TARGET_VENUE=polymarket
  • MAX_MARKETS=25
  • MAX_STAKE_USD=50
  • MIN_EDGE=0.03
  • MAX_SLIPPAGE_PCT=0.15
  • STARTING_BALANCE_USD=1000
  • AION_BASE_URL=https://pm-t1.bxingupdate.com/bvapi
  • AION_KELLY_MULTIPLIER=0.25
  • AION_MIN_EV=0.03
  • WALLET_ADDRESS=
  • AION_SIGNED_ORDER_JSON=

How To Run

Dry-run is the default:

python edge_trader.py

Trade a different query with a custom fair probability:

python edge_trader.py --query "fed" --probability 0.64

Live trading requires an explicit live flag, a wallet address, and a pre-signed order payload:

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 required
  • WALLET_PRIVATE_KEY is optional and only needed for self-custody Polymarket trading
  • WALLET_ADDRESS is required for user-scoped briefing and live order submission
  • AION_SIGNED_ORDER_JSON is only required for live order submission, because the AION SDK expects a complete signed order payload

Remix Ideas

  • Replace MODEL_PROBABILITY with your own model output or external API
  • Swap discover_markets() for briefing.opportunityMarkets or another shortlist source
  • Generate the signed order JSON from your own order builder or wallet flow before calling --live
  • Add sell logic or rebalance logic around existing positions
  • Tighten or relax the context filters for a higher-frequency strategy

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated