Before continuing with this guide, make sure you have initialized your Hyperliquid client as shown
in the Getting Started guide. This guide assumes you have
client
and other basic setup completed.Overview
Subaccounts let you isolate balances, positions, and PnL per strategy or user while still rolling up trading volume to the master account for fee tier benefits. You can create up to 10 subaccounts per master account. Key Benefits:- Risk Isolation: Separate balances and positions for different strategies
- Consolidated Fees: All trading volume rolls up to the master account
- Organization: Manage multiple strategies or users under one master account
- Flexibility: Each subaccount can have its own risk parameters
Creating a Subaccount
Trading with a Subaccount
To execute trades for a specific subaccount, create a client with thedefaultVaultAddress parameter:
Transferring Funds Between Accounts
Transfer funds between the master account and subaccounts using thesendAsset method:
The
fromSubAccount parameter determines the source: an empty string "" transfers from the
master account, while specifying a subaccount address transfers from that subaccount.Combining Agents and Subaccounts
You can use agent wallets to trade on behalf of subaccounts, creating a flexible multi-account trading architecture:Best Practices
Use subaccounts for risk isolation
Use subaccounts for risk isolation
Create separate subaccounts for different risk profiles. For example, maintain one subaccount
for conservative strategies with tight stop losses, and another for high-risk, high-reward
strategies.
Monitor subaccount balances
Monitor subaccount balances
Regularly check subaccount balances and positions to ensure proper risk allocation across your
strategies.
Consolidate for fee benefits
Consolidate for fee benefits
Remember that all subaccount trading volume rolls up to the master account, so you maintain your
fee tier benefits across all strategies.

