which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.Abstract The objective of this paper is to provide a comprehensive study of the no-arbitrage pricing of financial derivatives in the presence of funding costs, the counterparty credit risk and market frictions affecting the trading mechanism, such as collateralization and capital requirements. To achieve our goals, we extend in several respects the nonlinear pricing approach developed in (El Karoui and Quenez 1997) and , which was subsequently continued in (Bielecki and Rutkowski 2015).