openfin-hyperliquid

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Hyperliquid Perps & Spot

Hyperliquid永续合约与现货

Playbook for trading perpetuals and spot on Hyperliquid through OpenFinance, plus the real-time WebSocket for market data.
本指南介绍如何通过OpenFinance在Hyperliquid上进行永续合约与现货交易,以及获取实时WebSocket市场数据。

Prerequisite

前置条件

  1. User completed
    openfin-setup
    (API key + EVM wallet delegation).
  2. For trading: USDC in the user's wallet, then deposit USDC into the Hyperliquid account via
    GET /agent/trading/deposit-address
    (send USDC to that deposit address; chain routing is handled automatically).
  3. For perp orders specifically: margin must be in the perp account, not spot. Transfer with
    POST /agent/trading/transfer
    .
  1. 用户已完成
    openfin-setup
    (API密钥 + EVM钱包授权)。
  2. 交易前:钱包中需有USDC,然后通过
    GET /agent/trading/deposit-address
    获取Hyperliquid账户的存款地址(向该地址发送USDC;链上路由将自动处理)。
  3. 永续合约订单专属要求:保证金必须在永续账户中,而非现货账户。可通过
    POST /agent/trading/transfer
    进行划转。

Accounts & funding

账户与资金

  • GET /agent/trading/account
    — Perpetual account summary. Returns
    marginSummary
    (accountValue, totalMarginUsed, totalNtlPos, totalRawUsd, withdrawable) and a list of open positions with
    entryPx
    ,
    positionValue
    ,
    returnOnEquity
    ,
    unrealizedPnl
    ,
    liquidationPx
    ,
    leverage
    , and
    size
    for each asset.
  • GET /agent/trading/account/spot
    — Spot account summary. Returns a list of token balances with
    coin
    name, token ID, hold amount, total amount, and entry notional value per token held.
  • GET /agent/trading/portfolio
    — Full portfolio view combining perp positions and spot balances in a single response (margin + equity + PnL + positions + token holdings with amounts and values).
  • GET /agent/trading/rate-limit
    — Current Hyperliquid API rate-limit status for the wallet. Returns cumulative volume traded, API calls used, and remaining allowed calls in the window.
  • GET /agent/trading/deposit-address
    — Deposit address mapped to the authenticated wallet's Hyperliquid account. Send USDC to this address to fund the Hyperliquid account; chain routing to Hyperliquid is handled automatically.
  • POST /agent/trading/transfer
    body
    {amount, toPerp}
    — Transfer USDC between the perp and spot accounts. Required before spot trading (funds must be in spot wallet to buy tokens) or before perp trading (funds in perp wallet).
    toPerp: true
    = spot → perp;
    false
    = perp → spot.
  • GET /agent/trading/account
    —— 永续账户摘要。返回
    marginSummary
    (账户价值、总保证金占用、总净持仓、总原生USD、可提取金额)以及持仓列表,每个持仓包含
    entryPx
    (入场价)、
    positionValue
    (持仓价值)、
    returnOnEquity
    (权益回报率)、
    unrealizedPnl
    (未实现盈亏)、
    liquidationPx
    (强平价格)、
    leverage
    (杠杆)和
    size
    (持仓量)。
  • GET /agent/trading/account/spot
    —— 现货账户摘要。返回代币余额列表,每个代币包含
    coin
    名称、代币ID、持有量、总量以及每个持币的入场名义价值。
  • GET /agent/trading/portfolio
    —— 完整投资组合视图,合并永续持仓与现货余额,单次返回所有数据(保证金 + 权益 + 盈亏 + 持仓 + 代币持有量及价值)。
  • GET /agent/trading/rate-limit
    —— 当前钱包的Hyperliquid API速率限制状态。返回累计交易量、已使用API调用次数以及当前窗口内剩余允许调用次数。
  • GET /agent/trading/deposit-address
    —— 与已授权钱包绑定的Hyperliquid账户存款地址。向该地址发送USDC即可为Hyperliquid账户充值;链上路由至Hyperliquid的流程将自动处理。
  • POST /agent/trading/transfer
    请求体
    {amount, toPerp}
    —— 在永续与现货账户间划转USDC。现货交易前需将资金划转至现货钱包,永续交易前需划转至永续钱包。
    toPerp: true
    = 现货→永续;
    false
    = 永续→现货。

Market data (REST)

