Xpersona
S

Superior Trade

CLAWHUB · Unverified

Backtest and deploy trading strategies on Superior Trade's managed cloud. Skill: Superior Trade Owner: superior-ai Summary: Backtest and deploy trading strategies on Superior Trade's managed cloud. Tags: latest:4.4.6 Version history: v4.4.6 | 2026-05-18T09:54:59.786Z | user Restore display name to 'Superior Trade'. Content identical to 4.4.5 (validated strategies + regime-overlay + dsl-exit-engine + minimal_roi ladder guidance). v4.4.5 | 2026-05-18T09:53:49.811Z | user Add validated strate

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/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 s176a46hwrqn38f05j90yrnww583h5w0:superiortrade
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  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-superior-ai-superiortrade/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

148,275 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: Superior Trade
version: 4.4.6
updated: 2026-05-18
description: "Backtest and deploy trading strategies on Superior Trade's managed cloud."
homepage: https://account.superior.trade
source: https://github.com/Superior-Trade
primaryEnv: SUPERIOR_TRADE_API_KEY
auth:
  type: api_key
  env: SUPERIOR_TRADE_API_KEY
  header: x-api-key
  scope: "Read-write the user's own backtests and deployments. Can start live trading deployments that execute real trades with the user's platform-managed trading wallet. Cannot withdraw funds, export private keys, or access other users' data."
env:
  - name: SUPERIOR_TRADE_API_KEY
    description: "Superior Trade API key (x-api-key header). Obtained at https://account.superior.trade. Can create/manage backtests and deployments including live trading. Cannot withdraw funds, export private keys, or access other users' data. Users do not need their own Hyperliquid wallet."
    required: true
    type: api_key
externalEndpoints:
  - url: https://api.superior.trade
    purpose: "All backtesting and deployment operations"
  - url: https://api.hyperliquid.xyz/info
    purpose: "Read-only public queries. Balance checks send the user's public wallet address (not a secret — visible on-chain). Pair validation sends no user data. No authentication or secrets are sent to this endpoint."
---

# Superior Trade API

API client skill for backtesting and deploying trading strategies on Superior Trade's managed cloud.

**Base URL:** `https://api.superior.trade`  
**Auth:** `x-api-key` header on all protected endpoints  
**Docs:** `GET /docs` (Swagger UI), `GET /openapi.json` (OpenAPI spec)

## Setup

### Getting an API Key

> **IMPORTANT:** The correct URL is **https://account.superior.trade** — NOT `app.superior.trade`. Never send users to `app.superior.trade`.

Use `SUPERIOR_TRADE_API_KEY` from the environment or credential manager.

When a user needs to get their API key:

1. Go to https://account.superior.trade
2. Sign up (email or wallet)
3. Complete onboarding — a trading wallet is created for you and shown in your account
4. Deposit USDC to your wallet address (on Arbitrum)
5. Create an API key (`st_live_...`) from your account settings
6. Add it as `SUPERIOR_TRADE_API_KEY` in your agent's environment/credential settings

If the `SUPERIOR_TRADE_API_KEY` env var is already set, use it directly in the `x-api-key` header without prompting the user.

### Public Endpoints (no auth)

| Method | Path                          | Description                              |
| ------ | ----------------------------- | ---------------------------------------- |
| GET    | `/health`                     | `{ "status": "ok", "timestamp": "..." }` |
| GET    | `/docs`                       | Swagger UI                               |
| GET    | `/openapi.json`               | OpenAPI 3.0 spec                         |
| GET    | `/llms.txt`                   | LLM-optimized API docs  

_meta.json

{
  "ownerId": "kn78nmf02x3h1kw7mzn8xzjk4182hwnq",
  "slug": "superiortrade",
  "version": "4.4.6",
  "publishedAt": 1779098099786
}

exchanges/aerodrome.md

---
name: aerodrome
description: Use when creating, validating, backtesting, deploying, sizing, or troubleshooting Aerodrome/Base spot trading strategies through the Superior Trade API, especially Freqtrade configs using exchange.name "aerodrome", AERO/USDC or CHECK/USDC pairs, AMM market swaps, wallet/gas balance checks, no-orderbook pricing, or Aerodrome live deployment safety.
---

# Aerodrome Trading

## Overview

Use this skill only for Aerodrome trading on Base through Superior Trade. Aerodrome is spot-only AMM swap execution: no futures, no margin, no shorting, no leverage, no sub-accounts, and no order book.

