KH

kukapay/hyperliquid-info-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

30 stars 12 forks 品質 47 トレンド 11MIT

Hyperliquid perp DEX からリアルタイムのデータとインサイトを提供する MCP サーバーは、ボット、ダッシュボード、および分析で使用されます.

概要

Hyperliquid perp DEX からリアルタイムのデータとインサイトを提供する MCP サーバーは、ボット、ダッシュボード、および分析で使用されます。 - : - get user state: パーペチュアルやスポット市場向けのユーザーポジション、マージン、および引き落とし可能な残高を取得します。 - get user open orders: ユーザアカウントのオープン注文をすべて取得します。 - get user trade history: シンボル、サイズ、価格などの詳細で取引の記入履歴を取得します。 - get user funding history: カスタマイズ可能な時間範囲で入金履歴を問い合わせる。 - get user fees: ユーザー固有の手数料構造(メーカー/手数料率)を取得します。 - get user staking summary & get user staking rewards: アクセスのステークの詳細と報酬。 - get user order by oid と get user order by cloid: 注文 ID またはクライアントオーダー ID で特定の注文の詳細を取得します。 - get user sub accounts: メインアカウントに関連するサブアカウントをリストします。 - : - get all mids:すべての取引ペアの中間価格を取得します。 - get l2 snapshot:Fetch Level 2 特定のコインのオーダーブックスナップショット.

概要(AI 翻訳)

Hyperliquid perp DEX からリアルタイムのデータとインサイトを提供する MCP サーバーは、ボット、ダッシュボード、および分析で使用されます。

##特徴

-ユーザーデータ量:

  • [get_user_trade_history: シンボル、サイズ、価格などの詳細で取引履歴を記入します。
  • [get_user_staking_summary&[get_user_staking_rewards]]: 詳細情報と報酬へのアクセス。
  • [get_user_order_by_oid&[get_user_order_by_cloid]]: 注文IDまたはクライアントオーダーIDで特定の注文の詳細を取得します。

-市場データツール:

  • [get_all_mids: すべての取引ペアの中間価格を入手してください。
  • [get_l2_snapshot: フェッチレベル2のオーダーブックは特定のコインのスナップショットを予約します。
  • [get_candles_snapshot: カスタマイズ可能な間隔と時間範囲でキャンドルスティックデータを取得します.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Hyperliquid Info MCP Server

An MCP server that provides real-time data and insights from the Hyperliquid perp DEX for use in bots, dashboards, and analytics.

Features

  • User Data Queries:

    • get_user_state: Fetch user positions, margin, and withdrawable balance for perpetuals or spot markets.
    • get_user_open_orders: Retrieve all open orders for a user account.
    • get_user_trade_history: Get trade fill history with details like symbol, size, and price.
    • get_user_funding_history: Query funding payment history with customizable time ranges.
    • get_user_fees: Fetch user-specific fee structures (maker/taker rates).
    • get_user_staking_summary & get_user_staking_rewards: Access staking details and rewards.
    • get_user_order_by_oid & get_user_order_by_cloid: Retrieve specific order details by order ID or client order ID.
    • get_user_sub_accounts: List sub-accounts associated with a main account.
  • Market Data Tools:

    • get_all_mids: Get mid prices for all trading pairs.
    • get_l2_snapshot: Fetch Level 2 order book snapshots for a specific coin.
    • get_candles_snapshot: Retrieve candlestick data with customizable intervals and time ranges.
    • get_coin_funding_history: Query funding rate history for a specific coin.
    • get_perp_dexs: Fetch metadata about perpetual markets (using meta).
    • get_perp_metadata & get_spot_metadata: Get detailed metadata for perpetual and spot markets, with optional asset contexts.
  • Analysis Prompt:

    • analyze_positions: A guided prompt to analyze user trading activity using relevant tools.
  • ISO 8601 Support: Time-based queries (get_candles_snapshot, get_coin_funding_history, get_user_funding_history) accept ISO 8601 time strings for precise data filtering.

Installation

Prerequisites

  • Python 3.10: Required by the Hyperliquid Python SDK.
  • A valid Hyperliquid account address for user-specific queries.
  • uv or pip for package management.

Steps

  1. Clone the Repository:

    git clone https://github.com/kukapay/hyperliquid-info-mcp.git
    cd hyperliquid-info-mcp
    
  2. Install Dependencies: Using uv:

    uv sync
    

Usage

Running the Server

Run the server in development mode with MCP Inspector:

mcp dev main.py

Or install it for use in Claude Desktop:

mcp install main.py --name "Hyperliquid Info"

Example Usage

Using the MCP Inspector or Claude Desktop, you can interact with the server using natural language prompts. Below are examples of how to trigger the analyze_positions prompt and individual tools conversationally.

  1. Analyze Trading Positions:
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →