Научная статья на тему ' on measuring the cost of liquidity in the limit order book'

on measuring the cost of liquidity in the limit order book Текст научной статьи по специальности «Экономика и бизнес»

CC BY
82
50
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
limit order book / illiquidity / hedging / initial margin. / книга лимитных ордеров / неликвидность / хеджирование / начальная маржа.

Аннотация научной статьи по экономике и бизнесу, автор научной работы — M. M. Dyshaev

The work is devoted to the elaboration and demonstration of a method for measuring the cost of illiquidity in the delta hedging of futures-style options on the Moscow Exchange. Illiquidity is usually measured per unit of asset or money. However, given the specifics of futures, this article proposes to use the total volume of the initial margin and the state of the limit order book. In this case, it becomes possible to compare the cost of illiquidity for various futures. The most liquid futures that are traded on the Moscow Exchange are analyzed and the cost of liquidity is compared.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

ОБ ИЗМЕРЕНИИ СТОИМОСТИ ЛИКВИДНОСТИ В КНИГЕ ЛИМИТНЫХ ОРДЕРОВ

Работа посвящена разработке и демонстрации метода измерения стоимости неликвидности при дельта-хеджировании маржируемых опционов (futures-style options) на Московской бирже. Неликвидность обычно измеряется на единицу актива или денежных средств. Однако, учитывая специфику фьючерсов, в данной статье предлагается использовать общий объём начальной маржи и состояние лимитной книги ордеров. В этом случае становится возможным сравнить стоимость неликвидности для различных фьючерсов. Анализируются наиболее ликвидные фьючерсы, которые торгуются на Московской бирже, и сравнивается стоимость неликвидности при операциях с ними.

Текст научной работы на тему « on measuring the cost of liquidity in the limit order book»

Chelyabinsk Physical and Mathematical Journal. 2020. Vol. 5, iss. 1. P. 96-104.

DOI: 10.24411/2500-0101-2020-15107

ON MEASURING THE COST OF LIQUIDITY IN THE LIMIT ORDER BOOK

M.M. Dyshaev

Chelyabinsk State University, Chelyabinsk, Russia Mikhail.Dyshaev@gmail.com

The work is devoted to the elaboration and demonstration of a method for measuring the cost of illiquidity in the delta hedging of futures-style options on the Moscow Exchange. Illiquidity is usually measured per unit of asset or money. However, given the specifics of futures, this article proposes to use the total volume of the initial margin and the state of the limit order book. In this case, it becomes possible to compare the cost of illiquidity for various futures. The most liquid futures that are traded on the Moscow Exchange are analyzed and the cost of liquidity is compared.

Keywords: limit order book, illiquidity, hedging, initial margin.

Introduction

Recently, a number of works have been published on the issue of taking into account the influence of the state of the limit order book (LOB) during delta hedging of options [1-12].

At hedging of options, a trader buys or sells a certain amount of a basic asset at various points in time. In most of papers, devoted on issues of the delta hedging of options, the market price typically uses for accounting. This is the price, where the underlying asset is bought or sold in models. The main approach is to consider the market price as the average price between the best bid price sbid and the best offer price

^ask? i. e.

Sbid + sask

s = —T" •

However, as the practice shows, if the order amount h (for example, the buy order) is greater than the amount of an asset at the best price sask, the trader will pay an amount almost always greater than sh. The value sh often called the mark-to-market value. In fact, the trader buys at weight price

1 N (h) N (h)

sf (h) = ~h^haiSi, "Yhai = h,

i=1 i=1

where ai is bought amount of the underlying asset at price si in the limit order book. In practical terms, if a trader submits market orders for delta hedging options without taking into account this price difference, he or she will have some loss of money.

There is an extensive literature on the optimal execution of large orders. We list only a few of them [13-17]. In these works, the effects of the temporary price impact and the permanent price impact are studied. Sometimes these two types are complemented by the third type, transient price impact.

The reported study was funded by RFBR according to the research project no 19-01-00244.

On the other hand, the case with absolute resiliency is of interest. It corresponds to the situation when, after a trader's market order fills, the limit order book quickly returns to its previous state. There is no the permanent price impact in this case. The trader pays the costs associated with the fact that he or she lacked the underlying asset at the best price.

