Hello, I have a question regarding Hyperliquid’s sub-account feature. Currently, it seems that trading is only possible on the main account. Is there any possibility to enable trading on sub-accounts as well? See info i found below:
To trade on behalf of a subaccount, it must include an extra field in the payload:
“vaultAddress”: “0xSUBACCOUNT_ADDRESS”
All orders, cancels, transfers, etc. are still signed by the main/API wallet, but adding subAddress tells Hyperliquid to execute them in that subaccount.
Hello that was fast, thank you! I tried it. I trade with a vault that is also a subaccount. It shows $0 because it’s checking the main account instead of the subaccount balance, so the trades aren’t working. I keep getting the error: ‘Insufficient margin.’