市场数据(REST接口)

  • GET /agent/trading/market/mids
    — Mid prices (midpoint between best bid and ask) for every listed asset. Returns a map of asset symbol → mid price string (e.g.
    {"BTC": "70939.5", "ETH": "2500.0"}
    ).
  • GET /agent/trading/market/metas
    (
    ?dex=
    ) — Market metadata and asset contexts: funding rates, open interest, mark/mid/oracle prices, impact prices, 24h base and notional volume, premium, previous day price. Pass
    dex
    for DEX-specific data.
  • GET /agent/trading/market/perp-metas
    — Perpetual contract metadata only. Returns
    universe
    array with each asset's name,
    szDecimals
    (size precision),
    maxLeverage
    ,
    marginTableId
    , and
    isDelisted
    flag. Use this to look up asset indices (
    a
    ) and
    szDecimals
    before placing orders — place-order body requires these.
  • GET /agent/trading/market/spot-metas
    (
    ?dex=
    ) — Spot market metadata and asset contexts. Returns
    universe
    (token pairs, names, indices, isCanonical) and context per pair (
    prevDayPx
    ,
    dayNtlVlm
    ,
    dayBaseVlm
    ,
    markPx
    ,
    midPx
    ,
    circulatingSupply
    ,
    totalSupply
    ,
    coin
    ).
  • GET /agent/trading/market/l2-book/:coin
    — L2 orderbook for a coin (e.g.
    BTC
    ). Returns coin name, timestamp, and a two-level array of bids and asks, each with
    px
    (price),
    sz
    (size), and
    n
    (number of orders at that level).
  • GET /agent/trading/market/token/:tokenId
    — Detailed spot token info by token ID. Returns name, maxSupply, totalSupply, circulatingSupply, szDecimals, weiDecimals, midPx, markPx, prevDayPx, deployer, deployTime, seededUsdc, futureEmissions.
    :tokenId
    must be the full hex hash from
    spot-metas
    (e.g.
    0xc1fb593aeffbeb02f85e0308e9956a90
    ), NOT a simple number.
  • GET /agent/trading/market/all-dexs-asset-ctxs
    — Asset contexts across all DEXs on Hyperliquid: funding rate, open interest, mark/mid/ oracle prices, 24h volume, impact prices, premium, prev day price. Snapshot equivalent of the
    allDexsAssetCtxs
    WS channel.
  • GET /agent/trading/market/mids
    —— 所有上市资产的中间价(最优买价与卖价的中点)。返回资产符号→中间价字符串的映射(例如
    {"BTC": "70939.5", "ETH": "2500.0"}
    )。
  • GET /agent/trading/market/metas
    (
    ?dex=
    ) —— 市场元数据与资产上下文:资金费率、持仓量、标记/中间/预言机价格、冲击价格、24小时基准与名义交易量、溢价、前一日价格。传入
    dex
    参数可获取特定DEX的数据。
  • GET /agent/trading/market/perp-metas
    —— 仅返回永续合约元数据。返回
    universe
    数组,包含每个资产的名称、
    szDecimals
    (精度)、
    maxLeverage
    (最大杠杆)、
    marginTableId
    isDelisted
    (是否退市)标记。下单前需使用此接口查询资产索引(
    a
    )和
    szDecimals
    ——下单请求体需要这些参数。
  • GET /agent/trading/market/spot-metas
    (
    ?dex=
    ) —— 现货市场元数据与资产上下文。返回
    universe
    (代币对、名称、索引、是否标准代币)以及每个代币对的上下文(
    prevDayPx
    dayNtlVlm
    dayBaseVlm
    markPx
    midPx
    circulatingSupply
    totalSupply
    coin
    )。
  • GET /agent/trading/market/l2-book/:coin
    —— 单个币种的L2订单簿(例如
    BTC
    )。返回币种名称、时间戳以及买卖盘的二级数组,每一项包含
    px
    (价格)、
    sz
    (数量)和
    n
    (该价位的订单数)。
  • GET /agent/trading/market/token/:tokenId
    —— 通过代币ID获取现货代币详情。返回名称、最大供应量、总供应量、流通供应量、szDecimals、weiDecimals、中间价、标记价、前一日价格、部署者、部署时间、初始USDC注入量、未来释放量。
    :tokenId
    必须是
    spot-metas
    返回的完整十六进制哈希(例如
    0xc1fb593aeffbeb02f85e0308e9956a90
    ),而非简单数字。
  • GET /agent/trading/market/all-dexs-asset-ctxs
    —— Hyperliquid上所有DEX的资产上下文:资金费率、持仓量、标记/中间/预言机价格、24小时交易量、冲击价格、溢价、前一日价格。相当于
    allDexsAssetCtxs
    WebSocket频道的快照版本。