Since the difference between the mark-to-market value and the realized cost is a consequence of a not perfect liquidity, the main purpose of this work is to demonstrate and compare two methods for accounting illiquidity. These methods were chosen because they allow to visually show the cost of the liquidity in the case of the strong resiliency. And they can be easily applied to practical issues. The first method bases on the article of L.C.G. Rogers and S. Singh (2010) [7]. The second method of the measurement of the illiquidity presented in the work of P. Malo and T. Pennanen (2012) [18].

For practical purposes, an estimate will be made of the cost of the illiquidity in transactions with futures on the Moscow Exchange. Therefore, unlike earlier works, this article additionally studies the measurement of the illiquidity, depending on the required initial margin [19] actually paid by the trader to the exchange when buying or selling a futures contract. When a trader buys or sells a futures contract, the exchange or the broker blocks the initial margin on the trader's account. Therefore, a trader cannot gain an infinitely large position. This practice is aimed at reducing risks in the financial system. The initial margin depends of many parameters, such as exchange rates, interest rate curves and volatility curves (see [19] for details). Since the initial margin already takes into account most market parameters, the use of these units will allow a more accurate comparison of various futures contracts.

The following section provides a brief description of the both methods. After that, the application of the above methods is considered for most liquid futures contracts that are traded on the Moscow Exchange. Main results and the direction of future research are presented in the last section.

1. How can take the illiquidity into account?

A brief description is given of how to measure the illiquidity of an existing limit order book (LOB) in the case of the strong resiliency. Suppose a trader needs to buy h units of an underlying asset to hedge an option. A trader submits a buy market order to the limit order book. A market order implies sequentially filling the limit orders available in the LOB until the required amount of h is collected. LOB quickly fills new orders after the trader's transaction is completed.

1.1. The measurement of illiquidity in the model of L.C.G. Rogers and

The authors describe the liquidity as the non-linear transaction cost. A market is considered without a permanent impact on the price. A trader buys h units of an underlying asset

S. Singh

sm(h)

where sm(h) = sN(h)/s is the marginal relative price when the trader buys h units of the underlying asset. Thus, sm(h) is the last, maximal (for the buy market order) relative

price. The total cost that the trader will pay to depend upon h, is

sm(h)

T (h) = hs'(h) = 'J sp(s)ds' 1

where p(s) is the density of the underlying asset orders volume in the LOB. The difference between the mark-to-market value and the total cost T(h) = hsf is the cost of the illiquidity:

sm(h) sm(h)

T(h) — h ' = ' J sp(s)ds — h'= ' J (s — 1 )p(s)ds.

11

Thus, the cost of the illiquidity, expressed in the amount of money, takes the form T(h) — h' = 'l(h), where

sm(h)

l(h)= J (s — 1)p(s)ds. (1)

1

The authors of [7] used the cost function l(h) for h units of an underlaying asset in the form

l(h) = 1 eh2,

where e is a small parameter. For numerical solutions, the authors take e = 0.006, based on practical measurements. This form of l(h) was chose for reasons of the tractability of the HJB equation (see [7, Remark and Equation (3.12)]).

1.2. The measurement of illiquidity in the model of P. Malo and T. Pennanen

As monetary measure of the illiquidity authors [18] suggested to use the function, that in our notations has the form

r(h') = ln(sm(h)). (2)

The function r(-) is called the relative price impact curve. It depends from the mark-to-market value of the market order for h units of the underlying asset. If at the best bid or ask price in the limit order book there are many units of an asset, then r = 0. If trader can not to buy a needed volume at the best ask price, then r > 0 and this corresponds to the presence of the illiquidity. The relative price impact curve r is a non-decreasing, piecewise constant function of the units of an underlying asset.

Next, sm(h) can be expressed in terms of the mark-to-market value as sm(h) = er(hs). And then the total cost may be presented (in our notations) as

h h

t <h) ='/^ =.-/№

0 0

and the cost of the illiquidity, expressed in the amount of money, takes the form

h / h \

T (h) — h' = si er(zs)dz — hs = ' If er(zs)dz — h

The authors considered the function r as r(hs) = fish, where fi > 0 characterizes the illiquidity in the LOB. A smaller fi corresponds to a greater liquidity. Then the total cost is (cf. [7, Example 2.1 (2.2)])

h

/Jish _ 1

