1. Create Hyperliquid Master Account
First, you need to create a Hyperliquid master account which will serve as your primary trading account.Prerequisites
- Get a master account
- Visit Hyperliquid to login via Privy, or
- Download Metamask or other wallet extensionson to create a master account
- Obtain USDC on the Arbitrum network for trading
Account Creation Steps
- Get USDC: You’ll need USDC on the Arbitrum network to trade on Hyperliquid. You can buy or transfer USDC to your wallet.
-
Connect to Hyperliquid:
- Visit app.hyperliquid.xyz
- Connect your master account, if you choose to use privy in hyperliquid, then you don’t need to connect to your wallet extension
- Deposit your USDC to start trading
For detailed account setup instructions, refer to the official Hyperliquid onboarding guide.
2. Create Agent Wallet
Agent wallets (also known as API wallets) allow your master account to authorize API access for programmatic trading without withdrawal permissions.Creating an Agent Wallet
- Access API Page: Visit app.hyperliquid.xyz/API
-
Generate Agent Wallet:
- Click on “Generate” to create a new agent wallet
- Name your API key for easy identification
- Save the generated private key securely - you’ll need this for API calls
-
Important Notes:
- Each trading process should use a separate agent wallet for better nonce management
- Agent wallets can only sign transactions, not withdraw funds
- Multiple subaccounts benefit from separate agent wallets for parallel operations
Store your agent wallet private key securely. Anyone with access to this key can trade on your behalf (but cannot withdraw funds).
3. Approve Agent Wallet
After creating your agent wallet, you need to approve it for trading operations.Approval Process
- Navigate to API Settings: In the Hyperliquid interface, go to your API settings
- Authorize Agent Wallet: Find your newly created agent wallet and click “Authorize”
- Confirm Authorization: Complete the authorization process to enable trading permissions
Verification
- Verify the agent wallet appears in your authorized API wallets list
- Test basic API connectivity using the agent wallet credentials
For detailed information about nonces and API wallet management, see the official API documentation.
4. Using Agent Wallet for Trading
Once your agent wallet is approved, you can start making API calls to execute trades.SDK Options
Official Hyperliquid Python SDK
Community JavaScript/TypeScript SDK
Basic Trading Example
Here’s a simple example using the Python SDK:Available APIs
The HyperETH Trading API provides access to:- REST API: For order placement, account queries, and trading operations
- WebSocket API: For real-time market data and order updates
- Advanced Features: TWAP orders, scale orders, and RFQ handling
Next Steps
- Explore API Reference: Check out our REST API and WebSocket API documentation
- Advanced Trading: Learn about advanced order types
- Integration Support: Review our FAQ section for common integration questions
Testnet Environment
For testing and development:Testnet Setup
- Testnet URL: app.hyperliquid-testnet.xyz
- Testnet Faucet: Get test USDC at app.hyperliquid-testnet.xyz/drip
- Alternative Faucet: Chainstack Hyperliquid Faucet (1 HYPE every 24 hours)
Testnet Configuration
Update your SDK configuration to use testnet endpoints:Always test your trading strategies on testnet before deploying to mainnet to avoid potential losses.