Trade perpetual futures on Hyperliquid using the clawearn CLI. Use when working with Hyperliquid trading, managing positions, deposits, or withdrawals on Arbitrum.
Trade perpetual futures on Hyperliquid directly from the clawearn CLI. Supports market data, order management, account info, and Arbitrum deposits/withdrawals.
Ensure clawearn is installed and a wallet exists:
clawearn wallet create
Check your account status and USDC balance:
clawearn hyperliquid account # Show wallet address
clawearn hyperliquid balance # View balance and open positions
clawearn hl balance # Shorthand alias
List available coins and check prices:
clawearn hyperliquid market list # List all available coins with max leverage
clawearn hyperliquid market info --coin ETH # Get order book for a coin
clawearn hyperliquid price --coin BTC # Get current bid/ask/mid prices
Place buy or sell orders on any perpetual:
# Buy 0.1 ETH at 3000 USDC
clawearn hyperliquid order buy --coin ETH --price 3000 --size 0.1
# Sell 0.05 BTC at 45000 USDC
clawearn hyperliquid order sell --coin BTC --price 45000 --size 0.05
# List open orders
clawearn hyperliquid order list-open
Parameters:
--coin: Coin name (ETH, BTC, SOL, etc.)--price: Price per unit (decimal)--size: Amount to tradeView and manage open positions:
clawearn hyperliquid position # View all open positions with entry price and leverage
Deposit USDC to your Hyperliquid account via Arbitrum:
# Deposit 100 USDC
clawearn hyperliquid deposit --amount 100
# Deposit from different wallet (with private key)
clawearn hyperliquid deposit --amount 50 --private-key 0x...
Requirements:
Withdraw USDC back to your Arbitrum wallet:
# Withdraw 100 USDC to your wallet
clawearn hyperliquid withdraw --amount 100
# Withdraw to a specific address
clawearn hyperliquid withdraw --amount 50 --recipient 0x...
# Withdraw from different wallet (with private key)
clawearn hyperliquid withdraw --amount 100 --private-key 0x...
Requirements:
# List all available coins
clawearn hyperliquid market list
# Check price for a coin
clawearn hyperliquid price --coin ETH
# Place a buy order
clawearn hyperliquid order buy --coin ETH --price 2000 --size 0.1
# Check your position
clawearn hyperliquid position
# Deposit 100 USDC
clawearn hyperliquid deposit --amount 100
# Check balance
clawearn hyperliquid balance
# Place first trade
clawearn hyperliquid order buy --coin SOL --price 200 --size 0.5
# View open positions
clawearn hyperliquid position
# Sell (close) your position
clawearn hyperliquid order sell --coin SOL --price 200 --size 0.5
# Check balance
clawearn hyperliquid balance
# Withdraw remaining USDC
clawearn hyperliquid withdraw --amount 50
0xaf88d065e77c8cC2239327C5EDb3A432268e58310x2Df1c51E09aECF9cacB7bc98cB1742757f163dF7Max leverage varies by coin:
Check clawearn hyperliquid market list for max leverage per coin.
Use shorthand hl instead of hyperliquid:
clawearn hl market list
clawearn hl order buy --coin ETH --price 3000 --size 0.1
clawearn hl balance
View full command help:
clawearn hyperliquid help
clawearn hyperliquid order help # Order-specific help
clawearn hl help # Shorthand
Create a wallet with: clawearn wallet create
clawearn wallet showclawearn hyperliquid market list)Try again - Arbitrum typically confirms in 30 seconds