Empirical Shape Function of the Limit-Order Books of the USD/COP Spot Market

Javier Sandoval*

* Lecturer and researcher, School of Finance, Government and Foreign Affairs. Universidad Externado de Colombia. Master in Applied Mathematics, Universidad Nacional de Colombia. MScin Finance, London School of Economics. PhD (c) en Systems and Computation, Universidad Nacional de Colombia.
javier.sandoval@uexternado.edu.co

Fecha de recepción: 13 de febrero de 2013, fecha de aceptación: 4 de julio de 2013.

Abstract

The following work aims to study the empirical properties of the limit-order books(LOB) of the USD/COP spot market. The article is organized as follows: The first section introduces important concepts and definitions. The second section characterizes limit-order book markets. The third section presents the dataset. The fourth and fifth sections depict the statistical properties of the limit-order book. The last section presents relevant conclusions.

Key Words: Limit-Order Book, USD/COP, Statistical Properties.
JEL code: G12.


Resumen

El siguiente trabajo tiene como objetivo presentar las propiedades empíricas de los libros de órdenes del mercado spot USD/COP. El artículo está organizado de la siguiente forma: La primera sección presenta conceptos importantes y definiciones. La segunda sección caracteriza los mercados de libro de órdenes límite. La tercera sección define el set de datos. La cuarta y quinta sección desarrollan las propiedades estadísticas del libro de órdenes. La última sección trata las conclusiones.

Palabras claves: Libro de órdenes, USD/COP, propiedades estadísticas.
Código JEL: G12


1. Introduction

Every exchange market is organized as a dealership or a limit order market. Current markets share features from both categories. However, it is possible to identify markets with a dominant side. In a dealership market, a customer's order is filled at a single price quoted by a specialist, a institutional investor that is in charge of providing liquidity. The price that the specialist provides for a certain quantity of the corresponding asset, does not affect the price that he/she would quote for different quantities. In dealership markets, dealers are expected to quote prices that clear the current buy and sell pressure. Examples of markets organized as dealership markets are Nasdaq and LSE.

In contrast, several exchange markets, including the euronext and the Colombian stock and foreign-exchange markets, are organized as what is called, limit order markets, markets that do not have a specialized dealer. In limit order markets, participants carry on their trades submitting either limit or market orders. This differentiation is important because is directly related to the cost assumed by the agent when executing a buy/sell transaction.

A limit order is defined as an order that has to be fulfilled at a specific volume and price. If market conditions are not adequate for executing a limit order, the latter will be queued in what is called the limit order book until execution or cancelation, which ever occurs first. Orders in the limit order book are organized by price, with the best prices on top. It means the buy order with the highest price on the buy side of the book and the sell order with the lowest price on the sell side of the book. If multiple orders have the same price, they are organized by time of arrival following a fifo (First In First Out) mechanism.

Figure 1 shows a snapshot of the limit order book for the colombian exchange market on February 2nd 2011 at 10:20:09 a.m extracted from the Set-Fx, the interbank exchange platform. Suppose a market agent wants to sell 750 thousand dollars at 1852.32. She has to use a limit order. The later will be placed on the sell(right) side of the limit order book right after the order to sell 250 thousand dollars at1852.3 and before the order to sell 250 thousand dollars at 1852.33. Before the new limit order could be fulfilled, orders in front of it have to be executed or canceled.

In contrast to limit orders, market orders define a specific volume and no price at which they have to be executed. Therefore, market orders take their price from the limit orders needed to be fulfilled. Now, assume that an agent delivers a market order to sell 750 thousand dollars. Because the agent's order is a market order, itwill be matched with best limit orders on the corresponding limit order book side. If the market or derisabuy (sell) order, it will be executed using the limit order book sell (buy) side. Therefore, the previous market order will be fulfilled using the first two limit orders of the book buy side. The selected limit and market orders leave the market as executed orders and the limit order book has changed.

