Loading...
Loading...
Compare original and translation side by side
**| Tool | What it does |
|---|---|
| Check how much you can trade with (use this for balance checks!) |
| See your open positions and PnL |
| See your token holdings (USDC, HYPE, etc.) |
| Get current prices for crypto or stocks |
| Check order book depth and liquidity |
| See recent trade fills and execution prices |
| Get price charts (1m, 5m, 1h, 4h, 1d) |
| Check funding rates for perps |
| See pending orders |
| 工具 | 功能 |
|---|---|
| 查看可交易资金总量(请用此工具进行余额检查!) |
| 查看未平仓头寸和盈亏(PnL) |
| 查看代币持仓(USDC、HYPE等) |
| 获取加密货币或股票的当前价格 |
| 查看订单簿深度和流动性 |
| 查看近期成交记录和执行价格 |
| 获取价格K线图(1分钟、5分钟、1小时、4小时、1天) |
| 查看永续合约资金费率 |
| 查看挂单 |
| Tool | What it does |
|---|---|
| Buy or sell perps (crypto/stocks) |
| Buy or sell spot tokens |
| Place stop loss or take profit orders |
| Set leverage (1x to asset max) |
| Cancel a specific order |
| Cancel all open orders |
| Change order price or size |
| 工具 | 功能 |
|---|---|
| 买卖永续合约(加密货币/股票) |
| 买卖现货代币 |
| 设置止损或止盈订单 |
| 设置杠杆(1倍至资产上限) |
| 取消指定订单 |
| 取消所有挂单 |
| 修改订单价格或数量 |
| Tool | What it does |
|---|---|
| Add USDC from Arbitrum (min $5) |
| Send USDC to Arbitrum (1 USDC fee, ~5 min) |
| Move USDC between spot/perp (rarely needed) |
| 工具 | 功能 |
|---|---|
| 从Arbitrum转入USDC(最低5美元) |
| 将USDC转出至Arbitrum(手续费1 USDC,约5分钟到账) |
| 在现货/永续合约账户间划转USDC(极少需要) |
User: "Buy $20 of Bitcoin with 5x leverage"
Agent: [checks balance → sets leverage → places order → reports fill]
Result: "✓ Bought 0.0002 BTC at $95,432 with 5x leverage. Position opened."
User: "Long NVIDIA with $50, 10x"
Agent: [auto-detects NVIDIA = xyz:NVDA → executes → verifies]
Result: "✓ Bought 0.25 NVDA at $198.50 with 10x leverage. Filled at $198.62."
User: "Sell my ETH position"
Agent: [checks position size → closes → reports PnL]
Result: "✓ Sold 0.5 ETH at $3,421. Realized PnL: +$12.50"用户:"用5倍杠杆买入20美元的比特币"
Agent: [检查余额 → 设置杠杆 → 下单 → 报告成交结果]
结果:"✓ 以95,432美元价格买入0.0002 BTC,使用5倍杠杆。已开仓。"
用户:"用50美元、10倍杠杆做多NVIDIA"
Agent: [自动识别NVIDIA = xyz:NVDA → 执行交易 → 验证结果]
结果:"✓ 以198.50美元价格买入0.25 NVDA,使用10倍杠杆,成交价格198.62美元。"
用户:"卖出我的ETH头寸"
Agent: [检查头寸规模 → 平仓 → 报告盈亏]
结果:"✓ 以3,421美元价格卖出0.5 ETH,已实现盈亏:+$12.50"hl_total_balancehl_leveragehl_fillshl_total_balancehl_accounthl_balanceshl_total_balancehl_leveragehl_fillshl_total_balancehl_accounthl_balanceshl_account() # Default crypto perps account
hl_account(dex="xyz") # Builder dex (RWA/stock perps) accountmarginSummaryassetPositionshl_account() # 默认加密货币永续合约账户
hl_account(dex="xyz") # Builder dex(RWA/股票永续合约)账户marginSummaryassetPositionshl_balances()hl_balances()hl_market() # All mid prices
hl_market(coin="BTC") # BTC price + metadata (maxLeverage, szDecimals)hl_market() # 查看所有标的中间价
hl_market(coin="BTC") # 查看BTC价格及元数据(最大杠杆、数量精度)hl_order(coin="BTC", side="buy", size=0.01, price=95000)hl_order(coin="BTC", side="buy", size=0.01, price=95000)hl_order(coin="ETH", side="sell", size=0.1)pricehl_order(coin="ETH", side="sell", size=0.1)pricehl_order(coin="BTC", side="buy", size=0.01, price=94000, order_type="alo")hl_order(coin="BTC", side="buy", size=0.01, price=94000, order_type="alo")hl_tpsl_order(coin="BTC", side="sell", size=0.01, trigger_px=90000, tpsl="sl")hl_tpsl_order(coin="BTC", side="sell", size=0.01, trigger_px=90000, tpsl="sl", is_market=false, limit_px=89900)hl_tpsl_order(coin="BTC", side="sell", size=0.01, trigger_px=90000, tpsl="sl")hl_tpsl_order(coin="BTC", side="sell", size=0.01, trigger_px=90000, tpsl="sl", is_market=false, limit_px=89900)hl_tpsl_order(coin="ETH", side="sell", size=0.5, trigger_px=3500, tpsl="tp")hl_tpsl_order(coin="ETH", side="sell", size=0.5, trigger_px=3500, tpsl="tp")hl_order(coin="BTC", side="sell", size=0.01, reduce_only=true)reduce_only=truehl_order(coin="BTC", side="sell", size=0.01, reduce_only=true)reduce_only=truehl_spot_order(coin="HYPE", side="buy", size=10, price=25.0)hl_spot_order(coin="HYPE", side="buy", size=10, price=25.0)hl_cancel(coin="BTC", order_id=12345678)order_idhl_open_ordershl_cancel(coin="BTC", order_id=12345678)hl_open_ordersorder_idhl_cancel_all() # Cancel everything
hl_cancel_all(coin="BTC") # Cancel only BTC ordershl_cancel_all() # 取消所有挂单
hl_cancel_all(coin="BTC") # 仅取消BTC相关挂单hl_modify(order_id=12345678, coin="BTC", side="buy", size=0.02, price=94500)hl_modify(order_id=12345678, coin="BTC", side="buy", size=0.02, price=94500)hl_leverage(coin="BTC", leverage=10) # 10x cross margin
hl_leverage(coin="ETH", leverage=5, cross=false) # 5x isolated marginhl_leverage(coin="BTC", leverage=10) # 10倍交叉保证金
hl_leverage(coin="ETH", leverage=5, cross=false) # 5倍逐仓保证金hl_transfer_usd(amount=1000, to_perp=true) # Spot → Perp
hl_transfer_usd(amount=500, to_perp=false) # Perp → Spothl_transfer_usd(amount=1000, to_perp=true) # 现货账户 → 永续合约账户
hl_transfer_usd(amount=500, to_perp=false) # 永续合约账户 → 现货账户hl_withdraw(amount=100) # Withdraw to own wallet
hl_withdraw(amount=50, destination="0xABC...") # Withdraw to specific addresshl_withdraw(amount=100) # 提取至自身钱包
hl_withdraw(amount=50, destination="0xABC...") # 提取至指定地址hl_deposit(amount=500)hl_deposit(amount=500)hl_candles(coin="BTC", interval="1h", lookback=48)1m5m15m1h4h1dhl_candles(coin="BTC", interval="1h", lookback=48)1m5m15m1h4h1dhl_funding() # All predicted fundings
hl_funding(coin="BTC") # BTC predicted + 24h historyhl_funding() # 查看所有标的预测资金费率
hl_funding(coin="BTC") # 查看BTC预测资金费率及24小时历史数据hl_fills(limit=10)hl_fills(limit=10)xyz:TICKERxyz:TICKER"BTC""ETH""SOL""DOGE""HYPE"xyz:"xyz:NVDA""xyz:TSLA""xyz:GOLD"hl_market(coin="X")hl_market(dex="xyz")"BTC""ETH""SOL""DOGE""HYPE"xyz:"xyz:NVDA""xyz:TSLA""xyz:GOLD"hl_market(coin="X")hl_market(dex="xyz")xyz:xyz:| Category | Examples |
|---|---|
| US Stocks | |
| Commodities | |
| Indices | |
| Forex | |
If a user says "buy NVDA" or "trade GOLD", use/xyz:NVDA. These are real-world assets, not crypto.xyz:GOLD
| 类别 | 示例 |
|---|---|
| 美股 | |
| 商品 | |
| 指数 | |
| 外汇 | |
若用户说“买入NVIDIA”或“交易GOLD”,请使用/xyz:NVDA。这些是现实世界资产,并非加密货币。xyz:GOLD
xyz:TICKERhl_market(coin="xyz:NVDA") # Check NVIDIA stock perp price
hl_market(dex="xyz") # List ALL available RWA/stock perps
hl_orderbook(coin="xyz:NVDA") # Check liquidity
hl_leverage(coin="xyz:NVDA", leverage=3) # Set leverage (auto-isolated)
hl_order(coin="xyz:NVDA", side="buy", size=0.5, price=188) # Limit buy 0.5 NVDA
hl_order(coin="xyz:TSM", side="buy", size=1) # Market buy 1 TSM
hl_cancel(coin="xyz:NVDA", order_id=12345678) # Cancel orderxyz:TICKERhl_market(coin="xyz:NVDA") # 查看NVIDIA股票永续合约价格
hl_market(dex="xyz") # 列出所有可用RWA/股票永续合约
hl_orderbook(coin="xyz:NVDA") # 查看流动性
hl_leverage(coin="xyz:NVDA", leverage=3) # 设置杠杆(Builder永续合约默认使用逐仓保证金)
hl_order(coin="xyz:NVDA", side="buy", size=0.5, price=188) # 挂限价单买入0.5 NVDA
hl_order(coin="xyz:TSM", side="buy", size=1) # 挂市价单买入1 TSM
hl_cancel(coin="xyz:NVDA", order_id=12345678) # 取消订单xyz:NVDAhl_market(coin="xyz:NVDA")hl_leverage(coin="xyz:NVDA", leverage=3)hl_order(coin="xyz:NVDA", side="buy", size=0.5, price=188)hl_fills()xyz:NVDAhl_market(coin="xyz:NVDA")hl_leverage(coin="xyz:NVDA", leverage=3)hl_order(coin="xyz:NVDA", side="buy", size=0.5, price=188)hl_fills()hl_leveragedexxyzhl_leveragedexxyzhl_total_balance()hl_leverage(coin="BTC", leverage=5)hl_order(...)hl_fills()hl_total_balance()hl_leverage(coin="BTC", leverage=5)hl_order(...)hl_fills()hl_total_balance()hl_leverage(coin="xyz:NVDA", leverage=10)hl_order(coin="xyz:NVDA", ...)hl_fills()hl_total_balance()hl_leverage(coin="xyz:NVDA", leverage=10)hl_order(coin="xyz:NVDA", ...)hl_fills()hl_account()hl_order(coin="BTC", side="sell", size=X, reduce_only=true)hl_fills()hl_account()hl_order(coin="BTC", side="sell", size=X, reduce_only=true)hl_fills()hl_total_balance()hl_spot_order(coin="HYPE", side="buy", size=100)hl_balances()hl_total_balance()hl_spot_order(coin="HYPE", side="buy", size=100)hl_balances()hl_deposit(amount=500)hl_withdraw(amount=100)hl_deposit(amount=500)hl_withdraw(amount=100)| Type | Parameter | Behavior |
|---|---|---|
| Limit (GTC) | | Rests on book until filled or cancelled |
| Market (IoC) | omit | Immediate-or-Cancel at mid +/- 3% slippage |
| Post-Only (ALO) | | Rejected if it would cross the spread |
| Fill-or-Kill | | Fill immediately at price or cancel |
| Stop Loss | | Triggers when price drops to limit losses |
| Take Profit | | Triggers when price rises to lock gains |
| 类型 | 参数 | 行为 |
|---|---|---|
| 限价单(GTC) | | 挂单直至成交或取消 |
| 市价单(IoC) | 省略 | 立即成交或取消,滑点为中间价±3% |
| 只做市商单(ALO) | | 若会吃单则被拒绝 |
| 立即成交或取消单(Fill-or-Kill) | | 立即以指定价格成交或取消 |
| 止损单(SL) | | 价格下跌至触发价时执行,限制亏损 |
| 止盈单(TP) | | 价格上涨至触发价时执行,锁定利润 |
trigger_pxtrigger_pxhl_tpsl_order(coin="BTC", side="sell", size=0.1, trigger_px=90000, tpsl="sl")hl_tpsl_order(coin="BTC", side="sell", size=0.1, trigger_px=90000, tpsl="sl")hl_tpsl_order(coin="ETH", side="sell", size=1.0, trigger_px=3500, tpsl="tp")hl_tpsl_order(coin="ETH", side="sell", size=1.0, trigger_px=3500, tpsl="tp")hl_tpsl_order(
coin="BTC",
side="sell",
size=0.1,
trigger_px=90000,
tpsl="sl",
is_market=false,
limit_px=89900
)hl_tpsl_order(
coin="BTC",
side="sell",
size=0.1,
trigger_px=90000,
tpsl="sl",
is_market=false,
limit_px=89900
)sidehl_tpsl_order(coin="BTC", side="buy", size=0.1, trigger_px=98000, tpsl="sl")hl_tpsl_order(coin="BTC", side="buy", size=0.1, trigger_px=92000, tpsl="tp")sidehl_tpsl_order(coin="BTC", side="buy", size=0.1, trigger_px=98000, tpsl="sl")hl_tpsl_order(coin="BTC", side="buy", size=0.1, trigger_px=92000, tpsl="tp")reduce_only=truehl_open_ordersreduce_only=truehl_open_orders| Mistake | Problem | Solution |
|---|---|---|
| Wrong side | SL buys instead of sells | Long position → |
| Size too large | TP/SL opens new position | Set |
| Trigger = limit | Confusion about prices | |
| No SL on leverage | Liquidation risk | Always set stop loss on leveraged positions |
| 错误 | 问题 | 解决方案 |
|---|---|---|
| 方向错误 | 止损单买入而非卖出 | 多头头寸 → 止盈/止损使用 |
| 规模过大 | 止盈/止损开反向头寸 | 设置 |
| 触发价与限价混淆 | 对价格参数理解错误 | |
| 杠杆头寸未设止损 | 面临爆仓风险 | 杠杆头寸务必设置止损 |
| Aspect | Perps | Spot |
|---|---|---|
| Tool | | |
| Leverage | Yes (up to asset max) | No |
| Funding | Paid/received every hour | None |
| Short selling | Yes (native) | Must own tokens to sell |
| Check positions | | |
| 维度 | 永续合约 | 现货 |
|---|---|---|
| 工具 | | |
| 杠杆 | 支持(最高至资产上限) | 不支持 |
| 资金费率 | 每小时收取/发放 | 无 |
| 卖空 | 原生支持 | 需持有代币才能卖出 |
| 头寸查询 | | |
| Error | Fix |
|---|---|
| "Unknown perp asset" | Check coin name. Crypto: "BTC", "ETH". Stocks: "xyz:NVDA", "xyz:TSLA" |
| "Insufficient margin" | Use |
| "Order must have minimum value of $10" | Increase size. Formula: |
| "Size too small" | BTC min is typically 0.001. Check asset's szDecimals |
| "Order would cross" | ALO order rejected. Use regular limit order instead |
| "User or wallet does not exist" | Deposit USDC first with |
| "Minimum deposit is 5 USDC" | Hyperliquid requires at least $5 per deposit |
| "Policy violation" | Load wallet-policy skill and propose wildcard policy |
| "Action disabled when unified account is active" | Transfers blocked in unified mode (default). Just place orders directly |
| 错误 | 解决方法 |
|---|---|
| "Unknown perp asset" | 检查币种名称。加密货币:"BTC"、"ETH";股票:"xyz:NVDA"、"xyz:TSLA" |
| "Insufficient margin" | 使用 |
| "Order must have minimum value of $10" | 增加订单规模。计算公式: |
| "Size too small" | BTC最小订单规模通常为0.001。查看资产的szDecimals |
| "Order would cross" | ALO订单被拒绝。改用普通限价单 |
| "User or wallet does not exist" | 先使用 |
| "Minimum deposit is 5 USDC" | Hyperliquid要求每次存款至少5美元 |
| "Policy violation" | 加载wallet-policy技能并提交通配符策略 |
| "Action disabled when unified account is active" | 统一账户模式下禁止划转(默认设置)。直接下单即可 |