scieee AI-readable full text Open interactive document viewer

Market quality and short-selling ban during the COVID-19 pandemic: A high-frequency data approach

Ferreruela, Sandra,Martín, Daniel

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Ferreruela, Sandra; Martín, Daniel Article Market quality and short-selling ban during the COVID-19 pandemic: A high-frequency data approach Journal of Risk and Financial Management Provided in Cooperation with: MDPI – Multidisciplinary Digital Publishing Institute, Basel Suggested Citation: Ferreruela, Sandra; Martín, Daniel (2022) : Market quality and short-selling ban during the COVID-19 pandemic: A high-frequency data approach, Journal of Risk and Financial Management, ISSN 1911-8074, MDPI, Basel, Vol. 15, Iss. 7, pp. 1-29, https://doi.org/10.3390/jrfm15070308 This Version is available at: https://hdl.handle.net/10419/274830 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/ Citation: Ferreruela, Sandra, and Daniel Martín. 2022. Market Quality and Short-Selling Ban during the COVID-19 Pandemic: A High-Frequency Data Approach. Journal of Risk and Financial Management 15: 308. https:// doi.org/10.3390/jrfm15070308 Academic Editor: Cuong Nguyen Received: 13 June 2022 Accepted: 11 July 2022 Published: 14 July 2022 Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. Copyright: © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). Journal of Risk and Financial Management Article Market Quality and Short-Selling Ban during the COVID-19 Pandemic: A High-Frequency Data Approach Sandra Ferreruela 1,* and Daniel Martín1,2 1 Department of Accounting and Finance, University of Zaragoza, 50005 Zaragoza, Spain; [email protected] 2CESTE International Business School, 50012 Zaragoza, Spain *Correspondence: [email protected] Abstract: The recent emergence of COVID-19 and the subsequent short-selling restriction (SSR) imposed on some equity markets provide us with a unique framework to analyze the effects of this kind of measure on market quality in the context of increasingly automated equity markets. We contribute to the literature by analyzing the microstructure and quality parameters of the Spanish equity market during COVID-19 and SSR. We study four subperiods, namely pre-crisis, turmoil, SSR, and first de-escalation periods, by means of a tick-by-tick dataset and the complete limit order book (LOB). We observe the following impact of the SSR on the constituents of IBEX 35: (1) the SSR did comply partially with its aim at an intraday level regarding volatility, but liquidity was reduced; (2) liquidity deterioration affected more the sell than the buy side of the LOB; (3) high-frequency activity (HFT) diminished during SSR, reinforcing volatility; (4) negative effects on liquidity and HFT diminished and disappeared as the ban was lifted; (5) HFT unidirectionally Granger causes 1 min realized volatility while the natural logarithm of the slope of the LOB bidirectionally Granger causes 1 min realized volatility. Keywords: short-selling restriction; high-frequency activity; market efficiency; liquidity; volatility; slope of the limit order book 1. Introduction The prevalence of algorithmic trading (AT), and high-frequency activity (HFT) in particular, has increased significantly in recent years (Baron et al. 2019;Borch 2016;Cvitanic and Kirilenko 2012;Dall’Amico et al. 2019;Golub et al. 2012;Hasbrouck and Saar 2013; Jovanovic and Menkveld 2012). Financial literature has thoroughly studied market quality parameters and their relationship with AT and HFT, although inconclusive findings have been reached regarding volatility, liquidity, price efficiency, and transaction costs related to HFT’s impact and behavior (Virgilio 2019). If one conclusion can be drawn it is that technology and new AT and HFT trading strategies significantly affect market microstructure (O’Hara 2015). This paper aims to jointly analyze the main quality parameters of the constituents of the Spanish equity index IBEX 35 and relate them to changes in the microstructure in several market situations at a high-frequency level of activity. MiFID II clearly establishes what can be considered AT and HFT in a market. Specifically, AT is described as “trading in financial instruments where a computer algorithm automatically determines individual parameters of orders such as whether to initiate the order, the timing, price or quantity of the order or how to manage the order after its submission, with limited or no human intervention, and does not include any system that is only used for the purpose of routing orders to one or more trading venues or for the processing of orders involving no determination of any trading parameters or for the confirmation of orders or the post-trade processing of executed transactions” (Article 4(1)(39) of MiFID II), while HFT is defined as “an AT technique characterized by: (a) infrastructure intended to minimize network and other types of latencies, including at least one of the J. Risk Financial Manag. 2022,15, 308. https://doi.org/10.3390/jrfm15070308 https://www.mdpi.com/journal/jrfm J. Risk Financial Manag. 2022,15, 308 2 of 29 following facilities for algorithmic order entry: co-location, proximity hosting or high-speed direct electronic access; (b) system-determination of order initiation, generation, routing or execution without human intervention for individual trades or orders; and (c) high message intraday rates which constitute orders, quotes or cancellations” (Article 4(1)(40) of MiFID II). The turmoil in the financial markets created by the COVID-19 shock is a unique opportunity to analyze the effects of interventionist policy measures over said market quality parameters in the context of increasingly automated markets. During the first wave of the COVID-19 crisis, the European Securities Market Authority (ESMA) prompted six European authorities to ban short selling in the most liquid shares. In Spain, Comisión Nacional del Mercado de Valores (CNMV) imposed the prohibition of short selling over liquid stocks on 17 March 2020 in accordance with Articles 23 and 24 of Regulation (EU) No. 236/2012 of the Short Selling Regulation in those inventories that involve the creation or increase of a net short position on the Spanish shares admitted to trading in the Spanish trading venues. The decision was implemented due to “extreme volatility taking hold of European securities markets, including those based in Spain, their performance in the context of the situation arisen as a result of the virus COVID-19 and the risk of disorderly trading taking place in the following weeks”. On 17 March 2020, a proposed emergency measure introduced by CNMV under Articles 20(2)(a) and (b) of Regulation (EU) No. 236/2012 (ESMA70-155-9556), subsequently imposed long-term exchange-wide shortselling ban effects, which started on 18 March 2020 and was lifted on 18 May 2020 as market conditions improved. Short selling adds liquidity and benefits price discovery ( Massa et al. 2015;Sobaci et al. 2014; Feng and Chan 2016;Wang et al. 2017). However, it is still controversial if these restrictions with naked short selling actually reduce financial risks, through the reduction of the volatility of returns, introducing factual confidence in markets. The period of exogenous shock due to COVID-19 and the ban on short selling in the Spanish stock market is an eligible one to analyze the impact of these kinds of measures on market quality and to assess whether the ban complied with its objectives or not. The increased prevalence of AT and HFT and their impact on market microstructure make it necessary to revisit the consequences of short-selling restrictions, since previous results may not be valid in current markets. Although the Spanish equity market is still not labeled as an HFT venue, it provides low-latency infrastructures, co-location services, and direct access to algorithms, which make it a suitable place to study the effects of SSR on market microstructure and quality in the context of modern, highly automated markets. The main aim of this paper is to analyze different market quality measures and the prevalence of HFT on the IBEX 35 constituents during four different subperiods: the pre-pandemic period, the initial market turmoil due to the COVID-19 pandemic, the shortselling ban window, and, finally, the first phase of de-escalation. We contribute to the literature by analyzing the microstructure and quality parameters of the Spanish equity market during the emergence of COVID-19 and the subsequent SSR by means of a unique dataset including tick-by-tick changes in the LOB. The data, containing twenty levels of the positions of the LOB, allow the detection of the changes at the microstructure level and shed some light on the impact generated by SSR with low-latency infrastructures and co-location services. Buy, sell, modify, and cancellation orders arriving at the LOB can be perfectly linked to executed trades. Proxies based on message traffic have been used to identify AT and HFT by academics, industry bodies, trading venues, and regulators. We use the number of messages per EUR 100 of trading volume along with message-to-trade ratios as a proxy of high-frequency activity (Hendershott et al. 2011). We revisit liquidity measures, price efficiency, and volatility. Finally, we test for panel data Granger causality between realized 1 min volatility with a high-frequency proxy and the natural logarithm of the slope of the LOB. More precisely, we provide research on a tick-by-tick basis about the message flow in the Spanish market from the pre-pandemic period to the first stage of de-escalation. J. Risk Financial Manag. 2022,15, 308 3 of 29 Specifically, this paper identifies (1) the prevalence of high-frequency activity with indirect approaches such as message-to-trade ratios, messages per second, and changes in the midpoint price different from zero (Bouveret et al. 2014) and (2) changes in market quality across COVID-19 periods, either before or after the SSR, from 18th of March to 18th of May 2020; finally, (3) we analyze whether short sellers act as essential information intermediaries enhancing the information environment in normal and “extreme” times, as pointed out by Marsh and Payne (2012) in relation to the 2008 financial crisis, studying whether shortselling restriction impacts the symmetric deterioration of the elasticity of the LOB. Therefore, we formulate the following hypotheses: Hypothesis 1. The effectiveness of short sale constraints in reducing extreme volatility is low, consistent with most previous literature. Hypothesis 2. Market quality deteriorated during the SSR period. Hypothesis 3. Short-selling bans drastically reduce high-frequency activity, based on Granger causality. Hypothesis 4. Deterioration was non-symmetric in the ban period; it was worse on the sell side of the LOB. Hypothesis 5. High-frequency activity and the slope of the LOB Granger cause realized volatility. HFT prevalence features are, among others, (1) the low–zero inventory at the end of the day in HFT firms; (2) the smaller size per trade, as pointed out by Menkveld (2013); (3) the existence of co-location services or low-latency infrastructures; and (4) high message traffic per trade and per order. Extant HFT literature bases proxies on message traffic, which should be increased if HFT increases (Hendershott et al. 2011). Specifically, these types of measures were used as indirect proxies by Brogaard et al. (2015,2017), Boehmer et al. (2018), Brogaard et al. (2013), and Friederich and Payne (2012,2015). The interaction between high message ratios mainly due to HFT has affected microstructure parameters at the intraday level compared to a daily basis. Brogaard et al. (2019) concluded that more limit orders were associated with better price discovery but more volatility and adverse selection costs. This should be considered due to the partial impact explained by high-frequency activity. Due to the expansion of AT and high-frequency AT (HFT), MiFID II/MiFIR imposes certain obligations on trading venues to protect the integrity and quality of the market. Co-location services, market-maker activities, capacity and resilience of systems, and order-to-trade ratio are some of those. Trading venues are required to have systems that allow the limitation of the proportion of unexecuted orders that can be entered into the system by each participant. In the case of the Spanish stock market, the entry into force of the MiFID II directive on 1 January 2018 meant that it was no longer mandatory to reveal the broker code behind each order. Therefore, no detailed information about the companies that operate or participate in high-frequency trading as their main line of business is available from the market. However, a low-frequency infrastructure (SMART SIBE) was established in 2012. Although no member was registered as an HFT proprietary business, since 16 April 2012, the latency dropped to less than 1 millisecond. The ESMA Economic Report (Bouveret et al. 2014) presented an overview of HFT from different approaches, such as HFT flags and lifetime orders, in which the Spanish stock market had 20% of the value traded by HFT back in 2013, according to the latter, although no HFT-flag was available. Investment banks’ activity was 59% of the total value traded, of which 22% was HFT. In terms of the number of trades (orders), their activity accounted for 62% (70%) of the total number, of which 20% (27%) was HFT. With regard to the private information behind Spanish HFTs and ATs, it seems appropriate to specify that algorithmic trading orders are usually based on the evolution of market parameters, more than on the information leakage related to macroeconomic fundamentals. These are orders that do not need to be managed by the broker; on the J. Risk Financial Manag. 2022,15, 308 4 of 29 contrary, it is the system itself that is responsible for managing them internally, according to the algorithm and the parameters chosen by the trader. Without intending to present an exhaustive list, some typical variables included in the algorithms are the following: volume-weighted average price (VWAP), time-weighted average price (TWAP), percent of volume (POV), SOR best price, and SOR max volume. Huhtilainen (2017) and Losada López and Martínez (2020) pointed out that banning short selling is not an effective tool (or at least it is limited) for containing extreme price volatility, improving liquidity (bid–ask spread), and obtaining better results in the Amihud illiquidity ratio. Diamond and Verrecchia (1987) find that short sellers are informed traders that provide price efficiency, so prohibiting their activity will potentially prevent information from reaching the market. However, the former loss of depth is not significantly due to the ban rather than to country premia, on a daily basis. Our results indicate that the Amihud ratio throws greater coefficients on a trade-by-trade basis, and it is not significant due to the SSR period. Our results are consistent with prior theoretical and empirical work (European Securities and Markets Authority 2022), as the COVID-19 short-selling bans are associated with more pronounced liquidity deterioration on large stocks. According to Brogaard et al. (2017), liquidity and price efficiency improved due to low-frequency trading during the 2008 short-selling ban, and they deteriorated because of high-frequency trading due to unfavorable selection of limit orders, avoiding low-frequency trading in periods of short-selling restrictions. We emphasize that high-frequency messages by trade (our proxy for HFT) decreased significantly during SSR on the venue, but liquidity did not improve relative to the rest of the periods. Losada López and Martínez (2020), in accordance with the main strand of the literature, find that the SSR had a very negative impact on bid–ask spreads and depth in IBEX 35 constituents, but the Amihud illiquidity ratio is not significantly due to the ban. Siciliano and Ventoruzzo (2020), on the other hand, assert that liquidity (spread and Amihud illiquidity ratio) deteriorated with the ban in 2020. Regarding the provision of liquidity in the market in a high-frequency world, there is a branch of the literature focused on the measurement of order flow toxicity (the expected loss from trading against better-informed counterparties) headed by the papers by Easley et al. (2012) and their VPIN measure. According to these authors, providing liquidity in an HF environment introduces new risks: when order flows are balanced, HF traders earn tiny margins on massive numbers of trades, but when order flows become unbalanced, they face the prospect of losses due to adverse selection. Therefore, order flow toxicity can cause market makers to leave the market, triggering illiquidity. However, the accuracy of the VPIN measure as an estimator of toxicity has been questioned by Andersen and Bondarenko (2014a,2014b,2015), although these papers have been subsequently refuted in turn by Easley et al. (2014). This debate about the measurement of the existing risk does not erase the fact itself that order toxicity (as measured by the existence of imbalances in the LOB) can lead to a notable decrease in liquidity. Recently, the VPIN measure has been also used to assess whether HFTs are responsible for extreme price movements, and it was observed that they reduce their trading prior to price jumps, while low-frequency traders remain as the main market participants when jumps take place (Prodromou and Westerholm 2022). Informed trading has been the object of study in the FX market, where it has been observed that there is a certain intraday momentum effect due in part to informed investors (Gençay and Gradojevic 2013), who, in order not to reveal their positions, could concentrate their trades at the times of greatest volume (usually the opening and the closing, due to the well-known U-shape in intraday trading volume) (Elaut et al. 2018). These studies have been replicated in the S&P500, and it was concluded that the intraday momentum effect holds (Gao et al. 2018) but disappears during the COVID-19 pandemic shock (Hossain et al. 2021). However, on the one hand, the conclusions of FX studies are not 100% applicable to stock markets given the special characteristics of the former (trading is more decentralized and opaquer in the FX market, and trades can occur around the clock as opposed to fixed opening and closing hours, as indicated by D’Souza (2007)). On the other hand, although all HFT trading is sometimes considered to be informed, there are J. Risk Financial Manag. 2022,15, 308 5 of 29 different levels of informativeness, as Benos and Sagade (2016) pointed out: high-frequency traders who pursue strategies that require the use of aggressive trades are most informed, as opposed to passive high-frequency traders who more likely act as market makers. Price efficiency in this pandemic crisis could be treated in a different context compared to other short-sales restrictions due to suggested disinformation or incomplete information, even in efficient markets, since the situation of a new disease that generates a global pandemic reduces the real information and its incorporation, worsening the price efficiency, according to the European Securities and Markets Authority of 15 April 2020. With regard to the symmetry of the impact of short-selling restriction (SSR) over the buy and the sell sides of the LOB, Marsh and Payne (2012) found that the impairment was symmetrical to financial stocks, affecting the buy and sell sides of the order book equally during the 2008/2009 financial crisis in the UK, while Duong and Kalev (2007) found that the buy side of the LOB is more informative than the sell side. Our results reflect a more dispersed (concentrated) order quantity in the sell (buy) side of the LOB during the short-selling restriction period, stronger in small companies than in large capitalization stocks. Consistent with Duong and Kalev (2007) we find dispersion of beliefs about asset values and the slope of the buy side of the book looks more informative than the sell side (Pascual and Veredas 2006). The slope of the LOB, raised by Næs and Skjeltorp (2006), describes how the quantity supplied in the order book changes as a function of prices. This measure relates depth with the number of orders and quantity on both sides of the LOB. According to the authors, the flatter (steeper) the slope, the more widely distributed (concentrated) the volumes in the order book are. In addition, the volatility–volume relationship (negative related to slope) increases due to the dispersion of beliefs partially informed by the slope of the LOB. In addition, the authors claim that this measure has an informative influence as an endogenous variable explaining volume, trades, and price autocorrelation. Duong and Kalev (2007) found that the slope of the buy side of the LOB is more informative compared to the sell side of the LOB in the Australian Stock Exchange (ASX). The slope of the LOB considers the average of the slopes on the demand and supply sides. We approach this relationship from the point of view of comparing both slopes (demand and supply) as a ratio in each period. Goldstein and Kavajecz (2004) evidenced a negative relation between the shape of the LOB and volatility in the NYSE during the October 1997 turbulent period. The remainder of the paper is organized as follows: Section 2presents extant literature on market quality and the effects of the COVID-19 pandemic shock; Section 3describes the data and the measures applied in the research; Section 4presents the main results obtained; finally, Section 5concludes. 2. Literature Review The COVID-19 pandemic has had a great impact, affecting practically all sectors, levels of society, and countries in the world. This pandemic has developed very differently from previous health threats, having spread rapidly until it was declared a global pandemic in mid-March 2020. Government attempts to counteract the effects of the pandemic have included measures to limit the severe impacts of COVID-19 throughout the world, the most striking being lockdowns, but without forgetting other movement restrictions, including learning from home or working from home for non-essential businesses or services, as well as banning crowds and establishing fiscal stimulus. The fact that it is a relatively recent shock has not been an obstacle to the generation of a plethora of research papers focused on this period; however, the literature is still limited since there are several questions yet to be identified and explored on the financial effects of the COVID-19 pandemic. In this literature review, we are going to focus on those papers whose scope is the impact of the shock caused by the pandemic on market efficiency. For an extensive and systematic review of the early literature on the impact of COVID-19 on markets, see the work of Anggraini et al. (2022). J. Risk Financial Manag. 2022,15, 308 6 of 29 With respect to liquidity, mixed results have been obtained when analyzing what happened in different markets. On the one hand, most of the studies have detected a worsening of liquidity measures in practically all the markets under analysis: for example, Haroon and Rizvi (2020), using a sample of emerging markets, find that an increase in the number of confirmed coronavirus cases is associated with deteriorating liquidity in financial markets. Foley et al. (2022), using data from North America, Europe, and Australia, claim that there are negative liquidity impacts most pronounced for stocks most exposed to HFT market makers. However, Chakrabarty and Pascual (2022) observe a drop in liquidity in assets belonging to the S&P500, although less pronounced in those assets more actively traded by AT. Other papers pointing in this direction are those of Damien (2021), Tissaoui et al. (2021) , and Priscilla et al. (2022). On the other hand, authors such as Marozva and Magwedere (2021) have observed an improvement in liquidity in the capital market, with a negative relationship between illiquidity measures and COVID-19, more prevalent in developed markets than in emerging ones. The recent pandemic also had a negative effect on volatility in the market. Research papers around the world show an increase in volatility coinciding with the outbreak of the pandemic (Ali et al. 2020;Barro et al. 2022;Chowdhury et al. 2021;David et al. 2020; Mishra and Mishra 2021;Sheraz and Nasir 2021;Uddin et al. 2021). Gao et al. (2021) find that the impact of COVID-19 on the stock market showed a significant leverage effect in both the US and China, imposing a stronger effect on the stock market volatility when it was already high. Engelhardt et al. (2020) note that, in spite of the negative impact of the pandemic, stock markets’ volatility is significantly lower in high-trust countries. Some studies have tried to identify the origin of this volatility, focusing on factors such as the dissemination of news about the health crisis (Alzyadat et al. 2021;Mishra and Mishra 2021), activities that facilitate mobility and economic shocks (Egger and Zhu 2021), fear (Li et al. 2021), and the implementation of mobility restriction measures (Chowdhury et al. 2021;Hunjra et al. 2021). Ftiti et al. (2021) also found that market sentiment toward the pandemic had significant effects on stock price volatility. The impact of the pandemic could be summed up in a notable decrease in market efficiency, as pointed out by authors such as Dias et al. (2020), Hong et al. (2021), and Ozkan (2021). Our paper contributes to the existing literature by uncovering the information buried in the intraday data about the changes in market quality in various subperiods (including a short-selling ban), through the application of relevant measures and taking into account the activity of HFT and AT. 3. Materials and Methods For conducting the research shown in this paper, tick-by-tick databases are used, containing both messages from the LOB and data on the transactions of ordinary shares traded on the electronic platform of the Spanish market. The original data have been supplied by BME Market Data. The analysis period covers 184 days, divided into four time-windows: pre-pandemic (W0), from 20 November 2019 to 20 January 2020; pandemic crash (W1), from 21 January 2020 to 17 March 2020; short-selling ban (W2), from 18 March 2020 to 18 May 2020; and de-escalation (W3), from 19 May 2020 to 13 July 2020. The temporary ban on short sales concerning the 13th of March is considered partial and not included in the period because it was not extensively informed further than that day. The sample consists of 35 stocks that are constituents of IBEX 35, subdivided into quartiles by market capitalization on 19 December 2019. The LOB data, provided by BME DATA FEED Services, include the twenty best quotes, both bidding and asking, which are updated every time a new message is sent to the market (i.e., a limit order, a market order, a cancellation, or an order modification). For each level of the LOB and for each stock, there is information about the quotes, the number of visible orders at each quote level, and the depth. Each executed trade can be perfectly joined with the limit book order messages and changes. A unique sequence number is generated every time a buy, sell, cancellation, or modification order message reaches the Spanish Stock J. Risk Financial Manag. 2022,15, 308 7 of 29 Exchange Interconnection System (SIBE), allowing us to have a snapshot of the LOB every time it is updated with a message. In this way, we relate the number of messages arriving at the SIBE to each executed trade. No information about hidden depth and iceberg orders is available in the data. Because the first and last minutes are key for our study, all messages and order data from the pre-auction and auction periods have been included in the study. Group 1 measures: algorithmic data and high-frequency trading proxies. An accurate identification of HFT presence is challenging to achieve; no unique or easy method can accurately estimate the percentage of HFT, apart from, of course, labeled data. Since the implementation of MiFID II in 2018, BME DATA FEED Services provides detailed information about the LOB and transactions, but it does not include HFT labels in the data. However, another label (AlgorithmicTradeIndicator) reveals whether the trade was submitted by a trading algorithm. In this paper, indirect proxies have been calculated due to the fact that flagged HFT labeled data do not exist in the Spanish market. Regarding some indirect HFT metrics, we consider, as MIFID II further defines under Article 19 of Commission Delegated Regulation (EU) 2017/565, high message intraday rate “as the submission, on average, of any of the following: “(a) at least 2 messages per second with respect to any single financial instrument traded on a trading venue; (b) at least 4 messages per second with respect to all financial instruments traded on a trading venue; where only messages concerning financial instruments for which there is a liquid market are to be included in the calculation”. The limit is defined at firm activity, so as we do not have broker’s data, we will analyze changes in the number of messages per second and per executed trade over periods as in previous literature. Infrastructure requirements were implemented in the Spanish stock venue in 2012 with the Smart SIBE, which complies with one of the HFT and AT requirements, which is using co-location and proximity services to minimize latency. At a microstructure level, high-frequency data, message traffic flow, and message-to-trade ratios are fundamental to include in the Spanish market quality study. We have to highlight that these high-frequency activity proxies cannot be taken purely as an indicator of HFT, although the imprint of this activity on said measures is definitely observable. We analyze changes in average trade size, messages sent per second, messages per trade, midprice changes on the LOB, and number of trades. Additionally, we use the Hendershott et al. (2011) combined number of messages per EUR 100 of trading volume along with message-to-trade ratios as an indirect approach to HFT. In all the cases, high-frequency activity increases these measures and vice versa, except in the case of average size, where the prevalence of HFT trades usually reduces the quantity of stocks in each trade. Firms generating message traffic of more than two messages per second or 75,000 messages per trading day are HFT firms if they also fulfill the other criteria of the HFT act. Jovanovic and Menkveld (2012) define HFT firms as intermediaries with high volume traded and near-to-zero intraday and overnight inventories. As it is not mandatory to disclose the broker code, the average end-of-the-day inventories of brokers can not be calculated. The measures presented below are indirect proxies for high-frequency activity, which are calculated per transaction and on a tick-by-tick basis with LOB messages. Then, they are averaged by asset and day to obtain daily series that cover the entire analysis period. We have contrasted non-normal distribution medians of algorithm trading, average size per trade, messages per second, midprice changes different from zero, number of executed trades, and number of messages per EUR 100 traded on the complete LOB. These measures are defined in Equations (1)–(6). ALGO_TRi=100 ×(orders submitted by a trading algorithm/orders submitted)i(1) AVGSIZE = (Traded volume/#Executed trades)i(2) MESSAGES_SECi= (#messages sent to LOB/#seconds o f trading day)i(3) MESSAGESTRADE(HFT)i= (#messages sent to LOB/#trades)i(4) J. Risk Financial Manag. 2022,15, 308 8 of 29 MIDPRICE_CHANGESi=(#changes in midpoint price di f f erent o f zero)i(5) MESSAGES_€100i=#messages sent to LOB/100 euro traded (6) Group 2 measures: liquidity measures. Market quality measures revisited in this paper are calculated on an intraday basis. Liquidity is one of the most important market parameters (Ma et al. 2018). The measures considered at an intraday, high frequency, level include direct and indirect approaches used in the literature: average volume as the daily traded volume, bid–ask spread calculated as the difference between the best buy price and the best-selling price over the midpoint, relative spread as spread divided by midpoint price, and depth (as the average between the accumulated stocks at the twenty best buy and sell prices). We also obtain liquidity measures such as the Amihud illiquidity ratio on a trade-by-trade basis. The liquidity measures taken into account are shown in Equations (7)–(10). AVGVOLi=Average traded volume in a dayi(7) SPREADi=Best ask pricei−Best bid pricei(8) RELATIVE SPREADi=2x SPREAD i/(Best ask pricei+Best bid pricei)(9) Depthi= (Accumulated ask orders (20 levels)i+Accumulated bid orders (20 levels)i)/2 (10) We have calculated the Amihud (2002) illiquidity measure, adapting from daily to trade-by-trade level, as the ratio of absolute stock trade-by-trade return to the volume in EUR obtained from each trade. The original Amihud illiquidity measure is calculated on a daily basis, comparing close to the previous day close to calculate the absolute return compared to the volume in USD. It is not necessary to apply revision due to the case of a trade-by-trade basis, as open price and prior-close price are coincident (Barardehi et al. 2020). The mean of the daily data of each stock is used as input for the constituents of the quartile-period panel. For the rest of the test, the average across IBEX 35 constituents is used. AMIHUDi,trades =1 Ntrades,i Ntrades ∑ s=1(returni,trade €volumei,trade )(11) where, at an asset level ( i ), Ntrades,i is the number of executed trades, returni,trade is the realized return in each trade, €volumei,trade is the volume in EUR consumed in each trade. We contrast out average-pairwise verification among stocks, considering the nonnormal distribution of data. Non-parametric mean with t-test with two paired samples and median test with ranked signed Wilcoxon verification test (Wilcoxon 1945) is used. Changes between the four periods have been calculated on a tick-by-tick/trade basis; otherwise, frequency has been specified in the labels. Literature on the EU short-selling restriction period linked to COVID-19 usually measures the bid–ask spread using daily (end of the trading day) data. Therefore, our analysis of the full order book at a high frequency level can provide a deeper insight into liquidity by revealing the depth available for trade at all price levels throughout the day, rather than focusing on just the prices at the top of the book at one specific point in time. The combination of higher frequency data of the LOB, orders, volumes, and prices across the whole LOB, can uncover even more precise liquidity information. Group 3: volatility and price efficiency measures. The first of the price efficiency indicators that have been identified is the slope of the LOB. We adapt it to analyze the symmetry in the deterioration on both sides of the order book. We analyze the daily average relation between the ratio of the slope of the demand J. Risk Financial Manag. 2022,15, 308 15 of 29 Table 2. Cont. Panel B. %AvgVol Spread Relative Spread Depth Amihud (trades) W1-W0 IB 63.52 *** 6.27 *** 13.66 *** −3.08 *** 9.90 W2-W0 34.89 *** 43.42 *** 168.14 *** −47.95 *** 87.13 *** W3-W0 54.61 *** −9.47 *** 44.93 *** −0.20 11.88 * W2-W1 −17.51 34.96 *** 135.92 *** −46.29 *** 70.27 *** W3-W1 −5.45 *** −14.81 27.52 *** 2.98 *** 1.80 ** W3-W2 14.62 *** −36.88 *** −45.95 *** 91.75 *** −40.21 *** W1-W0 Q4 49.10 *** 3.49 *** 20.52 *** 1.67 21.43 W2-W0 56.64 *** 12.77 *** 114.15 *** −38.68 *** 132.54 *** W3-W0 37.76 *** −5.84 *** 49.76 *** 3.21 *** 82.01 *** W2-W1 5.06 8.97 *** 77.69 *** −39.69 *** 91.50 *** W3-W1 −7.61 −9.01 ** 24.27 *** 1.52 *** 49.89 *** W3-W2 −12.06 −16.50 *** −30.07 *** 68.32 *** −21.73 *** W1-W0 Q3 86.58 *** 4.53 ** 5.65 *** −1.97 27.51 W2-W0 77.54 *** 36.52 *** 146.19 *** −42.60 *** 96.43 *** W3-W0 73.53 *** −4.47 *** 32.85 *** 4.21 28.04 W2-W1 −4.85 *** 30.60 *** 133.04 *** −41.45 54.05 *** W3-W1 −6.99 *** −8.61 25.75 *** 6.30 0.41 W3-W2 −2.26 * −30.02 −46.04 *** 81.56 *** 34.81 *** W1-W0 Q2 33.75 *** 0.00 *** 16.45 *** −4.10 *** −1.79 W2-W0 16.04 *** 100.00 *** 145.15 *** −51.15 *** 84.52 *** W3-W0 23.68 *** 0.00 *** 41.58 *** −5.52 *** 14.88 ** W2-W1 −13.24 *** 100.00 *** 110.51 *** −49.06 *** 87.88 *** W3-W1 −7.53 *** 0.00 *** 21.58 *** −1.48 *** 16.97 ** W3-W2 6.58 *** −50.00 *** −42.25 *** 93.41 *** −34.74 *** W1-W0 Q1 45.69 *** 24.47 *** 11.30 *** −4.39 *** 47.65 W2-W0 18.01 *** 74.05 *** 131.55 *** −48.04 *** 111.07 *** W3-W0 92.25 *** 6.71 *** 32.30 *** −3.83 4.70 W2-W1 −19.00 *** 39.84 *** 108.05 *** −45.65 *** 42.945 *** W3-W1 31.96 * −14.27 18.88 *** 0.58 *** −29.09 W3-W2 62.91 *** −38.69 *** −42.86 *** 85.07 *** −50.40 *** Panel A of the table presents the median values for the liquidity measures considered in the four periods under study, for all the IBEX 35 constituents and each of the size (capitalization) quartiles, where Q4 refers to the quartile with the highest capitalization stocks and Q1 refers to the quartile with the lowest capitalization stocks. Panel B of the table shows the changes in the median from one subperiod to the others in the liquidity measures, for all the IBEX 35 constituents and each of the size (capitalization) quartiles, where Q4 refers to the quartile with the highest capitalization stocks and Q1 refers to the quartile with the lowest capitalization stocks. *, **, and *** represent statistical significance of the Wilcoxon test at the 10%, 5%, and 1% significance levels, respectively. We observe that the shock created by COVID-19 increased illiquidity ratio medians from pre-COVID W0 to the short-selling ban period W2 by 87.13%. We compared changes between periods and found that the Amihud illiquidity ratio (intraday) increased by a significant 70.27% from COVID-19 shock W1 to short-selling ban period W2, decreasing by 40.21% when the SSR was lifted in de-escalation W3 (view Figure 2). Therefore, according to this measure, liquidity decreased during the SSR, something that could be expected given the role as liquidity providers that has often been assigned to short sellers. We have to remark that although the descriptive results of Losada López and Martínez (2020) are aligned with these, they followed a methodology similar to that of Arce and Mayordomo (2016) and indicated that the Amihud ratio would have been even higher without the ban. Changes at the quartile level by market capitalization are more pronounced in the extreme quartiles (Q4 and Q1) (see Table 2). With regard to the bid–ask spread and the relative spread, the main results are those related to the change in medians between COVID W1 and short-selling ban period W2, with an increase of 34.96% of the median spread (135.92% of the median relative spread). The subsequent decrease of 36.88% (45.95%) when SSR was lifted in de-escalation W3 can be highlighted as well. The median of the spread (relative spread) fell (increased) by 9.47% (44.93%) when comparing pre-COVID W0 to de-escalation W3, meaning that liquidity has not yet recovered to the pre-COVID levels (in terms of relative spread). More precisely, the spread increased by 34.96% during the SSR. These results are aligned with others such as those of Boehmer and Wu (2013) in the US market and Helmes et al. (2010) in the Australian market during the effects of the 2008 financial crisis. We need to highlight this quoted spread as an implicit cost to investors. Traders who want to trade quickly will buy at higher prices and sell at lower prices than those willing to wait for others to trade J. Risk Financial Manag. 2022,15, 308 16 of 29 with them, bearing this spread cost on each trade. In an increasingly automated intraday environment, this cost should be taken into consideration by regulators, as it might be affecting different types of market participants unequally. Changes at the quartile level by market capitalization are extremely differentiated at the Q2 and Q1 ends (see Table 2). J. Risk Financial Manag. 2022, 15, x FOR PEER REVIEW 15 of 31 anomalous behavior of the spread, the relative spread, and the depth in the months of March and April 2020. We obtain results consistent with the descriptive results of Losada López and Martínez (2020) regarding the bid–ask spread and the Amihud (2002) illiquidity ratio, which increases drastically during the SSR period. We observe that the shock created by COVID-19 increased illiquidity ratio medians from pre-COVID W0 to the short-selling ban period W2 by 87.13%. We compared changes between periods and found that the Amihud illiquidity ratio (intraday) increased by a significant 70.27% from COVID-19 shock W1 to short-selling ban period W2, decreasing by 40.21% when the SSR was lifted in de-escalation W3 (view Figure 2). Therefore, according to this measure, liquidity decreased during the SSR, something that could be expected given the role as liquidity providers that has often been assigned to short sellers. We have to remark that although the descriptive results of Losada López and Martínez (2020) are aligned with these, they followed a methodology similar to that of Arce and Mayordomo (2016) and indicated that the Amihud ratio would have been even higher without the ban. Changes at the quartile level by market capitalization are more pronounced in the extreme quartiles (Q4 and Q1) (see Table 2). (a) Spread on the top of the LOB. (b) Relative spread as spread to midprice. (c) Amihud ratio by trade. (d) Depth. Figure 2. Liquidity measures during the periods under study. Medians and 1st and 4th quartile ranges are shown (a) Spread on the top of the LOB. (b) Relative spread as spread to midprice. (c) Amihud ratio by trade. (d) Depth of the complete level of the LOB. With regard to the bid–ask spread and the relative spread, the main results are those related to the change in medians between COVID W1 and short-selling ban period W2, with an increase of 34.96% of the median spread (135.92% of the median relative spread). The subsequent decrease of 36.88% (45.95%) when SSR was lifted in de-escalation W3 can .00 .01 .02 .03 .04 .05 .06 .07 M11 M12 M1 M2 M3 M4 M5 M6 M7 2019 2020 Median spread .000 .001 .002 .003 .004 .005 .006 M11 M12 M1 M2 M3 M4 M5 M6 M 7 2019 2020 Median relative_spread .000000 .000004 .000008 .000012 .000016 .000020 .000024 M11 M12 M1 M2 M3 M4 M5 M6 M7 2019 2020 Median amihud_eff 20 30 40 50 60 70 80 90 100 M11 M12 M1 M2 M3 M4 M5 M6 M7 2019 2020 Median DEPTH Figure 2. Liquidity measures during the periods under study. Medians and 1st and 4th quartile ranges are shown ( a ) Spread on the top of the LOB. ( b ) Relative spread as spread to midprice. ( c ) Amihud ratio by trade. (d) Depth of the complete level of the LOB. The depth of the LOB was reduced by a significant 46.29% from W2 to W1 while it only increased by 3.08% during the COVID-19 shock period, W2. Depth rapidly recovered pre- COVID levels as soon as the ban was lifted. It is clear that the depth decreased significantly during the ban period, leading to higher liquidity costs, consistent with Hypothesis 2. Volatility We run the difference in differences test with the realized volatility of returns for 1 min (RVol_1m) as the treated group, considering the short-selling ban as the treatment, and 30-day option-intrinsic volatility VDAX as the control group due to the fact that no ban was implemented in the German market. Once VDAX has been scaled down to a 1 min frequency proxy of non-banned market volatility, the results show that without the short-selling ban, 1 min realized volatility of the Spanish market would have been even greater than it had been. Therefore, we can infer that the SSR has in fact helped to reduce volatility during the period, in line with the findings of Losada López and Martínez (2020). The SSR reduced the 1 min level volatility by 37.83% on an intraday basis compared with the expected realized volatility extracted from DID with VDAX (see Table 3). These results are not consistent with Hypothesis 1, but it is important to highlight that the median of (RVol_1m) increased from W0 to W1, during the turmoil of the COVID period, and J. Risk Financial Manag. 2022,15, 308 17 of 29 increased even more from W1 to W2 by 79.73%, accumulating a growth of 165.41% from the beginning of the studied period (see Table 4). We stress that during the SSR period, while IBEX did recover less than one-third of the drawdown on 19 February 2020, the German market had recovered more than two-thirds of the drawdown (see Table 3). These findings are especially relevant for policy makers since, despite the fact that a measure such as a restriction on naked short selling may have a certain positive impact on volatility, reducing the latter at the cost of increasing transaction costs (spread), reducing liquidity, etc., might in the end damage investors. Table 3. Volatility. Difference in differences. 1 min Volatility Measures No SSR Period SSR Period W2 VDAX (1 min scaled) 0.002026 0.04199 (RVol_1m) 0.000957 0.001184 (RVol_1m) without SSR * 0.000957 0.003130 * The table presents the values for the volatility measures considered in the periods under study; the first column shows values previous to the short-selling restriction, and the second column shows the results for the restriction period. The data shown in the last row are the 1 min realized volatility median of the 35 constituent stocks of IBEX 35 if no ban had been imposed. Table 4. Panel A. The 1 min realized volatility. Panel B. Changes in median: 1 min realized volatility. Panel A. Volatility Realized_vol_1min Pre-COVID W0 IB 0.001 COVID Crash W1 0.001 Short-Selling Ban W2 0.001 De-escalation W3 0.001 Pre-COVID W0 Q4 0.000 COVID Crash W1 0.001 Short-Selling Ban W2 0.001 De-escalation W3 0.001 Pre-COVID W0 Q3 0.001 COVID Crash W1 0.001 Short-Selling Ban W2 0.002 De-escalation W3 0.001 Pre-COVID W0 Q2 0.001 COVID Crash W1 0.001 Short-Selling Ban W2 0.001 De-escalation W3 0.001 Pre-COVID W0 Q1 0.001 COVID Crash W1 0.001 Short-Selling Ban W2 0.002 De-escalation W3 0.001 Panel B. % Median change W1-W0 IB 47.67 *** W2-W0 165.41 *** W3-W0 106.27 *** W2-W1 79.73 *** W3-W1 39.68 *** W3-W2 −22.28 *** J. Risk Financial Manag. 2022,15, 308 18 of 29 Table 4. Cont. W1-W0 Q4 41.39 *** W2-W0 187.92 *** W3-W0 117.90 *** W2-W1 103.64 *** W3-W1 54.11 *** W3-W2 −24.32 *** W1-W0 Q3 48.27 *** W2-W0 191.97 *** W3-W0 110.13 *** W2-W1 96.92 *** W3-W1 41.72 *** W3-W2 −28.03 W1-W0 Q2 42.81 *** W2-W0 159.68 *** W3-W0 106.93 *** W2-W1 81.84 *** W3-W1 44.90 *** W3-W2 −20.31 *** W1-W0 Q1 43.74 *** W2-W0 123.11 *** W3-W0 92.71 *** W2-W1 55.22 *** W3-W1 34.07 *** W3-W2 −13.63 *** Panel A of the table presents the median values for the volatility measures considered in the four periods under study, for all the IBEX 35 constituents and each of the size (capitalization) quartiles, where Q4 refers to the quartile with the highest capitalization stocks and Q1 refers to the quartile with the lowest capitalization stocks. Panel B of the table shows the changes in the median from one subperiod to the others in the volatility measures, for all the IBEX 35 constituents and each of the size (capitalization) quartiles, where Q4 refers to the quartile with the highest capitalization stocks and Q1 refers to the quartile with the lowest capitalization stocks. *** represent statistical significance of the Wilcoxon test at the 1% significance levels, respectively. Price efficiency As Næs and Skjeltorp (2006) pointed out, the slope of the limit order book (Equation (14)) can be used as a proxy for disagreement among investors. A steeper slope indicates concentrated intentions around price. We computed the components of the slope of the LOB, to compare the impact of the SSR on the slope of each side of the book. We compare the buy-side slope (DE) with the sell-side slope (SE) rather than averaging them, and we look at the coefficient between them, as in Equation (15). If this coefficient grows on average, the slope of the buy (sell) side increases (decreases), indicating more (less) dispersion of converging price to value on the sell (buy) side, which is consistent with Hypothesis 4. We use the ratio to analyze the symmetry of the impact on the LOB of the different periods under study. Our findings are that ELOB medians from pre-COVID W0 to COVID crisis W1 or from pre-COVID W0 to de-escalation W3 did not change significantly. These ELOB results explain that in periods without SSR, ELOB has been symmetrically maintained on both sides of the LOB. However, the slope itself decreased by − 12.63% from W0 to W1. If we look at the changes from pre-COVID W0 to selling ban period W2, ELOB (slope) raises (decreases) by 3.90% (54.50%), while from COVID-19 shock W1 to short-selling ban period W2 the ELOB (slope) increased (decreased) by 3.05% (47.92%). It is interesting to note that, when the SSR was lifted in de-escalation W3, the trend in the changes reversed and the ELOB (slope) decreased (increased) by 3.69% (57.04%). However, looking at the four quartiles, the size of the coefficients is not homogeneous, with bigger changes in lower capitalization stocks (Q2 and Q1), as shown in Table 4. We can conclude that during the ban period, the orders on the sell side were more dispersed than those on the buy side of the LOB, meaning that the buy side was more informative (Table 4and Figure 3). J. Risk Financial Manag. 2022,15, 308 19 of 29 J. Risk Financial Manag. 2022, 15, x FOR PEER REVIEW 20 of 31 (a) Slope of the complete LOB. (b) Relative spread as spread to midprice. (c) The 1 min return autocorrelation. (d) Volatility coefficient. Figure 3. Efficiency measures during the periods under study. Median and 1st and 4th quartiles range are shown. (a) Slope on the complete snapshot LOB. (b) ELOB. Relation among buy and sell slopes of the complete LOB. (c) The 1 min first-order return autocorrelation. (d) Coefficient of scaled 1 min realized volatility divided by 30 min realized volatility. The next parameters related to market quality that have been analyzed are the volatility coefficient (𝐶𝑂𝐸𝐹_𝑉𝑂𝐿 ), which compares 30 min realized volatility to scaled-up 1 min realized volatility, and 1 min return autocorrelation (𝐴𝑈𝑇𝑂𝐶𝑂𝑅𝑅 ). We find price efficiency deteriorates during the ban restriction much more than during the COVID-19 crisis period before the ban was in force, returning back to the pre-COVID W0 levels or better when the ban was lifted, regarding 1 min autocorrelation and volatility coefficient. We find the following results when comparing 1 min return volatility with 30 min return volatility. During the period under study, 𝐶𝑂𝐸𝐹_𝑉𝑂𝐿 (AUTOCORR) medians decrease by −1.61% (−12.77%) from pre-COVID W0 to COVID crisis W1, and by −0.10% (−42.17%) when comparing pre-COVID W0 to de-escalation W3. On the other hand, 𝐶𝑂𝐸𝐹_𝑉𝑂𝐿 (AUTOCORR) raises by 3.42% (68.28%) from pre-COVID W0 to selling ban period W2. The increase holds when comparing periods W1 and W2, where 𝐶𝑂𝐸𝐹_𝑉𝑂𝐿 (AUTOCORR) increases 5.11% (77.09%), decreasing by –3.40% (−65.64%) when the SSR was lifted in de-escalation W3. Changes at the quartile level by market capitalization are concentrated in Q4 and Q3 (see Table 5 and Figure 3). These results are consistent with Hypothesis 2, and we cannot ignore that although there is a reduction in volatility due to the SSR, the distortion of price efficiency captured by the greater increase in volatility at high frequencies (1 min) related to lower frequencies (30 min), as well as the negative autocorrelation of returns, requires a global consideration of the impact of the measure taken, assessing the joint impact it generates in the results of fund managers and investors’ decision making. 0 400 800 1,200 1,600 2,000 M11 M12 M1 M2 M3 M4 M5 M6 M7 2019 2020 Median SLOPE 0.8 1.0 1.2 1.4 1.6 1.8 2.0 M11 M12 M1 M2 M3 M4 M5 M6 M7 2019 2020 Median ELOB -.25 -.20 -.15 -.10 -.05 .00 .05 M11 M12 M1 M2 M3 M4 M5 M6 M7 2019 2020 Median AUTOCORR 0.8 1.0 1.2 1.4 1.6 1.8 2.0 M11 M12 M1 M2 M3 M4 M5 M6 M7 2019 2020 Median VOL_COEF Figure 3. Efficiency measures during the periods under study. Median and 1st and 4th quartiles range are shown. ( a ) Slope on the complete snapshot LOB. ( b ) ELOB. Relation among buy and sell slopes of the complete LOB. ( c ) The 1 min first-order return autocorrelation. ( d ) Coefficient of scaled 1 min realized volatility divided by 30 min realized volatility. The next parameters related to market quality that have been analyzed are the volatility coefficient ( COEF_VOL ), which compares 30 min realized volatility to scaled-up 1 min realized volatility, and 1 min return autocorrelation ( AUTOCORR ). We find price efficiency deteriorates during the ban restriction much more than during the COVID-19 crisis period before the ban was in force, returning back to the pre-COVID W0 levels or better when the ban was lifted, regarding 1 min autocorrelation and volatility coefficient. We find the following results when comparing 1 min return volatility with 30 min return volatility. During the period under study, COEF_VOL (AUTOCORR) medians decrease by − 1.61% ( − 12.77%) from pre-COVID W0 to COVID crisis W1, and by − 0.10% ( − 42.17%) when comparing pre-COVID W0 to de-escalation W3. On the other hand, COEF_VOL (AUTOCORR) raises by 3.42% (68.28%) from pre-COVID W0 to selling ban period W2. The increase holds when comparing periods W1 and W2, where COEF_VOL (AUTOCORR) increases 5.11% (77.09%), decreasing by –3.40% ( − 65.64%) when the SSR was lifted in de-escalation W3. Changes at the quartile level by market capitalization are concentrated in Q4 and Q3 (see Table 5and Figure 3). These results are consistent with Hypothesis 2, and we cannot ignore that although there is a reduction in volatility due to the SSR, the distortion of price efficiency captured by the greater increase in volatility at high frequencies (1 min) related to lower frequencies (30 min), as well as the negative autocorrelation of returns, requires a global consideration of the impact of the measure J. Risk Financial Manag. 2022,15, 308 20 of 29 taken, assessing the joint impact it generates in the results of fund managers and investors’ decision making. Table 5. Panel A. Price efficiency measures. Panel B. Change in median: price efficiency measures. Panel A. Price Efficiency Autocorrelation 1 min Slope ELOB Vol_coef_1m_30m Pre-COVID W0 IB −0.061 1282.29 1.023 1.28 COVID Crash W1 −0.053 1120.38 1.032 1.26 Short-Selling Ban W2 −0.103 583.50 1.063 1.32 De-escalation W3 −0.035 916.34 1.024 1.28 Pre-COVID W0 Q4 −0.086 1740.22 1.018 1.23 COVID Crash W1 −0.067 1529.51 1.023 1.20 Short-Selling Ban W2 −0.093 1059.28 1.046 1.21 De-escalation W3 −0.044 1329.84 1.019 1.19 Pre-COVID W0 Q3 −0.049 1454.90 1.024 1.28 COVID Crash W1 −0.047 1308.47 1.033 1.27 Short-Selling Ban W2 −0.100 723.95 1.044 1.34 De-escalation W3 0.000 1021.12 1.026 1.28 Pre-COVID W0 Q2 −0.058 1198.12 1.025 1.23 COVID Crash W1 −0.048 1052.86 1.032 1.20 Short-Selling Ban W2 −0.105 597.96 1.079 1.21 De-escalation W3 −0.025 889.31 1.024 1.19 Pre-COVID W0 Q1 −0.057 685.33 1.028 1.35 COVID Crash W1 −0.057 622.41 1.053 1.34 Short-Selling Ban W2 −0.117 352.44 1.107 1.42 De-escalation W3 −0.039 514.22 1.026 1.39 Panel B. %Median change Median change Median change Median change W1-W0 IB −12.77 *** −12.63 *** 0.82 −1.61 *** W2-W0 68.28 *** −54.50 *** 3.90 *** 3.42 *** W3-W0 −42.17 *** −28.54 *** 0.06 ** −0.10 ** W2-W1 92.92 *** −47.92 *** 3.05 *** 5.11 *** W3-W1 −33.70 *** −18.21 *** −0.76 *** 1.53 ** W3-W2 −65.64 *** 57.04 *** −3.69 *** −3.40 *** W1-W0 Q4 −21.71 *** −12.11 *** 0.46 *** −2.88 ** W2-W0 8.71 *** −39.13 *** 2.73 *** −1.84 * W3-W0 −48.09 *** −23.58 *** 0.05 −3.45 ** W2-W1 38.86 *** −30.74 *** 2.27 *** 1.08 W3-W1 −33.70 *** −13.05 *** −0.41 ** −0.58 W3-W2 −52.25 *** 25.54 *** −2.61 *** −1.64 W1-W0 Q3 −5.63 −10.06 *** 0.90 *** −0.60 ** W2-W0 101.76 *** −50.24 *** 1.94 *** 4.33 W3-W0 −100 *** −29.82 *** 0.25 *** −0.18 * W2-W1 113.80 *** −44.67 *** 1.03 *** 4.96 *** W3-W1 −100 *** −21.96 *** −0.65 *** 0.43 W3-W2 −100 *** 41.05 *** −1.66 *** −4.32 ** W1-W0 Q2 −17.58 * −12.12 *** 0.69 *** −2.72 * W2-W0 81.21 *** −50.09 *** 5.29 *** −1.68 W3-W0 −57.35 *** 25.77 *** −0.05 −3.29 ** W2-W1 119.87 *** −43.21 *** 4.58 *** 1.08 W3-W1 −48.25 *** −15.53 *** −0.73 *** −0.58 W3-W2 −76.46 *** 48.72 *** −5.08 *** −1.64 W1-W0 Q1 0.05 9.18 *** 2.45 *** −0.62 W2-W0 106.29 *** −48.57 *** 7.74 *** 5.35 *** W3-W0 −31.72 ** −21.97 *** −0.18 2.81 *** W2-W1 106.18 *** −43.38 *** 5.17 *** 6.01 *** W3-W1 −31.75 −17.38 *** −2.56 *** 3.44 *** W3-W2 −66.90 *** 45.91 *** −7.35 *** −2.42 Panel A of the table presents the median values for the price efficiency measures considered in the four periods under study, for all the IBEX 35 constituents and each of the size (capitalization) quartiles, where Q4 refers to the quartile with the highest capitalization stocks and Q1 refers to the quartile with the lowest capitalization stocks. Panel B of the table shows the changes in the median from one subperiod to the others in the price efficiency measures, for all the IBEX 35 constituents and each of the size (capitalization) quartiles, where Q4 refers to the quartile with the highest capitalization stocks and Q1 refers to the quartile with the lowest capitalization stocks. *, **, and *** represent statistical significance of the Wilcoxon test at the 10%, 5%, and 1% significance levels, respectively. J. Risk Financial Manag. 2022,15, 308 21 of 29 In Table 6we present the results of panel least squares regression (fixed effects) for each variable. We find that during the COVID crisis, spread, relative spread, and depth deteriorated at significant levels. These results indicate the variation generated in each subperiod for the complete set of quality variables. Regarding the implicit costs generated by a widened spread (relative spread), during the non-ban subperiods, W0, W1, and W3, the extra cost in EUR for spread, and basis points for relative spread, increase in a similar manner, 0.017 (13.6–15.5 bps) during crisis and de-escalation, but worsen by 82.35% (73.20%) during the SSR. These implicit costs have to be added to losses in liquidity due to the depth deterioration, while during non-ban periods a decrease of 8.374–8.723 increases more than 4.5 times to 39.038, causing liquidity to deteriorate drastically. Table 6. Fixed effect panel regression coefficients (standard error). Coefficients SPREAD RELATIVE SPREAD % DEPTH AMIHUD 106 Intercept 0.005 (0.002) ** −0.028 (0.009) *** 79.849 (1.534) *** 13.181 (9.909) Pre-COVID W0 0.014 (0.002) *** 0.121 (0.010) *** −8.374 (1.566) *** −3.535 (10.121) COVID Crisis W1 0.017 (0.002) *** 0.136 (0.009) *** −9.346 (1.498) *** −6.150 (9.682) Ban Period W2 0.031 (0.002) *** 0.252 (0.009) *** −39.038 (1.500) *** 0.040 (9.693) De-escalation W3 0.017 (0.002) *** 0.155 (0.010) *** −8.723 (1.566) *** 2.110 (10.121) Adjusted R 0.810 0.765 0.707 0.057 Coefficients ELOB SLOPE Intercept 0.867 (0.066) *** 1480.501 (35.364) *** Pre-COVID W0 0.158 (0.067) ** −99.918 (36.119) *** COVID Crisis W1 0.193 (0.064) *** −241.908 (34.550) *** Ban Period W2 0.165 (0.064) ** −763.373 (36.119) *** De-escalation W3 0.167 (0.067) ** −516.373 (36.119) *** Adjusted R 0.024 0.812 Coefficients REALIZED_VOL % VOLCOEF AUTOCORR Intercept −0.124 (0.009) *** 1.389 (0.045) *** −0.031 (0.008) *** Pre-COVID W0 0.185 (0.009) *** −0.040 (0.046) −0.036 (0.008) *** COVID Crisis W1 0.230 (0.008) *** −0.0797 (0.044) −0.026 (0.008) *** Ban Period W2 0.305 (0.008) *** −0.0103 (0.044) −0.076 (0.008) *** De-escalation W3 0.252 (0.009) *** −0.048 (0.046) −0.015 (0.008) ** Adjusted R 0.263 0.053 0.436 Coefficients MIDPRICE CHANGES MSSG_SEC MSSG_TRADE MSSG_EUR Intercept 986.828 (1.277.187) 0.793 (0.094) *** 9.443 (0.544) *** 0.174 (0.016) *** Pre-COVID W0 3.136.770 (1.304.473) ** −0.046 (0.096) −0.905 (0555) −0.038 (0.016) ** COVID Crisis W1 9.687.549 (1.247.859) *** 0.736 (0.09) *** −0.356 (0.531) −0.003 (0.015) Ban Period W2 8.461.500 (1.249.336) *** 0.234 (0.09) ** −1.050 (0.532) ** −0.001 (0.015) De-escalation W3 12.046.030 (1.304.473) *** 0.923 (0.10) *** 1.477 (0.555) *** 0.074 (0.016) *** Adjusted R 0.589 0.652 0.786 0.231 **, and *** represent statistical significance of the Wilcoxon test at the 5%, and 1% significance levels, respectively. Regarding price efficiency measures, results show how during the crisis period W1, the slope of the LOB decreases due to divergences in price and value beliefs. This is common under situations of uncertainty, but it reaches its maximum loss during the period of restriction of short selling, eliminating the liquidity and information efficiency that short sellers provide to the market (Boehmer and Wu 2013). We would like to highlight that after the prohibition was released, the slope of the LOB showed a situation worse than the ones in W0 and W1, but it was nonetheless 32.36% better than that in the previous SSR period W2. Finally, one of the challenges of this study is the analysis of the behavior of highfrequency activity in an environment of turmoil. We can assert that high-frequency activity decreases drastically during the SSR period according to the HFT characterization Article 4(1)(40) of MiFID II, where midprice changes, messages per second, and messages per trade were drastically reduced during the ban. We find that this is not the case for messages per EUR 100 traded, where we can conclude that EUR-average trade did not change significantly during this period. J. Risk Financial Manag. 2022,15, 308 22 of 29 Another important contribution is to find the causality in variables at the intraday level. We run VECM and DH tests, as well as analyze the impulse responses in the short run of those variables. One of the most discussed causality issues in HFT financial literature is whether HFT causes changes in volatility or if changes in volatility attract high-frequency activity. Results have been found in both directions (Virgilio 2019), and it is still a topic of study. In our study, we investigate this by applying Granger causality between realized volatility and the HFT proxy. We complete the causality analysis of the volatility by analyzing the relationship between realized volatility and the slope of the LOB, two fundamental price efficiency metrics. Causality caveats We start by testing for unit roots in heterogeneous panel data following Hadri (2000); the first pair of variables to be analyzed are 1 min realized volatility and messages per trade (HFT) and we find that both are cointegrated I (1) variables, non-stationary at level but stationary in first-order difference. We include the optimal lag length (10) which minimizes Schwartz information criterion (SIC) to test Johansen cointegration for a longrun relationship, and (optimal –1 lag) range in the VECM. We test Johansen cointegration (1) to optimal (10), both trace and maximum eigenvalues, where one cointegrated equation exists at the 5% level (MacKinnon et al. 1999). We use panel VECM because our purpose is purely to examine the relationship between the variables, reducing lags to (9), and finally we use the Wald test to determine Granger causality. We include 1 min realized volatility (REALIZED_VOL) and messages per trade (HFT) as relevant variables. We find that VEC Granger causality and block exogeneity Wald test indicate that (HFT) unidirectionally Granger causes (REALIZED_VOL) at a 0.05 level of significance, something consistent with Hypothesis 5 (see Table 7, Panel A). VEC lag exclusion Wald test is rejected for the nine lags. The analysis has been repeated with the panel DH test for robustness reasons, obtaining results similar to the ones shown in the tables which are available from the authors upon request. Table 7. Panel A. Panel Granger causality/block exogeneity Wald tests. Panel B. Panel Granger causality/block exogeneity Wald tests. Panel A. VECM and Panel Granger Causality Realized Volatility and HFT ξµλ∂γiηmChi-sq p-value Long-run cointegrating equation ECTt−1*−1.08 ×10−5−0.001158 VECM equation −0.1016 3.27 ×10−6 Lag (1) −0.33295 −6.76 ×10−6 Lag (2) −0.15369 −2.93 ×10−6 Lag (3) −0.06585 6.91 ×10−7 Lag (4) −0.00661 −7.23 ×10−7 Lag (5) 0.02862 −8.91 ×10−8 Lag (6) 0.01534 2.72 ×10−6 Lag (7) −0.01898 1.18 ×10−6 Lag (8) −0.02616 2.98 ×10−6 Lag (9) 0.02010 6.00 ×10−7 HFT Granger causes 1 min realized volatility 20.0095 0.0179 1 min realized volatility does not Granger cause HFT 14.5797 0.1031 J. Risk Financial Manag. 2022,15, 308 23 of 29 Table 7. Cont. Panel B. VECM and Granger Panel Causality Realized Volatility and LNSLOPE ξµλ∂γiηmChi-sq p-value Long-run cointegrating equation ECTt−1 0.000346 −0.003593 VECM equation −0.1095 2.64 ×10−6 Lag (1) −0.36147 −0.00025 Lag (2) −0.18476 −0.00031 Lag (3) −0.12068 −0.00032 Lag (4) −0.03289 −1.68 ×10−5 Lag (5) 0.03733 0.00018 Lag (6) 0.02358 0.00012 Lag (7) −0.00789 0.00015 Lag (8) −0.02764 5.72 ×10−6 LNSLOPE Granger causes 1 min realized volatility 74.0635 0.0000 1 min realized volatility Granger causes LNSLOPE 236.823 0.0000 Panel A. The table shows the estimates for the Granger causality tests for the optimal lag-length (ten lags) for HFT. The VECM model with 1 cointegrating equation is specified by the error correction term (ECT) obtained from the long-run cointegrating equation, which that explains the previous period’s deviation from long-run equilibrium influences short-run movement in the variable of interest. ( λ ) Lambda coefficient of the ECT is the speed of adjustment at which the dependent variable returns to equilibrium. The cointegrating equation and long-run model is ECTt−1=[REALIZEDVOLt−1−ξ·HFTt−1+µ] . Panel B. The table presents the estimates for the Granger causality tests for the optimal lag-length (nine lags) for LNSLOPE. The VECM model with 1 cointegrating equation is specified by the error correction term (ECT) obtained from the long-run cointegrating equation, which explains that the previous period’s deviation from long-run equilibrium influences short-run movement in the variable of interest. ( λ ) Lambda coefficient of the ECT is the speed of adjustment at which the dependent variable returns to equilibrium. The cointegrating equation and long-run model is ECTt−1= [REALIZEDVOLt−1−ξ·LNSLOPEt−1+µ]. The VECM equation is ∆REALIZED_VOLt=∂+∑lags−1 i=1γi·REALIZED_VOLt−i+∑lags−1 m=1ηm·HFTt−m+λ·ECTt−1, where ∂ is the intercept of the VECM equation, and γi and γm are the coefficients of the regressors. VECM has no restrictions. Later, we apply the unit-root test (Hadri 2000) to the natural logarithm of the slope of the LOB (LNSLOPE) and 1 min realized volatility (REALIZED_VOL) and find that both are cointegrated variables I (1), not stationary at level but stationary in first-order difference. We include the optimal lag (9) which minimizes Schwartz information criterion (SIC) to test Johansen cointegration for a long-run relationship, and (optimal − 1 lag) range in the VECM. We test Johansen cointegration (1) to optimal lag (9), both the trace eigenvalues and the maximums, where there is a cointegrated equation at level 0.05. Again, we use the VECM panel because our purpose is purely to examine the relationship between these endogenous variables, and we find that Granger VEC causality and Wald’s block exogeneity test indicate that LNSLOPE bidirectionally Granger causes REALIZED_VOL (see Table 7, Panel B). The VECM equation is ∆REALIZED_VOLt=∂+∑lags−1 i=1γi·REALIZED_VOLt−i+∑lags−1 m=1ηm·LNSLOPEt−m+λ·ECTt−1, where ∂ is the intercept of the VECM equation, and γi and γm are the coefficients of the regressors. VECM has no restrictions. The impulse response interpretation is how 1 min realized volatility responds to a standard deviation shock of high-frequency trading activity through the proxy HFT, (see Figure 4). We use a forty-period window to analyze this response. We find that 1 min realized volatility decreases in the very short run to a standard deviation shock of HFT J. Risk Financial Manag. 2022,15, 308 24 of 29 (periods 0 and 1) exacerbating later (2 to 8) and continues stable in the long run (10 to 40 periods). This indicates that realized volatility is very sensitive to changes in standard deviation shocks of HFT. The previous period deviation from the long-run equilibrium is corrected in the current period at a speed of 10.16%, and a percentage change in HFT is associated with a −6.76 ×10−6% decrease on average (ceteris paribus) in the short run. J. Risk Financial Manag. 2022, 15, x FOR PEER REVIEW 26 of 31 (a) Response to Cholesky 1 S.D. (REALIZED_VOL/HFT) (b) Response to Cholesky 1 S.D. (REALIZED_VOL/LNSLOPE) Figure 4. Impulse responses of VECM (a) Response to Cholesky 1 S.D. innovations of REALIZED_VOL to HFT innovations in upper-right panel; (b) Response to Cholesky 1 S.D. innovations of REALIZED_VOL to the natural logarithm of slope innovations and vice versa in upper-right and lower-left panels. 5. Conclusions Market intervention through banning net short-selling positions is a usual mechanism that the regulator uses to prevent extreme volatility during crises and turmoil. We examine how short-selling restriction in the Spanish equity market affects the quality of stock prices under a high-frequency approach due to the context of increasingly automated equity markets. We analyze a range of liquidity and price efficiency and realized volatility measures. Our evidence supports the idea that short-selling restrictions worsen the main quality measures, generating high implicit costs for managers and investors on an intraday basis. .0000 .0001 .0002 .0003 .0004 .0005 5 10152025303540 Response of REALIZED_VOL to REALIZED_VOL Innovation -.00002 -.00001 .00000 .00001 .00002 5 10152025303540 Response of REALIZED_VOL to HFT Innovation -.4 -.3 -.2 -.1 .0 5 10152025303540 Response of HFT to REALIZED_VOL Innovation 0.5 1.0 1.5 2.0 2.5 3.0 3.5 5 10152025303540 Response of HFT to HFT Innovation Response to Cholesky One S.D. (d.f. adjusted) Innovations .0000 .0001 .0002 .0003 .0004 .0005 5 10152025303540 Response of REALIZED_VOL to REALIZED_VOL Innovation -.00006 -.00005 -.00004 -.00003 -.00002 -.00001 .00000 5 10152025303540 Response of REALIZED_VOL to LNSLOPE Innovation -.07 -.06 -.05 -.04 -.03 5 10152025303540 Response of LNSLOPE to REALIZED_VOL Innovation .04 .06 .08 .10 .12 .14 5 10152025303540 Response of LNSLOPE to LNSLOPE Innovation Response to Cholesky One S.D. (d.f. adjusted) Innovations Figure 4. Impulse responses of VECM ( a ) Response to Cholesky 1 S.D. innovations of REALIZED_VOL to HFT innovations in upper-right panel; ( b ) Response to Cholesky 1 S.D. innovations of REALIZED_VOL to the natural logarithm of slope innovations and vice versa in upper-right and lower-left panels. In the case of the slope of the LOB measured through the natural logarithm of the slope, Granger causality is bidirectional, which is partially consistent with Hypothesis 5, and we find that 1 min realized volatility decreases drastically in the short run (periods 0 to 4) due to an innovation of one standard deviation, returning back to close to previous levels,