Depending on which type of orders participants use, transaction costs will be different. Observing figure 1, if an agent wants to buy 250 thousand dollars, she has to choose between a market or a limit order. If she decided to use a market order, the execution price would be 1851.5. If she decided to use a limit order, the best she would have done is to place an order on the top of the buy side book, for example, selecting 1851.21 as the limit price. Assuming that the limit order is executed (remember that the latter is not guaranteed), it will be a difference of 29 cents between both transactions. Assuming an order volume of 250 thousand dollars, the monetary difference is 72.5 thousand colombian pesos.

2. The limit order book characterization

It is possible to enumerate several features of the limit order book. For example, Bouchaud et al. (2008) hightlighted the fact that the limit order book is very sparse and contains few orders that are far from best quotes. It does not necessary mean that there are not agents willing to trade at missing gaps on the limit order book but, they may not show their intentions yet. They may see no point in revealing their intentions if prices are far from their desired value.

Another feature is the presence of iceberg limit orders, orders that are partially shown to the market in terms of its quantity size. Therefore, the limit order book shows hidden liquidity. For example, assume for illustration purposes that the second quote in the buy side of the order book shown in figure 1, is an iceberg order with total size of 10 million dollars. If it came a sell market order for 4 million dollars, that market order would be cleared using just the first two orders in the book. However, when originally posted, the order was expected tobe cleared using the whole visible book. Iceberg orders avoid the agent who places it, revealing all its available information to the market.

There is also what is called a bilateral credit allocation process. It consists on defining the maximum exposure that every market participant would like to have with every agent in the market. There could be agents that define zero credit to others. Therefore, agents have a different available limit order book based on their credit allocation. One of the main consequences of this particular feature is the occurrence of out-of-market limit orders. When agents execute market orders, their orders will match credit-approved counter part limit orders. Thus, if executed market orders are large, there may be limit orders left that differ considerately from their neighbors in terms of offered price. In the Colombian exchange market, credit-approved limit orders are shown with a green spot. Despite their condition, non credit-approved limit orders are shown to all agents. This is a common configuration on foreign-exchange markets.

International evidence shows that the most probable final state of a limit order is cancellation. Following Gideon (2001) and Challet and Stinchcombe (2001), more than 40% of limit orders are cancelled within 10 seconds of being placed. More over, more than 80% of total limit orders are not fulfilled but cancel. This cancellation activity seems to decrease when the limit order's distance increases from the best quotes, Bouchaud et al. (2002).

Additionally, the limit order book dynamics have been studied thoroughly. For example, Ranaldo (2004) has found that agents' aggressiveness, agents' willing to wt until their orders are executed, is related to the shape of the limit orderbook. Thus, limit order dynamics are directly related to timing on market participants' strategies. Large traders prefers to submit divided buy (sell) limit orders when the sell (buy) limit order book side is thin. In contrast, a thick order book motivates market orders. See for example Farmer et al. (2003), Weber and Rosenow (2004) and Weber and Rosenow (2005).

Bouchaud et al. (2002) found evidence of a power law distribution on order prices distributed around best Bid-Ask quotes. It seems that this phenomenon is related to agents' beliefs about how probable are large jumps in current prices. The more market participants think that large fluctuations are possible, the more they will place orders far from best quotes trying to take advantage of large market orders. This behavior is normally related to how much investors value the execution speed. For example, portfolio managers, taking decisions on the long run can be less concerned about execution speed than arbitrageurs willing to trade price mis-balances as fast as possible.

Challet and Stinchcombe (2001), Maslov and Mills (2001), Weber and Rosenow (2005), Eisleretal, (2007) and Bouchaud et al. (2002) found that the sell and buysides of the limit order book tend to be symmetric. Also, they reported that the limit order book usually has a maximum away from the best orders (highest bid, lowestask). The maximum away point is aprice level at which, offered volume is maximum. This results are observed on stocks intraday series of the Nasdaq Stock Market.