dz = —-.

0

Thus, the cost of the illiquidity, expressed in the amount of money, takes the form

el3sh _ 1 1

T(h) - hs =----hs = - (e|5h - fish - 1) .

Since

1

lim f1 (eßsh - ßsh - 1)^1 =0, ß v JJ

fi

the cost of the illiquidity also shrinks to zero. This corresponds to the horizontal constant line r and the infinity of the liquidity.

The authors find values of fi for the bid and ask sides of the LOB separately for many stocks, that trades on the Copenhagen Stock Exchange.

1.3. Empirical data

300 LOB «snapshots» were used as primary data for the cash-settled futures on Brent oil (BR-3.20, BRH0, expiration 02 March 2020), the cash-settled RTS Index futures (RTS-3.20, RIH0, expiration 19 March 2020), and cash-settled futures on US dollar — Russian ruble (USD/RUB) exchange rate (Si-3.20, SIH0, expiration 19 March 2020). The LOB dynamics is studied in the range from 15:36 to 16:05 MSK at 17/02/2020. On the both sides of the LOB 50 best price levels are presented. The average time interval between fixing of the LOB state is about 5 seconds. Most of parameters are presented in Table 1 (see [20] for details).

Table 1

The parameters for various futures contracts on the Moscow Exchange on 17/02/2020

Brent RTS index USD/RUB

Сontract size (lot) 10 barrel 1 RTS index 1000 USD

Quotation USD per 1 barrel points RUB per 1000 USD

Price tick 0.01 10 1

Value of price tick 0.1 USD 0.2 USD 1 RUB

Initial margin (buy) mb 4391.11 RUB 22830.85 RUB 4101.42 RUB

Initial margin (sell) ms 4424.33 RUB 23057.15 RUB 4141.46 RUB

From data of the LOB snapshots the empirical values of h, sm(h) and 1(h) are obtained. In the model of L.C.G. Rogers and S. Singh, the illiquidity is measured in the amount of an asset that a trader buys or sells (hb > 0 or hs < 0). In P. Malo and T. Pennanen model, the determining factor is the mark-to-market value sh. Since this article takes a similar approach to assessing the illiquidity for futures, the initial margin (mb or ms) is taken as a variable in the measurement of the illiquidity.

Instead of units of assets h or the mark-to-market value sh we used the value of the total initial margin for h units adjusted to US dollar:

f_m_h if h > 0-

mh = < USD/rub h f h > 0-

I _m_h if h < 0-

\USD/RUB h, n h < °

where USD/RUB is the current average spot exchange rate. Here it would be more correct to also take into account the difference between the USD/RUB bid and ask prices, but for the simplicity USD/RUB = 63.40 is used.

2. Main results

2.1. The shape of the limit order book

First of all, let see on the function 1(h) from equation (1) on Figure 1. Three functions present the LOBs for futures on the Brent oil, the RTS Index and the USD/RUB exchange rate. If to assume that the dependence is quadratic in the form of 1(h) = 1 s(mh)2 as in [7], then we obtain the values for s, which are presented in Table 2.

Fig. 1. The function 1(h) for the futures on Brent oil, the RTS Index and the USD/RUB exchange rate. For the graphs, the mean values of £ are used here. The widest line corresponds to the futures on the RTS index, which has the least liquidity. The thinnest line shows the futures for the USD/RUB exchange rate, which is the most liquid. The horizontal axis presents the total volume of the USD-adjusted initial margin mh (in US dollar millions)

Another methods

Table 2

The average empirical value of £, p and y for various futures contracts on the Moscow Exchange on 17/02/2020. The significance level is a = 0.05

Brent RTS index USD/RUB

£ (3.90 ± 0.45)10-ii (1.07 ± 0.02)10-ii (5.01 ± 0.25)10-ii

P (2.83 ± 0.16)10-9 (2.54 ± 0.04)10-9 (0.79 ± 0.09)10-9

Y (1.12 ± 0.13)l0-8 (1.66 ± 0.03)10-8 (2.51 ± 0.13)10-8

to evaluate the illiquidity in the LOB are based on the study of the relative price impact curve r(sm) from equation (2). On Figure 2 the function r(h) for the futures on the Brent oil, the RTS Index and the USD/RUB exchange rate are depicted. The horizontal axis presents the total volume of the USD-adjusted initial margin mh in US dollar millions. the relative price impact curves are piecewise constant increasing functions. For the good visualization, the figure shows only the right points of the constant sections.

