Timekeeping in Financial Exchanges
lucaspauker.ml
lucaspauker.ml
If this is a problem, I had this notion that stock markets (or the clearinghouses or whoever responsible) should slow down the allowed frequency to aggregate all trades within, say, 1 second, and do the clearing/price setting at that frequency. Surely being able to trade at the speed of 1 second is not a big loss of utility -- for the "legitimate" trading going on.
Can't we stop this timing arms race? Or is the problem I'm thinking of not actually a concern? Are millions of us paying half a cent to these HFT trading firms' profits with every trade, just like the old notion of shaving a half a cent interest off of everyone's bank accounts to make some clever criminal rich?
the point is to make those that are advantaged by such tools to gain evergrowing more power over others. isn't that the whole history of human civilization? when's it ever been about serving a social good.
Finance is the glue that allows us to barter in parallel with the world and across time. It does enormous social good.
The alternative is going to the supermarket with some JavaScript to buy broccoli.
Who needs $1M for their business but can't wait a microsecond to get it?
Once you have the funds you probably have to wait 3 days for the bank to grant access.
I think the best way to stop the timing arms race is through tax structures that encourage longer-term investing, and penalize extreme short-term investing.
But you're up against people making lots of money in the arms race.
The way that the bigger/better hedge funds and such avoid someone else doing latency arb on them is by having their own points of presence near global trading hubs. Their traders and algo systems decide on the trades to make, communicate them all to the POPs where they're held behind a release gate, then the POPs do a global drop of the gate based on gps/atomic time synchronization. It becomes impossible for any external system to get a latency arb advantage. An arbitrary number of exchanges could implement the same sort of ingress/egress system.
If you limit HFT, then markets /do/ become less efficient. When two trading venues for the same instrument exists, say, in Europe and the US, there is no benefit to any participant for a price disparity to exist for a long period. If $GOOG tanks 10% in a day, and a retail investor buys $GOOG at its old price in Europe, who is better off? Similarly for a seller in Europe, what if you were fleeced 10% because your holdings moved favourably in the moments before you sold?
HFT also makes trading cheaper for everyone. Much of the time these firms are primarily competing with each other. One way that competition manifests is in the bid/ask spread. With firms fighting for order flow, if they can improve their offer by a single cent to ensure price-time order book priority then they'll improve their price. For Joe Retail buying or selling that instrument, he just received a small improvement on the spread as a side effect of essentially duelling titans.
There are more aspects I'm not smart enough to discuss, like how HFT basically enables entire asset classes through dynamic hedging. The only reason that option markets exist on most stocks is because there is an HFT counterparty that sold you the option rapidly buying and selling the underlying stock to ensure its exposure to the position was only the premium you paid for the option.
HFTs also provide some market stability, first through increasing liquidity having a volatility smoothing effect, and second through so-called "volatility compression" as a result of option market dynamic hedging causing HFTs to buy when others are selling and sell when others are buying. This one has a darker side as depending on their aggregate positioning, HFTs will eventually begin to dump just like everyone else.
I believe HFTs are also necessary for exchange-traded funds to be priced correctly and function correctly. That's essentially because two markets always exist for an ETF: a primary market between dealers and the fund where creation/redemption units are traded, and the secondary market where regular folk buy its shares. Given the prevalence of ETFs as a retail investing vehicle, if they were mispriced this would be potentially disastrous for individual investors.
Probably a bunch more good reasons for HFT, I'm not sufficiently versed in this stuff
> For Joe Retail buying or selling that instrument, he just received a small improvement on the spread as a side effect of essentially duelling titans.
As a Canadian, I take advantage of this to do USD-CAD currency exchange. Most big Canadian companies trade in Toronto and New York, so I can buy in Toronto in CAD$ and sell in New York for US$ because some HFTs are keeping them exactly in sync. All I pay is two trading commissions and a 1-2cents / $100share in spread. So converting $30k would cost me $20 in commissions and ~$12 in spread, so about 0.1% in cost and that goes down for as much as I'm comfortable in doing per trade.
I probably lose a bit more in whatever distortion I've created, but $30k doesn't account for much in their hundreds of millions of $ in daily volume.
Sometimes brokers have bribes to get you to switch to them, so I might play that game one-day. $400 or $500 would cover years of trades for me e.g. https://forums.redflagdeals.com/scotia-itrade-new-client-up-...
Edit: because otherwise you’d need to also wire transfer, right? (Not saying this isn’t rational, just asking).
Looks like all the major Canadian banks are a good option for this (https://seekingalpha.com/article/93201-11-top-canadian-divid...).
Lots of cross-listed Canadian banks, railways, resource companies and telecoms. Usually I use something high priced to minimize spreads and avoid earnings seasons.
Edit: And your brokerage doesn't force the settlement funds into your local currency at an exorbitant rate or anything? (I am deeply amused by your backdoor currency exchange)
You do have to 'journal' the holdings between them for my broker. This is now possible online, but used to require a phone call.
The big gotcha with this method (depending on your account and broker) is that you might need to wait for your 'buy' to settle (2 biz days I think?) before journalling, so you face some market risk).
The procedure is somewhat formalized: https://www.finiki.org/wiki/Norbert%27s_gambit
If you choose a thinly traded cross-listed share, you could end up in trouble.
I'd argue at $10/trade, the bank/broker is also ripping off for stock transactions.
Then you see articles that these ones that make my blood boil: https://www.bloomberg.com/news/articles/2019-09-12/global-wa...
> Melting Arctic Means New Undersea Cables for High-Speed Traders
Amazing!
I can't shake the feeling that there can't be a simpler and more elegant solution to this problem, such as settling all transactions on some global discrete "tick" on the scale of a second to let the time for all exchanges to settle on a shared view of the market. The problem is that the incentives right now are not to create such a system, but rather to lay wires in the arctic to trade between Tokio and NY few milliseconds faster.
There are certainly human beings who manually arbitrage some markets even today, but that tends to be more complicated kinds of arbitrage. The only real connections between latency and trading strategy that I know of are:
Certain strategies don’t work if you aren’t the fastest kid on the block.
Certain strategies are too complicated to do if you are the fastest kid on the block. (For an example of the latter, you are unlikely to succeed in reading news reports, doing complex analyses, and executing trades based on your analyses in 100ns. No amount of money spent on top-of-the-line nVidia gear or tensor processing units is going to change this.)
For example at IEX when they introduced their speed bump, it was to protect their so-called 'mid peg' hidden orders. What they found was that these orders were still the target of adverse selection because some HFT trader could submit speculative orders well in advance, by predicting price movements based on fast information from connectivity to the order books of other exchanges.
That PDF is an awesome read ( https://iextrading.com/docs/The%20Evolution%20of%20the%20Cru... ), but I think it speaks to a more general problem of trying to slow down. Even if auctions on all exchanges only occurred once every 10 seconds, there will still always be an advantage to whoever can aggregate information the fastest and use this to submit a best price at the latest possible moment to participate in the auction.
In my uninformed state, it doesn't seem possible to truly reverse this process, and I'm left wondering what problem would be solved by attempting to eliminate HFT from the markets
The paper is a bit confusing:
> Suppose at a given point in time, the market has been stable for awhile (meaning the best bid and offer prices have not changed for several milliseconds), and trading venue V has an accurate, up-to-date view of the NBBO in that symbol as $10.00 by $10.02. So the resting buy order is pegged to the midpoint price of $10.01. Now, a seller comes along and trades with all of the buy interest at $10.00, changing the best available bid to $9.99. The midpoint of the NBBO is now $10.005, but this information does not arrive at trading venue V instantaneously. There is a small window of time in which venue V still believes the midpoint is$ 10.01, so if a matching sell order arrives at venue V during this window, it can trade with the resting buy order at$10.01. This is bad news for the initiator of the resting order, because the NBBO has already changed in their favor, and this execution at $10.01 goes against the spirit of what a midpoint pegged order is intended to accomplish.
Now I'm not a securities person and I don't really know the spirit of what the midpoint order is intended to accomplish. But if I were a serious trader and I had a buy order resting at $10.01, I would be rather annoyed at the beginning of this process -- a seller came and sold at $10.00, but my resting buy at $10.01 didn't match the seller. Similarly, the seller should be annoyed that they only got $10.00 and not $10.01.
(I assume this only obeys the NBBO rules themselves because IEX midpoint pegs are non-displayed, but I am not an expert here.)
There appears to be disagreement about what exactly a midpoint order is. Interactive Brokers says:
> A pegged-to-midpoint order provides a means for traders to seek a price at the midpoint of the National Best Bid and Offer (NBBO). The price automatically adjusts to peg the midpoint as the markets move, to remain aggressive. For a buy order, your bid is pegged to the NBBO midpoint and the order price adjusts automatically to continue to peg the midpoint if the market moves. The price only adjusts to be more aggressive. If the market moves in the opposite direction, the order will execute.
Which is rather different.
Personally, I find fancy order types to make the market unnecessarily complicated, and I also think that Reg NMS and the whole NBBO mechanism is well meaning but actually mostly makes the market worse.
When large well informed funds want to trade large blocks of shares the price tends to quickly move against them so they make their trade at a slightly worse price. These funds would all like it if the market moved slower so that they got better prices so they made an exchange that moved slower.
The trick is that other people don't want to trade on exchanges with less up to date prices. So IEX made up a bunch of false stories about how HFTs were bad for retail investors. They even tricked Michael Lewis into writing a book/advertisement for them.
They also produced a slick video wrapping themselves in the flag/americana to try to trick people. You can watch it here: https://www.youtube.com/watch?v=v2OZkTesSx0
A) What do you do when bids and asks do not match up? Who's orders get filled and who's do not? There are several possible answers to this problem, but not are satisfactory.
B) You do not eliminate the advantage of speed because everyone is still incentivized to put in their orders at the last possible moment before the end of the interval.
The world is continuous, not discrete. Therefore, like it or not, trading must be continuous and not discrete.
Something important happens. Whoever reacts the fastest has an edge. I don't really know whether we're measuring "reacts the fastest" in terms of microseconds yet these days, but fastest is fastest no matter how much you win by.
You just need to make it long enough so that microsecond latency would be diluted by the time it takes to execute the order.
Your argument may hold for "real world" information and even then there's probably ways to even the playing field; but I'm not so sure for market information (e.g. momentum trades). Most short term trading is of the latter category except certain dates. After all information asymmetry is something that markets tend to want to reduce.
That is not true, there are market models where you run auctions all the time (with short but random auction end).
At the end of the day if I can see something in the real world and react to it faster than you can, that will give me an edge. That's just reality.
And a follow up question:
Wouldn't the results of this be unpredictable because the price could either be lower or higher than when the individual non-HFTer pulled the trigger to execute the trade?
The basic view is that HFT increases liquidity, which in the abstract should help everyone.
My friend's view was, first, that privileged access, special order types, etc, were so egregiously wrong it need not be discussed further. Second they found the liquidity argument weak, and in general believed that signals on such short timescales were often more harmful than beneficial.
They preferred a solution similar to yours, quantizing the markets by time and having one formally specified "fair playout" algorithm within the quanta. Pick the quanta such that it makes global communication time irrelevant (ie a few seconds). There's some subtleties to it but they considered the idea both workable and superior to what we have now.
I have to be somewhat circumspect for privacy, but this person was quite successful at stat arb, and in a previous life very successful at finding zero days in kernel code. I generally believe they know what they're talking about in great depth on the topic. They're exactly who'd be near the top of your list of prospects if you wanted to set up a HFT shop.
Can you dial down the snark and explain what argument you're making that doesn't fall under the above?
HFTs do on average make a small profit on each trade: they are in the business of charging investors for liquidity. But the fierce competition between HFTs means that their margins get competed down and they cannot charge very much for liquidity. Their average profit per trade is tiny.
The Taiwan stock exchange used to match orders every few seconds, like you suggest, instead of continuously. They switched to continuous trading earlier this year, and they say a little bit about why here: [0].
I might be wrong, but I think there is no rule preventing anyone from setting up a Taiwan-style batch-auction exchange in the US. Note that there are already over a dozen US stock exchanges, each with slightly different rules and order types, each competing for market share. If there's investor demand for a batch-auction exchange in the US, someone could create one and make a bunch of money running it.
[0] https://www.twse.com.tw/en/page/products/trading/information...
1) it still matters when in that second my order came in, and there's still a race, or
2) it doesn't matter when in that second my order came in, and there's an incentive to delay my order in case we learn something in that second.
In either case, the details will differ quite a bit, but having the fastest connection and best tech is still an advantage.
1. There will still be a race to update your entry in the auction as close as possible to when it runs, because equity markets do not operate in a vacuum. Correlated futures markets don't operate this way (and the regulatory lift to make them do so is separate, and just as hard as doing this for equities), so there is still a race to incorporate the most up to date information ahead of a periodic auction.
2. This _will_ widen the bid-ask spread and reduce liquidity, for the following reasons. There are right now 16 distinct exchanges, excluding dark pools. As a market maker, I want to show my quote to buy/sell to as many participants as possible, and so I quote across a decent subset of these exchanges at any given time. I _don't_ want to get simultaneously filled on all these orders, and am relying on the fact that most of the time if I get filled once, I can cancel from all the other exchanges and then re-evaluate what I think the fair value of the stock is, and put out new orders reflecting that view. The more confidence I have that I can do this, the tighter a spread I can offer, and on the flip side the more risk of overfill there is, the wider I need to quote to account for that risk. In a simultaneous periodic batch auction world anyone can take all available liquidity market-wide trivially, so I have to either reduce liquidity across the market to a lower level to cap my risk, or substantially widen my quote to make that risk economically viable. Both are ultimately bad for counterparties.
3. This would likely serve to entrench existing wholesalers unless they were forced to stop crossing orders internally, or otherwise play by a stricter set of rules (and good luck with that). The vast, vast majority of retail activity never sees a public marketplace, but is executed by a wholesaler - so if you're leaving them out of this picture you're not really changing much.
My personal $0.02 on this is that the latency race is just a turf war between liquidity providers, but has no real impact outside of that arena. There are other areas of needed reform: market fragmentation to the degree it exists today is a net negative IMO. Similarly the market-wide best execution requirement is just extra complexity and creates opportunities for regulatory arbitrage. The proliferation of exotic order types and "differentiating" exchange behavior adds complexity and creates opportunities to game the system. Exchanges charge exorbitant fees for access that create barriers to entry for smaller participants. To name a few.
This didn’t sound right to me. The clock being off 100ms every 10 years sounds terrible. This must be a typo because the source says:
“... which means it would neither gain nor lose a second in more than 100 million years!”
https://www.nist.gov/news-events/news/1999/12/nist-f1-cesium...
I'm half joking when I say that the first company to come up with a technology to travel faster than light will be a bank or a hedge fund or a high frequency trading firm. Hire the top theoretical physicists in the world for 7 figure salaries, certainly more than they could ever make in academia or research labs - and throw them at the problem. If a company is willing to spend $300m for a 3ms advantage, imagine how much one would be willing to spend for literally instantaneous transactions.
Krugman has addressed arbitrage between inertial frames.
Today, you could have bought AMZN stock for $3442.93 at some point during the day. AMZN nominally has $0.01 price increments. To put that in perspective, 0.01 divided by the share price is 344,293 which means we can affect price in 1/344,293 of a share. That’s nuts, and actually removes liquidity.
Instead, pricing change minimums should be a percentage of a share. I would think 1/10,000th of a share would be more than enough.
Honestly, for most stocks, a nickel difference wouldn’t matter and the liquidity would be better.
—-
EDIT : meant to also add that change the time minimums to also be larger (say 1/10 of a second) would also help liquidity and remove the need for HFT. So, timing/pricing deltas can either increase or decrease the need for HFT.
I understand the motivation and rationale and that my take here is subjective, but I take a pause at how sad it is that we're literally boring holes through our natural mountains in order to flip bits 3ms faster in the name of high frequency trading.
Lets compare to alternatives like dam and flood control infrastructure, better roads, rail, etc. I understand the real pragmatic benefits and return on investment from these. A farm field is irrigated, a home not destroyed, less fuel used in trucking, on and on. These investments generate real value because they increase the total of societal output, not just that particular factions slice of the pie. Meaning, you are finding new gold to mine, not just taking over part of your neighbors gold mine and saying you are adding value. Its not adding value to the overall economy.
Please help me, what real value does an investment like this yield for the economy as a whole? As i understand it an investment like taking part of your neighbors gold mine, not mining new ground.
Effectively they have increased their slice of the pie, in this case it is time not land, but not made the overall pie bigger.
It is interesting to think about things this way, in terms of investments that increase the carrying capacity of our economy, and those that don't.
Advertising comes to mind. The cola wars, while expensive, dont yield a net increase in cola drinking, just a relative difference between the brands. Same with beer, on and on.
The argument usually goes like this: HFT firms provide liquidity for the market; they are usually the people on the other side of the trade when a retail investor buys stock/bonds/etc. So without the HFT firms, you wouldn't be able to trade at a good/fair price according to market conditions. Furthermore, if you buy stock from NASDAQ or NYSE or London stock exchange, you should get the same price. This idea that you should pay the same price for an asset regardless of where you buy it is enforced by HFT firms, as outlined in the article. Clearly, HFT firms need to get paid for this service, so retail investors typically pay the bid/ask spread.
I get the argument, but it feels like the societal benefit is taken away whenever it is needed, and paid for only when it isn't needed.
If I had a way of knowing when the market would have low volatility, I'd throw away the shares and become a billionaire trading options.
Saying you should wait for low volatility before trading is equivalent to saying you should wait until the price is high before selling. Both statements seem to reflect common sense but neither piece of advice can be translated into an actual strategy.
The impact of HFT market making isn't that difficult to observe - all markets which have attracted such participants have seen huge falls in spreads. The spread is a tax on everyone who buys and sells in the market so lower spreads are good for everyone. (For example the cost of buying and selling a DAX future before fees was about 70 euro just 15 years ago while the spread is now typically less than a euro.)
No, because liquidity is also about tighter spreads. Since the spread is effectively a transaction fee paid to buy or sell on exchanges, shrinking it is beneficial to most market participants.
Therefore, Markets don't need HFT firms to provide this service, they simply coopted a friendly-sounding rationale in an attempt to dismiss skeptics.
Strategies that had less efficacy at $100mm position sizes now can scale to $10bn position sizes.
I like the growth of liquidity.
This is categorically not what HFT firms are doing.
It's kind of weird that people have such strong opinions about things they know very little about.
When I looked up the stock, (I think the stock was very expensive), trading volume was like 1 Share every 6 months or so. Yes, I guess you could call this "very low" trading volume. So where would HTF come in here?
By the way, since the tremendous inflow of cash into index ETF, some stocks are bascially traded only by ETFs and HTF without many other market participants. I mean, what could possibly go wrong?
https://www.zerohedge.com/news/2017-04-09/horseman-global-un...
For most securities, there are very few natural buyers and sellers of a security, so they would find it very hard to transact without an intermediary market maker.
All electronic market makers are HFTers compared to regular market participants, but they run a very diverse set of strategies, with some operating at much closer to human speeds when compared to the fastest of the bunch.
Market makers provide better price and execution than traditional human market makers, and are a net positive to the market ecosystem, at least in regards to retail investors (the institional traders do sometimes get fucked).
This process goes on, and on, and on. It’s why capitalism is so effective as an economic system. And also the reason why things that may not seem like they produce value actually produce extraordinary value for society.
For example: Consider a job going to the office to write on pieces of paper and then throw those pieces of paper into the incinerator so nobody will ever read what was written.
Sounds pointless. Is it "providing value"?
By your argument yes: All those people were paid and can now support their families. The paper makers made paper and advanced the state of the art in fine paper-making, as did the pen makers and the ink makers. The incinerator is looked after, and it keeps new incinerator designers in work. All the fuel which is mined to run the incinerator keeps miners busy. All the commuting to the office and back keeps train operators busy.
And yet, going to the office to write things on paper and then destroy them repeatedly does seem rather pointless.
Two people on a hike see an obviously hungry mountain lion in the distance running towards them. One of them quickly starts changing his hiking shoes to running shoes; to which the other responds “do you really think these shoes will let you outrun the mountain lion?” To which the first responds: “I don’t need to outrun the mountain lion, I only need to outrun you”
Whether it’s 1ms or 1s makes no difference; for a class of strategies, any time advantage can tilt the average from “unprofitable” to “profitable” when you are faster than others - and the sums changing hands are huge (trillions notional or even thousands of trillions per day). A tiny advantage easily translates into a lot of money.
While it may seem like any improvements to price-time reactivity would be negligible compared to the 300mm investment, these things are simply too difficult to measure in a complex system like a global economy where any change can result in a butterfly effect. Over many years, more reactive prices could prevent arbitrageurs (who perform a critical service) from making less efficient trades. In fact, the firm who commissioned the new line is likely doing arbitrage, which is one of the key services that allows us to have a globalized economy with relatively stable prices.
If you truly want to put in the work to understand how markets work, I'd recommend running a simple forex arbitrage bot with a trivial amount of money (there are plenty of open source options that are straightforward to set up and won't make or lose you much money) to see hands on. Also, check out Matt Levine's newsletters.
If I just opened a new window factory, I'd absolutely be interested in as many windows breaking as possible, so I can sell more products. It would make a lot more economic sense for me to produce cheap, thin windows: I need less raw material to produce them and they will break more easily, giving me more opportunity to sell replacements.
But what about overall, total value to society, the economy, over the long term, not just to the few companies who won a bid.
Better price discovery generates some amount of 'real value', though.
Whether or not this particular investment generated 300 million dollars worth of real value is... A bit up in the air.
You decided to understand tangible goods and decided not to understand ephemeral goods.
The value is no less real and the distinction is arbitrary.
The only thing happening here is an uncomfortable relationship with people making money and having complete discretion to acquire more goods and services with that money than others.
HFT has no more or less arbitrary value or merit than any ephemeral software business that you might happen to respect. SaaS, ad tech, data brokering, YC cash burning darling, etc.
Trying to rationalize its utility (“is it providing liquidity or just front running”) is just as much of a red herring.
Its just a business.
If I understand your comment correctly then your answer is essentially: it provide no value to society, but few other businesses do either.
To which I largely agree, and is the reason why myself and OP are left frustrated that society spends billions on things to improve arbitrary efficiencies while disregarding the well being of millions of people.
That’s correct, this one happens to be more lucrative and scalable (revenue increases with capital size, overhead costs are logn) when it works.
Regarding a communication network that alters the terrain for the benefit of very few people, I can see that being frustrating. The business model typically does turn into licensing of the data route and others can benefit.
I see this situation to be very similar to the reason why the Bitcoin network burns hundreds of MWh of power per day. They do this because it is the only way to ensure everyone adheres to the market rules that were collectively declared as "fair".
Bitcoins' fairness rules work by incentivizing an arms race of who can compute hashes faster. The "conventional" stock/bond/futures markets ensure fairness by resorting to time an order was placed as the ultimate arbiter when it comes to whose orders are filled first. In both cases, there is a physics-related element that cannot be cheated by any one market participant, because nobody can transfer information faster than light and nobody can produce power out of the void.
The end product of this is "fairness" - which is extremely valuable, because without a reliable ledger, bitcoins would have no value, and without the ultimate judge of time at the stock market, there would be no stock market, because nobody would trade at a market where a specific participant could just backdate his orders.
Of course the "fairness" is not directly a product of the 300m$ investment for that ultra fast data connection. Nor is it directly a product of the MWh of power burnt for bitcoin blockchain hashes. But these two things are direct outcomes of the rules that effectively produce the fairness we want, and without accepting that we get these outcomes, these rules would not function and would not be accepted, which would void them, because they can only produce the desired "fairness" product as long as they are accepted by the market participants. Hence I consider "fairness" to be an indirect product of these two effects - and all similarly-categorized effects that don't directly seem to serve any purpose except for being actions in some kind of arms race between market participants.
One could also replace "fairness" with "trust", if that's more to your liking. The concept is the important thing, not what the product is named.
But again, those benefits are self-referential: Fairness rules for Bitcoin serve Bitcoin and fairness rules for stock exchanges serve stock exchanges. Would the wider world be very much worse off if we had no Bitcoin or stock exchanges?
> without the ultimate judge of time at the stock market, there would be no stock market
I'm also not sure about that. Yes, in principle, time is a good arbiter - however the descision to follow that rule down to microsecond precision seems like a deliberate choice to allow HFT. The article mentions front running as an attack on the trading system that would occur with inaccurate timekeeping. However, seems to me this could be circumvented: e.g., if an exchange wanted to ensure fairness but also prevent HFT (and the associated technology arms race), they could bucket orders by e.g. second resolution and then execute the orders in a bucket in random ordering. This will give predictable ordering at second resolution but would make front-running or racing impossible as the sub-second ordering would be unpredictable.
For Bitcoin? Not much. Probably we'd be better off, especially with regard to our climate. I can't see enough benefit across our entire society to offset the significant damages produced by burning all this energy into heat.
For stock exchanges? Oh yes, definitely. There's a huge bunch of research into the role of stock exchanges (and goods and futures exchanges as well, they work in a very similar way) in facilitating efficient trading of everything, from ownerships in corporations to goods and services. And there's definitely some undeniable truth to the argument that it is a good thing to have efficient trading of goods and services which is necessary for efficient production of stuff which in turn is necessary to fill our plates with food to eat, fill our medicine cabinets with antidotes to various ailments and so on and so on.
In that case I as a broker who knows that one of my clients has just channeled a big, market-moving buy order of some stock through me to the exchange would simply inject a few hundred of smaller orders that buy the same stock, but with a low limit price that's slightly above the current price, but likely below the price the stock will be traded at after the big buy order has been executed. Statistically I will then get half of my orders executed before the big one hits, the other half of them will be ignored because the limit has been exceeded, which results in a nice, nearly risk-free profit for me. I could even try to put some sell orders in there with a sell limit slightly above the estimated price after execution of the big order in an attempt to sell the same stock that I just bought in the same batch that I got them.
Similar stuff can also be done without direct knowledge about some big order coming through, but just on the assumption of such orders being placed into the market by various participants due to external events. The game just moves from being one in which everyone tries to beat the clock into one in which everyone tries to predict the orders in the next "execution batch" and how to best generate your own orders to profit from that. Since that's still a race against time (there's a limited window of time in which you need to get your orders in) the entire aspect of getting your orders to the exchange quickly is still relevant, hence there will still be massive investments into that. It's just that in such a case, you add another aspect into which people can invest massively: compute power to perform as many statistical simulations of the next execution batches' contents as possible in as little time as possible. I guess such statistical prediction stuff is already being done by HFTs today, but due to there being no clearly delimited time window granted to the HFTs that would be large enough to do very complex simulations, I guess this complex statistical modeling is done on larger timescales, like to devise trading strategies over weeks, months or years, and the modeling that produces the orders that quickly react to sudden market events is probably pretty simple because it must be absurdly fast, producing results in microseconds.
So what you would get is something very much like the Bitcoin blockchain hash race, just not for something as trivial as hashes, but for the best possible advance simulation of the next "order block". Doesn't matter in the end, though, because both are embarrassingly parallel problems and thus can and will easily be blown up to consume as much energy and hardware as you can provide. The one thing that prevents this from happening in our current trading system is the continuity of the timescale - which is exactly what you'd like to eliminate!
How do you know that advertising provides more value than it takes away?
Think of it instead like parcel deliveries. It should be plainly clear that delivering a package in two days is more valuable than delivering a package in a week, that delivering a package overnight even moreso. Oftentimes, an item is only valuable if we receive it as soon as possible - if we had to wait a month to receive a package, the whole arrangement might not have been worth it in the first place.
Furthermore, it is also plainly clear that delivery is worth more for more valuable items. This is typically communicated in the price of insuring a shipment, but plain common sense explains why people are willing to pay hundreds of dollars in delivery charges for automobiles but not for a box of tissues.
If you understand that logistics is valuable, that speed makes logistics more valuable, and that logistics is made more valuable by the value of the goods transported by it, then it really should not be such a stretch of the imagination to understand how the logistics of capital plays by exactly the same rules; it is only a question of degree and scale.
I'm going to provide a totally contrarian viewpoint as an engineer previously employed by Wall Street -- the difference to the alternatives is simple -- one exists and the other is theoretical.
The difference is is that Wall Street pays actual paychecks to engineers to do these things. Meanwhile, as much as i'd love to work for a better railroad company or what not, I did not find any engineering jobs there (computer science and statistics in my case.) Jobs and paychecks is how I am able to make car payments and pay for my daughter's bicycle.
To continue the thought, if you really do feel dam and flood control infra is a better thing to spend money on (i feel this way), HN isnt really the place:
0. Be like Elon and start your own railroad and dam company
1. Invest your own money into a dam and infra startup
2. Lobby your senator and representative to put money into infra
Speaking down the folks who are actually giving engineers paychecks is not a great thing IMHO when there arent all that many alternatives. Same sentiment from most of my former colleagues with Physics PhDs on Wall St. Yeah, it sucks, but tell me that once you can land me a tenure track teaching position. Until then, let me eat.
Being able to spend money on a operation to make the cable distance shorter is hardly a very big deal for anyone else but nature and the company doing it.
On the other hand, if not managed correctly, I completely agree with you
As someone who used to write HFT code, I've vascillated between "it adds liquidity" and "it's a video game played between HFT firms". Neither is entirely satisfactory.
When I meet up with my old engineering friends, almost nobody is an engineer in the sense you might have thought when applying during the last year of high school.
Incentives are messed up. I remember getting offered £12K for a half year internship as an actual engineer. I took a marketing internship instead for a few grand more. My friend took an internship at Goldmans and was on £39K. When we got back, everyone applied to work in finance and consulting.
According to the market, making powerpoints is more valuable than making bridges, aircraft, medical equipment, etc.
We do somewhat envy the lady who took up an actual engineering job at a startup space launch company run by an eccentric South African guy.
https://www.motherjones.com/kevin-drum/2013/09/somebody-stol...
The story is: an announcement was made at precisely 2pm in Washington, and related transactions were made 2-3 milliseconds after that in Chicago, faster than the speed of light... Yep, finance defies special relativity.
For some reason, insider trading is seen as a more plausible explanation than faster than light communication... But still, that level of precision is ridiculous.
It sounds like the central stock exchange is handling trades in a naive way like this:
T = 0: Client A sends a trade from 200ms away
T = 0.1s: Client B sends a trade from 50ms away
T = 0.2s: Client C sends a trade from 100ms away
T = 0.15s: Client B's trade arrives, process it
T = 0.2s: Client A's trade arrives, process it
T = 0.3s: Client C's trade arrives, process it
What we usually do on a server (lag compensation by rolling back the enemy player's hitbox) won't work here, but I wonder if a version of what's usually called client-side prediction would work. In this case it would be server-side instead: At T=0.15s, Client B's trade arrives.
It's timestamped as T = 0.1.
We look at all trades since T = 0.1.
There aren't any so we just process it.
At T = 0.2s, Client A's trade arrives.
It's timestamped as T = 0.
We look at all trades since T = 0.
Client B's trade was timestamped T = 0.1.
*Roll back and resimulate all trades since T = 0.*
Trade order is now A, B.
At T = 0.3s, Client C's trade arrives.
It's timestamped as T = 0.2.
No trades since 0.2 so we process it normally.
Trade order is now A, B, C.
Most likely too complex and not actually feasible, just thought I'd mention it. The clocks on the remote clients would need to be synchronised with the central atomic clock so that their timestamps align correctly which might be tricky/impossible due to the extreme accuracy required. You also have to trust the client to not just fake their timestamp down a few ms.> For example, if I trade one microsecond faster than a competitor, the exchange needs to ensure that my order gets processed first.
If the trading venue operates a price-time priority mechanism, the exchange should strive to ensure that orders receive the correct time-based priority, but there are no guarantees. Furthermore, priority and processing are separate considerations. The distinction between priority and processing is vital, given that order entry and market data distribution - both inter-exchange and intra-exchange - are challenging problems that aren't solved by accurate clocks alone.
Much of the complexity of HFT at the systems level is there to deal with said complexity. Even for a single sender, messages (new orders, cancelation requests, etc.) can (and on some exchanges, often are) processed out-of-order. You, as a market participant, might place an order, send a cancel shortly after that, have the cancel rejected for referencing an order that does not exist, and receive an acknowledgment of your new order immediately thereafter [1]. That might or might not say anything about how good the exchange is at establishing match priority. But idealizing exchanges as systems that ensure fairness via a total ordering of events (by time or any other mechanism) glosses over the reality.
Those details aside, what does "trade one microsecond faster than a competitor" mean? Network egress from the sender? Network ingress at the exchange? Exchanges are a distributed system comprised of order entry gateways and matching engines, so what determines ordering? If gateways are the arbitrators of order, do they use wall time or a shared frequency standard? If matching engines are, how are orders arriving from discrepant order entry gateways serialized? Those are systems problems, not clock problems.
> HFT can execute many orders in a second, then the exchange could reorder all the trades in the second in any way they want, without being detected by an auditor!
This isn't the threat model. What follows is also an oversimplification, but categorically, front running can occur in two forms. One involves the executing broker placing orders for their own account in front of a large client order and profiting from the market impact caused when executing on behalf of the client. Given that large orders executed incrementally, the timescales in question are minutes/hours/days, and microsecond accuracy clocks don't play a significant part in the detection or prosecution thereof. Microstructure level front running is a concern, but the nuances are s.t. accurate timestamps won't do much to detect abuse (they are important as evidence in an enforcement action).
> How are Clocks Synced?
Pretty much this whole section is wrong. In a way, it conflates how NTP (not IEEE 1588v2), one-way satellite time and frequency transfer, and GPS timekeeping work. Exchanges mostly use IEEE 1588v2 with GNSS synchronized grandmasters; they're not actively disciplining the grandmasters against each other, as this article suggests. Furthermore, accurate disciplining of the grandmaster is heavily dependent on a pulse-per-second (PPS) standard provided by the GNSS; the GNSS constellation almanac and time codes alone won't get you there.
Outperforming a GNSS solution by synching grandmasters using something more exotic such as Two-way satellite time and frequency transfer (TWSTFT) is possible, but not done by exchanges (the economic incentives aren't there).
Why do latency sensitive market participants care about timestamps? Backtesting. Quantifying uncertainty in one's system and connected systems is crucial, as is reconstructing a cross-venue series of events under a probabilistic framework. To the extent that an exchange has a regulatory obligation or pressure from market participants (who again, want accurate timestamps for backtesting purposes), they'll invest in accurate timekeeping infrastructure. Such infrastructure is way more commoditized now than it was 20 years ago. However, timekeeping is still a tricky problem, and disciplining a grandmaster is far from the most challenging part.
[1] This is super annoying, and exchanges on the whole have gotten better about either engineering systems that don't do it at all, or do it infrequently even at HFT line rates.
https://ec.europa.eu/finance/securities/docs/isd/mifid/rts/1...
Common trading protocols like FIX and OUCH do support nanoseconds for time stamps, but the MiFID requirement is in terms of deviation from UTC, so you need to budget and have traceability for the total error between your system, clock, and back to the reference standards - ie UTC(NPL), UTC(NIST) etc. If you’re doing this properly this can well involve visits to your data centre with portable atomic clocks.
There’s a really good paper on implementing this from the UK NPL; see https://www.ion.org/publications/abstract.cfm?articleID=1316...
(Although I work in Fintech, I have nothing to do with the exchange trading side of things.)
See links:
> A maser ensemble time scale is just sufficiently stable and accurate to take advantage of the performance of intermittently operating primary frequency standards such as NIST-F1 and F2.
https://www.nist.gov/system/files/documents/2017/05/09/Time-...
> Neither NIST-F1 nor NIST-F2 is operated as a clock and both are run only intermittently.
https://www.bipm.info/utils/en/pdf/time_ann_rep/Time_annual_...
Devices like F1 are used to correct hydrogen masers which are extremely stable but have systemic errors in frequency. Unlike the masers, they don't run all the time, or (or last I saw-- anywhere close to most of the time, though I'm not quickly finding a link with operating stats).
From https://www.nist.gov/pml/time-and-frequency-division/nist-ti...:
UTC(NIST) is the coordinated universal time scale maintained at NIST. The UTC(NIST) time scale comprises an ensemble of cesium beam and hydrogen maser atomic clocks, which are regularly calibrated by the NIST primary frequency standard. The number of clocks in the time scale varies, but is typically around ten. The outputs of the clocks are combined into a single signal by using a weighted average. The most stable clocks are assigned the most weight. The clocks in the UTC(NIST) time scale also contribute to the International Atomic Time (TAI) and Coordinated Universal Time (UTC).
UTC(NIST) serves as a national standard for frequency, time interval, and time-of-day. It is distributed through the NIST time and frequency services and continuously compared to the time and frequency standards located around the world.
--
This is the only sentence in the article relevant to the title. Auditors need to insist on good timekeeping to prevent exchanges from committing fraud.
HFT firms don't fundamentally care about having accurate clocks. They care about reacting first. Having good clocks is useful for second order reasons like debugging and regulatory compliance.