Xpersona
A

Aionmarket Sdk Divergence Trader

CLAWHUB · Unverified

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

62
Rank
84
Safety
2.5k
Downloads

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

Install and run

Setup complexity: low.

clawhub skill install s174p432zdjmq0szb7x7pvv8zx84s03q:aionmarket-sdk-divergence-trader
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. 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"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

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"
  }
}

Sponsored

Ads related to Aionmarket Sdk Divergence Trader and adjacent AI workflows.