Interpreting the curve r(sh) in the same way as in [18], the following points can be noted. Based on the slope of the r curve, we can conclude that the most liquid underlying asset is USD/RUB futures. The least liquid is the futures on the RTS index. It should be noted that the calculated value of 3 for the Brent futures is slightly larger than for

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

the RTS futures (see Table 2). This is the result of applying the least squares method to all data for Brent futures. If only central values of mh G (-1.5, +1.5) are taken into account, the data can be successfully approximated by a straight line. The second point is that there is a difference between the bid and ask side of the LOB.

0.01

-0.01

Fig. 2. The function r(h) for the futures on the Brent oil, the RTS Index and the USD/RUB exchange rate. The horizontal axis presents the total volume of the USD-adjusted initial margin mh

(in US dollar millions)

If to assume that the dependence is linear in the form of r(sh) = fimh as in [18], then we obtain the values for fi, which are presented in Table 2.

2.2. The total cost of illiquidity

On Figure 3 the total costs of the illiquidity T(h) — sh for the futures on the Brent oil, the RTS Index and the USD/RUB exchange rate are depicted. The horizontal axis presents the total volume of the USD-adjusted initial margin mh in US dollar millions. This functions allow to compare values of the cost of the illiquidity for each futures. As shown in Figure 4, for deals in h units that require less than 0.1 mio US-dollar for initial margins, the cost of the liquidity is approximately the same for the futures in question. The majority of retail investors operate in this interval.

Again, if to assume that the dependence T(h) — hs on mh is quadratic in the form of T(h) — hs = y(mh)2 for example, then we obtain the values for 7, which are presented in Table 2.

3. Conclusion

Two methods of assessing the insufficient liquidity were used in the work. They gave the same qualitative results, allowing to estimate in advance the total cost of the insufficient liquidity for a trader. This is important, as in most models it is believed that a trader hedges his position on the mark-and-market value. In this case, the cost of the illiquidity, of course, is zero. This is the discrepancy with the practice, especially for large orders.

-2-10 1 2

Fig. 3. The total cost of the illiquidity T(h) — hs for the futures on the Brent oil, the RTS Index and the USD/RUB exchange rate. The horizontal axis presents the total volume of the USD-adjusted

initial margin mh (in US dollar millions)

Fig. 4. The total cost of the illiquidity T(h) — hs for the futures on the Brent oil, the RTS Index and the USD/RUB exchange rate for a small volume of mh. The horizontal axis presents the total volume of the USD-adjusted initial margin mh (in US dollar millions)

Large participants use such methods of selling or acquiring an underlying asset as an iceberg or splitting a large order into small lots. This allows to reduce the cost of the illiquidity. Small traders often make trades within the spread of the best bid and ask prices.

Thus, our study is suitable for a mid, not large and not small, trader. On the one hand, the funds of such a trader are not enough to place iceberg orders and there are no other resources to perform hedging that is uniform in time or volume. On the other hand, the volume of her or his order exceeds the cumulative volume of the orders at the best bid and ask prices in the limit order book.

The paper suggests using the initial margin to compare liquidity costs for different

futures. The initial margin can also be the basis for comparing other parameters, since

many market indicators are taken into account in the calculation.

References

1. FreyR., Stremme A. Market volatility and feedback effects from dynamic hedging. Mathematical Finance, 1997, vol. 7, no. 4, pp. 351-374.

2. FreyR. Perfect option hedging for a large trader. Finance and Stochastics, 1998, vol. 2, no. 2, pp. 115-141.

3. Sircar R.K., Papanicolaou G. General Black-Scholes models accounting for increased market volatility from hedging strategies. Applied Mathematical Finance, 1998, vol. 5, no. 1, pp. 45-82.

4. Schonbucher P.J., Wilmott P. The feedback effect of hedging in illiquid markets. SIAM Journal of Applied Mathematics, 2000, vol. 61, no. 1, pp. 232-272.

5. Bank P., BaumD. Hedging and portfolio optimization in financial markets with a large trader. Mathematical Finance, 2004, vol. 14, no. 1, pp. 1-18.

