Agent skill

1m Trade Dex

by LeoYeAI in LeoYeAI/openclaw-master-skills

Hyperliquid DEX/Perps entrypoint via hl1m: market queries, order placement.

MITAuto-check: notesBusiness, Finance & HR

Install 1m Trade Dex

skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill 1m-trade-dex -a claude-code

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

GitHub CLI
$ gh skill install LeoYeAI/openclaw-master-skills 1m-trade-dex --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/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/1m-trade/skills/1m-trade-dex .claude/skills/1m-trade-dex && 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
1m-trade-dex
GitHub stars
2.2k
Token cost
~2.8k tokens
SKILL.md length
1,364 words
Files
6 (incl. scripts)
Skills in repo
1,235
Repo updated
First seen
Licence
MIT

At a glance

Hyperliquid DEX/Perps entrypoint via hl1m: market queries, order placement.

  • Works in 3 steps: Install CLI → Verify → Upgrade
  • Business, Finance & HR work in your project
  • SKILL.md covers Setup, Wallet initialization, Output and Error handling, plus 2 more sections
  • Runs Python scripts from its folder; calls pipx, python and brew

What it does

1m Trade Dex is an agent skill from LeoYeAI/openclaw-master-skills. Hyperliquid DEX/Perps entrypoint via hl1m: market queries, order placement. Wallet creation/management at https://www.1m-trade.com; local hl1m init-wallet with address + proxy (API) private key — never the main wallet key. No in-skill private-key messaging.

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts (for example `reference.md`, `scripts/exchange.py` and `scripts/hl.py`).

It sits in Business, Finance & HR. It works with Hyperliquid and Python. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.

When your agent uses it

  • Business, Finance & HR work in your project

Example prompts

  • “/1m-trade-dex”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Install CLI
  2. Verify
  3. Upgrade

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • pipx
    • python
    • brew

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

  • Network

    Links to these hosts (documentation or services it may open):

    • 1m-trade.com

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

  • Credentials

    Names no API keys, tokens, secrets or passwords.

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

Context cost

1m Trade Dex loads about 2.8k tokens when it runs. Until then it costs about 69 tokens; SKILL.md has 1,364 words of instructions outside code blocks.

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

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.

  • NoteMentions a .env fileSKILL.md:113
    mmands; do not edit skill files or read `.env` contents into the model context.

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); the scripts in this folder are not scanned.

SKILL.md

The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 1,364 words, ~2,783 tokens.

Download SKILL.mdSave it as .claude/skills/1m-trade-dex/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
1m-trade-dex
description
Hyperliquid DEX/Perps entrypoint via `hl1m`: market queries, order placement. Wallet creation/management at https://www.1m-trade.com; local `hl1m init-wallet` with address + proxy (API) private key — never the main wallet key. No in-skill private-key messaging.
requires.bins
hl1m
install
pipx install 1m-trade

Setup

1. Install CLI
bash
which hl1m

If hl1m is missing, install the 1m-trade package (requires Python 3.11+ and pipx):

  • If pipx exists: pipx install 1m-trade
  • If pipx is missing:
    • Linux: install pipx via apt / yum / dnf
    • macOS: brew install pipx
    • Windows: python -m pip install --user pipx then python -m pipx ensurepath
bash
pipx install 1m-trade
2. Verify
bash
hl1m --help
3. Upgrade
bash
pipx upgrade 1m-trade
Basic syntax
bash
hl1m [--testnet] <command> [command_args]
Core flags
  • --testnet: use Hyperliquid testnet (default: mainnet)

Wallet initialization

Official wallet UI (create & manage):

  • For creating a wallet and managing it (addresses, keys, proxy/API settings as offered by the product), direct users to 1M-Trade in the browser. Do not recreate that flow inside chat.
  • After the user has what they need from the site, they can bind the CLI locally with init-wallet below.

When to trigger: user wants to use their own wallet with this skill (e.g. “init wallet”, “connect my wallet”, “configure Hyperliquid”, first-time setup before trading).

Natural-language binding (one-shot address + proxy key)

Use this when the user asks to configure/bind the trading account and supplies both a wallet address and a proxy (API) private key in the same message (often with explicit field labels).

Recognized intents (examples, non-exhaustive):

  • configure trading account, bind wallet, init wallet, set up the CLI, connect Hyperliquid, with fields labeled like wallet address and proxy private key / API private key / proxy key.
  • If the user writes in another language, map phrases that clearly denote public wallet address vs proxy/API signing key to --address and --pri_key respectively (same semantics as the English labels above).