Historical candles (OHLCV)

历史K线(OHLCV)

Not a backend route — hit Hyperliquid's info endpoint directly:
http
POST https://api.hyperliquid.xyz/info
Content-Type: application/json

{
  "type": "candleSnapshot",
  "req": {
    "coin": "BTC",
    "interval": "1h",              // 1m,3m,5m,15m,30m,1h,2h,4h,8h,12h,1d,3d,1w,1M
    "startTime": 1706659200000,    // ms
    "endTime": 1706745600000       // ms, optional (defaults to now)
  }
}
Returns up to 5000 most recent candles. For HIP-3 spot tokens, prefix the coin with the dex name, e.g.
"xyz:XYZ100"
.
此功能并非后端路由——需直接调用Hyperliquid的info端点:
http
POST https://api.hyperliquid.xyz/info
Content-Type: application/json

{
  "type": "candleSnapshot",
  "req": {
    "coin": "BTC",
    "interval": "1h",              // 1m,3m,5m,15m,30m,1h,2h,4h,8h,12h,1d,3d,1w,1M
    "startTime": 1706659200000,    // 毫秒
    "endTime": 1706745600000       // 毫秒,可选(默认当前时间)
  }
}
最多返回5000根最新K线。对于HIP-3现货代币,需在币种名称前添加DEX前缀,例如
"xyz:XYZ100"

Market data (WebSocket)

市场数据(WebSocket)

Hyperliquid exposes a real-time feed at
wss://api.hyperliquid.xyz/ws
.
Subscribe message shape:
json
{ "method": "subscribe", "subscription": { "type": "<channel>" } }
Common channels:
  • allDexsAssetCtxs
    — funding rate, mark price, OI, 24h volume per asset
  • allMids
    — real-time mid prices for every coin
  • l2Book
    (
    {type, coin: "BTC"}
    ) — orderbook updates
  • trades
    (
    {type, coin}
    ) — trade tape
  • candle
    (
    {type, coin, interval: "1m"}
    ) — streaming candles
  • orderUpdates
    /
    userFills
    /
    userFundings
    — user-scoped; requires signing
Hyperliquid提供实时数据流,地址为
wss://api.hyperliquid.xyz/ws
订阅消息格式:
json
{ "method": "subscribe", "subscription": { "type": "<channel>" } }
常用频道:
  • allDexsAssetCtxs
    —— 每个资产的资金费率、标记价格、持仓量、24小时交易量
  • allMids
    —— 所有币种的实时中间价
  • l2Book
    (
    {type, coin: "BTC"}
    ) —— 订单簿更新
  • trades
    (
    {type, coin}
    ) —— 交易记录
  • candle
    (
    {type, coin, interval: "1m"}
    ) —— 实时K线推送
  • orderUpdates
    /
    userFills
    /
    userFundings
    —— 用户专属频道;需签名验证

Backend-managed WS

后端管理的WebSocket

The OpenFinance backend keeps one shared connection to
wss://api.hyperliquid.xyz/ws
and caches the latest snapshot per channel. Use this when multiple agents share the backend and you want a single connection + consistent state. MCP tools:
  • subscribe_all_dexs_asset_ctxs
    — start the shared backend subscription
  • unsubscribe_all_dexs_asset_ctxs
    — stop it
  • get_all_dexs_asset_ctxs
    — read the latest cached snapshot
  • get_ws_status
    — is the backend's connection alive
⚠ The
allDexsAssetCtxs
array has no asset names — each entry maps by index to the
universe
from
GET /agent/trading/market/metas
. Call
/market/metas
at least once to build the index→name map.
OpenFinance后端保持一个与
wss://api.hyperliquid.xyz/ws
的共享连接,并缓存每个频道的最新快照。当多个Agent共享后端且需要单一连接+一致状态时使用此方式。MCP工具:
  • subscribe_all_dexs_asset_ctxs
    —— 启动后端共享订阅
  • unsubscribe_all_dexs_asset_ctxs
    —— 停止订阅
  • get_all_dexs_asset_ctxs
    —— 读取最新缓存快照
  • get_ws_status
    —— 查询后端连接是否存活
