Aionmarket Sdk Divergence Trader
Trades a market when your estimated probability diverges from the live market price, with dry-run by default, context checks, reasoning tags, and optional li... Skill: Aionmarket Sdk Divergence Trader Owner: ssj124 Summary: Trades a market when your estimated probability diverges from the live market price, with dry-run by default, context checks, reasoning tags, and optional li... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-25T07:44:00.764Z | auto AION Market Divergence Trader 1.0.0 — Initial Release - Provides a template for disciplined probability-based trading o
Rank
62
Safety
84
Downloads
2.5k
Updated
Oct 9, 2026
Version
1.0.0
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 2.5K downloads reported by the source. Last updated 10/9/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 9, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 9, 2026
- Adoption signal
- 2.5K downloadsadoption · observed Oct 9, 2026
- Latest release
- 1.0.0release · observed Apr 25, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s174p432zdjmq0szb7x7pvv8zx84s03q:aionmarket-sdk-divergence-trader- 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: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-ssj124-aionmarket-sdk-divergence-trader/snapshot"
Documentation
CLAWHUB
22,076 characters of source documentation, loaded on request.
Extracted files
4 files captured from the source.
SKILL.md
---
name: aionmarket-trading
description: Trades a market when your estimated probability diverges from the live market price, with dry-run by default, context checks, reasoning tags, and optional live execution through AION.
metadata:
author: "Saul Su"
version: "1.0.0"
displayName: "AION Market Divergence Trader"
difficulty: "intermediate"
---
# AION Market Divergence Trader
This skill is a publishable trading template for AION Market. It compares your probability estimate with the live market price, checks market context, and only places a trade when the edge clears a configurable threshold. aionmarket-sdk
> **This is a template.** The default signal is probability divergence: if your model thinks the event is more likely than the market implies, the skill buys YES; if less likely, it buys NO. Remix the signal source with your own model, API, or research process. The skill handles trade discipline, operator output, and AION trade tagging.
## When To Use
Use this skill when an agent already has a probability estimate for a specific market and needs a safe execution wrapper around that signal.
## Skill Folder
This skill ships with three files:
- SKILL.md
- clawhub.json
- divergence_trader.py
## Defaults
- Venue: polymarket
- Trade size: 5.0
- Minimum edge: 0.05
- Execution mode: dry-run unless `--live` is passed
- Trade source: `sdk:aionmarket-trading`
- Skill slug: `aionmarket-trading`
## Required Inputs
The skill expects:
- `AION_API_KEY` or `AIONMARKET_API_KEY`
- `MARKET_ID` for the target market
- `MY_PROBABILITY` as a decimal between `0` and `1`
Optional inputs:
- `VENUE` such as `polymarket` or `kalshi`
- `TRADE_SIZE`
- `MIN_EDGE`
- `REASONING_PREFIX`
## Safety Rules
1. Always fetch market context before deciding.
2. Always default to dry-run. Live trading requires explicit `--live`.
3. Always attach `source`, `skill_slug`, and human-readable `reasoning`.
4. Skip trading when context reports warnings or flip-flop risk.
5. Return `HOLD` when the edge is smaller than the configured threshold.
## Decision Logic
1. Read the live market probability from market context.
2. Compute `edge = my_probability - market_probability`.
3. If `edge >= min_edge`, buy YES.
4. If `edge <= -min_edge`, buy NO.
5. Otherwise hold.
## Example Commands
Dry-run:
```bash
python divergence_trader.py --market-id 12345 --my-probability 0.62
```
Live trade:
```bash
python divergence_trader.py --market-id 12345 --my-probability 0.62 --amount 5 --live
```
## Expected Operator Output
The script prints an operator-style summary:
```text
Skill: aionmarket-trading
Venue: polymarket
Risk alerts:
- none
Decision:
- MARKET_ID: TRADE YES size=5.0 reason=edge +7.0%
```
## Remix Ideas
- Replace `MY_PROBABILITY` with a forecast model output.
- Drive `MARKET_ID` from a market scanner.
- Add portfolio-aware sizing before the trade call.
- Extend the loop to poll with jitter and auto-redeem resolved positions.
key=private_key,
chain_i_meta.json
{
"ownerId": "kn75fv5d7z6aj8q78vn72zsbnn84rb61",
"slug": "aionmarket-sdk-divergence-trader",
"version": "1.0.0",
"publishedAt": 1777103040764
}skill-card.md
## Description: Trades a market when your estimated probability diverges from the live market price, with dry-run by default, context checks, reasoning tags, and optional live execution through AION. This skill is ready for commercial/non-commercial use. ## Publisher: [ssj124](https://clawhub.ai/user/ssj124) ### License/Terms of Use: MIT-0 ## Use Case: Developers and trading operators use this skill when an agent already has a probability estimate for a specific prediction market and needs a disciplined wrapper for checking live market context, calculating edge, and optionally executing an AION trade. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The skill can perform sensitive live-trading actions and may involve wallet approvals or credential custody. Mitigation: Keep dry-run mode enabled by default, require explicit confirmation before live trading or wallet-affecting actions, and use only test funds or a tightly limited account. Risk: Trading SDK dependencies are not pinned to exact versions. Mitigation: Pin and review dependency versions before using the skill with real credentials or funds. ## Reference(s): - [ClawHub skill page](https://clawhub.ai/ssj124/skills/aionmarket-sdk-divergence-trader) - [Polymarket CLOB API endpoint](https://clob.polymarket.com) ## Skill Output: **Output Type(s):** [Guidance, Shell commands, Code, Configuration, Text] **Output Format:** [Markdown guidance with bash and Python examples; the script prints text summaries and JSON trade results.] **Output Parameters:** [1D] **Other Properties Related to Output:** [Requires AION API credentials and market inputs; live execution occurs only when the --live flag is used.] ## Skill Version(s): 1.0.0 (source: server release metadata and skill metadata) ## Ethical Considerations: Users 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.
clawhub.json
{
"emoji": "chart_with_upwards_trend",
"primaryEnv": "AION_API_KEY",
"requires": {
"pip": ["aion-sdk", "python-dotenv"],
"env": ["AION_API_KEY"]
},
"envVars": [
{
"name": "AION_API_KEY",
"required": true,
"description": "Main AION API key used by the skill."
},
{
"name": "AIONMARKET_API_KEY",
"required": false,
"description": "Legacy alias supported by the script when AION_API_KEY is not set."
},
{
"name": "MARKET_ID",
"required": false,
"description": "Target market id for automated runs."
},
{
"name": "MY_PROBABILITY",
"required": false,
"description": "Your probability estimate between 0 and 1."
},
{
"name": "VENUE",
"required": false,
"description": "Venue filter for reads and trades, such as polymarket or kalshi."
}
],
"cron": "*/15 * * * *",
"automaton": {
"managed": true,
"entrypoint": "divergence_trader.py"
}
}AionUi
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!
activepieces
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
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/ssj124/skills/aionmarket-sdk-divergence-trader",
"sourceUrl": "https://clawhub.ai/ssj124/skills/aionmarket-sdk-divergence-trader",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T14:05:40.968Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-ssj124-aionmarket-sdk-divergence-trader/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-ssj124-aionmarket-sdk-divergence-trader/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-09T14:05:40.968Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "2.5K downloads",
"href": "https://clawhub.ai/ssj124/aionmarket-sdk-divergence-trader",
"sourceUrl": "https://clawhub.ai/ssj124/aionmarket-sdk-divergence-trader",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-09T14:05:40.968Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.0",
"href": "https://clawhub.ai/ssj124/aionmarket-sdk-divergence-trader",
"sourceUrl": "https://clawhub.ai/ssj124/aionmarket-sdk-divergence-trader",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-25T07:44:00.764Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-ssj124-aionmarket-sdk-divergence-trader/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-ssj124-aionmarket-sdk-divergence-trader/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.0",
"description": "AION Market Divergence Trader 1.0.0 — Initial Release - Provides a template for disciplined probability-based trading on AION Market venues (default: Polymarket), with probability divergence as the core signal. - Includes dry-run mode by default, with safe execution controls; live trading requires explicit activation. - Fetches and checks live market context (prices, warnings) before any trade; skips trades with alerts or insufficient edge. - Takes user/model probability input and only executes trades meeting a configurable minimum edge threshold. - Supports reasoning and tagging for auditability; prints operator-style summaries after each decision. - Easily remixable for different models, venues, and risk management workflows.",
"href": "https://clawhub.ai/ssj124/aionmarket-sdk-divergence-trader",
"sourceUrl": "https://clawhub.ai/ssj124/aionmarket-sdk-divergence-trader",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-25T07:44:00.764Z",
"isPublic": true
}
]
}Record generated Oct 9, 2026.
