Skip to content

Get Trades

Retrieves trades for a specific perpetual market.

Method Declaration

Python
async def get_perpetual_market_trades(
    self,
    market: str,
    starting_before_or_at_height: Optional[int] = None,
    limit: Optional[int] = None,
) -> dict

Parameters

ParameterLocationTypeRequiredDescription
marketpathTickertrueThe market ticker.
limitqueryu32falseThe maximum number of trades to retrieve.
startingBeforeOrAtHeightqueryHeightfalseThe block height to start retrieving trades from.

Response

StatusMeaningSchemaDescription
200OKTradeResponseObject ⛁The trades data.
400Bad RequestThe request was malformed or invalid.
404Not FoundThe market was not found.

API Example