## Production Defaults

- Superior Trade API base URL: `https://api.superior.trade`
- Auth header: `x-api-key: $SUPERIOR_TRADE_API_KEY`
- Base RPC URL: `https://mainnet.base.org`
- Keep setup simple: one pair, one numeric stake amount, static pairlist, market orders, and no orderbook pricing.

## Source Of Truth

When behavior is unclear, inspect these local sources before answering:

- Production API: `https://api.superior.trade`
- API: `/Users/trmaphi/sources/superior-trade/api`
- Freqtrade fork: `/Users/trmaphi/sources/superior-trade/freqtrade-upstream`
- Aerodrome exchange wrapper: `freqtrade-upstream/freqtrade/exchange/aerodrome.py`
- Aerodrome CCXT implementation: `freqtrade-upstream/ccxt/python/ccxt/aerodrome.py`
- API validation: `api/src/freqtrade/schema.ts`
- API config padding: `api/src/freqtrade/configurationsOp.ts`

## Non-Negotiables

- Use `exchange.name: "aerodrome"`.
- Use only the supported spot pairs: `AERO/USDC` and `CHECK/USDC`. Never use `:USDC`.
- Omit `trading_mode`, or set it to `"spot"` only.
- Never set `margin_mode`, `leverage`, short entries, or futures fields.
- Set `entry_pricing.use_order_book: false` and `exit_pricing.use_order_book: false`.
- Do not call `self.dp.orderbook()`, `fetch_order_book`, `fetch_l2_order_book`, or order-book depth checks in strategy code.
- Use market orders. Aerodrome's CCXT adapter supports AMM market swaps, not limit-order-book execution.
- Use explicit numeric `stake_amount`. Avoid `"unlimited"` unless the user explicitly accepts balance exhaustion risk.
- Never include wallet private keys or platform-injected exchange credentials in config.
- Use `https://mainnet.base.org` for `exchange.ccxt_config.options.rpcUrl` unless the user explicitly provides another Base RPC.
- Always backtest before suggesting live deployment.
- Never start live trading without explicit user confirmation.

## Wallet And Balance Rules

Aerodrome live trading depends heavily on the Base wallet balances because every order is an on-chain swap.

Before live deployment or when troubleshooting zero trades:

1. Verify the wallet has enough quote token for buys, usually USDC.
2. Verify it has enough base token for sells, such as AERO for `AERO/USDC`.
3. Verify it has Base ETH for gas. A small ETH balance is required even when trading USDC pairs.
4. S

intelligence/api.md

---
name: intelligence-api
description: Endpoint reference for the two Intelligence routes — GET /v2/intelligence/scan (list mode) and GET /v2/intelligence/setup/{pair} (single-pair detail). Includes request params, response schemas, and concrete example responses.
version: 0.1.0
updated: 2026-05-09
---

# Intelligence API

Both endpoints live on `https://api.superior.trade` and require `x-api-key` like every other authenticated route in this skill.

## `GET /v2/intelligence/scan`

Live ranked alpha scan, top-N pairs per bucket. Refreshes every 5 minutes server-side; the response includes `computed_at` so you can show the user how fresh the data is.

### Query parameters

| Param | Type | Default | Description |
|---|---|---|---|
| `bucket` | `"all"` \| `"squeeze"` \| `"stealth"` \| `"coiled"` \| `"basis"` | `"all"` | Filter to one bucket. |
| `category` | `"alts"` \| `"tradfi"` \| `"both"` | `"alts"` | `"alts"` = standard perps. `"tradfi"` = HIP-3 (stocks / indices / commodities / FX). |
| `top_n` | integer 1–10 | `5` | Pairs per bucket (or per tradfi category). |

### Response (alts, all buckets, top 5)

