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,
) -> dictParameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
market | path | Ticker | true | The market ticker. |
limit | query | u32 | false | The maximum number of trades to retrieve. |
startingBeforeOrAtHeight | query | Height | false | The block height to start retrieving trades from. |
Response
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | TradeResponseObject ⛁ | The trades data. |
400 | Bad Request | The request was malformed or invalid. | |
404 | Not Found | The market was not found. |
API Example