allDexsAssetCtxs
数组不包含资产名称——每个条目通过索引与
GET /agent/trading/market/metas
返回的
universe
对应。需至少调用一次
/market/metas
来构建索引→名称的映射。

Direct WS from the client

客户端直接连接WebSocket

For reactive UIs or per-client streams, open your own WS to
wss://api.hyperliquid.xyz/ws
and subscribe. Don't expect the backend's cache to reflect connections that weren't opened through it.
对于响应式UI或客户端专属流,可自行打开WebSocket连接至
wss://api.hyperliquid.xyz/ws
并订阅。此时后端缓存不会反映非通过其建立的连接状态。

Orders

订单

Placing orders

下单

  • POST /agent/trading/orders
    — Place one or more orders. Each order needs
    a
    (asset index from
    perp-metas
    ),
    b
    (true=buy),
    p
    (price as string),
    s
    (size as string),
    r
    (reduce only),
    t
    (order type object with
    limit
    or
    trigger
    ). Body:
    json
    {
      "orders": [{
        "coin": "BTC",
        "is_buy": true,
        "sz": 0.01,
        "limit_px": 65000,
        "order_type": { "limit": { "tif": "Gtc" } },
        "reduce_only": false
      }],
      "grouping": "na"           // "na" | "normalTpsl" | "positionTpsl"
    }
    tif
    (time-in-force):
    • "Gtc"
      — good-till-cancelled (resting limit)
    • "Ioc"
      — immediate-or-cancel (market-ish; cross the book for a fill)
    • "Alo"
      — add-liquidity-only (post-only; rejects if would be taker)
    Grouping:
    "normalTpsl"
    groups take-profit/stop-loss child orders with a primary;
    "positionTpsl"
    attaches them to an existing position. Fetch market metas first to get correct asset indices and szDecimals.
  • POST /agent/trading/orders
    —— 下达一个或多个订单。每个订单需要
    a
    (来自
    perp-metas
    的资产索引)、
    b
    (true=买入)、
    p
    (价格字符串)、
    s
    (数量字符串)、
    r
    (仅减仓)、
    t
    (订单类型对象,包含
    limit
    trigger
    )。请求体:
    json
    {
      "orders": [{
        "coin": "BTC",
        "is_buy": true,
        "sz": 0.01,
        "limit_px": 65000,
        "order_type": { "limit": { "tif": "Gtc" } },
        "reduce_only": false
      }],
      "grouping": "na"           // "na" | "normalTpsl" | "positionTpsl"
    }
    tif
    (有效时间):
    • "Gtc"
      —— 取消前有效(挂单限价)
    • "Ioc"
      —— 立即成交或取消(类市价;穿透订单簿成交)
    • "Alo"
      —— 仅增加流动性(仅挂单;若将成为吃单者则拒绝)
    分组:
    "normalTpsl"
    将止盈/止损子订单与主订单分组;
    "positionTpsl"
    将其附加至现有持仓。下单前需先获取市场元数据以获取正确的资产索引和szDecimals。

Reading orders

查询订单

  • GET /agent/trading/orders
    — All currently open orders (compact). Returns array with
    coin
    ,
    side
    (B/A),
    limitPx
    ,
    sz
    ,
    oid
    (order ID),
    timestamp
    ,
    orderType
    per order.
  • GET /agent/trading/orders/details
    — Same but with full details:
    origSz
    (original size),
    triggerPx
    ,
    triggerCondition
    ,
    cloid
    (client order ID),
    reduceOnly
    flag.
  • GET /agent/trading/orders/history
    — Historical orders (filled, cancelled, rejected). Adds
    statusMsg
    (e.g.
    "filled"
    ,
    "cancelled"
    ),
    filledSz
    ,
    avgFillPx
    ,
    cloid
    .
  • GET /agent/trading/orders/:oid/status
    — Single order's current status (
    open
    ,
    filled
    ,
    cancelled
    ),
    filledSz
    ,
    avgFillPx
    , remaining size.
  • GET /agent/trading/orders
    —— 所有当前挂单(精简版)。返回数组,每个订单包含
    coin
    side
    (买/卖)、
    limitPx
    sz
    oid
    (订单ID)、
    timestamp
    orderType
  • GET /agent/trading/orders/details
    —— 与上述接口相同,但返回完整详情:
    origSz
    (原始数量)、
    triggerPx
    (触发价格)、
    triggerCondition
    (触发条件)、
    cloid
    (客户端订单ID)、
    reduceOnly
    标记。
  • GET /agent/trading/orders/history
    —— 历史订单(已成交、已取消、已拒绝)。新增
    statusMsg
    (例如
    "filled"
    "cancelled"
    )、
    filledSz
    (已成交数量)、
    avgFillPx
    (平均成交价格)、
    cloid
  • GET /agent/trading/orders/:oid/status
    —— 单个订单的当前状态(
    open
    filled
    cancelled
    )、
    filledSz
    avgFillPx
    、剩余数量。

