List Parent Orders
Query for orders filtered by order params 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 | Parent subaccount number |
limit | query | u32 | false | Maximum number of asset positions to return in the response. |
ticker | query | Ticker | false | The ticker filter. |
side | query | OrderSide | false | The order side filter. |
status | query | OrderStatus | false | The order status filter. |
type | query | OrderType | false | The order type filter. |
goodTilBlockBeforeOrAt | query | Height | false | The block number filter for orders good until before or at. |
goodTilBlockTimeBeforeOrAt | query | DateTime in UTC | false | The timestamp filter for orders good until before or at. |
returnLatestOrders | query | bool | false | Whether to return only the latest orders. |
Response
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | ListOrdersResponse | The orders data. |
400 | Bad Request | The request was malformed or invalid. | |
404 | Not Found | The subaccount was not found. |