Skip to content

Get Fills

Retrieves fill records for a specific subaccount on the exchange. A fill represents a trade that has been executed.

Method Declaration

Python
async def get_subaccount_fills(
    self,
    address: str,
    subaccount_number: int,
    ticker: Optional[str] = None,
    ticker_type: TickerType = TickerType.PERPETUAL,
    limit: Optional[int] = None,
    created_before_or_at_height: Optional[int] = None,
    created_before_or_at: Optional[str] = None,
) -> Any
Unification Plan
  • Rename all methods to get_fills - shorter is better.
  • Add a Subaccount pair to Python and JavaScript, since it's always a pair
  • Rename created_before_or_at_time parameter to created_before_or_at
  • page optional parameter is missing in Python
  • page optional parameter is missing in Rust
  • In Rust market field of the options struct must be ticker
  • In Rust market_type field of the options struct must be ticker_type

Parameters

ParameterLocationTypeRequiredDescription
addressqueryAddresstrueThe wallet address that owns the account.
subaccountNumberquerySubaccountNumbertrueThe identifier for the specific subaccount within the wallet address.
tickerqueryTickerfalseThe market symbol to filter fills by (e.g., "BTC-USD"). If not provided, fills for all markets will be returned.
tickerTypequeryMarketTypefalseThe type of market to filter by.
limitqueryu32falseMaximum number of asset positions to return in the response.
createdBeforeOrAtHeightqueryHeightfalseFilters results to positions created at or before a specific blockchain height.
createdBeforeOrAtqueryDateTimefalseFilters results to positions created at or before a specific timestamp (ISO 8601 format).
pagequeryu32falseThe page number for paginated results.

Response

A promise that resolves to fill data containing details such as order ID, market, side (buy/sell), size, price, execution time, and other fill-specific information.

StatusMeaningSchemaDescription
200OKFillResponseObjectThe fills data.
API Example

Examples: Guide - Get Fills