Trade API
Recent Trades API
Get a list of recent trades from the database
GET
Get Recent Trades
This endpoint retrieves recent trades across all markets, with support for filtering and pagination.
Query Parameters
- market_id (optional): Filter trades by market ID
- event_id (optional): Filter trades by event ID
- platform (optional): Filter trades by platform
- side (optional): Filter by trade side (“buy”, “sell”, “yes”, “no”)
- maker_side (optional): Filter by maker side (“buy”, “sell”, “yes”, “no”)
- trader_id (optional): Filter trades by trader ID
- amount_min (optional): Minimum trade amount
- amount_max (optional): Maximum trade amount
- price_min (optional): Minimum trade price
- price_max (optional): Maximum trade price
- created_after (optional): Filter trades after this timestamp
- created_before (optional): Filter trades before this timestamp
- sort_by (optional): Sort field (“created_at”, “created_at_unix”, “price”, “amount”, “platform”, “side”). Default: “created_at_unix”
- sort_dir (optional): Sort direction (“asc” or “desc”). Default: “desc”
- limit (optional): Number of results to return (default: 50)
- offset (optional): Number of results to skip (default: 0)
Authorizations
Enter your API key as the bearer token
Query Parameters
Filter by market ID
Filter by platform
Filter by trade side
Available options:
buy
, sell
, yes
, no
Number of results to return
Number of results to skip
Field to sort by
Available options:
created_at
, created_at_unix
, price
, amount
, platform
, side
Sort direction
Available options:
asc
, desc
Response
200
application/json
List of recent trades
The response is of type object
.