Cancel / modify

取消/修改订单

  • DELETE /agent/trading/orders
    body
    {cancels: [{a, o}]}
    — Cancel one or more open orders.
    a
    = asset index (from market metas),
    o
    = order ID. Batch-cancellable.
  • PUT /agent/trading/orders/:oid
    body
    {order: {...}}
    — Modify an existing open order by ID. Same order shape as place.
  • DELETE /agent/trading/orders
    请求体
    {cancels: [{a, o}]}
    —— 取消一个或多个挂单。
    a
    = 资产索引(来自市场元数据),
    o
    = 订单ID。支持批量取消。
  • PUT /agent/trading/orders/:oid
    请求体
    {order: {...}}
    —— 通过订单ID修改现有挂单。订单格式与下单时相同。

TWAP (Time-Weighted Average Price)

TWAP(时间加权平均价格)

  • POST /agent/trading/twap
    — Place a TWAP order that splits a large trade into smaller market-order slices over a specified duration to minimize price impact. Returns
    twapId
    to track or terminate.
  • GET /agent/trading/twap/fills
    — Get individual slice executions for all TWAPs. Returns fills with
    coin
    ,
    side
    ,
    fillPx
    ,
    fillSz
    ,
    feeUsdc
    ,
    timestamp
    , and the parent
    twapId
    .
  • DELETE /agent/trading/twap/:twapId
    — Terminate an active TWAP. Stops further slices; already-filled slices remain settled.
  • POST /agent/trading/twap
    —— 下达TWAP订单,将大额交易拆分为多个小额市价订单,在指定时间段内执行以最小化价格冲击。返回
    twapId
    用于跟踪或终止订单。
  • GET /agent/trading/twap/fills
    —— 获取所有TWAP订单的拆分执行记录。返回成交记录,包含
    coin
    side
    fillPx
    fillSz
    feeUsdc
    timestamp
    以及父订单
    twapId
  • DELETE /agent/trading/twap/:twapId
    —— 终止活跃的TWAP订单。停止后续拆分订单;已成交部分将保持结算状态。

Leverage & margin

杠杆与保证金

  • POST /agent/trading/leverage
    body
    {asset, isCross, leverage}
    — Set leverage + margin mode for an asset. Must be set BEFORE placing leveraged orders.
    asset
    = coin index,
    isCross: true
    = cross margin (shared pool),
    false
    = isolated (per-position),
    leverage
    = max multiplier.
  • POST /agent/trading/margin
    body
    {asset, isBuy, ntli}
    — Add or remove margin from an isolated-margin position. Positive
    ntli
    adds (lowers liquidation risk), negative removes (raises leverage). Only works on positions using isolated margin mode.
  • POST /agent/trading/leverage
    请求体
    {asset, isCross, leverage}
    —— 设置单个资产的杠杆+保证金模式。必须在下达杠杆订单前设置。
    asset
    = 币种索引,
    isCross: true
    = 全仓保证金(共享保证金池),
    false
    = 逐仓保证金(按持仓隔离),
    leverage
    = 最大乘数。
  • POST /agent/trading/margin
    请求体
    {asset, isBuy, ntli}
    —— 为逐仓保证金持仓添加或移除保证金。
    ntli
    为正值时添加保证金(降低强平风险),负值时移除(提高杠杆)。仅适用于使用逐仓保证金模式的持仓。

Fills & funding

