Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

1 Introduction

Financial market movements have been studied firstly by Bachelier who described price movements as a random walk [1]. Since then, many researchers studied the microstructure of markets [24] and more recently some of them have focused on order book fluctuations using physics methodology [57]. Availability of new detailed database help researchers precisely describe the impacts of some characteristics on the order book even if orders do not directly contribute to execution.

In addition, some researchers describe order injection deal and cancellation from a physics viewpoint. In a paper appeared in 2014, Yura et al. studied the correlation between layers in the order book and the market price movement based on the analogy with the colloidal motion in water molecules [8].

Recently, a high proportion of market transactions are done by automated traders (financial algorithms) which increase the reaction speed in the market as a whole [9]. Regulators focus on analysing lifetime of orders—the amount of time spent in the market before annihilation—to understand the impact of market speed on the stability of the financial market [10, 11]. An extraordinary event in May 2010, better known as the “flash crash”, puts light on direct impact of cancellation orders on market volatility [12]. Actually, governmental organizations recognize that cancellation orders should be studied more carefully concerning cancellation lifetime [13].

The next section details the database used for this study. In Sect. 3.3 we describe lifetime statistical properties of annihilated limit orders with a focus on the relationship between executed and cancelled orders. Section 3.4 describes how market participants cancel their orders considering movement in market price. The final section contains a summary.

2 Description of the Database

We use a special database of Electronic Broking System (EBS) which contains identifications of every order. The database is from March 13th 21:00 (GMT) to March 18th 21:00 (GMT) 2011, and contains information about injected and annihilated orders with minimal tick time of 1 ms. This foreign exchange market is open 24 h per day during weekdays.

Traders must have a direct access to the market server via a private network and most of them are either banks or financial institutions. The majority of participants use financial algorithms for trading activity. In consequence, EBS market implements a minimum cancellation time rule of 250 ms. Then, it is not possible for participants to cancel a previous submitted order if the quote life is lower than 250 ms. As soon as the life quote is higher than this minimum, it is free for participants to do as they want.

The order book is initialized at the beginning of the week and similarly all orders remaining at the end of the week are deleted. This market is described as over-the-counter (OTC). It means that market participants must already have a credit agreement with other participants before they transact with each other. If this kind of agreement does not already exist, it is not possible for them to make a transaction. In other words, it is possible to see a buying order at a higher price than a selling order (negative spread) if there is no credit agreement between these market participants.

The EBS database contains forty-eight currencies but our study focuses on two of them: USD/JPY and EUR/JPY. Both are very liquid currencies in EBS market. During our studied period, the minimal tick (pip) for USD/JPY and EUR/JPY is 0.001 yen.

Table 3.1 describes the occurrence of limit orders submitted during our studied period and the high proportion of cancelled orders is explained by the type of traders within this market. In fact, over 90 % of traders are automated softwares (algorithmic trading) and most of them are market makers. We can define market making strategy as a provider of limit orders in the electronic order book which in exchange is remunerated with the spread charged between bid and ask orders and possibly a rebate fee (if available). In consequence, they have a high incentive to protect themselves against execution risk (risk to see their limit orders executed at the worst time). As cancelling and submitting orders do not incur costs, they often update their orders depending on market conditions (volatility, news, etc.) which increase significantly the proportion of cancelled orders [14].

Table 3.1 Details concerning limit orders

The most traded currency in EBS database is the USD/JPY in term of submitted limit orders and globally 90 % of all limit orders are ultimately cancelled. Another widely traded currency is EUR/JPY especially for triangular arbitrage. The percentage of cancellations increase when the currency is less liquid, for example, almost all submitted orders in EUR/CAD currency pair are cancelled which makes the proportion of cancelled orders extremely high (99.9 %).

In this current research, we use the notation b(t) as the best bid price at time t and a(t) as the best ask (offer) price at time t. The mid-price m(t) is the average between the best bid and best ask price: m(t) = [b(t) +a(t)]∕2. Figure 3.1 represents histogram of initial distance of orders in pips from the mid-price. The black histogram is the frequency of submitted orders at this initial distance and the grey histogram is the frequency of submitted orders at this initial distance knowing they will be executed.

Fig. 3.1
figure 1

Semi-log frequency plot of initial distance of limit orders from the mid-price of USD/JPY currency pair. Grey histogram represents all limit orders and black histogram represents limit orders to be executed

We can observe that orders initially submitted around mid-price have higher chances to be executed than orders far from these prices. In addition, the proportion of executed orders decreases for orders far from the mid-price. In our research, we analyze both bid and ask orders symmetrically as they have similar properties in our market.

3 Execution and Cancellation Lifetimes

The life of an order starts when it is injected in the electronic order-book. Similarly, this order’s life ends when it is finally executed or cancelled (annihilation process). The time between the beginning and ending of this order is defined as lifetime. In this section we focus on statistical properties of execution and cancellation lifetimes.

3.1 Execution Lifetime

An electronic order-book is filled by limit orders. A transaction occurs when a buying order (bid) is at a price equal or higher than a selling order price (ask or offer). In addition, both market participants must already have a credit agreement to fulfil the transaction. Figure 3.2 represents the cumulative distribution of lifetime of limit orders that are executed.

