I started my PhD studies in August 2014 with a strong desire to push my own limits without knowing precisely the areas I wanted to cover in detail. To me, it was clear that I was interested by many different fields, however, I was particularly concerned with behavioural finance and with the fact that simple actions could be followed by strong market reactions. It is in this context that my supervisor, Prof. Semyon Malamud, advised me to derive/measure the consequences of the large acceptance of the RiskMetrics variance model on the price of financial assets. Indeed, this method has the advantage of providing a simple formula to estimate the volatility of any financial asset, but above all, has been used significantly by practitioners in the financial industry. The question then arises, ``Is there a link between this method and the price of financial assets?'' In order to answer this question, I have designed a simple portfolio optimization model in which agents update volatility estimates with the RiskMetrics formula. Thanks to this simple idea my first project was born and I quickly realized that I could design an elegant model. With this framework I have been able to establish the existence of a risk factor of which the economic literature was unaware. Moreover, the empirical strategy allows me to estimate the relative risk aversion coefficient independently from established procedures. Importantly, my estimates are in line with the ones obtained with these (standard) approaches. Meanwhile, I was also interested in a topic that covers a large part of all trades and is known as ``over-the-counter markets''. These markets are characterized by their high level of decentralization. Indeed, every transaction is settled directly between a buyer and a seller. In these markets, the only way to secure a trade is to find another agent that is willing to take the counter-party. I became very interested in a series of books and articles that were modeling financial assets traded under these conditions. Hence, I have started to work in this field by solving different models. I was particularly interested in understanding how the price of assets traded with this constraint would react under stressful situations, that is, when agents had to liquidate their investments. After a trial and error process, I found that my model generated puzzling results. Indeed, this model made predictions that were against traditional wisdom. Above all, that model predicted that a large level of capital mobility could impair welfare. Hence, I had eventually found the link between all the fields I wanted to cover in my thesis, where I debate the optimal allocation of capital under different types of frictions. While my first article treats the case of a centralized market with an agent who forecasts volatility using a particular method, the second article concerns how capital flows across markets when agents are subject to searching frictions. My third article is based on the second and discusses the interaction between innovation and the competition between firms supplying the same products. This article focuses on how capital is used by firms to innovate and how firms grow.