Skip to content

Get Parent Subaccount

Query for the parent subaccount, its child subaccounts, equity, collateral and margin. See more information on parent subaccounts here. e.g. parent subaccount 0 has child subaccounts 128, 256,...

Method Declaration

Python
async def get_parent_subaccount(
    self,
    address: str,
    subaccount_number: int,
) -> Any

Parameters

ParameterLocationTypeRequiredDescription
addresspathAddresstrueThe wallet address that owns the parent subaccount.
numberpathSubaccountNumbertrueThe identifier for the specific subaccount within the wallet address.

Response

StatusMeaningSchemaDescription
200OKParentSubaccountResponseObject ⛁The parent subaccount data.
400Bad RequestThe request was malformed or invalid.
404Not FoundThe parent subaccount was not found.
API Example