Fig. 3.2
figure 2

Log-log cumulative distribution of execution orders lifetime. The grey bold and black dotted lines respectively represent USD/JPY and EUR/JPY currency pairs

Execution lifetime (t L ) can be described as the time between the injection of the order and execution. Assuming the market price is approximated by a random walk and knowing a typical injection is close to the market price, the lifetime is estimated by a recurrence time of random walk [8]:

$$\displaystyle{ P(> t_{L}) \propto \ t_{L}^{-\frac{1} {2} } }$$
(3.1)

As confirmed in Fig. 3.2 lifetimes of execution orders in EBS foreign market are approximately following the random walk theory both for USD/JPY and EUR/JPY currency pairs.

Figure 3.3 represents the distance from mid-price at injection of orders later annihilated via execution. There are a lot of orders initially injected close from market price and ultimately executed.

Fig. 3.3
figure 3

Log-log cumulative distribution of the initial distance in pips from mid-price when orders are executed. The grey bold and black dotted lines respectively represent USD/JPY and EUR/JPY currency pairs

3.2 Cancellation Distance and Lifetime

In this foreign currency market, participants can always decide to cancel their initial limit orders if their lifetime is longer or equal to 250 ms. Contrary to execution orders, cancellation orders are annihilated at a certain distance from the mid-price. Many reasons can push a market participant to cancel an order such as being more or less aggressive with the price of his limit order.

Figure 3.4 represents the cancellation lifetime (T L ) cumulative distribution. In both currency pairs, more than 20 % of orders are cancelled at the minimum allowed cancellation lifetime (250 ms). Furthermore, the cancellation lifetime distribution bends in comparison to execution lifetime. In other words, there is significantly more orders staying a long time in the electronic order book and ultimately cancelled.

Fig. 3.4
figure 4

Log-log cumulative distribution of cancellation orders lifetime. The grey bold and black dotted lines respectively represent USD/JPY and EUR/JPY currency pairs

In Fig. 3.5 we analyze the cumulative distribution of cancellation orders from the mid-price [m(t)]. For small distance from mid-price represented from 100 to 101, both currencies initially have a plateau because of the spread between bid and ask orders. USD/JPY and EUR/JPY generally have a spread of approximately ten pips. If the order is closer from the mid-price, the chance to be executed is greater. Inversely, there are lower chances to be executed if orders are far from the mid-price. The distribution of the distance from mid-price at cancellation (Fig. 3.5) is significantly different from the distribution of the initial distance from mid-price at execution (Fig. 3.3).

Fig. 3.5
figure 5

Log-log cumulative distribution of distance in pips from mid-price when orders are cancelled. The grey bold and black dotted lines respectively represent USD/JPY and EUR/JPY currency pairs

3.3 Power Law Relation Between Execution and Cancellation Lifetimes

In Sects. 3.3.1 and 3.3.2 we described distributions of execution and cancellation lifetimes. In this section, we show there is a relationship between both distributions.

In Fig. 3.6 cumulative distribution of lifetime of annihilated events are plotted for cancellation and execution in log-log scale. Difference between execution and cancellation lifetimes observed in this figure is mostly due to the non-constant proportion between execution and cancellation of orders. In consequence, orders far from the mid-price takes longer time before being annihilated via cancellation. Limit orders far from the mid-price are often referred as extreme orders. EBS market is open from Sunday 21:00 (GMT) to Friday 21:00 (GMT) which means the maximum cancellation and execution lifetime is ∼ 6 × 105 s. In other words, there is a natural cutoff in the lifetime of orders in our database. At the end of the week (Friday 21:00 GMT), all orders remaining in the order book are deleted and those deleted orders are not include in cancellation statistics. New injections of orders to fill the order book are only allowed on the next Sunday 21:00 GMT.

Fig. 3.6
figure 6

Log-log cumulative distribution of annihilated orders lifetime of USD/JPY currency pair

In the electronic order book, market participants initially submit their orders at a certain distance (\(\bar{r}\)) from the market price. If the order is closer from market price, market participants will assume there is a higher probably to see their orders executed in a shorter period of time (T). Inversely, orders far from the market price will take longer time before being executed. When the market participants inject their orders, they are aware of this fact and will cancel their orders if the initial scenario does not hold anymore. If this is the case, they might choose to cancel and inject their orders again at a different price. Considering this mechanism, it is reasonable to assume the random walk theory just like the case of derivation of Eq. (3.1). We can introduce the following scaling relation:

$$\displaystyle{ T \propto \ \bar{ r}^{2} }$$
(3.2)

As demonstration of the scaling relation presenting in Eq. (3.2), we apply this relationship on the USD/JPY currency pair. Execution lifetime is approximated in using the probability distribution of the initial distance from mid-price of orders executed presented in Fig. 3.3 with the above scaling relation multiplied by a factor. Equation (3.3) is used to calculate the theoretical line from Fig. 3.3. Exempt the slower decay at the plateau on Fig. 3.7, the theoretical and real data lines fit well.

$$\displaystyle{ T = 0.07 \times \bar{ r}^{2} }$$
(3.3)
Fig. 3.7
figure 7

