apex-strategy

apex-strategy is a skill for Claude Code, Codex from Nunchi-trade/agent-cli. It costs 12 tokens per session (1,435 once invoked), scanned A, original, MIT.

An automated trading strategy that combines market signals, position rules, and risk controls into one process. It monitors prices and manages several open positions on supported trading setups.

In plain words
What is it for?
Use it to evaluate trading opportunities, open and close positions, monitor exchange state, and apply stop-loss and daily-loss rules.
Why use it?
It removes the need to manually check signals, enforce entry and exit rules, and watch position limits continuously.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nunchi-trade/agent-cli/apex
Any agent
npx skills add Nunchi-trade/agent-cli --skill apex
Clone the repo
git clone --depth 1 https://github.com/Nunchi-trade/agent-cli

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for apex-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/nunchi-trade/agent-cli/apex.svg)](https://agentmods.dev/skills/nunchi-trade/agent-cli/apex)
Your own site
<a href="https://agentmods.dev/skills/nunchi-trade/agent-cli/apex"><img src="https://agentmods.dev/badge/skills/nunchi-trade/agent-cli/apex.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,435 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.01435
Opus 5 $0.00006 $0.00718
Sonnet 5 $0.00002 $0.00287
Haiku 4.5 $0.00001 $0.00144

Measured 3d ago against content hash 514ae0c20eea, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

apex-strategy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/standalone_runner.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/apex/SKILL.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

APEX Strategy

Autonomous multi-slot trading strategy that composes Radar + Pulse + DSL into a unified orchestrator.

Architecture

APEX runs a single tick loop (60s base) that:

  1. Every tick: Fetch prices, update ROEs, check DSL guards, run pulse, evaluate entry/exit
  2. Every 5 ticks (5 min): Watchdog health check (verify positions match exchange)
  3. Every 15 ticks (15 min): Run opportunity radar, queue high-score setups

Slot Management

  • 2-3 concurrent positions (configurable)
  • Each slot: EMPTY -> ACTIVE -> CLOSED (reset to EMPTY)
  • No duplicate instruments across slots
  • Max 2 same-direction positions

Entry Priority

  1. Pulse IMMEDIATE_MOVER -> auto-enter
  2. Radar score > 170 -> queue entry
  3. Pulse other signals (confidence > 70) -> enter

Exit Priority

  1. DSL trailing stop CLOSE
  2. Hard stop: ROE < -5%
  3. Conviction collapse: signal gone + negative PnL for 30+ min
  4. Stagnation: ROE stuck above 3% for 60+ min

Risk Management

  • Per-slot margin: total_budget / max_slots
  • Daily loss limit: $500 (default)
  • Daily loss trigger: close all positions immediately

Prerequisites

Before running APEX live (not mock), ensure:

  1. Testnet: Claim USDyP first — hl setup claim-usdyp (without funds, all orders fail silently)
  2. Mainnet: Deposit USDC via the Hyperliquid web UI
  3. Builder fee: Approve once per network — hl builder approve (testnet) or hl builder approve --mainnet

Usage

# Mock mode (no funds needed)
hl apex run --mock --max-ticks 10

# Live (testnet) — requires USDyP balance + builder approval
hl apex run

# Live (mainnet) — requires USDC balance + mainnet builder approval
hl apex run --mainnet

# Check status
hl apex status

# List presets
hl apex presets

Presets

  • default: 3 slots, 10x leverage, $10K budget
  • conservative: 2 slots, 5x leverage, higher thresholds
  • aggressive: 3 slots, 15x leverage, lower thresholds

Agent Mandate

You are the APEX orchestrator. Your job is to hunt for high-probability setups and manage 2-3 concurrent positions with strict risk controls.

Read the full file on GitHub · 144 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 144 lines · 12 tokens per session scan A 514ae0c20eea

Subscribe to this mod's changes

apex-strategy is a skill published in the GitHub repository Nunchi-trade/agent-cli (515 stars, last pushed 1mo ago), licensed MIT. It adds 12 tokens to every session and 1,435 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

Use when evaluating A-share limit-up (涨停板) setups through Chen Hao's sentiment and momentum lens: market emotion cycles, board strength, follow-through, and short-term aggressive momentum trading.

questflowai/investorskills · 44 tokens

southwest

Search Southwest Airlines fares and points pricing via Patchright browser automation. SW is not in any GDS or API. Covers all fare classes, Companion Pass value, and fare drop monitoring.

borski/travel-hacking-toolkit · 40 tokens

alphagbm-greeks

Greeks dashboard for any option contract or multi-leg position. Covers first-order Greeks (Delta, Gamma, Theta, Vega, Rho) and second-order Greeks (Charm, Vanna, Volga). Returns individual and position-level Greeks with scenario heatmaps. Use when: checking option sensitivities, managing position risk, understanding…

AlphaGBM/skills · 128 tokens

reverse-dcf

Reverse DCF (reverse discounted cash flow) valuation tool. Uses the market price to back-solve the market's implied growth rate expectations, replacing the common forward DCF routine of "tweaking parameters to fit the conclusion." Suitable for mature companies with positive FCFF (A-shares, Hong Kong-listed stocks, and…

OpenMinis/MinisSkills · 158 tokens

hyperliquid

Use when backtesting, deploying, funding, or debugging a live trading strategy on Hyperliquid through the Superior Trade API — writing Freqtrade configs and strategy code, running backtest sweeps, checking wallet balances, depositing USDC, trading HIP-3 stock/commodity perps, or diagnosing a deployment that will not…

Superior-Trade/superior-skills · 73 tokens