Skip to main content
Version: mainnet (v0.71)

List trades

Get a list of all trades, optionally filtered by party/market/order

Query Parameters
    marketIds string[]

    List of Market IDs for which to list trades for, if provided.

    orderIds string[]

    List of Order IDs for which to list trades for, if provided.

    partyIds string[]

    List of Party ID for which to list trades for, if provided.

    pagination.first int32

    Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.

    pagination.after string

    If paging forwards, the cursor string for the last row of the previous page.

    pagination.last int32

    Number of records to be returned that sort less than row identified by cursor supplied in 'before'.

    pagination.before string

    If paging forwards, the cursor string for the first row of the previous page.

    pagination.newestFirst boolean

    Newest records first, older records last, default is true.

    dateRange.startTimestamp int64
    dateRange.endTimestamp int64
Responses

A successful response.


Schema
    trades object

    Page of trades data and corresponding page information.

    edges object[]

    Page of trades and their corresponding cursors.

    cursor string
    node object

    Data associated with a trade that has been executed.

    aggressor Side relates to the direction of an order, to Buy, or Sell

    Possible values: [SIDE_UNSPECIFIED, SIDE_BUY, SIDE_SELL]

    buyOrder string
    buyer string
    buyerAuctionBatch uint64
    buyerFee object

    Fee amount charged to the buyer party for the trade.

    infrastructureFee string
    liquidityFee string
    makerFee string
    id string
    marketId string
    price string
    sellOrder string
    seller string
    sellerAuctionBatch uint64
    sellerFee object

    Fee amount charged to the seller party for the trade.

    infrastructureFee string
    liquidityFee string
    makerFee string
    size uint64
    timestamp int64
    type Type values for a 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.

    endCursor string
    hasNextPage boolean
    hasPreviousPage boolean
    startCursor string
Loading...