{"id":"ff3ccda1-9778-496b-8325-c65f4c55c1c8","entityType":"agent","slug":"clawhub-skybinjf-momentum-polymarket-trader","name":"Aion Test Skill","canonicalUrl":"https://www.xpersona.co/agent/clawhub-skybinjf-momentum-polymarket-trader","canonicalPath":"/agent/clawhub-skybinjf-momentum-polymarket-trader","generatedAt":"2026-10-10T13:41:52.165Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-10T10:01:26.727Z","emptyReason":null},"description":"Automated Polymarket trading skill based on price momentum signals—executes trades when market trends are detected Skill: Aion Test Skill Owner: skybinjf Summary: Automated Polymarket trading skill based on price momentum signals—executes trades when market trends are detected Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-27T05:54:47.717Z | auto Initial release of automated trading skill for Polymarket using price momentum. - Executes trades based on detected market trends and price momentum signals - Includes built-in ris","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s17d60gxzm0khfph1m86prw7fn85msga:momentum-polymarket-trader","sourceUrl":"https://clawhub.ai/skybinjf/momentum-polymarket-trader","homepage":"https://clawhub.ai/skybinjf/skills/momentum-polymarket-trader","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/skybinjf/momentum-polymarket-trader","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/skybinjf/skills/momentum-polymarket-trader","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":64,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Automated Polymarket trading skill based on price momentum signals—executes trades when market trends are detected Skill: Aion Test Skill Owner: skybinjf Summar"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-10T10:01:26.727Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T10:01:26.727Z","emptyReason":null},"stars":null,"forks":null,"downloads":1509,"packageName":null,"latestVersion":"1.0.0","tractionLabel":"1.5K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T10:01:26.727Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T10:01:26.727Z","lastCrawledAt":"2026-10-10T10:01:26.727Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T10:01:26.727Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.0","createdAt":"2026-04-27T05:54:47.717Z","changelog":"Initial release of automated trading skill for Polymarket using price momentum. - Executes trades based on detected market trends and price momentum signals - Includes built-in risk management, flip-flop detection, and auto-redemption of winnings - Provides detailed reasoning logs for every trade decision - Offers customizable signal function for advanced strategies - Supports both dry-run (default) and live trading modes - Easy configuration via environment variables","fileCount":7,"zipByteSize":12082}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s17d60gxzm0khfph1m86prw7fn85msga:momentum-polymarket-trader","setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skybinjf-momentum-polymarket-trader/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skybinjf-momentum-polymarket-trader/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skybinjf-momentum-polymarket-trader/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-skybinjf-momentum-polymarket-trader/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-skybinjf-momentum-polymarket-trader/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-skybinjf-momentum-polymarket-trader/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T13:41:52.165Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skybinjf-momentum-polymarket-trader/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skybinjf-momentum-polymarket-trader/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skybinjf-momentum-polymarket-trader/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-skybinjf-momentum-polymarket-trader/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-10T10:01:26.727Z","emptyReason":null},"readme":"Skill: Aion Test Skill\n\nOwner: skybinjf\n\nSummary: Automated Polymarket trading skill based on price momentum signals—executes trades when market trends are detected\n\nTags: latest:1.0.0\n\nVersion history:\n\nv1.0.0 | 2026-04-27T05:54:47.717Z | auto\n\nInitial release of automated trading skill for Polymarket using price momentum.\n\n- Executes trades based on detected market trends and price momentum signals\n- Includes built-in risk management, flip-flop detection, and auto-redemption of winnings\n- Provides detailed reasoning logs for every trade decision\n- Offers customizable signal function for advanced strategies\n- Supports both dry-run (default) and live trading modes\n- Easy configuration via environment variables\n\nArchive index:\n\nArchive v1.0.0: 7 files, 12082 bytes\n\nFiles: clawhub.json (1106b), momentum_trader.py (15382b), README.md (5332b), requirements.txt (33b), skill-card.md (2462b), SKILL.md (4908b), _meta.json (145b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: momentum-polymarket-trader\ndescription: Automated Polymarket trading skill based on price momentum signals—executes trades when market trends are detected\nmetadata:\n  author: \"AION Trader\"\n  version: \"1.0.0\"\n  displayName: \"Momentum Polymarket Trader\"\n  difficulty: \"intermediate\"\n---\n\n# Momentum Polymarket Trader\n\nAn automated trading skill that executes trades on Polymarket based on price momentum and market trend signals.\n\n## Features\n\n- 🎯 Automatically monitors opportunity markets on Polymarket\n- 📊 Analyzes price momentum and trend signals\n- ⚠️ Built-in risk management and flip-flop detection\n- 🔄 Auto-redeems winnings from resolved markets\n- 📝 Detailed reasoning logs for every trade\n\n## How It Works\n\nThis skill runs every 15 minutes and:\n\n1. **Fetches Market Briefing** - Gets current opportunity markets from AION API\n2. **Risk Check** - Checks for risk alerts; pauses trading if any exist\n3. **Market Analysis** - For each candidate market:\n   - Fetches market context and trading discipline data\n   - Calculates price momentum indicators\n   - Evaluates trading edge\n4. **Executes Trades** - Trades when positive edge is found with no warnings\n5. **Auto-Redeems** - Periodically redeems winnings from resolved markets\n\n## Remixable Template\n\n> **This is a customizable template.** The default signal is based on simple price momentum — \n> you can replace it with:\n> - Different technical indicators (RSI, MACD, etc.)\n> - Machine learning model predictions\n> - External data sources (news, social media sentiment, etc.)\n> - Custom market scoring algorithms\n> \n> The skill handles all the plumbing (market discovery, order execution, position management, safeguards).\n> Your agent provides the alpha — just replace the `calculate_signal()` function.\n\n## Configuration\n\n### Required Environment Variables\n- `AION_API_KEY` - Your AION SDK API key (get from https://pm-t1.bxingupdate.com/agents)\n\n### Optional Environment Variables\n- `WALLET_PRIVATE_KEY` - Only needed for external-wallet self-custody trading\n- `POLYGON_RPC_URL` - Custom Polygon RPC endpoint (optional)\n- `MAX_POSITION_SIZE` - Maximum position per market (default: 10 USDC)\n- `MIN_EDGE_THRESHOLD` - Minimum edge threshold for trading (default: 0.05, i.e., 5%)\n\n## Running Modes\n\n### Dry-run Mode (Default)\n```bash\npython momentum_trader.py\n```\nThis simulates trades without executing real orders.\n\n### Live Trading Mode\n```bash\npython momentum_trader.py --live\n```\n⚠️ **Warning**: This executes trades with real funds!\n\n## Customizing Signals\n\nEdit the `calculate_signal()` function in `momentum_trader.py` to implement your trading strategy:\n\n```python\ndef calculate_signal(market_data, context):\n    \"\"\"\n    Replace this function to implement your custom signal logic\n    \n    Returns:\n    - side: \"yes\" or \"no\" or None (no trade)\n    - confidence: confidence level between 0-1\n    - reasoning: human-readable trade rationale\n    \"\"\"\n    # Your custom logic here\n    pass\n```\n\n## Risk Management\n\nThis skill includes multiple layers of protection:\n\n1. **Flip-flop detection** - Avoids frequent position reversals\n2. **Slippage estimation** - Reduces trade size in high-slippage markets\n3. **Risk alert checks** - Pauses trading when account-level risks are detected\n4. **Position limits** - Maximum exposure per market\n5. **Edge validation** - Only trades when expected edge exceeds threshold\n\n## Monitoring & Logs\n\nSkill output includes:\n- Risk status summary\n- Decision for each market (TRADE, HOLD, SKIP)\n- Position changes and order updates\n- Trade execution results\n\n## Example Output\n\n```\n======================================================================\nSkill: momentum-polymarket-trader\nVenue: polymarket (USDC.e)\n\nRisk alerts:\n- none\n\nDecisions:\n- \"Will Bitcoin reach $100K in 2025?\": HOLD (edge too small +2.1%)\n- \"2026 US Midterm Elections\": TRADE YES size=5 reason=momentum signal +7.8%\n- \"OpenAI valuation over $300B?\": SKIP (flip-flop warning)\n\nOrder updates:\n- cancelled ORDER_123 (stale)\n- new order ORDER_456 submitted\n\nAuto-redemptions:\n- redeemed market MKT_789: tx=0xabc...def\n```\n\n## Technical Details\n\n- **Polling interval**: 15 minutes (with random jitter to avoid synchronization)\n- **Dependencies**: aion-sdk, requests\n- **Python version**: 3.8+\n- **Network**: Polygon (USDC.e)\n\n## Troubleshooting\n\n### \"No opportunity markets found\"\nCheck your AION agent settings for risk thresholds and market filters.\n\n### \"Invalid API key\"\nEnsure the `AION_API_KEY` environment variable is set correctly.\n\n### \"Insufficient balance\"\nCheck your wallet balance at https://pm-t1.bxingupdate.com/agents\n\n## Next Steps\n\n1. Install skill: `npx clawhub@latest install momentum-polymarket-trader`\n2. Configure your `AION_API_KEY`\n3. Test in dry-run mode\n4. Customize signal logic\n5. Switch to live mode (use caution!)\n\n## License\n\nMIT License - free to use, modify, and distribute.\n\nFile v1.0.0:README.md\n\n# Momentum Polymarket Trader\n\nA complete AION automated trading skill that executes trades on Polymarket based on price momentum signals.\n\n## 📁 File Structure\n\n```\nmomentum-polymarket-trader/\n├── SKILL.md              # AION skill specification and documentation\n├── clawhub.json          # ClawHub configuration and automation settings\n├── momentum_trader.py    # Main trading logic\n├── requirements.txt      # Python dependencies\n└── README.md            # This file\n```\n\n## 🚀 Quick Start\n\n### 1. Install Dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n### 2. Configure Environment Variables\n\n```bash\nexport AION_API_KEY=\"your-api-key\"  # Get from https://pm-t1.bxingupdate.com/agents\n```\n\nOptional configuration:\n```bash\nexport MAX_POSITION_SIZE=\"10.0\"      # Max trade amount per market (USDC)\nexport MIN_EDGE_THRESHOLD=\"0.05\"     # Minimum trading edge (5%)\n```\n\n### 3. Test Run (Dry-run Mode)\n\n```bash\n# Single execution\npython momentum_trader.py\n\n# Continuous mode\npython momentum_trader.py --continuous\n```\n\n### 4. Live Trading (⚠️ Use Caution)\n\n```bash\n# Single live trade\npython momentum_trader.py --live\n\n# Continuous live trading\npython momentum_trader.py --live --continuous\n```\n\n## 🎯 Features\n\n- ✅ **Auto Market Discovery** - Monitors AION-recommended opportunity markets\n- ✅ **Momentum Signal Detection** - Identifies trading opportunities based on price trends\n- ✅ **Multi-layer Risk Management** - Flip-flop detection, slippage estimation, risk alerts\n- ✅ **Auto-Redemption** - Periodically redeems winnings from resolved markets\n- ✅ **Detailed Logging** - Records all decisions and trade reasoning\n- ✅ **Customizable Template** - Easy to replace with your own trading signals\n\n## 🔧 Customizing Strategy\n\nEdit the `calculate_signal()` function in `momentum_trader.py`:\n\n```python\ndef calculate_signal(market: Dict, context: Dict) -> Signal:\n    \"\"\"\n    Implement your custom trading strategy here!\n    \n    You can use:\n    - Technical indicators (RSI, MACD, Bollinger Bands, etc.)\n    - Machine learning models\n    - External data sources (news, social media sentiment, etc.)\n    - Any other signal logic\n    \"\"\"\n    # Your strategy code...\n    pass\n```\n\n## 📊 Example Output\n\n```\n======================================================================\nSkill: momentum-polymarket-trader\nVenue: polymarket\nMode: DRY-RUN (simulation)\n======================================================================\n\n🔄 Checking for positions to redeem...\n✓ Redeemed market abc123...: tx=0xdef456...\n\n📊 Fetching market briefing...\n✓ No risk alerts\n\n🎯 Found 5 opportunity markets\n\nAnalyzing: Will Bitcoin reach $100K in 2025?...\n  • HOLD: No clear momentum signal (YES=0.520, NO=0.480)\n\nAnalyzing: 2026 US Midterm Elections...\n  💰 TRADE YES: Edge 7.8%\n  [DRY-RUN] Simulating trade: YES 6.5 USDC\n  Reason: Positive momentum detected for YES (current price=0.680)\n\n======================================================================\nExecution Summary\n======================================================================\nAuto-redeemed: 1 positions\nMarkets analyzed: 5\nTrades executed: 1\nHold decisions: 3\nMarkets skipped: 1\n======================================================================\n```\n\n## 📦 Publishing to ClawHub\n\n### 1. Publish Skill\n\n```bash\nnpx clawhub@latest publish . --slug momentum-polymarket-trader --version 1.0.0\n```\n\n### 2. Verify Installation\n\n```bash\nnpx clawhub@latest install momentum-polymarket-trader\n```\n\n### 3. Wait for Sync\n\nThe skill will automatically appear in the AION registry within 6 hours: https://pm-t1.bxingupdate.com/agents\n\n### 4. Update Skill\n\n```bash\nnpx clawhub@latest publish . --slug momentum-polymarket-trader --bump patch\n```\n\n## ⚠️ Risk Disclaimer\n\n1. **This is an educational template** - The default momentum strategy is very simple, for demonstration only\n2. **Requires customization** - You should implement your own trading logic and signals\n3. **Live trading risks** - May result in loss of funds, use with caution\n4. **Test thoroughly** - Test extensively in dry-run mode before live trading\n5. **Position management** - Set reasonable `MAX_POSITION_SIZE` to limit risk exposure\n\n## 🛠️ Troubleshooting\n\n### Issue: `No opportunity markets found`\n**Solution**: Check AION agent settings for market filters and risk thresholds\n\n### Issue: `Invalid API key`\n**Solution**: Ensure `AION_API_KEY` environment variable is set correctly\n\n### Issue: `Insufficient balance`\n**Solution**: Check wallet balance at https://pm-t1.bxingupdate.com/agents and top up\n\n### Issue: `Failed to import aion_sdk`\n**Solution**: Run `pip install aion-sdk`\n\n## 📚 Related Resources\n\n- [AION Documentation](https://docs-t.aionmarket.com/)\n- [Building Skills Guide](https://docs-t.aionmarket.com/essentials/building-skills)\n- [ClawHub Documentation](https://clawhub.com/docs)\n- [Polymarket API](https://docs.polymarket.com/)\n\n## 📝 License\n\nMIT License - free to use, modify, and distribute\n\n## 🤝 Contributing\n\nIssues and pull requests are welcome to improve this skill template!\n\n---\n\n**Note**: This is a customizable template skill. The skill handles all infrastructure (market discovery, order execution, position management, safeguards) - you just provide the trading signal (alpha).\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn78708q10z9j2x8bpgf9fk3h185nq26\",\n  \"slug\": \"momentum-polymarket-trader\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1777269287717\n}\n\nFile v1.0.0:skill-card.md\n\n## Description:\n\nAutomated Polymarket trading skill based on price momentum signals that executes trades when market trends are detected.\n\nThis skill is for demonstration purposes and not for production usage.\n\n## Publisher:\n\n[skybinjf](https://clawhub.ai/user/skybinjf)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal developers and agent operators use this skill as a customizable AION template for monitoring Polymarket opportunities, testing momentum-based signals, and optionally executing trades after configuration and review.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Dry-run mode may still perform real account redemptions.\n\nMitigation: Confirm redemption behavior before installation or disable auto-redemption until dry-run boundaries are verified.\n\nRisk: Scheduled or continuous execution can repeatedly act on live market data and accounts.\n\nMitigation: Disable scheduled runs unless explicitly authorized and test single executions before enabling continuous operation.\n\nRisk: Live trading can spend real funds using the configured AION or wallet credentials.\n\nMitigation: Use least-privilege credentials, set conservative position limits, and require explicit review before using live mode.\n\nRisk: Dependencies are version-ranged rather than pinned.\n\nMitigation: Pin and verify dependency versions before production or funded trading use.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/skybinjf/skills/momentum-polymarket-trader)\n- [AION Documentation](https://docs-t.aionmarket.com/)\n- [AION Building Skills Guide](https://docs-t.aionmarket.com/essentials/building-skills)\n- [Polymarket API](https://docs.polymarket.com/)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Shell commands, Configuration, Code]\n\n**Output Format:** [Markdown documentation with shell and Python code blocks; runtime text logs and trade decision summaries]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Requires AION_API_KEY; optional live trading, continuous mode, wallet, RPC, position-size, and edge-threshold configuration.]\n\n## Skill Version(s):\n\n1.0.0 (source: server release metadata and skill metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nFile v1.0.0:clawhub.json\n\n{\n  \"emoji\": \"📈\",\n  \"primaryEnv\": \"AION_API_KEY\",\n  \"requires\": {\n    \"pip\": [\"aion-sdk\", \"requests\"],\n    \"env\": [\"AION_API_KEY\"]\n  },\n  \"envVars\": [\n    {\n      \"name\": \"AION_API_KEY\",\n      \"required\": true,\n      \"description\": \"Your AION SDK API key — get from https://pm-t1.bxingupdate.com/agents\"\n    },\n    {\n      \"name\": \"WALLET_PRIVATE_KEY\",\n      \"required\": false,\n      \"description\": \"Only needed for external-wallet self-custody trading. Not required if using AION managed wallets.\"\n    },\n    {\n      \"name\": \"POLYGON_RPC_URL\",\n      \"required\": false,\n      \"description\": \"Optional custom Polygon RPC endpoint. Uses default RPC if not set.\"\n    },\n    {\n      \"name\": \"MAX_POSITION_SIZE\",\n      \"required\": false,\n      \"description\": \"Maximum position size per market (USDC). Default: 10\"\n    },\n    {\n      \"name\": \"MIN_EDGE_THRESHOLD\",\n      \"required\": false,\n      \"description\": \"Minimum edge threshold required to execute trade (0-1). Default: 0.05 (5%)\"\n    }\n  ],\n  \"cron\": \"*/15 * * * *\",\n  \"automaton\": {\n    \"managed\": true,\n    \"entrypoint\": \"momentum_trader.py\"\n  }\n}\n\nFile v1.0.0:requirements.txt\n\naion-sdk>=0.1.0\nrequests>=2.28.0","readmeExcerpt":"Skill: Aion Test Skill Owner: skybinjf Summary: Automated Polymarket trading skill based on price momentum signals—executes trades when market trends are detected Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-27T05:54:47.717Z | auto Initial release of automated trading skill for Polymarket using price momentum. - Executes trades based on detected market trends and price momentum signals - Includes built-in ris","codeSnippets":[],"executableExamples":[{"language":"bash","snippet":"python momentum_trader.py"},{"language":"bash","snippet":"python momentum_trader.py --live"},{"language":"python","snippet":"def calculate_signal(market_data, context):\n    \"\"\"\n    Replace this function to implement your custom signal logic\n    \n    Returns:\n    - side: \"yes\" or \"no\" or None (no trade)\n    - confidence: confidence level between 0-1\n    - reasoning: human-readable trade rationale\n    \"\"\"\n    # Your custom logic here\n    pass"},{"language":"text","snippet":"======================================================================\nSkill: momentum-polymarket-trader\nVenue: polymarket (USDC.e)\n\nRisk alerts:\n- none\n\nDecisions:\n- \"Will Bitcoin reach $100K in 2025?\": HOLD (edge too small +2.1%)\n- \"2026 US Midterm Elections\": TRADE YES size=5 reason=momentum signal +7.8%\n- \"OpenAI valuation over $300B?\": SKIP (flip-flop warning)\n\nOrder updates:\n- cancelled ORDER_123 (stale)\n- new order ORDER_456 submitted\n\nAuto-redemptions:\n- redeemed market MKT_789: tx=0xabc...def"},{"language":"text","snippet":"momentum-polymarket-trader/\n├── SKILL.md              # AION skill specification and documentation\n├── clawhub.json          # ClawHub configuration and automation settings\n├── momentum_trader.py    # Main trading logic\n├── requirements.txt      # Python dependencies\n└── README.md            # This file"},{"language":"bash","snippet":"pip install -r requirements.txt"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: momentum-polymarket-trader\ndescription: Automated Polymarket trading skill based on price momentum signals—executes trades when market trends are detected\nmetadata:\n  author: \"AION Trader\"\n  version: \"1.0.0\"\n  displayName: \"Momentum Polymarket Trader\"\n  difficulty: \"intermediate\"\n---\n\n# Momentum Polymarket Trader\n\nAn automated trading skill that executes trades on Polymarket based on price momentum and market trend signals.\n\n## Features\n\n- 🎯 Automatically monitors opportunity markets on Polymarket\n- 📊 Analyzes price momentum and trend signals\n- ⚠️ Built-in risk management and flip-flop detection\n- 🔄 Auto-redeems winnings from resolved markets\n- 📝 Detailed reasoning logs for every trade\n\n## How It Works\n\nThis skill runs every 15 minutes and:\n\n1. **Fetches Market Briefing** - Gets current opportunity markets from AION API\n2. **Risk Check** - Checks for risk alerts; pauses trading if any exist\n3. **Market Analysis** - For each candidate market:\n   - Fetches market context and trading discipline data\n   - Calculates price momentum indicators\n   - Evaluates trading edge\n4. **Executes Trades** - Trades when positive edge is found with no warnings\n5. **Auto-Redeems** - Periodically redeems winnings from resolved markets\n\n## Remixable Template\n\n> **This is a customizable template.** The default signal is based on simple price momentum — \n> you can replace it with:\n> - Different technical indicators (RSI, MACD, etc.)\n> - Machine learning model predictions\n> - External data sources (news, social media sentiment, etc.)\n> - Custom market scoring algorithms\n> \n> The skill handles all the plumbing (market discovery, order execution, position management, safeguards).\n> Your agent provides the alpha — just replace the `calculate_signal()` function.\n\n## Configuration\n\n### Required Environment Variables\n- `AION_API_KEY` - Your AION SDK API key (get from https://pm-t1.bxingupdate.com/agents)\n\n### Optional Environment Variables\n- `WALLET_PRIVATE_KEY` - Only needed for external-wallet self-custody trading\n- `POLYGON_RPC_URL` - Custom Polygon RPC endpoint (optional)\n- `MAX_POSITION_SIZE` - Maximum position per market (default: 10 USDC)\n- `MIN_EDGE_THRESHOLD` - Minimum edge threshold for trading (default: 0.05, i.e., 5%)\n\n## Running Modes\n\n### Dry-run Mode (Default)\n```bash\npython momentum_trader.py\n```\nThis simulates trades without executing real orders.\n\n### Live Trading Mode\n```bash\npython momentum_trader.py --live\n```\n⚠️ **Warning**: This executes trades with real funds!\n\n## Customizing Signals\n\nEdit the `calculate_signal()` function in `momentum_trader.py` to implement your trading strategy:\n\n```python\ndef calculate_signal(market_data, context):\n    \"\"\"\n    Replace this function to implement your custom signal logic\n    \n    Returns:\n    - side: \"yes\" or \"no\" or None (no trade)\n    - confidence: confidence level between 0-1\n    - reasoning: human-readable trade rationale\n    \"\"\"\n    # Your custom logic here\n    pass\n```\n\n## Risk Management\n\nThis skil"},{"path":"README.md","content":"# Momentum Polymarket Trader\n\nA complete AION automated trading skill that executes trades on Polymarket based on price momentum signals.\n\n## 📁 File Structure\n\n```\nmomentum-polymarket-trader/\n├── SKILL.md              # AION skill specification and documentation\n├── clawhub.json          # ClawHub configuration and automation settings\n├── momentum_trader.py    # Main trading logic\n├── requirements.txt      # Python dependencies\n└── README.md            # This file\n```\n\n## 🚀 Quick Start\n\n### 1. Install Dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n### 2. Configure Environment Variables\n\n```bash\nexport AION_API_KEY=\"your-api-key\"  # Get from https://pm-t1.bxingupdate.com/agents\n```\n\nOptional configuration:\n```bash\nexport MAX_POSITION_SIZE=\"10.0\"      # Max trade amount per market (USDC)\nexport MIN_EDGE_THRESHOLD=\"0.05\"     # Minimum trading edge (5%)\n```\n\n### 3. Test Run (Dry-run Mode)\n\n```bash\n# Single execution\npython momentum_trader.py\n\n# Continuous mode\npython momentum_trader.py --continuous\n```\n\n### 4. Live Trading (⚠️ Use Caution)\n\n```bash\n# Single live trade\npython momentum_trader.py --live\n\n# Continuous live trading\npython momentum_trader.py --live --continuous\n```\n\n## 🎯 Features\n\n- ✅ **Auto Market Discovery** - Monitors AION-recommended opportunity markets\n- ✅ **Momentum Signal Detection** - Identifies trading opportunities based on price trends\n- ✅ **Multi-layer Risk Management** - Flip-flop detection, slippage estimation, risk alerts\n- ✅ **Auto-Redemption** - Periodically redeems winnings from resolved markets\n- ✅ **Detailed Logging** - Records all decisions and trade reasoning\n- ✅ **Customizable Template** - Easy to replace with your own trading signals\n\n## 🔧 Customizing Strategy\n\nEdit the `calculate_signal()` function in `momentum_trader.py`:\n\n```python\ndef calculate_signal(market: Dict, context: Dict) -> Signal:\n    \"\"\"\n    Implement your custom trading strategy here!\n    \n    You can use:\n    - Technical indicators (RSI, MACD, Bollinger Bands, etc.)\n    - Machine learning models\n    - External data sources (news, social media sentiment, etc.)\n    - Any other signal logic\n    \"\"\"\n    # Your strategy code...\n    pass\n```\n\n## 📊 Example Output\n\n```\n======================================================================\nSkill: momentum-polymarket-trader\nVenue: polymarket\nMode: DRY-RUN (simulation)\n======================================================================\n\n🔄 Checking for positions to redeem...\n✓ Redeemed market abc123...: tx=0xdef456...\n\n📊 Fetching market briefing...\n✓ No risk alerts\n\n🎯 Found 5 opportunity markets\n\nAnalyzing: Will Bitcoin reach $100K in 2025?...\n  • HOLD: No clear momentum signal (YES=0.520, NO=0.480)\n\nAnalyzing: 2026 US Midterm Elections...\n  💰 TRADE YES: Edge 7.8%\n  [DRY-RUN] Simulating trade: YES 6.5 USDC\n  Reason: Positive momentum detected for YES (current price=0.680)\n\n======================================================================\nExecution Summary\n==========================="},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn78708q10z9j2x8bpgf9fk3h185nq26\",\n  \"slug\": \"momentum-polymarket-trader\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1777269287717\n}"},{"path":"skill-card.md","content":"## Description:\n\nAutomated Polymarket trading skill based on price momentum signals that executes trades when market trends are detected.\n\nThis skill is for demonstration purposes and not for production usage.\n\n## Publisher:\n\n[skybinjf](https://clawhub.ai/user/skybinjf)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal developers and agent operators use this skill as a customizable AION template for monitoring Polymarket opportunities, testing momentum-based signals, and optionally executing trades after configuration and review.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Dry-run mode may still perform real account redemptions.\n\nMitigation: Confirm redemption behavior before installation or disable auto-redemption until dry-run boundaries are verified.\n\nRisk: Scheduled or continuous execution can repeatedly act on live market data and accounts.\n\nMitigation: Disable scheduled runs unless explicitly authorized and test single executions before enabling continuous operation.\n\nRisk: Live trading can spend real funds using the configured AION or wallet credentials.\n\nMitigation: Use least-privilege credentials, set conservative position limits, and require explicit review before using live mode.\n\nRisk: Dependencies are version-ranged rather than pinned.\n\nMitigation: Pin and verify dependency versions before production or funded trading use.\n\n## Reference(s):\n\n- [ClawHub skill release](https://clawhub.ai/skybinjf/skills/momentum-polymarket-trader)\n- [AION Documentation](https://docs-t.aionmarket.com/)\n- [AION Building Skills Guide](https://docs-t.aionmarket.com/essentials/building-skills)\n- [Polymarket API](https://docs.polymarket.com/)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Shell commands, Configuration, Code]\n\n**Output Format:** [Markdown documentation with shell and Python code blocks; runtime text logs and trade decision summaries]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Requires AION_API_KEY; optional live trading, continuous mode, wallet, RPC, position-size, and edge-threshold configuration.]\n\n## Skill Version(s):\n\n1.0.0 (source: server release metadata and skill metadata)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment."},{"path":"clawhub.json","content":"{\n  \"emoji\": \"📈\",\n  \"primaryEnv\": \"AION_API_KEY\",\n  \"requires\": {\n    \"pip\": [\"aion-sdk\", \"requests\"],\n    \"env\": [\"AION_API_KEY\"]\n  },\n  \"envVars\": [\n    {\n      \"name\": \"AION_API_KEY\",\n      \"required\": true,\n      \"description\": \"Your AION SDK API key — get from https://pm-t1.bxingupdate.com/agents\"\n    },\n    {\n      \"name\": \"WALLET_PRIVATE_KEY\",\n      \"required\": false,\n      \"description\": \"Only needed for external-wallet self-custody trading. Not required if using AION managed wallets.\"\n    },\n    {\n      \"name\": \"POLYGON_RPC_URL\",\n      \"required\": false,\n      \"description\": \"Optional custom Polygon RPC endpoint. Uses default RPC if not set.\"\n    },\n    {\n      \"name\": \"MAX_POSITION_SIZE\",\n      \"required\": false,\n      \"description\": \"Maximum position size per market (USDC). Default: 10\"\n    },\n    {\n      \"name\": \"MIN_EDGE_THRESHOLD\",\n      \"required\": false,\n      \"description\": \"Minimum edge threshold required to execute trade (0-1). Default: 0.05 (5%)\"\n    }\n  ],\n  \"cron\": \"*/15 * * * *\",\n  \"automaton\": {\n    \"managed\": true,\n    \"entrypoint\": \"momentum_trader.py\"\n  }\n}"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"Automated Polymarket trading skill based on price momentum signals—executes trades when market trends are detected Skill: Aion Test Skill Owner: skybinjf Summary: Automated Polymarket trading skill based on price momentum signals—executes trades when market trends are detected Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-27T05:54:47.717Z | auto Initial release of automated trading skill for Polymarket using price momentum. - Executes trades based on detected market trends and price momentum signals - Includes built-in ris","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":1370,"uniquenessScore":45,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T10:01:26.727Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-10T10:01:26.727Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T13:41:52.165Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}