Abstract
The goal of this paper is to present a mathematical framework for trading on a limit order book, including its associated transaction costs, and to propose continuous-time equations which generalise the self-financing relationships of frictionless markets. These equations naturally differentiate between trading via limit and via market orders, as they include a price impact or adverse selection constraint. We briefly mention several possible applications, including hedging European options with limit orders, to illustrate their impact and how they can be used to the benefit of low-frequency traders. Two appendices include empirical evidence for facts which are not universally recognised in the current literature on the subject.
Similar content being viewed by others
Notes
J. Michael Steele, Stochastic Calculus and Financial Applications, Sect. 14.5 ‘Self-financing and self-doubt’.
The function \(c\) should be understood as a transaction cost function. For this reason, it is often assumed to be convex.
This property automatically holds when one formally considers a continuous order book distribution.
References
Ait-Sahalia, Y., Jacod, J.: High-Frequency Financial Econometrics. Princeton University Press, Princeton (2014)
Alfonsi, A., Fruth, A., Schied, A.: Optimal execution strategies in limit order books with general shape functions. Quant. Finance 10, 143–157 (2010)
Alfonsi, A., Schied, A., Slynko, A.: Order book resilience, price manipulation, and the positive portfolio problem. SIAM J. Financ. Math. 3, 511–533 (2012)
Almgren, R., Chriss, N.: Optimal execution of portfolio transactions. J. Risk 3(2), 5–39 (2000)
Avellaneda, M., Stoikov, S.: High-frequency trading in a limit order book. Quant. Finance 8, 217–224 (2007)
Carmona, R., Webster, K.: Trading frictions in high frequency markets. Princeton University Tech. Rep. (2014). Available online at https://arxiv.org/abs/1709.02015
Carmona, R., Webster, K.: Applications of a new self-financing equation. Princeton University Tech. Rep. (2018). Available online at https://arxiv.org/abs/1905.04137
Cartea, A., Jaimungal, S.: Risk metrics and fine tuning of high frequency trading strategies. Math. Finance 25, 576–611 (2015)
Çetin, U., Soner, H.M., Touzi, N.: Options hedging for small investors under liquidity costs. Finance Stoch. 14, 317–341 (2010)
Chellathurai, T., Draviam, T.: Dynamic portfolio selection with nonlinear transaction costs. Proc. R. Soc. A, Math. Phys. Eng. Sci. 461, 3183–3212 (2005)
Cont, R., de Larrard, A.: Order book dynamics in liquid markets: limit theorems and diffusion approximations. Preprint (2012). Available online at http://arxiv.org/abs/1202.6412
Cont, R., de Larrard, A.: Price dynamics in a Markovian limit order book market. SIAM J. Financ. Math. 4, 1–25 (2013)
Cont, R., Stoikov, S., Talreja, R.: A stochastic model for order book dynamics. Oper. Res. 58, 549–563 (2010)
Föllmer, H., Schweizer, M.: A microeconomic approach to diffusion models for stock price. Math. Finance 3, 1–23 (1993)
Jacod, J., Protter, P.: Discretization of Processes. Springer, Berlin (2011)
Liu, R., Muhle-Karbe, J.: Portfolio choice with stochastic investment opportunities: a user’s guide. Preprint (2013). Available online at http://arxiv.org/abs/1311.1715
Magill, M., Constantinides, G.: Portfolio selection with transactions costs. J. Econ. Theory 13, 245–263 (1976)
Obizhaeva, A., Wang, J.: Optimal trading strategy and supply/demand dynamics. J. Financ. Mark. 16, 1–32 (2013)
Shreve, S.E., Soner, H.M.: Optimal investment and consumption with transaction costs. Ann. Appl. Probab. 4, 609–692 (1994)
Soner, H.M., Touzi, N.: Hedging under gamma constraints by optimal stopping and face-lifting. Math. Finance 17, 59–79 (2007)
Stoikov, S., Saglam, M.: Option market making under inventory risk. Rev. Deriv. Res. 12, 55–79 (2009)
Wyart, M., Bouchaud, J.-P., Kockelkoren, J., Potters, M., Vettorazzo, M.: Relation between bid–ask spread, impact and volatility in order-driven markets. Quant. Finance 8, 41–57 (2008)
Acknowledgements
We should like to thank the Associate Editor and two anonymous referees for thoroughly reviewing several versions of the paper. Their insightful comments helped us improve dramatically its readability. Moreover, we are grateful to one of the referees for pointing out an error in the original version of Proposition 4.5.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
René Carmona was partially supported by NSF #DMS-1716673 and ARO #W911NF-17-1-0578.
Appendices
Appendix A: Empirical evidence from high-frequency data
We present here the empirical evidence which led us to formulate our self-financing condition. We report numerical results for a particular example (intraday trading of Intel stock on April 18, 2013), and we refer to the exhaustive empirical analysis conducted in [6] for ample evidence that the features identified here for the purpose of illustration are typical, and not merely anecdotal.
We work with NASDAQ’s ITCH data files. They include all visible limit and market orders. We pre-processed the data to remove the special deals, trades that happen within the bid–ask spread, and market orders that execute hidden liquidity. This leaves us with only visible market orders hitting visible limit orders at the best bid or ask price.
Because the identities of the traders are typically not part of the ITCH format, we work with a representative liquidity provider by aggregating all the executions against limit orders to construct the market maker portfolio. Figure 5 gives the plot of the quantities of interest in this appendix.
The left panel of Fig. 6 gives the plot of the empirical quadratic covariation between the aggregate liquidity provider’s inventory and the price process. It shows that this quadratic covariation is negative and decreasing. So, if one wishes to model the price as a diffusion process, we need the aggregate inventory to have a non-trivial Brownian component. This issue is tackled in Appendix B. In practice, both processes are actually pure point processes, and the diffusion limit is only an approximation resulting from the aggregation of very many small jumps.
In [6], we propose a statistical test based on the assumption that price and inventory satisfy
with instantaneous correlation \(\rho _{t}\). In this context, adverse selection means that \(\rho _{t} \le 0\), that is, the changes of the liquidity provider’s inventory are always negatively correlated to the price returns. For statistical purposes, the goal is to reject the null hypothesis
If we then denote by \(p^{N}\) and \(L^{N}\) the subsampling of the diffusion processes \(p\) and \(L\) on the uniform grid \(\{1/N, 2/N, \dots , 1\}\) and if we define
then the functional central limit theorem of [1, Theorem 6.4] states that
which suggests a practical computation of the rejection probabilities of the null hypothesis in buckets of \(M\) trades if we assume that \(\rho _{t}\), \(\sigma _{t}\) and \(\eta _{t}\) are constant over these buckets. We can then multiply these rejection probabilities to obtain the overall rejection probability for the null hypothesis \(H_{0}\). We chose \(M\) such that the trading day was divided into 8 buckets. We obtain a rejection probability of 0.98443 for our null hypothesis.
A final argument in favour of our form of the self-financing condition is given by the right panel of Fig. 6 which compares the actual wealth of the aggregate liquidity provider, as given by the NASDAQ trade data, to the wealth obtained from the price and the aggregate liquidity provider inventory using different forms of the self-financing condition. One can appreciate the significant gap between the different equations for wealth and the true wealth. We compare four quantities:
-
1.
the actual wealth;
-
2.
the wealth computed from the standard self-financing equation
$$ \Delta _{n} X = L_{n} \Delta _{n} p $$used in the classical Black–Scholes option pricing and Merton portfolio theories;
-
3.
the wealth computed from the standard self-financing condition
$$ \Delta _{n} X = L_{n} \Delta _{n} p + \frac{s_{n}}{2} |\Delta _{n} L| $$(A.2)advocated to include transaction costs in Merton’s theory of optimal portfolio choice; and finally,
-
4.
the wealth computed from our self-financing condition
$$ \Delta _{n} X = L_{n} \Delta _{n} p + \frac{s_{n}}{2} |\Delta _{n} L| + \Delta _{n} p \Delta _{n} L. $$(A.3)
Clearly, the plot illustrates the fact that our form of the self-financing condition is perfectly satisfied.
Appendix B: Quadratic variation of inventory processes
Appendix A reported on some of the empirical results of the study [6] conducted on the ITCH data from the NASDAQ stock exchange. While a very small percentage of the messages do carry a field called MPID for market participant ID, the vast majority of the messages do not, and we had to aggregate the activities of the participants in what we called a representative liquidity provider by using all the executions against limit orders to construct the market maker portfolio to test for adverse selection and check the validity of our self-financing condition.
Here we provide evidence backing our assumption that the traders’ inventories have a non-trivial quadratic variation component, a fact which cannot be attributed to the aggregation used to process the NASDAQ data. We use trade and quotes (TAQ) data purchased from the Toronto Stock Exchange (TSX). While the TAQ format is standard, the trade files of the TSX include for each trade the identities of the buyer and the seller involved in the trade. So for each stock, for each trading day and for each market participant (we identified 92 of them during the period covered by our data), we can track the evolution of the inventory in the stock accumulated by a particular market participant over that day.
For the purpose of illustration, we choose a stock which was actively traded during the period covered by our data, for example Blackberry, we choose a trading day, say “06/04/2014”, and the three most active Blackberry traders on that day, CIBC World Markets Inc. (an investment banking subsidiary of the Canadian Imperial Bank of Commerce), Royal Bank of Canada (RBC) Capital Markets and TD Securities Inc. Figure 7 shows the time evolution of their inventories throughout the day. Among other things, it highlights a special feature of TSX data. While we know the identities of the agents (buyers and sellers) involved in each trade, we do not know if they act on behalf of a client to accumulate or liquidate a position in the stock, or if they act on their own behalf, or if they act as market makers (liquidity providers). For example, we suspect that the top panel of Fig. 7 indicates that CIBC was acting as a market maker on that day, while RBC (resp. TD Securities) were trading to acquire a long (resp. short) position in Blackberry, whether it was on behalf of a client or for their own account.
More generally, if one uses the asymptotic result (A.1) of Ait-Sahalia and Jacod to test the null hypothesis that the quadratic variation of the inventory process is 0, the asymptotic \(p\)-value of the test on that day is \(10^{-68}\)! Systematic use of this test on different days and other actively traded stocks give systematic rejections of this null hypothesis, with a \(p\)-value never greater than \(10^{-5}\).
Rights and permissions
About this article
Cite this article
Carmona, R., Webster, K. The self-financing equation in limit order book markets. Finance Stoch 23, 729–759 (2019). https://doi.org/10.1007/s00780-019-00398-z
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00780-019-00398-z