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,
) -> AnyParameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
address | query | Address | true | The wallet address that owns the account. |
parentSubaccountNumber | query | SubaccountNumber | true | Subaccount number of the parent subaccount. |
limit | query | u32 | false | Maximum number of asset positions to return in the response. |
Response
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | PerpetualPositionResponseObject ⛁ | The perpetual positions data. |
400 | Bad Request | The request was malformed or invalid. | |
404 | Not Found | The subaccount was not found. |
API Example