This dissertation provides a study of optimal trading and contracting decisions, and their impacts on modern market structures. The dissertation is composed of three chapters.Chapter 1 investigates the impact of dark pools on the informational efficiency of prices (price discovery). Traders trade an asset in either an exchange or a dark pool, with informed traders having heterogeneous private signals whose distribution is determined by an information precision level. We find that dark pools have an amplification effect on price discovery. That is, when information precision is high, adding a dark pool enhances price discovery, whereas when information precision is low, adding a dark pool impairs price discovery. The main force behind this ...