83 lines
3.1 KiB
Plaintext
83 lines
3.1 KiB
Plaintext
# Creating and Managing Subaccounts
|
|
|
|
Drift features a powerful subaccount tool for users to clearly separate positions within a single address.
|
|
|
|
Each subaccount's margin and positions are isolated from other subaccounts, meaning that users can trade on isolated margin via different subaccounts.
|
|
|
|
Each subaccount has independent positions, balances and margins, and can trade independently. Balances or liquidations from each subaccount will not affect other subaccounts. Each subaccount is cross-margined.
|
|
|
|
<Callout type="important">
|
|
A subaccount can hold up to 8 perpetual and 8 spot positions and 32 open orders total. A perpetual position with 0 base, but only unsettled P&L counts as an open position.
|
|
</Callout>
|
|
|
|
## Adding a Subaccount
|
|
|
|
Here's how you can add a subaccount:
|
|
|
|
<Steps>
|
|
### Go to the account dropdown in the top right of the app.
|
|
|
|
<img src="/assets/managing-subaccounts-1.png" alt="" width="800" height="auto"></img>
|
|
|
|
### Click "Add Account"
|
|
|
|
<img src="/assets/managing-subaccounts-2.png" alt="" width="800" height="auto"></img>
|
|
|
|
### Confirm
|
|
You'll be asked to name your new subaccount and deposit collateral from your wallet to fund that account. You can also transfer collateral to your new subaccount from an existing one to fund it.
|
|
|
|
<img src="/assets/managing-subaccounts-3.png" alt="" width="800" height="auto"></img>
|
|
</Steps>
|
|
|
|
## Editing and Deleting a Subaccount
|
|
|
|
You can edit and delete subaccounts from the [accounts screen](https://app.drift.trade/portfolio/accounts)
|
|
|
|
<Steps>
|
|
### Settle balances
|
|
Make sure your account has zero balances. This includes open borrows, any unsettled pnl's.
|
|
<img src="/assets/managing-subaccounts-4.png" alt="" width="800" height="auto"></img>
|
|
|
|
### Stop activity
|
|
Make sure your account is idle, accounts that have no activity for few hours (4-5) are marked as idle.
|
|
|
|
### Delete
|
|
Click the trash bin icon on the interface.
|
|
<img src="/assets/managing-subaccounts-5.png" alt="" width="800" height="auto"></img>
|
|
</Steps>
|
|
|
|
<Callout type="important">
|
|
Deleting an account instantly gives you the rent back, there are no additional steps to claim the rent \$SOL.
|
|
</Callout>
|
|
|
|
<Callout type="warning">
|
|
Deleting an account deletes the history attached to that address and there is no backup for this.
|
|
</Callout>
|
|
|
|
### Excess Account Rent Redeeming (users who paid rent for more than 0.035)
|
|
|
|
Users paying excess rent can claim their excess amount after 13 days. It can be claimed at Account>ManageAccounts>Claim (under Reclaimable Rent)
|
|
|
|
### Switching Subaccounts
|
|
|
|
Once you've created a new account, you can use the same account switcher to move between them.
|
|
|
|
<img src="/assets/managing-subaccounts-6.png" alt="" width="800" height="auto"></img>
|
|
|
|
|
|
## Managing Subaccount Assets
|
|
|
|
You can easily manage your assets via the Accounts button in the [Accounts Dropdown](https://app.drift.trade) or via
|
|
|
|
|
|
- Deposit additional assets
|
|
|
|
- Withdraw to your wallet
|
|
|
|
- Transfer assets between accounts
|
|
|
|
To see the assets of a single subaccount, use the account switcher in the left navigation to switch to that account.
|
|
|
|
<img src="/assets/managing-subaccounts-7.png" alt="" width="800" height="auto"></img>
|
|
|