Skip to content

Get Parent Fills

Query for fills (i.e. filled orders data) for a parent subaccount.

Method Declaration

Python
async def get_parent_fills(
    self,
    address: str,
    subaccount_number: int,
    limit: Optional[int] = None,
    market: Optional[str] = None,
    market_type: Optional[TickerType] = 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 parent subaccount.
parentSubaccountNumberquerySubaccountNumbertrueThe identifier for the specific subaccount within the wallet address.
limitqueryu32falseMaximum number of asset positions to return in the response.
createdBeforeOrAtHeightqueryHeightfalseFilters results to positions created at or before a specific blockchain height.
marketqueryTickerfalseMarket id like USD-BTC, ETH-USD
marketTypequeryMarketTypefalseMarket type of filled order Data

Response

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