List trades
Get a list of all trades, optionally filtered by party/market/order
Query Parameters
List of Market IDs for which to list trades for, if provided.
List of Order IDs for which to list trades for, if provided.
List of Party ID for which to list trades for, if provided.
Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.
If paging forwards, the cursor string for the last row of the previous page.
Number of records to be returned that sort less than row identified by cursor supplied in 'before'.
If paging forwards, the cursor string for the first row of the previous page.
Newest records first, older records last, default is true.
- 200
- 500
- default
A successful response.
Schema
trades object
Page of trades data and corresponding page information.
edges object[]
Page of trades and their corresponding cursors.
node object
Data associated with a trade that has been executed.
Possible values: [SIDE_UNSPECIFIED
, SIDE_BUY
, SIDE_SELL
]
buyerFee object
Fee amount charged to the buyer party for the trade.
sellerFee object
Fee amount charged to the seller party for the trade.
Possible values: [TYPE_UNSPECIFIED
, TYPE_DEFAULT
, TYPE_NETWORK_CLOSE_OUT_GOOD
, TYPE_NETWORK_CLOSE_OUT_BAD
]
pageInfo object
Page information that is used for fetching further pages.
{
"trades": {
"edges": [
{
"cursor": "string",
"node": {
"aggressor": "SIDE_UNSPECIFIED",
"buyOrder": "string",
"buyer": "string",
"buyerAuctionBatch": "string",
"buyerFee": {
"infrastructureFee": "string",
"liquidityFee": "string",
"makerFee": "string"
},
"id": "string",
"marketId": "string",
"price": "string",
"sellOrder": "string",
"seller": "string",
"sellerAuctionBatch": "string",
"sellerFee": {
"infrastructureFee": "string",
"liquidityFee": "string",
"makerFee": "string"
},
"size": "string",
"timestamp": "string",
"type": "TYPE_UNSPECIFIED"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
}
}
}
An internal server error
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}