Label → flag mapping:

User wording (meaning)hl1m flag
wallet address, address, or any label clearly referring to the public trading / master address shown in the UI--address
proxy private key, API private key, proxy key, or any label clearly referring to the bot/API signing key — not the main EOA key--pri_key

Parsing (apply before running init-wallet):

  1. Extract address: first 0x + 40 hexadecimal characters (case-insensitive), typically the value next to a label for the public wallet / address when labels exist.
  2. Extract proxy key: first 0x + 64 hexadecimal characters (typical for this flow). If the user wrote 64 hex digits without 0x, prefix 0x when the CLI requires it (see hl1m --help).
  3. Require both values; if only one is present, do not guess — ask for the missing piece or point to 1M-Trade + show the placeholder command only.
  4. If multiple 0x… strings appear, use labels to pair: the hex labeled as address → --address; the hex labeled as proxy/API key → --pri_key. Do not swap.

Exact command (values come from the user message; run in a trusted local shell):

bash
hl1m init-wallet --address <parsed_address> --pri_key <parsed_proxy_private_key>

Assistant output: confirm bind success or CLI error; run hl1m query-user-state after success. Do not repeat the full private key in chat (mask or omit).

What to use (recommended):

  • --address: your wallet public address on Hyperliquid (the address you trade / view balances with — often the same as the “master” address shown in the UI, even when using a proxy key for signing).
  • --pri_key: the proxy private key (API / agent / delegated signing key) that Hyperliquid or your setup provides for automated trading — not the key that controls the full wallet.

Critical security warning:

  • Never initialize with your wallet’s main / master private key (the EOA root key that fully controls funds). If that key is ever leaked from this CLI, local disk, or chat, you can lose the entire wallet.
  • Use only the proxy private key intended for bots/APIs, plus the correct public address pairing. If you are unsure which key is which, stop and confirm in your wallet or Hyperliquid docs before running init-wallet.

Rules:

  • Do not ask users to paste secrets unless they are already initiating bind; prefer they run init-wallet locally with no keys in chat. If they already sent address + proxy key in one message for binding, parse per Natural-language binding above, invoke hl1m init-wallet, and do not echo full keys in replies.
  • You only execute hl1m commands; do not edit skill files or read .env contents into the model context.

Command (placeholders — user substitutes on their machine; never paste real keys in chat):

bash
hl1m init-wallet --address 0xYourWalletAddress --pri_key 0xYourProxyPrivateKey
  • --address: wallet public address (see above).
  • --pri_key: proxy private key for signing — not the main wallet private key.

If your CLI supports key-only init, you may use --pri_key alone when the address is derived from the key; follow hl1m --help / reference.md for your version.

After success:

  • Run hl1m query-user-state to confirm the account is visible and balances look correct.

Constraints
  • If the user cannot open a position (e.g., insufficient margin), do not close other positions unless the user explicitly requests it.
Command list

Note: for any asset name (e.g. --coin), you can run query-meta to confirm the exact symbol. For example, user input "gold" often maps to xyz:GOLD. Always pass the canonical symbol.

Show full SKILL.md (581 more words)Show less
1) Query commands
CommandDescriptionExample
query-user-stateQuery user state (positions + balances). Optional address override; structure follows the API/SDK response.hl1m query-user-state --address 0x123...
query-open-ordersQuery open ordershl1m --testnet query-open-orders
query-fillsQuery fills / trade historyhl1m query-fills
query-metaQuery asset metadata (all symbols)hl1m query-meta
query-midsQuery mid prices (all symbols)hl1m query-mids
query-klineQuery kline/candles for a symbolhl1m query-kline --coin BTC --period 15m --start 1772511125000 --end 1772597525000

Retry rule (query commands only):

  • If a query command returns an empty result (null/None, empty string, empty list/array, empty object/dict, or no meaningful fields), retry the same command exactly once.
  • Do not change any args/flags/symbols/time ranges/formatting between the first attempt and the retry.
  • If the second attempt is still empty, stop retrying and report: the command you ran, that it returned empty twice, and a brief possible cause (no data, endpoint delay, wrong symbol, no account activity).
Query command arguments
query-user-state
  • --address: optional. If omitted, the address is derived from the configured private key.
query-kline
  • --coin: required. Symbol such as BTC, ETH, or xyz:TSLA. Use query-meta to confirm the canonical symbol first.
  • --period: required. One of: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 3d, 1w, 1M.
  • --start: optional (ms). Default is the start of the last 24 hours.
  • --end: optional (ms). Default is the current timestamp in ms.
