A7 Header

Empirical analysis of cash rates benchmark hedging

This article is designed to demonstrate the effectiveness of A7 API and how it can be used to solve a practical use case.

This use case is a simplistic approach where we examine the liquidity profile of a futures contract to analyze the cost of hedging a large clip EGB/SSA trade. For this article we define large sized trades as being transactions that are larger than the top of the book (TOB) for the closest duration futures contract.

For example what would be the cost to hedge EUR25M German 10Y benchmark bond using FGBL. The main tactical short term hedging strategy employed for cash rates (e.g. EGB, EUR IRS and EUR SSA) has historically been EUREX fixed income futures contracts. Additionally for (EUR) SSA bond, using futures contracts can be a cheaper option than using IRS or Government Bonds.

From a practical perspective there are strategies available to transact large trades which are hedged with futures contracts and would not require stepping down the order book ladder (e.g. Block trades, EGB basis market). However in some cases (e.g. RFQ style trading strategy) transactions in cash rates instruments will be executed solely as single instruments and hence would require hedging using the order book.

An extension of this use case would be to incorporate this measure into pre-trade metrics which can be used to justify a trading strategy (e.g. VWAP instead of a single large clip) or to incorporate into real time metrics to indicate as a liquidity measure.

One assumption which can be challenged is that the TOB is an accurate representation of the price of a futures contract. More accurately it is a price based on the quoted size (number of contracts). A similar style of assumption can be applied to RFQ markets, in the style of composite prices. As with the order book, composites are conditional on size. For example if the average size quoted is for 5M then the composite might not be a good representation of a price for larger sized trades. There are several factors that can influence larger clip bond prices however the following approach can provide a crude indication as to the additional cost of larger size transaction (given that the underlying bond has abundant liquidity and a benign funding market).

For this article the cost is measured as a delta between the top of the book (price level) and the volume weighted average price conditioned on the number of contracts. To test the impact of liquidity on the depth of the order book we have analyzed two periods during 5-June-2020. The first period was a low volatility (10:30) and the second period was during NFP announcement.

To start the investigation we need to set up A7 to extract data. For this users will need to generate an API token which can obtained from A7 UI.

The following is a parameter list which contains input details regarding the instrument, market segment and a date. Also note that a user needs to be provided with an algorithm. Please consult the pervious use case examples on how to extract reference data (e.g. Market segment and instrument ID).

A7 Data Extraction

In this section we extract data based on the parameter list above. The following segment of code extracts the top 10 layers of an order book for a given day. This requires the use of an A7 algorithm (PriceLevelv2). This approach offers flexibility in customizing the depth of the order book. In this case a depth of 10 layers should be adequate for the analysis.

Let's examine the populated data frame.

The following function builds an order book snap shot based on input time parameters and raw order book data. Hence for a given time series the order book price and quantity is provided up to 10 layers deep.

The following is building an order book snap shot for two time segments. Please note that this is an expensive call (this call can be optimized by redesigning build_snap_shot function).

The function above is a simple implementation to compute VWAP based on the depth of an order book. And the following implementation is to compute the VWAP for a collection of clip sizes.

An interesting point to note is that for the above function call the time to execute is significantly lower than for the following function call. This can be explained by the number of order book updates for the second period. Which is covering non-farm payrolls and is a period of increased volatility.

The above chart is for a low volatility period and it seems that the cost of hedging higher clips is not significant. However the following is a period of higher market volatility and as the chart indicates the cost of hedging increases significantly.

This leads to an interesting hypothesis. How much market intelligence can be captured by computing a metric based on order book density. Density is defined as mass divided by volume. In this case volume would be the volume under the surface of TOP size and price level.

A7 Application

Using A7 the local time series for the above segments can be visualized. Additionally, A7 provides the full order book at a granular level. This allows the user to observe a three-dimensional view of the order book. Below is a grab from A7 for the first market segment. Here we can see the depth of the order book, and the trades executed within this time period. A valuable feature of A7 is the hover functionality which allows users to observe executed price with size. This feature is particularly valuable in that it visually displays aggressive orders and possibly can indicate market move implied by a cluster of aggressive orders.

Orderbook chart 1

The following chart is an A7 grab for the period where NFP was published. As the chart shows there is heightened trading activity across this period. Interestingly there seems to be aggressive selling leading up to the number. A7 allows users to zoom in further into mixed trading activity to isolate buyers and sellers.

Orderbook chart 2

Author: Adel Humayun