Appearance
Sub-Accounts and Delegated Accounts
Sub-Accounts
Each user can create up to 1,024 sub-accounts, identified by a numeric ID. Sub-accounts are independent margin accounts, each with its own margin balance, positions, and open orders. This allows traders to isolate strategies, run separate risk profiles, or dedicate accounts to different markets without interference.
Margin can be transferred between sub-accounts belonging to the same user via a sub-account transfer, but positions and orders cannot be moved.
Delegated Accounts
Traders can grant other addresses permission to act on their sub-accounts through a delegation system. Each delegation is scoped to a specific sub-account and defines:
- Permissions: granular flags controlling what the delegate can do (place orders, cancel orders, withdraw, modify leverage, etc.)
- Expiry: an optional timestamp after which the delegation is automatically revoked.
This enables API trading workflows where a separate signing key is authorized to trade on behalf of a main account with limited scope. For example, a key that can place and cancel orders but cannot withdraw funds, with an automatic expiry as a safety measure.