Log-log cumulative distribution of execution orders lifetime. The grey line represents theoretical distribution estimated from Fig. 3.3 using Eq. (3.3) and the black line shows real data execution lifetime (Fig. 3.2)

To continue, we use the same methodology to approximate the cancellation lifetime of USD/JPY currency pair. Cancellation lifetime is approximated in using the probability distribution of the distance from mid-price of orders cancelled presented in Fig. 3.5 with the scaling relation (Eq. (3.2)) multiplied by a factor. Equation (3.4) is used to calculate the theoretical line. Exempt the slower decay at the plateau on Fig. 3.8, the theoretical and real data lines agree approximately.

$$\displaystyle{ T = 0.01 \times \bar{ r}^{2} }$$
(3.4)
Fig. 3.8
figure 8

Log-log cumulative distribution of cancellation orders lifetime. The grey line represents theoretical distribution estimated from Fig. 3.5 using Eq. (3.4) and the black line shows real data cancellation lifetime (Fig. 3.4)

If the distance from the mid-price at cancellation follows a power-law such as the interval 102 to 104 in Fig. 3.8, we can directly link each other exponent. We define two power law exponents, α and δ respectively representing the cancellation lifetime and distance from mid-price at cancellation. For cancellation lifetime (T L ) cumulative distribution, we have the following relationship:

$$\displaystyle{ P(> T_{L}) \propto \ T_{L}^{-\alpha } }$$
(3.5)

In addition, cancellation orders from mid-price follows:

$$\displaystyle{ P(>\bar{ r}) \propto \ \bar{ r}^{-\delta } }$$
(3.6)

By incorporating Eqs. (3.2), (3.5) and (3.6) we have the following relationship for cancellation lifetime cumulative distribution:

$$\displaystyle{ P(> T_{L}) \propto \ T_{L}^{-\frac{\delta }{2} } }$$
(3.7)

Therefore, we find that δ can be linked with α:

$$\displaystyle{ \frac{\delta } {2} \approx \ \alpha }$$
(3.8)

4 Cancellation Orders and Market Price Movement

One might suspect that market participants cancel their orders depending on the market conditions. To analyze the relative behavior of market participants toward market price movements, we introduce new quantities A i and B i as shown below. The numerator of both quantities represents the distance of an order from the mid-price at annihilation (time T). m(t) is the mid-price at time t, b i (t) refers to the bid order i-th submitted at time t and a i (t) refers to the ask order i-th submitted at time t. The denominator represents the distance of the order from the mid-price at injection (time t).

In the case that A i  = 0 (B i  = 0) means that the mid-price did not move from the injection of the i-th ask (bid) to its annihilation moment. A i (B i ) higher than zero means that the market movement moves further from the order price; it becomes more difficult for this order to be executed because the distance from the mid-price is getting higher. Inversely, A i (B i ) lower than zero means that the market moves closer toward the order price.

$$\displaystyle\begin{array}{rcl} A_{i} = \frac{\big[a_{i}(t) - m(T)\big]} {\big[a_{i}(t) - m(t)\big]} - 1& &{}\end{array}$$
(3.9)
$$\displaystyle\begin{array}{rcl} B_{i} = \frac{\big[m(T) - b_{i}(t)\big]} {\big[m(t) - b_{i}(t)\big]} - 1& &{}\end{array}$$
(3.10)

Table 3.2 describes the frequency of cancellations filtering for different situations. The label Neg. Spread means that the bid-ask spread is negative at the moment of the cancellation order (time T). Again, it can happen because EBS market requires a credit agreement between every market participant before realizing transactions. If there is no agreement, even a buying price higher than a selling price will not trigger a transaction. In our probability density function analysis, we do not include this type of data. The label Exclude represents situations where the injection of order was initially done at a negative spread (time t). This situation has been excluded to the probability density function analysis.

Table 3.2 Frequency of cancellation orders filtered by the ratio value

To construct Fig. 3.9, we use bin size of 10−0. 3. Bars with label > 0 (Further) represent cases where the ratio of Eqs. (3.9) and (3.10) is higher than zero. Inversely, bars with label < 0 (Closer) represent cases where the ratio of Eqs. (3.9) and (3.10) is lower than zero.

Fig. 3.9
figure 9

Log-log probability density function (PDF) of price change from initial distance for USD/JPY currency pair. Grey bars represent situations where the market price is getting further from individual orders price. Black bars represent situations where the market price is getting closer from individual orders price

5 Discussion

Our study focuses on lifetime of annihilated orders either by execution or cancellation. Using the example of USD/JPY currency pair, we demonstrate the scaling relation between the distance from mid-price and the random walk theory and compare the result with real data. The non-trivial difference between cancellation and execution lifetime can be explained by a non-random cancellation process. The EBS database especially helps us to discover that cancellation probability depends on the distance of those orders from the mid-price.

In addition, we have seen that market participants have a non-symmetric cancellation behavior, which depends on the movement of the market price. Further research linking the impact of market movement (volatility) and cancellation behavior may contribute to quantify the impact of cancellation orders on market stability. It may represent promising future research subjects.