Agent skill

Yex Trader

by Nunchi-trade in Nunchi-trade/agent-cli

Autonomous Hyperliquid trading — 14 strategies (MM, momentum, arbitrage, LLM) with APEX multi-slot orchestrator, REFLECT performance review, DSL trailing stops, and builder fee revenue collection.

MITAuto-check: notesBusiness, Finance & HR

Install Yex Trader

skills CLI
$ npx skills add Nunchi-trade/agent-cli --skill yex-trader -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Nunchi-trade/agent-cli yex-trader --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Nunchi-trade/agent-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cli .claude/skills/yex-trader && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
yex-trader
GitHub stars
521
Token cost
~1.9k tokens
SKILL.md length
488 words
Files
60
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Autonomous Hyperliquid trading — 14 strategies (MM, momentum, arbitrage, LLM) with APEX multi-slot orchestrator, REFLECT performance review, DSL trailing stops, and builder fee revenue collection.

  • Works in 4 steps: Set your private key (or use hl wallet… → Claim testnet USDyP (required for YEX… → Approve builder fee (one-time) → …
  • Tasks that involve Trading and backtesting
  • SKILL.md covers Quick Start (Agent-Friendly), Setup (Manual), Commands and Strategies (14), plus 4 more sections
  • Runs Python scripts from its folder; calls bash and pip; needs HL_PRIVATE_KEY and HL_KEYSTORE_PASSWORD

What it does

Yex Trader is an agent skill from Nunchi-trade/agent-cli. Autonomous Hyperliquid trading — 14 strategies (MM, momentum, arbitrage, LLM) with APEX multi-slot orchestrator, REFLECT performance review, DSL trailing stops, and builder fee revenue collection.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 61 other files (for example `__init__.py`, `api/__init__.py` and `api/status_reader.py`).

It sits in Business, Finance & HR, covering Trading and backtesting and Performance reviews. It works with Hyperliquid. The licence is MIT.

When your agent uses it

  • Tasks that involve Trading and backtesting
  • Tasks that involve Performance reviews

Example prompts

  • “/yex-trader”

Requirements

  • Python 3
  • A credential in HL_PRIVATE_KEY
  • A credential in ANTHROPIC_API_KEY
  • Pre-approved tools (allowed-tools): Bash

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Set your private key (or use hl wallet auto)
  2. Claim testnet USDyP (required for YEX markets)
  3. Approve builder fee (one-time)
  4. Start trading

What it can do on your machine

Read from SKILL.md and the folder at commit 58619a2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • bash
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • HL_PRIVATE_KEY
    • HL_KEYSTORE_PASSWORD
    • ANTHROPIC_API_KEY
    • GEMINI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Yex Trader loads about 1.9k tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 488 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~52
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Nunchi-trade/agent-cli at commit 58619a2, republished under its MIT licence (© Nunchi-trade). 488 words, ~1,910 tokens.

Download SKILL.mdSave it as .claude/skills/yex-trader/SKILL.md (or your agent's skills folder). This skill also uses 59 other files; get the full folder from GitHub.
name
yex-trader
description
Autonomous Hyperliquid trading — 14 strategies (MM, momentum, arbitrage, LLM) with APEX multi-slot orchestrator, REFLECT performance review, DSL trailing stops, and builder fee revenue collection.
allowed-tools
Bash
user-invocable
true
argument-hint
<strategy> [options]

YEX Trader

Autonomous Hyperliquid trading via agent-cli. 14 strategies across market making, momentum, arbitrage, and LLM-powered trading. APEX multi-slot orchestrator. REFLECT nightly performance review. Builder fee revenue collection.

Quick Start (Agent-Friendly)

bash
cd ~/agent-cli
bash scripts/bootstrap.sh           # Creates venv, installs, validates
hl wallet auto --save-env             # Creates wallet, saves creds to ~/.hl-agent/env
hl setup claim-usdyp                 # Claim testnet USDyP
hl builder approve                   # Approve builder fee (one-time)
hl run avellaneda_mm --mock --max-ticks 3  # Validate
hl run engine_mm -i ETH-PERP --tick 15 --max-ticks 5  # First live trade

For full step-by-step onboarding, see skills/onboard/SKILL.md.

Setup (Manual)

bash
cd ~/agent-cli && pip install -e .
hl setup check  # Validate environment
Getting Started — YEX Testnet
  1. Set your private key (or use hl wallet auto):
bash
export HL_PRIVATE_KEY=0x...
export HL_TESTNET=true  # default
  1. Claim testnet USDyP (required for YEX markets):
bash
hl setup claim-usdyp
  1. Approve builder fee (one-time):
bash
hl builder approve
  1. Start trading:
bash
hl run avellaneda_mm -i VXX-USDYP --tick 15          # YEX yield market
hl run engine_mm -i ETH-PERP --tick 10                # Standard perp
hl apex run --mock --max-ticks 5                       # APEX multi-slot
Getting Started — Mainnet
  1. Set your private key and network:
bash
export HL_PRIVATE_KEY=0x...
export HL_TESTNET=false
  1. Approve builder fee (one-time):
bash
hl builder approve --mainnet
  1. Start trading:
bash
hl run engine_mm -i ETH-PERP --tick 10 --mainnet      # ETH perp
hl run avellaneda_mm -i BTC-PERP --tick 10 --mainnet   # BTC perp
hl apex run --mainnet                                   # APEX multi-slot
Environment Variables
VariableRequiredDescription
HL_PRIVATE_KEYYes*Hyperliquid private key
HL_KEYSTORE_PASSWORDAlt*Password for encrypted keystore
HL_TESTNETNotrue (default) or false for mainnet
BUILDER_ADDRESSNoOverride builder fee address (default: hardcoded)
BUILDER_FEE_TENTHS_BPSNoOverride fee rate (default: 100 = 10 bps)
ANTHROPIC_API_KEYNoFor claude_agent strategy
GEMINI_API_KEYNoFor claude_agent with Gemini

* Either HL_PRIVATE_KEY or a keystore with HL_KEYSTORE_PASSWORD is required.

Commands

Core Trading
bash
# Start autonomous trading
hl run <strategy> [-i INSTRUMENT] [-t TICK] [--config FILE] [--mainnet] [--dry-run] [--mock] [--max-ticks N]

# Single manual order
hl trade <instrument> <side> <size>

# Account info
hl account [--mainnet]

# Check positions and PnL
hl status [--watch] [--interval 5]

# List all strategies
hl strategies
APEX Multi-Slot Orchestrator
bash
hl apex run [-t 60] [--preset conservative|default|aggressive] [--mock] [--budget 1000] [--slots 5]
hl apex once [--mock]
hl apex status
hl apex presets
REFLECT Performance Review
bash
hl reflect run [--since 2026-03-01] [--data-dir data/cli]
hl reflect report [--date 2026-03-03]
hl reflect history [-n 10]
Dynamic Stop Loss (DSL)
bash
hl dsl start <instrument> [--entry-price 2500] [--direction long] [--preset tight|standard|wide]
hl dsl check <instrument>
hl dsl status
hl dsl presets
Radar & Movers
bash
hl radar run [--top 10] [--min-score 7.0]
hl radar history [-n 5]
hl movers run [--top 10]
Builder Fee
bash
hl builder status
hl builder approve [--mainnet]
Wallet (Encrypted Keystore)
bash
hl wallet auto                       # Non-interactive wallet creation (agent-friendly)
hl wallet create                     # Interactive wallet creation
hl wallet import --key <hex>
hl wallet list
hl wallet export [--address 0x...]
Environment Setup
bash
hl setup check                       # Validate environment
hl setup bootstrap                   # Auto-create venv and install
hl setup claim-usdyp                 # Claim testnet USDyP tokens
MCP Server (24 Tools)
bash
hl mcp serve                         # Start MCP server (stdio transport)
hl mcp serve --transport sse         # Start MCP server (SSE transport)

Tools: strategies, builder_status, wallet_list, wallet_auto, setup_check, funding_hedge_info, funding_hedge_propose, funding_hedge_backtest, account, status, trade, run_strategy, radar_run, apex_status, apex_run, reflect_run, schedule_cancel, emergency_close_all, order_status, funding_rates, agent_memory, trade_journal, judge_report, obsidian_context

Strategies (14)

NameTypeDescription
simple_mmMMSymmetric bid/ask quoting around mid
avellaneda_mmMMInventory-aware Avellaneda-Stoikov model
engine_mmMMProduction quoting engine — composite FV, dynamic spreads, multi-level ladder
regime_mmMMVol-regime adaptive — switches behavior by volatility regime (calm/normal/volatile/extreme)
grid_mmMMFixed-interval grid levels above and below mid
liquidation_mmMMProvides liquidity during cascade/liquidation events
funding_arbArbCross-venue funding rate arbitrage
basis_arbArbTrades implied basis from funding rate (contango/backwardation)
mean_reversionSignalTrades when price deviates from SMA
momentum_breakoutSignalEnters on volume + price breakout above/below N-period range
aggressive_takerTakerDirectional spread crossing with bias
hedge_agentRiskInventory exposure reducer; BTCSWP funding hedge lives under hl hedge
rfq_agentRFQBlock-size dark RFQ liquidity
claude_agentLLMClaude/Gemini-powered autonomous trading agent
Show full SKILL.md (171 more words)Show less

Instruments

  • Standard perps: ETH-PERP, BTC-PERP, SOL-PERP, etc.
  • YEX yield markets: VXX-USDYP (yex:VXX), US3M-USDYP (yex:US3M)

Workflow

  1. Setup: hl setup check
  2. Claim USDyP (testnet only): hl setup claim-usdyp
  3. Approve builder fee: hl builder approve (testnet) or hl builder approve --mainnet
  4. Mock test: hl run avellaneda_mm --mock --max-ticks 5
  5. Dry run: hl run engine_mm --dry-run --max-ticks 10
  6. Live testnet: hl run engine_mm -i ETH-PERP --tick 10
  7. Live mainnet: hl run engine_mm -i ETH-PERP --tick 10 --mainnet
  8. APEX mode: hl apex run --mainnet or hl apex run --mock --max-ticks 5
  9. Monitor: hl status --watch
  10. Review: hl reflect run

Builder Fee Revenue

Set BUILDER_ADDRESS and BUILDER_FEE_TENTHS_BPS to collect fees on every trade. Users must approve once via hl builder approve. Fee is collected natively by Hyperliquid — no extra gas, no contract calls.

REFLECT Self-Improvement

Run hl reflect run after a trading session. REFLECT computes win rate, fee drag ratio (FDR), direction analysis, holding period buckets, monster trade dependency, and generates actionable recommendations. Reports saved to data/reflect/.

© Nunchi-trade, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 59 other files in cli of Nunchi-trade/agent-cli.

  • SKILL.md
  • __init__.py
  • api/__init__.py
  • api/status_reader.py
  • builder_fee.py
  • commands/__init__.py
  • commands/account.py
  • commands/apex.py
  • commands/builder.py
  • commands/emergency.py
  • commands/funding.py
  • commands/guard.py
  • commands/hedge.py
  • commands/house.py
  • commands/journal.py
  • commands/keys.py
  • commands/margin.py
  • commands/mcp.py
  • commands/order_status.py
  • … and 41 more

Open the folder on GitHubat commit 58619a2

Compare with similar skills

Yex Trader next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Yex Trader compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Yex Trader this skillNunchi-trade/agent-cli521—~1.9kAutomated safety check: NotesMIT
Fintoolsecond-state/fintool316—~5.9kAutomated safety check: PassNone
Moss Trade Bot Factorymoss-site/moss-trade-bot-skills390—~2.2kAutomated safety check: PassMIT-0
Nansen Tradingnansen-ai/nansen-cli139—~3.3kAutomated safety check: NotesMIT
Hyperliquidalsk1992/CloddsBot3k—~1.4kAutomated safety check: PassMIT
Trading Futuresalsk1992/CloddsBot3k—~5.6kAutomated safety check: PassMIT

Similar skills

  • Fintool

    second-state/fintool

    Financial trading CLIs — spot and perp trading on Hyperliquid, Binance, Coinbase, OKX.

    316 GitHub stars~5.9k tokensUpdated 4 mo ago
    Business, Finance & HRAuto-check passed
  • Moss Trade Bot Factory

    moss-site/moss-trade-bot-skills

    用户用自然语言描述币种、回测时间区间和策略风格时,自动创建加密货币交易 Bot,读取内置 Hyperliquid CSV 覆盖并运行本地回测/进化;若币种、时间区间或策略风格缺失,则主动询问缺失项并展示 CSV 解析出的可用回测区间。也可在回测后上传平台 verify 或创建模拟实盘 Bot。适用于创建bot、交易策略、回测、backtest、evolve、upload verify、live…

    390 GitHub stars~2.2k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Nansen Trading

    nansen-ai/nansen-cli

    Execute DEX swaps on Solana or Base (including cross-chain bridges) and Hyperliquid perpetual trades.

    139 GitHub stars~3.3k tokensUpdated 2 days ago
    Business, Finance & HRAuto-check: notes
  • Hyperliquid

    alsk1992/CloddsBot

    Hyperliquid L1 perps DEX (69% market share). An agent skill from alsk1992/CloddsBot.

    3k GitHub stars~1.4k tokensUpdated 8 days ago
    Business, Finance & HRAuto-check passed
  • Trading Futures

    alsk1992/CloddsBot

    Trade perpetual futures on Binance, Bybit, Hyperliquid, MEXC with up to 200x leverage

    3k GitHub stars~5.6k tokensUpdated 8 days ago
    Business, Finance & HRAuto-check passed
  • Senpi Why

    Senpi-ai/senpi-skills

    Answer "what makes Senpi different?" / "why Senpi?" / "Senpi vs other trading apps, bots or AI chatbots?" — the positioning answer, led by value, not a feature dump.

    134 GitHub stars~2.5k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed

More from Nunchi-trade/agent-cli

  • Guard Trailing Stop

    Nunchi-trade/agent-cli

    Guard — two-phase ROE-based trailing stop system for Hyperliquid perps.

    521 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check passed
  • Apex Strategy

    Nunchi-trade/agent-cli

    Autonomous multi-slot trading orchestrator. An agent skill from Nunchi-trade/agent-cli.

    521 GitHub stars~1.4k tokensUpdated 3 mo ago
    Auto-check passed
  • Opportunity Radar

    Nunchi-trade/agent-cli

    Screens all Hyperliquid perps and surfaces top trading setups

    521 GitHub stars~1.2k tokensUpdated 3 mo ago
    Auto-check passed
  • Pulse

    Nunchi-trade/agent-cli

    Detects assets with sudden capital inflow via OI/volume/funding proxy signals

    521 GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check passed
  • Agent Onboarding

    Nunchi-trade/agent-cli

    First-time setup — from zero to first trade on Hyperliquid. An agent skill from Nunchi-trade/agent-cli.

    521 GitHub stars~2.1k tokensUpdated 3 mo ago
    Auto-check passed
  • Reflect Performance Review

    Nunchi-trade/agent-cli

    Reflect, Evaluate, Fine-tune, Learn, Evolve, Correct, Transform — nightly automated performance review

    521 GitHub stars~1.3k tokensUpdated 3 mo ago
    Auto-check passed

Works with

Questions about Yex Trader

What does Yex Trader do?

Autonomous Hyperliquid trading — 14 strategies (MM, momentum, arbitrage, LLM) with APEX multi-slot orchestrator, REFLECT performance review, DSL trailing stops, and builder fee revenue collection. Yex Trader is an agent skill from Nunchi-trade/agent-cli. Autonomous Hyperliquid trading — 14 strategies (MM, momentum, arbitrage, LLM) with APEX multi-slot orchestrator, REFLECT performance review, DSL trailing stops, and builder fee revenue collection.

When should I use Yex Trader?

Yex Trader fits situations like: tasks that involve Trading and backtesting; tasks that involve Performance reviews.

How do I install Yex Trader in Claude Code?

Run `npx skills add Nunchi-trade/agent-cli --skill yex-trader -a claude-code`. Or copy the skill folder (cli in Nunchi-trade/agent-cli) into .claude/skills/yex-trader in your project. Claude Code loads it when a task matches its description.

How do I install Yex Trader in Codex?

Run `npx skills add Nunchi-trade/agent-cli --skill yex-trader -a codex`. Or copy the skill folder (cli in Nunchi-trade/agent-cli) into .agents/skills/yex-trader in your project. Codex loads it when a task matches its description.

Can I use Yex Trader in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Nunchi-trade/agent-cli --skill yex-trader -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/yex-trader, .gemini/skills/yex-trader, .github/skills/yex-trader and .opencode/skills/yex-trader in your project.

What does Yex Trader need to run?

Going by SKILL.md and its folder, Yex Trader needs Python for the scripts in its folder, the command-line tools its instructions call (bash and pip) and credentials named HL_PRIVATE_KEY, HL_KEYSTORE_PASSWORD, ANTHROPIC_API_KEY and GEMINI_API_KEY. Our summary lists: Python 3; A credential in HL_PRIVATE_KEY; A credential in ANTHROPIC_API_KEY. Its frontmatter pre-approves these tools: Bash.

Does Yex Trader access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Yex Trader safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Yex Trader use?

Yex Trader is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Yex Trader use?

About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Yex Trader?

Skills that share tags, products or a category with Yex Trader: Fintool (second-state/fintool, 316 stars), Moss Trade Bot Factory (moss-site/moss-trade-bot-skills, 390 stars), Nansen Trading (nansen-ai/nansen-cli, 139 stars) and Hyperliquid (alsk1992/CloddsBot, 3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Yex Trader?

Nunchi-trade (a GitHub organization) maintains it in Nunchi-trade/agent-cli, which has 521 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on July 8, 2026.

Source: Nunchi-trade/agent-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.