const result = await perpetual.api.getAccountBalances({
account: '0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5',
});
--> "account" shall be replaced by "accountOwner"
see https://docs.dydx.exchange/#perpetual-get-account-balances
If you let me know where I shall change such things, I can do so as a contributor as I like DyDx. If you would like to support the general DeFi Package, feel free to fix stuff like that: michael-spengler/decentralized-finance#7 (comment)
:)