Task-oriented workflow examples for common Hyperliquid and dPro use cases.
This file is a cookbook, not a full command reference.
Use the other docs for their intended purposes:
README.mdfor installation, runtime model, configuration, and high-level usageSKILL.mdfor routing, execution policy, and safety rulesreferences/commands.mdfor canonical command syntaxreferences/onchain.mdfor onchain endpoint behavior and normalizationreferences/troubleshooting.mdfor diagnosis and fixes
Follow these examples when you already know the task you want to complete.
Typical pattern:
- identify the market or account context
- resolve the exact symbol if trading is involved
- inspect price, balance, or position state
- perform the action
- verify the result
Goal: add a monitoring account, add a trading account, and verify the runtime is ready.
# Monitoring only
dpro-hl account add-readonly 0xYourAddress main-ro# Trading account
dpro-hl account add-api 0xYourMasterAddress 0xYourAgentPrivateKey main --password <password> dpro-hl account lsnode --input-type=module -e "
import { runHyperliquidSkill } from './scripts/entry.mjs';
console.log(await runHyperliquidSkill('dpro-hl positions main', { password: '***' }));
"Expected outcome:
- the account list shows your aliases and modes
- the runtime can resolve the requested account
- write-capable flows can decrypt the stored API key when password is supplied
Goal: buy a spot asset, then confirm the order and fills.
dpro-hl quote PURR
dpro-hl book PURR --levels 10 dpro-hl spot order limit buy 10 PURR 0.08 dpro-hl spot order market sell 5 PURR --slippage 0.5 dpro-hl orders main
dpro-hl fills main --limit 20Expected outcome:
- the order appears in open orders or recent fills
- the fill report reflects the executed quantity and price
Goal: configure risk, place a perp order, and confirm the resulting state.
dpro-hl quote BTC
dpro-hl candles BTC --interval 1h --last 24 dpro-hl perp order set-leverage BTC 10 --cross
dpro-hl perp order topup-isolated BTC 50 dpro-hl perp order limit buy 0.01 BTC 50000
dpro-hl perp order market sell 0.01 BTC --slippage 0.5 dpro-hl orders main
dpro-hl positions main
dpro-hl fills main --limit 20 dpro-hl perp order cancel <oid>Expected outcome:
- leverage mode is updated before the order if requested
- the order is visible in orders or fills
- positions reflect the new exposure after execution
Goal: trade a HIP-3 asset using its exact namespaced symbol.
dpro-hl markets ls dpro-hl quote xyz:NVDA
dpro-hl book xyz:NVDA --levels 5 dpro-hl hip3 order limit buy 1 xyz:NVDA 120
dpro-hl hip3 order market sell 1 xyz:NVDA --slippage 0.5 dpro-hl hip3 order cancel-by-cloid xyz:NVDA <cloid> dpro-hl hip3 order set-leverage xyz:NVDA 5 --cross
dpro-hl hip3 order topup-isolated xyz:NVDA 50Expected outcome:
- the command stays within the HIP-3 namespace
- the symbol is not silently remapped into spot or non-HIP-3 perp markets
Goal: inspect and operate on a specific account safely.
dpro-hl account ls
dpro-hl account set-default main dpro-hl positions main
dpro-hl balances main
dpro-hl portfolio mainRecommended practice:
- use explicit aliases for writes when more than one trading account exists
- do not rely on implicit default selection if account scope matters
Goal: inspect dPro onchain data without account authentication.
dpro-hl onchain health
dpro-hl onchain mids dpro-hl onchain spot-holders PURR --limit 5
dpro-hl onchain perp-holders xyz:nvda --limit 5 --order desc dpro-hl onchain leaderboard --limit 10 --sort pnl_day --order desc
dpro-hl onchain liquidation-map xyz:TSLANotes:
- namespaced perp coin queries normalize to
dexlowercase + asset uppercase - use
--jsonwhen raw payload is needed for downstream automation
Goal: understand how user intent maps into the canonical command model.
Examples:
-
“Show me the latest BTC price” ->
dpro-hl quote BTC -
“Buy 10 PURR spot at 0.08” ->
dpro-hl spot order limit buy 10 PURR 0.08 -
“Sell 0.01 BTC perp at market with 0.5 slippage” ->
dpro-hl perp order market sell 0.01 BTC --slippage 0.5 -
“Buy 1 share of NVDA at 120 on HIP-3” ->
dpro-hl hip3 order limit buy 1 xyz:NVDA 120 -
“Show me the top 5 PURR holders” ->
dpro-hl onchain spot-holders PURR --limit 5