6. Bank P., SonerH.M., Vofi M. Hedging with temporary price impact. Mathematics and Financial Economics, 2017, vol. 11, no. 2, pp. 215-239.

7. Rogers L.C.G., Singh S. The cost of illiquidity and its effects on hedging. Mathematical Finance, 2010, vol. 20, no. 4, pp. 597-615.

8. Agliardi R., GenCay R. Hedging through a limit order book with varying liquidity. The Journal of Derivatives, 2014, vol. 22, no. 2, pp. 32-49.

9. AlmgrenR., LiT.M. Option hedging with smooth market impact. Mark. Microstructure Liq., 2016, vol. 2, no. 01, 1650002.

10. Bouchard B., Loeper G., Zou Y. Hedging of covered options with linear market impact and gamma constraint. SIAM Journal on Control and Optimization, 2017, vol. 55, no. 5, pp. 3319-3348.

11. Gueant O., Pu J. Option pricing and hedging with execution costs and market impact. Mathematical Finance, 2017, vol. 27, no. 3, pp. 803-831.

12. Cartea A., GanL., JaimungalS. Hedge and speculate: replicating option payoffs with limit and market orders. SIAM Journal on Financial Mathematics, 2019, vol. 10, no. 3, pp. 790-814.

13. BertsimasD., LoA.W. Optimal control of execution costs. Journal of Financial Markets, 1998, vol. 1, no. 1, pp. 1-50.

14. AlmgrenR., ChrissN. Optimal execution of portfolio transactions. Journal of Risk, 2001, vol. 3, no. 2, pp. 5-39.

15. Alfonsi A., Fruth A., Schied A. Optimal execution strategies in limit order books with general shape functions. Quantitative Finance, 2010, vol. 10, no. 2, pp. 143-157.

16. Obizhaeva A.A., Wang J. Optimal trading strategy and supply/demand dynamics. Journal of Financial Markets, 2013, vol. 16, no. 1, pp. 1-32.

17. Cartea A., JaimungalS. Optimal execution with limit and market orders. Quantitative Finance, 2015, vol. 15, no. 8, pp. 1279-1291.

18. MaloP., PennanenT. Reduced form modeling of limit order markets. Quantitative Finance, 2012, vol. 12, no. 7, pp. 1025-1036.

19. Moscow Exchange. Initial mar-gin. Available at: https://www.moex.com/s1696, accessed 21.01.2020.

20. Moscow Exchange. Market Date. Available at: https://www.moex.com/en/marketdata, accessed 21.01.2020.

Article received 19.01.2020 Corrections received 28.02.2020

Челябинский физико-математический журнал. 2020. Т. 5, вып. 1. С. 96-104.

УДК 519.25+519.862.6+336.76 DOI: 10.24411/2500-0101-2020-15107

ОБ ИЗМЕРЕНИИ СТОИМОСТИ ЛИКВИДНОСТИ В КНИГЕ ЛИМИТНЫХ ОРДЕРОВ

М. М. Дышаев

Челябинский государственный университет, Челябинск, Россия Mikhail.Dyshaev@gmail.com

Работа посвящена разработке и демонстрации метода измерения стоимости неликвидности при дельта-хеджировании маржируемых опционов (futures-style options) на Московской бирже. Неликвидность обычно измеряется на единицу актива или денежных средств. Однако, учитывая специфику фьючерсов, в данной статье предлагается использовать общий объём начальной маржи и состояние лимитной книги ордеров. В этом случае становится возможным сравнить стоимость неликвидности для различных фьючерсов. Анализируются наиболее ликвидные фьючерсы, которые торгуются на Московской бирже, и сравнивается стоимость неликвидности при операциях с ними.

Ключевые слова: книга лимитных ордеров, неликвидность, хеджирование, начальная маржа.

Поступила в редакцию 19.01.2020 После переработки 28.02.2020

Сведения об авторе

Дышаев Михаил Михайлович, кандидат физико-математических наук, заведующий научно-исследовательской лабораторией финансового моделирования, Челябинский государственный университет, Челябинск, Россия; e-mail: Mikhail.Dyshaev@gmail.com.

Исследование выполнено при финансовой поддержке РФФИ в рамках научного проекта 1901-00244/19.

i Надоели баннеры? Вы всегда можете отключить рекламу.