Agent SkillsSuperior-Trade/superior-skills › superior-trade-auth

superior-trade-auth

GitHub

用于获取和配置 Superior Trade API 密钥,处理用户邮箱验证、API Key 请求及身份认证,解决 401/403 错误,确保后续回测或策略部署的鉴权安全。

触发场景

需要调用 Superior Trade API 进行回测或部署 API 返回 401 或 403 认证失败 用户首次使用需申请 API Key

安装

npx skills add Superior-Trade/superior-skills --skill superior-trade-auth -g -y
更多选项

不安装直接使用

npx skills use Superior-Trade/superior-skills@superior-trade-auth

指定 Agent (Claude Code)

npx skills add Superior-Trade/superior-skills --skill superior-trade-auth -a claude-code -g -y

安装 repo 全部 skill

npx skills add Superior-Trade/superior-skills --all -g -y

预览 repo 内 skill

npx skills add Superior-Trade/superior-skills --list

SKILL.md

Frontmatter
{
    "name": "superior-trade-auth",
    "license": "see LICENSE",
    "version": "1.0.0",
    "metadata": {
        "openclaw": {
            "envVars": [
                {
                    "name": "SUPERIOR_TRADE_API_KEY",
                    "required": true,
                    "description": "Superior Trade API key, sent as the x-api-key header."
                }
            ],
            "requires": {
                "env": [
                    "SUPERIOR_TRADE_API_KEY"
                ]
            },
            "primaryEnv": "SUPERIOR_TRADE_API_KEY"
        }
    },
    "description": "Request and use a Superior Trade API key for https:\/\/api.superior.trade. Use when an agent needs to onboard a user by email, request an API key with POST \/auth\/sign-in\/magic-link, set up x-api-key authentication, or recover from missing\/invalid Superior Trade credentials (401\/403) before backtesting or deploying a strategy."
}

Superior Trade Authentication

Use this skill to get a Superior Trade API key and make authenticated requests to https://api.superior.trade.

API Key Onboarding

If a user does not already have a Superior Trade API key, ask for the email address that should receive the key. Do not ask for wallet keys, seed phrases, private keys, passwords, or other secrets.

Request the key with:

curl -sS https://api.superior.trade/auth/sign-in/magic-link \
  -X POST \
  -H 'Content-Type: application/json' \
  -d '{"email":"user@example.com"}'

The API sends the key directly to the user's inbox. Tell the user to retrieve the key from their email and configure it in their normal credential store or environment, usually as SUPERIOR_TRADE_API_KEY.

Do not paste the received key into chat, source files, logs, or examples. If the user provides a key in chat, treat it as a secret and avoid repeating it.

Authenticated Requests

Use the key in the x-api-key header:

curl -sS https://api.superior.trade/v2/account \
  -H "x-api-key: $SUPERIOR_TRADE_API_KEY"

The email is verified once the API key is used successfully in an authenticated request such as the status check above. If the first authenticated request fails with 401 or 403, ask the user to confirm they copied the full key from the latest email and that the credential is being passed as the x-api-key header.

Operating Rules

  • Prefer SUPERIOR_TRADE_API_KEY from the environment or credential manager when it is available.
  • Use https://api.superior.trade as the production API base URL.
  • Use Content-Type: application/json for JSON request bodies.
  • Never fabricate authentication status. Verify by making a real API call when credentials are available.
  • Never request or handle private keys, seed phrases, or wallet credentials.
  • Never start live trading, deposits, or other fund-moving actions without the explicit confirmations required by the relevant Superior Trade trading skill.

Related Skills

  • Use the v2 skills/v2/exchanges/hyperliquid skill for Hyperliquid strategy backtests, deployments, wallets, funding, and live trading workflows.
  • Use the v2 skills/v2/exchanges/aerodrome skill for Aerodrome/Base spot-AMM strategy workflows.
  • Use the v3 skills/v3/exchanges/polymarket skill for Polymarket market discovery, backtests, deployments, and funding workflows.
  • Use the v3 skills/v3/exchanges/lighter skill for Lighter account bootstrap, direct CCTP deposits, fast withdrawals, and Nautilus deployments.
  • Use the v3 skills/v3/primitives/deposit-qr skill when a user needs a QR code or payment URI to fund a Superior-managed wallet on a specific EVM chain.
  • Use the skills/external-deposit skill when a user needs an external bridge/deposit UI link, Relay quote, MetaMask Mobile QR URL, or Robinhood Chain USDG bridge flow.

版本历史

  • 85f77be 当前 2026-08-02 21:43

同 Skill 集合

skills/external-deposit/SKILL.md
skills/v2/exchanges/aerodrome/SKILL.md
skills/v2/exchanges/hyperliquid/SKILL.md
skills/v2/primitives/backtesting/SKILL.md
skills/v2/primitives/fees-optimizations/SKILL.md
skills/v2/primitives/trade-thesis/SKILL.md
skills/v2/strategies/basis-arb/SKILL.md
skills/v2/strategies/bollinger-reverter-4h/SKILL.md
skills/v2/strategies/breakout/SKILL.md
skills/v2/strategies/dca-weekly/SKILL.md
skills/v2/strategies/donchian-strong-regime/SKILL.md
skills/v2/strategies/funding-rate-arbitrage/SKILL.md
skills/v2/strategies/funding-squeeze/SKILL.md
skills/v2/strategies/grid-trading/SKILL.md
skills/v2/strategies/mean-reversion/SKILL.md
skills/v2/strategies/scalping/SKILL.md
skills/v3/exchanges/lighter/SKILL.md
skills/v3/exchanges/polymarket/SKILL.md
skills/v3/polymarket-archetypes/catalyst-confirmation/SKILL.md
skills/v3/polymarket-archetypes/deadline-drift/SKILL.md
skills/v3/polymarket-archetypes/large-fill-pressure/SKILL.md
skills/v3/polymarket-archetypes/probability-mean-reversion/SKILL.md
skills/v3/polymarket-archetypes/probability-momentum/SKILL.md
skills/v3/polymarket-archetypes/related-market-spread/SKILL.md
skills/v3/primitives/deposit-qr/SKILL.md
skills/v2/primitives/dsl-exit-engine/SKILL.md
skills/v2/primitives/intelligence/SKILL.md
skills/v2/primitives/regime-overlay/SKILL.md

元信息

文件数
0
版本
85f77be
Hash
3e19fe9d
收录时间
2026-08-02 21:43

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-04 01:20
浙ICP备14020137号-1 $访客地图$