Biais et al. (1995) provided evidence that best quote spread and market participant actions tend to be related. When the best quote spread widens, Agents are more likely to place limit orders. The opposite also applied. Thus, small Bid-Ask spreadmeans high liquidity and more agents placing market order instead of limit orders.

The limit order book also exhibits particular micro-patterns, which are not sufficiently explained by the current literature. For example, Guetal. (2008), described particular periodic peaks on the offered volume of the limit order book. According to Dorogovtsev et al. (2006), this behavior might be due to people's preferences over certain numbers like 5, 10 or their multiples. This feature was found on stocks registered on the Shenzhen Stock Exchange (szse). These periodic peaks do not seem to be a local feature. Eisler et al. (2007) reported the same phenomenon on stocks traded on the London Stock Exchange.

The limit order book also shows intraday pattern. Gu et al. (2008) presented the periodogram of 1-min averaged volumes at the first three tick levels of the limit order book. It showed peaks above the noise level at 1, 2, ...day−1 , which implies aperiod of one trading day. It is also reported an unusual increasing pattern on the average volumes of the first ticks which contrast with the regular U or L shape found in returns, return volatility, trading volume orbid-ask spreads. For instance, see Brooks et al. (2003) and Tian and Guo (2007).

Next sections studies the USD/COP limit order book and its empirical and statistical properties.

3. Data Set

In order to extract empiral features from the USD/COP limit order book, this paper will use a dataset consisting of one month of tick-by-tick information from the Set-Fx platform, the OTC market where USD/COP spot is negotiated. From tick-by-tick data, limit or derbook (lob) has been reconstructed. Book insertions refer toorder creations. On the other hand, order book extractions consist of cancelled or matched orders.

The dataset as a whole, consist of one hundred thousand market messages that have been organized to obtain corresponding USD/COP limit-order book. Dataset corresponds to April 2012 market data.

Except when stated, this paper uses event time, instead of clock time. Thus, all time series will be constructed indexed to order event arrival. Mainevents are insertion, cancellation, modification and matching. Figure 2 shows Bid-Ask quote prices during dataset period. USD/COP exchange rate located between 1.760 and 1.800 Colombian pesos.

4. Limit-Order Book Averaged Shape

Due to the large amount of information, the first efforts have been concentrated on averaged shape LOBS. The averaged shape of the Bid or Ask limit-order book can be calculated as follows:

M is the number of total events in the dataset and Vb,s(Δ,t) is the Buy(b) Sell(s) volume at certain instant t and Δ. Δ is the distance from best Bid-Ask prices. The Δ of best Bid-Ask prices is 1. u is the minimum price variation set equal to 0.05 Colombian pesos.

As observed on upper figure 3, Ignoring best quotes, the averaged shapeLOBS show a maximum away at Δmax = 20. This maximum away has been also observed in other markets as in Bouchaud et al. (2002) and Gu et al. (2008). LOBS increase when Δ < Δmax and decrease afterwards. However, the averaged shape LOBS show high volumes at best quotes. This finding is unique for the USD/COP spot market and could be interpreted as evidence of participant’s aggressiveness. It may be that execution probability is more relevant than timing.

Another interesting feature, is the presence of periodic peaks at Δ = 2n for n = 1, 2,..., 10 and Δ = 10n for n =1, 2,.... In terms of Colombian pesos, these periodic peaks correspond to 10 and 50-cent intervals respectively. Market participants tend to prefer some price levels to others when inserting limit orders. Specially, participants prefer round prices to 10 cents when Δ ≤ 10, and round prices to 50 cents otherwise. This preference phenomenon is also observed on stocks from the London Stock Exchange, Eisler et al. (2007).

Different from Gu et al. (2008), the USD/COP LOBS do not abruptly decrease at some Δ. This phenomenon can be explained by the absence of circuit breakers on the USD/COP spot market.

