hl-portfolio
HL Portfolio API
Hyperliquidアカウントを分析: ポジション、PnL、約定、オープンオーダー、ファンディング。任意のウォレットの完全なクリアリングハウス状態を取得できます。エージェントがHyperliquidの取引インテリジェンスに必要とするポートフォリオレイヤーです。x402による1リクエストごとの課金(Base L2上のUSDC) -- APIキー不要、登録不要、レート制限の壁もありません。
klymax402マーケットプレイスの一部です -- AIエージェント向けの100のx402マイクロペイメントAPI、1つのウォレット、BaseIOP上のUSDC。
クイックスタート -- MCP
MCPクライアントの設定(Claude Desktop、Cursor、ElizaOSなど)に追加します:
{
"mcpServers": {
"hl-portfolio": {
"url": "https://hl-portfolio.api.klymax402.com/mcp"
}
}
}Related MCP server: polskidegen-hl-tracker
クイックスタート -- HTTP (x402)
curl -X POST "https://hl-portfolio.api.klymax402.com/api/account" \
-H "Content-Type: application/json" \
-d '{"address":"0x0000000000000000000000000000000000dEaD"}'
# -> 402 Payment Required, with an x402 payment challenge in the response bodyx402対応クライアント(@x402/fetch、x402-agent-tools、ATXP)は、402 -> 署名 -> 再試行のサイクルを自動的に処理します。
ツール
ツール | メソッド | パス | 価格 | 説明 |
| POST |
| $0.008 | Hyperliquidウォレットの完全なクリアリングハウス状態: ポジション、証拠金、PnL、レバレッジ、強制決済価格。 |
| POST |
| $0.008 | Hyperliquidウォレットの最近の取引約定: コイン、サイド、サイズ、価格、手数料、closedPnl、タイムスタンプ。 |
| POST |
| $0.005 | Hyperliquidウォレットのオープンオーダー: コイン、サイド、サイズ、価格、注文タイプ、reduce-onlyフラグ。 |
| POST |
| $0.005 | Hyperliquidウォレットが受取/支払ったファンディング: コイン、金額、レート、タイムスタンプ。 |
hyperliquid_get_account_state
Hyperliquidの永続先物(パーペチュアル)アカウントの完全なポートフォリオ状態を取得する場合に使用します。任意のウォレットアドレスについて、アカウントレベルの指標とポジションごとの詳細を含む完全なクリアリングハウス状態を返します。
パラメータ
名前 | 型 | 必須 | 説明 |
| string | 必須 | アカウント状態を取得するHyperliquidウォレットアドレス(0x...) |
レスポンス例:
{ accountValue: "125430.50", totalNtlPos: "89200.00", withdrawable: "36230.50", positions: [{ coin: "BTC", size: "1.5", entryPrice: "67500.00", unrealizedPnl: "2340.00", leverage: 5, liquidationPrice: "54200.00", marginType: "cross" }] }使用すべき場面: トレーダーのリスク・エクスポージャーの分析、証拠金の健全性確認、Hyperliquid上のポートフォリオ配分の評価などに使用します。取り引きコピートレードの評価とリスク監視に不可欠です。
使用すべきではない場面: 取引履歴(hyperliquid_get_trade_fillsを使用)、オープンオーダー(hyperliquid_get_open_ordersを使用)、ファンディング支払い(hyperliquid_get_user_fundingを使用)、ボールとのパフォーマンス(hyperliquid_get_vault_detailsを使用)、クジラの取引追跡(hyperliquid_detect_whale_tradesを使用)。
hyperliquid_get_trade_fills
Hyperliquidの永続先物(パーペチュアル)アカウントの最近の取引約定(フィル)を取得する必要がある場合に使用します。クローズしたポジションの実現PnLを含む、完全な執行詳細な情報を含む最新の取引を返します。
パラメータ
Name | 型 | 必須 | 説明 |
| string | 必須 | 取引約定を取得するHyperliquid address ウォレットアドレス(0x...) |
| number | 任意 | 返す約定の最大件数(デフォルト: 20、最大: 100) |
レスポンス例:
{ fills: [{ coin: "ETH", side: "buy", size: "10.0", price: "3450.50", fee: "0.69", closedPnl: "0.00", timestamp: 1712000000000 }], count: 20 }使用すべきではない場面: 現在のポジション(hyperliquid_get_account_stateを使用)、オープン/保留中の注文(hyperliquid_get_open_ordersを使用)、ファンディング支払い履歴(hyperliquid_get_user_fundingを使用)。
hyperliquid_get_open_orders
Hyperliquidの永続先物(パーペチュアル)アカウントのすべての保留中・オープンオーダーを確認する場合に使用します。オーダーブックに残っているすべての注文を、完全な注文パラメータとともに返します。
パラメータ
Name | 型 | 必須 | 説明 |
| string | 必須 | オープンオーダーを取得するHyperliquidウォレットアドレス(0x...) |
レスポンス例:
{ orders: [{ coin: "BTC", side: "buy", limitPx: "65000.00", sz: "0.5", orderType: "limit", reduceOnly: false, oid: 123456 }], count: 3 }使用すべきではない場面: 約定済みの取引(hyperliquid_get_trade_fillsAtを使用)、現在のポジション(hyperliquid_get_account_stateを使用)。
hyperliquid_get_user_funding
Hyperliquidの永続先物(パーペチュアル)アカウントのファンディング支払い履歴を取得する場合に使用します。受け取りまたは支払ったすべてのファンディングレート支払いを返し、ファンディング収入・費用の計算やキャリートレードの収益性評価に役立ちます。
パラメータ
Name | 型 | 必須 | 説明 |
| string | 必須 | ファンディング履歴を取得するHyperliquidウォレットアドレス(0x...) |
| number | 任意 | Unixタイムスタンプ(ミリ秒)で取得し始める(オプション、デフォルト: 直近7日間) |
レスポンス:
{ funding: [{ coin: "BTC", fundingRate: "0.0001", payment: "-1.35", timestamp: 1712000000000, positionSize: "1.5" }], totalReceived: "45.20", totalPaid: "-12.30", netFunding: "32.90" }使用すべきではない場面: 現在のポジション(hyperliquid_get_account_stateを使用)、ファンディング裁定機会(funding_arb_find_opportunitiesを使用)、取引執行履歴(hyperliquid_get_trade_fillsを使用)。
エージェントのプロンプト例
「Hyperliquidの永続先物(パーペチュアル)アカウントの完全なポートフォリオ状態を取得」
「Hyperliquidの永続先物(パーペチュアル)アカウントの最近の取引約定を取得」
「Hyperliquidの永続先物(パーペチュアル)アカウントのオープン/保留中オーダーをすべて表示」
支払い
プロトコル: x402 -- サインアップ不要・APIキー不要の、HTTPネイティブな1通話ごとの支払い
ネットワーク: Base L2(
eip155:8453)アセット: USDC
ファシリテーター: Coinbase CDP(プライマリ)、PayAI(フォールバック)
ATXP経由でも利用可能です(OAuth wrapped x402、RFC 9728 protected-resource metadata)
klymax402の一部
AIエージェント向けの100のx402マイクロペイメントAPI -- 1つのウォレット、Base上のUSDC、サインアップ不要。
完全なAPIリファレンス: https://klymax402.com/llms-full.txt
ライブ統計: https://klymax402.com/stats
ライセンス
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceReal-time crypto intelligence for AI agents. Technical analysis, liquidation heatmaps, sentiment, and funding rates for 50+ Hyperliquid perpetuals via x402 micropayments.151MIT
- AlicenseAqualityDmaintenanceMCP server for Hyperliquid that provides read-only on-chain wallet analytics. Enables natural-language queries about positions, fills, funding, and realized PnL for any public address.820MIT
- AlicenseAqualityCmaintenanceEnables natural language control of Hyperliquid perpetual futures, including querying positions, prices, orderbook, and executing trades like market and limit orders, all from MCP-compatible clients.13MIT
- AlicenseAqualityDmaintenanceEnables AI agents to interact with Hyperliquid perpetual futures exchange for market analysis, account management, and risk-managed trading.51MIT
Related MCP Connectors
Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.
Pay-per-call x402 gateway: agent tools, OpenAI-compatible LLM, market data, RPC, security audits.
Live financial data MCP: FX, crypto, stocks, news, URL reader. x402 on Base: $0.001/call.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Br0ski777/hl-portfolio-x402'
If you have feedback or need assistance with the MCP directory API, please join our Discord server