Skip to content

Get Parent Asset Positions

Query for asset positions (size, buy/sell etc) for a parent subaccount.

Method Declaration

Python
async def get_parent_subaccount_asset_positions(
    self,
    address: str,
    subaccount_number: int,
    status: Optional[PositionStatus] = None,
    limit: Optional[int] = None,
    created_before_or_at_height: Optional[int] = None,
    created_before_or_at: Optional[str] = None,
) -> Any:

Parameters

ParameterLocationTypeRequiredDescription
addressqueryAddresstrueThe wallet address that owns the account.
parentSubaccountNumberquerySubaccountNumbertrueThe parent subaccount number of this wallet

Response

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