Lower figure 3 shows that average volume seems to decrease exponentially. therefore, assuming that

and using a least-square fitting method, it is obtained βb =0.0051 and βs = 0.0055. There is no significant difference between both β parameters. Therefore, comparing the calculated βs to the ones obtained in Gu et al. (2008) for the Chinese Stock Market, there is no evidence that USD/COP participants use differentiated strategies for long and short positions.

Though the averaged shape LOB is a good starting point, limit order volumes can largely deviate from their means. Therefore, it is necessary to analyze fluctuations of volumes using the standard deviation, σ, as a function of different values of Δ.

That is,

The standard deviation for Bid-Ask LOBS are shown in figure 4, volume standard deviation are inversely related to Δ. However, standard deviation become more volatile when Δ > 500, 25 colombian pesos. Limit order volume is less disperse up to some Δ. Deep orders are too unstable. This behavior is observed in both LOBS.

5. Statistical Properties of Volumes at vidual Tick Levels

5.1 Probability distribution

Previous section concentrates on averaged shape LOBS and their standard deviations. However, in order to study statistical properties of limit order volume, itis necessary to calculate time averaged volume over fixed time intervals, δt, at individual price levels.

where ti is the time moments of the N events that belong to the interval (tδt, t]. N is a function of t and δt. δt has been defined as 1 minute.

Differentfrom Gu et al. (2008) and in line with Bouchaud et al. (2002), 1 min averaged volume series are best represented by a Gamma distribution. Figure 5 depicts the probability distribution parameters for Bid and Ask LOBS at Δ = 1.1-min averaged volume series at higher values of Δ are also well represented by Gamma distributions. As figure 3 will predict, distribution mean decreases as Δ increases.

5.2 Intraday Pattern

Intraday patterns are well documented on financial time series including return, volatility, volume and duration series. See for example, Andersen and Bollerslev (1997), Andersen and Bollerslev (1998), Kiymaz and Berument(2003), Brookset al. (2003) and Tian and Guo (2007). Though every study uses different market data and time frames, almost all papers come to the same conclusion. There exist inverted U or L shape patterns on financial intraday series.

Figure 6 shows the volume conditional mean at Δ values which range from 1 to 5. At Δ = 1, there is a significant difference between volume before and after 8:30am. For Δ > 1 volume intraday conditional means resemble an inverted U withmaximum value around 10 −11 am.

5.3 Dependency and Long Memory

Temporal correlation on time series can be assessed through the autocorrelation function. Using the autocorrelation function shape, it is possible to determine what kind of dependency is observed on data. For example, it is interesting to observe function's decaying speed if any autocorrelation coefficient locates outof the regular 95% confident level interval. As shown in figure 7, autocorrelation coefficients are significant up to Lag 16. Therefore, it may be evidence of long memory in the series.

In order to confirm the long memory feature, the Hurst Coefficient has been calculated for the 1-min averaged volume series using DFA, a popular method. DFA analysis has been performed on both, Bid LOB and Ask LOB for Δ ranging from 1 to 10. Figure 8 shows results. In line with the low decaying speed of the autocorrelation function, all Hurst Indices, which values locate between 0.7 and 0.8, support high persistence levels. Hurst Coefficients were also calculated for Δ > 10. However, the increasing presence of 0 values drives indices to 1.

6. Conclusion

The empirical shape of the Bid-Ask LOBS has been investigated. Some findings confirm the international evidence others are unique for the USD/COP spot market.

As other research papers highlighted, the USD/COP averaged volume LOBS also show maximum away values and periodic peaks. However, due to the absence of circuit-breaker prices, volume do not abruptly decay at some value. In contrast, volume does not decay but become volatile at high Δ values. There was not significant difference between Bidand Ask LOBS which weakens the differentiated Bid-Ask strategy hypothesis.

USD/COP1-min averaged volume probability distribution was greatly represented by a gamma distribution. Distribution mean decreases as Δ increases.