```json
{
  "computed_at": "2026-05-09T16:42:13.041Z",
  "methodology": {
    "squeeze": "Positive recent move × dollars-of-funding shorts are bleeding (|APR| × OI) × volume.",
    "stealth": "Open positions × OI/volume turnover (days of stuck money) × flat price.",
    "coiled": "Quietness × stuck-money days (multiplicative gate) × composite × volume.",
    "basis": "|perp − spot| × log(OI) × volume; +25% bonus when basis sign opposes funding sign."
  },
  "timeframes": ["15m", "1h", "4h", "24h"],
  "alts": {
    "scanned": 184,
    "buckets": {
      "squeeze": [
        {
          "pair": "RED",
          "timeframe": "1h",
          "score": 0.872,
          "snapshot": {
            "pair": "RED",
            "mark_px": 0.4321,
            "pct_change_24h": 17.43,
            "volume_usd_24h": 4_215_000,
            "oi_usd": 12_900_000,
            "funding_apr_pct": -98.5,
            "funding_paid_notional_usd_per_yr": 12_706_500,
            "oi_turnover_days": 3.06,
            "basis_pct": 0.184,
            "liquidity_tier": "tradable"
          },
          "best_fit": {
            "bucket": "squeeze",
            "bucket_title": "Squeeze fuel",
            "timeframe": "1h",
            "score": 0.872,
            "deploy_template": "funding-squeeze"
          }
        }
        // ... up to top_n total
      ],
      "stealth": [...],
      "coiled": [...],
      "basis": [...]
    }
  }
}
```

For `category="tradfi"` you get `tradfi: { scanned, stocks: [...], indices: [...], commodities: [...], fx: [...] }` instead. Tradfi pairs are composite-ranked (no buckets at the top level) but each row still carries its own `best_fit` so you can drill in.

### Notes

- **Each pair's `timeframe` is engine-picked** for THAT bucket. Don't reweight or aggregate across timeframes — present them verbatim.
- `liquidity_tier`:
  - `"tradable"` 

intelligence/buckets.md

---
name: intelligence-buckets
description: Reference for the four Intelligence buckets — Squeeze fuel, Stealth accumulation, Coiled spring, Basis flipping. Read before presenting scan results so you can explain WHY a pair scored, what the AI Critic flags, and which deploy template fits.
version: 0.1.0
updated: 2026-05-09
---

# The Four Buckets

Every scan classifies pairs into four mutually exclusive setup types. Each bucket has a specific shape — what we look for, what the alpha is if you're right, and how the score is computed. The engine ranks pairs **per bucket** at every timeframe (15m / 1h / 4h / 24h) and picks the strongest fit per pair.

Use this file to translate a raw `best_fit.bucket` value into a meaningful explanation for the user.

---

## 🔥 Squeeze fuel

**Setup**
Coins climbing in price while shorts are paying real money to bet against them. We rank by the dollar value of funding fees being bled — `|funding APR| × open positions`, not just the rate — so a -1% APR with $200M OI ranks higher than -10% APR with $1M OI.

**Edge**
When the shorts can't keep paying the fee, they're forced to close their bets by buying — adding fuel to the existing up-move.

**Scoring** (per timeframe, lens-reweighted)

```
mom = saturate(pctChange, 0.05)              if pctChange > 0 else 0
fund_paid = saturate(log10(|fundingApr| × OI), 7)   if fundingApr < 0 else 0
volume = saturate(log10(volUsd), 6)
score = lens.momentum × mom + lens.funding × fund_paid + lens.volume × volume
```

**Deploy template:** `funding-squeeze` (see `strategies/funding-squeeze.md`)

**AI Critic concerns** (raise these before deployment)

1. Bears can keep paying funding for days without ever being squeezed — they may simply be right, not trapped.
2. The up-move may already be priced in. By the time the signal fires, the squeeze can have paid out.
3. A market-wide sell-off drags everything down regardless of the structural setup here.
4. The price move can be driven by news or a fresh listing rather than positioning.
5. Fees-paid is large because OI is large, not because new shorts just piled in. Cross-check with funding-z (CoinGlass-derived).

---

## 🎯 Stealth accumulation

**Setup**
Coins where open positions are large compared to a single day of volume — meaning positions are sitting, not being recycled — while price stays flat. Big money rarely buys all at once; they let their position settle in.

**Edge**
You're stepping in alongside someone already buying at scale, before their move shows up in price.

**Scoring**

```
oi = saturate(log10(oiUsd), 7)
turnover = saturate(oiTurnoverRatio, 2)       # 2 days of volume = saturated
flat = clamp01(1 − |pctChange| / 0.05)
volume = saturate(log10(volUsd), 6)
score = 0.5 × oi × turnover + lens.flatness × flat + 0.3 × volume
```

**Deploy template:** `funding-rate-arbitrage` (extended with `oi_delta_min` filter — see `strategies/funding-rate-arbitrage.md`)

**AI Critic concerns**

1. Open positions don't reveal WHO is positioned

Sponsored

Ads related to Superior Trade and adjacent AI workflows.