query ListTrades(
    $marketName: MarketName!
    $limit: Int
    $before: PaginationCursor
  ) {
    listTrades(marketName: $marketName, limit: $limit, before: $before) {
      trades {
        id,
        accountSide,
        makerOrderId,
        takerOrderId,
        makerReceived {
          amount,
          currency
        },
        takerReceived {
          amount,
          currency
        }
        amount {
          amount,
          currency
        },
        executedAt,
        makerFee {
          amount,
          currency
        },
        takerFee {
          amount,
          currency
        },
        market {
          name
        },
        direction,
        limitPrice {
          amount
          currencyA,
          currencyB
        }
      },
      next
    }
  }