Close and Sometimes a Cigar

Close and Sometimes a Cigar

The race to the matching engine comprises a few stages. The first covers the outgoing market data’s path from the matching engine to the participant’s network card. This represents the information we want to react on. It seems as if this is completely out of the hand of the participant. However, there are multiple outbound switches (who do not process the outgoing market data update exactly simultaneously), each with multiple ports (which send out data in a round-robin fashion), and each with a separate cable (which are not exactly of identical length). This means that by arbitrating over multiple otherwise identical feed lines one can squeeze out some miniscule latency advantages. The second stage is the only one that is fully deterministic and fully under the control of the participant: the pure reaction time between receiving the market data and sending out any resulting requests. Stage three then is the path from the participant to the matching engine. Here, too, variations in cable lengths and traffic on individual ports and switches introduce slight latency variations under otherwise identical conditions. Similar approaches as for the outbound leg can be used here to squeeze out tiny latency gains.

Figure 1 below shows how the race lead can change over this last stage. It looks at consecutive incoming requests at the outer edge of the exchange’s network. We then analyze if the order of these events is maintained or switched across the order access network. The horizontal axis is the time difference in nanoseconds with which two requests are received. The grey area represents the number of events which maintain the same order whereas the blue area are cases where the event that reaches the exchange first gets to the gateway (and thus matching engine) second. The orange curve is the ratio between the two.

No alt text provided for this image
Figure 1: Count of pairs of events (left vertical axis) which reach the outer layer of Eurex's order entry network with a given time difference (horizontal axis). grey: events which maintain the order across the order entry network to the gateway/matching engine; blue: events which switch positions. yellow: percentage of overtakes (right vertical axis).

Before discussing the results, two subtle but important details:

  1. We compare measured receive timestamps. Due to different factors, these exhibit an uncertainty of a few nanoseconds. This means that two requests which reach the exchange simultaneously could be measured as being received a few nanoseconds apart.
  2. These timestamps are only made publicly available for requests that results in changes to the order book. If for example, there is a burst of aggressive orders but only the first one is filled and all subsequent ones miss, then only the first request is included in the analysis. This means that most of these events with very small time differences are (i) passive order inserts, (ii) requests targeting different instruments on the same partition, or (iii) smaller aggressive trades, each one only trading part of the available volume.

Observations:

  1. The peak for the total number of events is surprisingly narrow. Over this very short latency range, a lot of requests are received less than 10 ns but very few, say, 20 ns apart.
  2. The probability of overtaking drops below 10% for measured time differences exceeding 10 ns.
  3. Interestingly, the overtaking probability does not approach zero but levels off at a few percent (extending far beyond the range shown on the plot). At least a few extreme examples (time differences of multiple microseconds) can be interpreted as “background noise”. For example, stemming from requests sent (and timestamped by) a low-frequency gateway.

#eurex #lowlatency #fpga #hft #asic #marketmaking #algotrading #derivativestrading

Justin Harper

High-Frequency Market Making

2 个月

"The grey area represents the number of events which maintain the same order whereas the blue area are cases where the event that reaches the exchange first gets to the gateway (and thus matching engine) second" - this is reversed, right? Otherwise more orders are overtaking than maintained...

回复
Patrick Rooney

Power, gas, & environmentals trading | Nodal Exchange

1 年

The race to zero consumed TradFi futures for a long time and a few shops printed profits for years by leading the charge. A common denominator for those who won that race was simplicity. They could sketch out their strategy on a bar napkin in terms that anyone could understand.

回复

要查看或添加评论,请登录

Stefan Schlamp的更多文章

  • Bullets Dodged, Bullets Caught

    Bullets Dodged, Bullets Caught

    Suppose you have a resting order in the limit order book. Your fair value model suggests that you should pull the order.

    8 条评论
  • Closing Auction Market Share - The Long View

    Closing Auction Market Share - The Long View

    There have been some recent studies that highlighted the increasing market share of the closing auction (see references…

  • Are Fill/Cancels to Blame?

    Are Fill/Cancels to Blame?

    Two weeks ago I decomposed market makers' profitability (or lack thereof) into a suite of market factors. This week I…

    3 条评论
  • Where'd Your Money Go?

    Where'd Your Money Go?

    Under ideal conditions (ideal from the market maker's point of view), the market maker earns the half-spread on every…

    8 条评论
  • Share Buyback Regs vs. Physics

    Share Buyback Regs vs. Physics

    The regulations for executing share buybacks are oddly specific. For example 2016/1052: Buy orders shall be entered or…

    3 条评论
  • Retail, Dark Midpoint, and CLOB Intraday Volume Profile

    Retail, Dark Midpoint, and CLOB Intraday Volume Profile

    Trades facilitated by retail liquidity providers and trades on the dark midpoint book can be distinguished from…

    3 条评论
  • Variability of Auction Liquidity

    Variability of Auction Liquidity

    Suppose you estimate your price impact on the auction uncrossing price based on some historical average. How far off…

  • Manz AG (M5Z)

    Manz AG (M5Z)

    On 20241218, trading in Manz AG (M5Z) was suspended on Xetra for an upcoming announcement. This turned out to be that…

  • Pie In The Sky

    Pie In The Sky

    Imagine two markets: In the first market, all trades mark out flat. In the second one, half the trades mark out +1, the…

    6 条评论
  • Go Big or Go Home - 2024Q4

    Go Big or Go Home - 2024Q4

    Table 1 is the quarterly round-up of the most noteworthy Xetra and Eurex trades of 2024Q4. Mostly on par with the…

    9 条评论

社区洞察

其他会员也浏览了