成交记录与资金费率

  • GET /agent/trading/fills
    (
    ?aggregateByTime=false
    ) — Trade fill history. Returns fills with
    coin
    ,
    side
    (B/A),
    px
    (fill price),
    sz
    ,
    feeUsdc
    ,
    timestamp
    ,
    oid
    ,
    cloid
    ,
    crossed
    (taker/maker),
    liquidation
    flag.
  • GET /agent/trading/fills/by-time
    (
    ?startTime=<ms>&endTime=<ms>
    ) — Same fill data, filtered by time window (Unix ms).
    endTime
    optional (defaults to now).
  • GET /agent/trading/funding
    — Funding payment history for perp positions. Returns payments with
    coin
    ,
    fundingRate
    ,
    usdc
    amount (positive = received, negative = paid),
    timestamp
    , and position size at the time of payment.
  • GET /agent/trading/fills
    (
    ?aggregateByTime=false
    ) —— 交易成交历史。返回成交记录,包含
    coin
    side
    (买/卖)、
    px
    (成交价格)、
    sz
    feeUsdc
    timestamp
    oid
    cloid
    crossed
    (吃单/挂单)、
    liquidation
    (是否强平)标记。
  • GET /agent/trading/fills/by-time
    (
    ?startTime=<ms>&endTime=<ms>
    ) —— 相同的成交数据,按时间窗口过滤(Unix毫秒)。
    endTime
    可选(默认当前时间)。
  • GET /agent/trading/funding
    —— 永续持仓的资金费率支付历史。返回支付记录,包含
    coin
    fundingRate
    usdc
    金额(正=收到,负=支付)、
    timestamp
    以及支付时的持仓量。

Order-sizing gotchas

订单数量注意事项

  • sz
    is in base asset (e.g. BTC, ETH), not USD. For BTC at $65k, 0.01 = $650 notional.
  • limit_px
    ticks differ per asset — check
    perp-metas
    for
    szDecimals
    and use
    formatHyperliquidPrice
    /
    formatHyperliquidSize
    conventions.
  • Hyperliquid rejects prices too far from mid (price bands, ~5-10%). For aggressive fills cross the book but stay in-band.
  • sz
    基础资产为单位(例如BTC、ETH),而非USD。例如BTC价格为65k美元时,0.01 BTC相当于650美元名义价值。
  • 不同资产的
    limit_px
    最小变动单位不同——请查看
    perp-metas
    中的
    szDecimals
    ,并遵循
    formatHyperliquidPrice
    /
    formatHyperliquidSize
    规范。
  • Hyperliquid会拒绝与中间价偏差过大的价格(价格区间约5-10%)。若要激进成交,可穿透订单簿但需保持在价格区间内。

Margin modes

保证金模式

  • Cross margin: all positions share one margin pool. Default.
  • Isolated margin: margin pinned per position via
    POST /margin
    .
Set
isCross: true/false
on
POST /leverage
to pick the mode for a coin.
  • 全仓保证金:所有持仓共享一个保证金池。默认模式。
  • 逐仓保证金:通过
    POST /margin
    将保证金绑定至单个持仓。
POST /leverage
中设置
isCross: true/false
来选择单个币种的保证金模式。

Don't

禁止操作

  • Don't use
    Gtc
    for "buy now" — use
    Ioc
    or
    Alo
    with cross-book price.
  • Don't expect the WS cache to be populated instantly on server boot — the backend auto-subscribes on startup but first message can take a few seconds.
  • Don't put raw USD amounts in
    sz
    . It's base-asset.
  • Don't forget to
    transfer
    USDC from spot to perp before placing perp orders — they're separate balances.
  • 不要使用
    Gtc
    订单来“立即买入”——应使用
    Ioc
    Alo
    订单并设置穿透订单簿的价格。
  • 不要期望服务器启动后WebSocket缓存立即填充——后端启动时会自动订阅,但第一条消息可能需要几秒时间。
  • 不要在
    sz
    字段中输入原始USD金额。该字段为基础资产数量。
  • 下达永续订单前不要忘记将USDC从现货账户划转至永续账户——两者余额相互独立。

MCP note

MCP说明

Tool names mirror the routes:
hyperliquid_place_order
,
hyperliquid_cancel_order
,
hyperliquid_get_account_summary
,
hyperliquid_get_all_mids
,
hyperliquid_usd_class_transfer
, etc.
工具名称与路由对应:
hyperliquid_place_order
hyperliquid_cancel_order
hyperliquid_get_account_summary
hyperliquid_get_all_mids
hyperliquid_usd_class_transfer
等。",