Skip to content

List Parent Positions

List all positions of a parent subaccount.

Method Declaration

Python
async def list_parent_orders(
    self,
    address: str,
    subaccount_number: int,
    limit: Optional[int] = None,
    ticker: Optional[str] = None,
    side: Optional[OrderSide] = None,
    status: Optional[OrderStatus] = None,
    order_type: Optional[OrderType] = None,
    good_til_block_before_or_at: Optional[int] = None,
    good_til_block_time_before_or_at: Optional[str] = None,
    return_latest_orders: Optional[bool] = None,
) -> Any

Parameters

ParameterLocationTypeRequiredDescription
addressqueryAddresstrueThe wallet address that owns the account.
parentSubaccountNumberquerySubaccountNumbertrueSubaccount number of the parent subaccount.
limitqueryu32falseMaximum number of asset positions to return in the response.

Response

StatusMeaningSchemaDescription
200OKPerpetualPositionResponseObject ⛁The perpetual positions data.
400Bad RequestThe request was malformed or invalid.
404Not FoundThe subaccount was not found.

API Example