1-min averaged volume series exhibited in traday patterns.When Δ = 1volumewere significantly different before and after 8:30 am. For other Δ values, an In-verted U was regularly observed. The volume series also showed a high persistence level confirmed by the series' autocorrelation function and the Hurst Coefficient.

7. Acknowledgments

We want to thank Algo/codex, a Colombian-based algotrading firm, for providing the database.


References

Andersen, T. G. and Bollerslev, T. (1997). Intraday Periodicity and Volatility Persistence in Financial Markets. Journal of Empirical Finance, 4(23):115-158.

Andersen, T. G. and Bollerslev, T. (1998). Deutsche Mark-Dollar Volatility: Intraday Activity Patterns, Macroeconomic Announcements, and Longer Run Dependencies. Journal of Finance, 53(1):219-265.

Biais, B.; Hillion, P. and Spatt, C. (1995). An Empirical Analysis of the Limit Order Book and the Order Flow in the Paris Bourse. Journal of Finance, 50(5):1655-89.

Bouchaud, J.-P.; Farmer, J. D. and Lillo, F. (2008). How Markets Slowly Digest Changes in Supply and Demand. Quantitative Finance Papers 0809.0822, arXiv.org.

Bouchaud, J.-P.; Mezard, M. and Potters, M. (2002). Statistical Properties of Stock Order Books: Empirical Results and Models. Science & Finance (cfm) working paper archive 0203511, Science & Finance, Capital Fund Management.

Brooks, C.; Hinich, M. J. and Patterson, D. M.(2003). Intra-day Patterns in the Returns, Bid-ask Spreads, and Trading Volume of Stocks Traded on the New York Stock Exchange. ICMA Centre Discussion Papers in Finance icma-dp2003-14, Henley Business School, Reading University.

Challet, D. and Stinchcombe, R. (2001). Analyzing and Modelling 1+1d Markets. Quantitative Finance Papers cond-mat/0106114, arXiv.org.

Dorogovtsev, S.; Mendes, J. and Oliveira, J. (2006). Frequency of Occurrence of Numbers in the World Wide Web. Physica A: Statistical Mechanics and its Applications, 360(2):548 - 556.

Eisler, Z.; Kertesz, J. and Lillo, F. (2007). The Limit Order Book on Different Time Scales. Quantitative Finance Papers 0705.4023, arXiv.org.

Farmer, J. D.; Gillemot, L.; Lillo, F.; Mike, S. and Sen, A.(2003). What Really CausesLarge Price Changes? Quantitative Finance Papers condmat/0312703, arXiv.org.

Gideon, S. (2001). Limit Orders and Volatility in a Hybrid Market: The Island Ecn. Working paper fin-01-025, NYU.

Gu, G.-F.; Chen, W. and Zhou, W.-X. (2008). Empirical Shape Function of Limit-Order Books in the Chinese Stock Market. Physica, (387):5182- 5188.

Kiymaz, H. and Berument, H. (2003). The Day of the Week Effect on Stock Market Volatility and Volume: International Evidence. Review of Financial Economics,12(4):363-380.

Maslov, S. and Mills, M. (2001). Price Fluctuations from the Order Book Perspective -Empirical Facts and a Simple Model. Quantitative Finance Papers cond-mat/0102518,arXiv.org.

Ranaldo, A. (2004). Order Aggressiveness in Limit Order Book Markets. Journal of Financial Markets, 7(1):53-74.

Tian, G. and Guo, M.(2007). Interday and Intraday Volatility: Additional Evidence from the Shanghai Stock Exchange. Review of Quantitative Finance and Accounting, 28(3):287-306.

Weber, P. and Rosenow, B. (2004). Large Stock Price Changes: Volume or Liquidity?

Weber, P. and Rosenow, B. (2005). Order Book Approach to Price Impact. Quant. Finance,(5):357-364.