# 1m Trade Dex

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

- Repository: https://github.com/LeoYeAI/agent-master-skills (2171 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add LeoYeAI/agent-master-skills --skill 1m-trade-dex -g -a claude-code -y`
Codex: `npx skills add LeoYeAI/agent-master-skills --skill 1m-trade-dex -g -a codex -y`
Cursor: `npx skills add LeoYeAI/agent-master-skills --skill 1m-trade-dex -g -a cursor -y`
Gemini CLI: `npx skills add LeoYeAI/agent-master-skills --skill 1m-trade-dex -g -a gemini-cli -y`

## 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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

## 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](https://www.1m-trade.com)** 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**:

The rest: https://github.com/LeoYeAI/agent-master-skills/blob/HEAD/skills/1m-trade/skills/1m-trade-dex/SKILL.md
