1m Trade Dexのロゴ

1m Trade Dex

コミュニティ人気
LeoYeAI
1m-trade-dex

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.

概要

公開者LeoYeAI
リポジトリopenclaw-master-skills
スキル名1m-trade-dex
スター
2.1K
フォーク
325
同梱ファイル
5
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 5個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    LeoYeAIがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「1m Trade Dex」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/1m-trade/skills/1m-trade-dex
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git /tmp/openclaw-master-skills
mkdir -p .claude/skills
cp -r /tmp/openclaw-master-skills/skills/1m-trade/skills/1m-trade-dex .claude/skills/1m-trade-dex
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットで1m Trade Dexを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的に1m Trade Dexを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、1m Trade Dexは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「1m Trade Dex」では何ができますか?

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.

TypingMindで1m Trade Dexを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。1m Trade Dexはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindに1m Trade Dexをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/1m-trade/skills/1m-trade-dexを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

1m Trade Dexを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

1m Trade Dexで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでも1m Trade Dexを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「1m Trade Dex」は無料ですか?

はい。LeoYeAIがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