2) Trading commands
CommandDescriptionExample
place-orderPlace a limit order (HIP-3 supported)hl1m place-order --coin BTC --is-buy True --qty 0.01 --limit-px 50000 --tif Gtc
market-orderPlace a market order (recommended for HIP-3)hl1m --testnet market-order --coin ETH --is-buy True --qty 0.1 --slippage 0.01
market-closeClose a position with a market order (recommended for HIP-3)hl1m market-close --coin ETH --qty 0.1 --slippage 0.01
cancel-orderCancel ordershl1m cancel-order --oid 123456 --coin HYPE
update-leverageUpdate leveragehl1m update-leverage --coin BTC --leverage 10 --is-cross True
update-isolated-marginTransfer isolated margin (HIP-3)hl1m update-isolated-margin --coin xyz:GOLD --amount 10
Trading command arguments
General rules
  1. For --coin, always resolve the canonical symbol (use query-meta if needed).
  2. For --qty, use query-meta results (e.g. szDecimals) to format the quantity precision correctly.
update-isolated-margin
  • --coin: required. Canonical symbol.
  • --amount: required. Transfer amount.
place-order
  • --coin: required.
  • --is-buy: required (True/False). True = long, False = short.
  • --qty: required.
  • --limit-px: required.
  • --tif: optional (Gtc/Ioc/Alo, default Gtc).
  • --reduce-only: optional (default False).
market-order
  • --coin: required.
  • --is-buy: required (True/False). True = long, False = short.
  • --qty: required.
  • --slippage: optional (default 0.02 = 2%).
market-close
  • --coin: required.
  • --qty: required.
  • --slippage: optional (default 0.02 = 2%).
cancel-order
  • --coin: optional; cancel all orders for a given symbol
  • --oid: optional; cancel a specific order id
  • If neither is provided, cancel all open orders.
update-leverage
  • --coin: required.
  • --leverage: required (integer).
  • --is-cross: optional (True/False, default True).

Output

All commands print formatted JSON for easy parsing:

  • Query commands: full data for the requested dimension
  • Trading commands: results for order submit/cancel/leverage updates (success flags, order IDs, etc.)

Error handling

  • Network issues: handled by the SDK with error messages
  • Invalid trading parameters: returns official Hyperliquid error responses

Notes

  1. Private keys are sensitive. Do not expose or share them.
  2. Testnet vs mainnet are strictly separated. Confirm --testnet before acting.
  3. Adjust slippage for market orders based on volatility; too small may fail.
  4. Leverage trading is risky. Choose leverage carefully.
  5. For proxy-style setups, follow hl1m help for --address / --pri_key behavior.

Summary

  • Use hl1m for queries, trading, and init-wallet to bind a user-supplied address and key to local encrypted state.
  • Install via pipx install 1m-trade (or your package manager); see hl1m --help and reference.md for full flags.

© LeoYeAI, 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 5 other files (scripts) in skills/1m-trade/skills/1m-trade-dex of LeoYeAI/openclaw-master-skills.

  • SKILL.md
  • reference.md
  • scripts/exchange.py
  • scripts/hl.py
  • scripts/info.py
  • scripts/requirements.txt

Open the folder on GitHubat commit e5199b5

Compare with similar skills

1m Trade Dex 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.

1m Trade Dex compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
1m Trade Dex this skillLeoYeAI/openclaw-master-skills2.2k—~2.8kAutomated safety check: NotesMIT
Senpi Trading Runtime ContractSenpi-ai/senpi-skills134—~2.6kAutomated safety check: PassApache-2.0
Agent OnboardingNunchi-trade/agent-cli521—~2.1kAutomated safety check: PassMIT
Crypto Pricesundial-org/awesome-openclaw-skills663—~489Automated safety check: PassNone
Itr Walakaranb192/itr-wala871—~3.6kAutomated safety check: PassMIT
Tushare Datazillionare/zillionare3222 repos~2.3kAutomated safety check: PassNone

Similar skills

  • Senpi Trading Runtime Contract

    Senpi-ai/senpi-skills

    Documents how a Senpi strategy's scan function talks to the runtime that schedules it, sizes orders, and manages stop-loss exits on Hyperliquid.

    134 GitHub stars~2.6k tokensUpdated yesterday
    Business, Finance & HRAuto-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
    Business, Finance & HRAuto-check passed
  • Crypto Price

    sundial-org/awesome-openclaw-skills

    Get cryptocurrency token price and generate candlestick charts via CoinGecko API or Hyperliquid API.

    663 GitHub stars~489 tokensUpdated 7 mo ago
    Business, Finance & HRAuto-check passed
  • Itr Wala

    karanb192/itr-wala

    File Indian income tax returns (ITR) for FY 2025-26 / AY 2026-27.

    871 GitHub stars~3.6k tokensUpdated 7 days ago
    Business, Finance & HRAuto-check passed
  • Tushare Data

    zillionare/zillionare

    面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。

    322 GitHub starsUsed in 2 repos~2.3k tokens
    Business, Finance & HRAuto-check passed
  • Global Stock Data

    simonlin1212/global-stock-data

    美股港股全栈数据工具包(官方源优先)— 十三层架构·30+端点·11数据源·全部零鉴权。在原有行情/K线/技术指标(MA/MACD/RSI/KDJ/布林带)/基本面/资金面/期权/SEC Filing/工具八层之上,新增:CBOE官方期权链(完整希腊字母+IV+0DTE流+异动识别)、FINRA全市场每日空头成交量、SEC…

    1.7k GitHub stars~19k tokensUpdated today
    Business, Finance & HRAuto-check passed

More from LeoYeAI/openclaw-master-skills

All 1,200 skills in this repo
  • DevOps Pipeline Management

    LeoYeAI/openclaw-master-skills

    Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.

    2.2k GitHub stars~4.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Feishu Document Collaboration

    LeoYeAI/openclaw-master-skills

    Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.

    2.2k GitHub stars~2k tokensUpdated 2 mo ago
    Auto-check passed
  • Files Memory System

    LeoYeAI/openclaw-master-skills

    Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.

    2.2k GitHub stars~3.8k tokensUpdated 2 mo ago
    Auto-check passed
  • GEO-Claw AI Visibility Agent

    LeoYeAI/openclaw-master-skills

    Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.

    2.2k GitHub stars~4.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Google Workspace CLI

    LeoYeAI/openclaw-master-skills

    Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.

    2.2k GitHub stars~2.6k tokensUpdated 2 mo ago
    Auto-check: notes
  • HealthFit Health Advisors

    LeoYeAI/openclaw-master-skills

    Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.

    2.2k GitHub stars~4.4k tokensUpdated 2 mo ago
    Auto-check passed

Questions about 1m Trade Dex

What does 1m Trade Dex do?

Hyperliquid DEX/Perps entrypoint via hl1m: market queries, order placement. 1m Trade Dex is an agent skill from LeoYeAI/openclaw-master-skills. Hyperliquid DEX/Perps entrypoint via hl1m: market queries, order placement.

When should I use 1m Trade Dex?

1m Trade Dex fits situations like: business, Finance & HR work in your project.

How do I install 1m Trade Dex in Claude Code?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill 1m-trade-dex -a claude-code`. Or copy the skill folder (skills/1m-trade/skills/1m-trade-dex in LeoYeAI/openclaw-master-skills) into .claude/skills/1m-trade-dex in your project. Claude Code loads it when a task matches its description.

How do I install 1m Trade Dex in Codex?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill 1m-trade-dex -a codex`. Or copy the skill folder (skills/1m-trade/skills/1m-trade-dex in LeoYeAI/openclaw-master-skills) into .agents/skills/1m-trade-dex in your project. Codex loads it when a task matches its description.

Can I use 1m Trade Dex 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 LeoYeAI/openclaw-master-skills --skill 1m-trade-dex -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/1m-trade-dex, .gemini/skills/1m-trade-dex, .github/skills/1m-trade-dex and .opencode/skills/1m-trade-dex in your project.

What does 1m Trade Dex need to run?

Going by SKILL.md and its folder, 1m Trade Dex needs Python for the scripts in its folder and the command-line tools its instructions call (pipx, python and brew). Our summary lists: Python 3.

Does 1m Trade Dex access the network?

SKILL.md names 1 domain. As links in the text: 1m-trade.com. This is read from the text; nothing was executed.

Is 1m Trade Dex safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does 1m Trade Dex use?

1m Trade Dex 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 1m Trade Dex use?

About 2.8k tokens (SKILL.md is roughly 11k 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 1m Trade Dex?

Skills that share tags, products or a category with 1m Trade Dex: Senpi Trading Runtime Contract (Senpi-ai/senpi-skills, 134 stars), Agent Onboarding (Nunchi-trade/agent-cli, 521 stars), Crypto Price (sundial-org/awesome-openclaw-skills, 663 stars) and Itr Wala (karanb192/itr-wala, 871 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains 1m Trade Dex?

LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,161 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.

Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.