182 points · by chadmeister · 7y ago · 139 comments
The prototypical example is a large investment bank hearing about a large client buy order, then putting in a buy order first on their own book, knowing it will go up due to the client order. It is a violation of your fiduciary duty to the client.
The terms originate from the era when stock market trades were executed via paper carried by hand between trading desks. The routine business of hand-carrying client orders between desks would normally proceed at a walking pace, but a broker could literally run in front of the walking traffic to reach the desk and execute his own personal account order immediately before a large client order. [1]
Front running is where you get information about a trade before the trade happens, illegally, and get your own trade in first with advance knowledge that you should not have. That's still 100% against the law whether a computer is involved or not. Do it and you will go to jail. If you got your information from the public market because it is a thing that already happened, then ok. That is really just fine. Other laws might be being broken somehow in other ways or they might not but seriously that's the whole point of a public market and using public information. Everyone has the chance to react as fast as they can.
Eg https://arstechnica.com/information-technology/2016/11/priva...
i imagine this will be true for a while (i.e. the practical throughput of sneakernet in many cases will keep outpacing the practical throughput of wired and wireless networks, probably for a long time).
It's interesting, but I don't think it stands out as "comical" from the finance realm, given that programmers unironically talk about "race" conditions during the "handshakes" from "tunneling" with a "certificate" in order to to "serve" up "pages".
On a far-more-obscure note, the etymology of "computer" itself can be traced back towards "something which counts using small pebbles of limestone."
It is a violation of being put in a position of confidence with respect to privileged information. Front-running clients is always bad. But one need not have a fiduciary relationship with a counterparty to front run them. Practically speaking, however, when non-client relationships involve front-running, we usually go after them as insider trading. (For example, suppose I trade for a hedge fund. I hear my PM is going to buy X. So I buy X. One, I front ran my own shop's order. But two, I also violated their confidence.)
It's of course worth mentioning that in the US, "insider trading" is itself defined largely in terms of fiduciary duty. There's nothing wrong with developing and exploiting proprietary sources of tradable information; in fact, as Matt Levine points out, that's kind of the point of a market (to aggregate information and discover prices). What's really problematic is when you're given access to private information in confidence and then use that information to trade against the owners of that information.
(I imagine this is not new to you; just for the thread).
Basically, a front runner looks for orders which will move the price on an exchange. So if an exchange has the following sell orders:
0.1 BTC @ $5100
0.1 BTC @ $5110
0.1 BTC @ $5120
And someone places either a market buy for 0.3 BTC, or a limit buy for 5120+, then they would expect to get 0.3 BTC @ 5110 average price.
However, the front runner, if they can see this order is about to be placed, could theoretically buy 0.2 BTC @ $5105 average, and instantly relist them for 5120, knowing they will be immediately sold to the $5120 limit / 0.3 BTC market buy order about to be placed, in this case pocketing $15/BTC
minus fees and commissions (trading being negative sum is always worth highlighting)
There are a few different points here. Firstly, there are plenty of unambiguous definitions of frontrunning that are accepted by the scientific community that this blatantly does fall under; see the Clark SoK we cite in our paper for this in the blockchain space, or the definition Wikipedia uses, which was from an economics article by Khan & Lu (https://papers.ssrn.com/sol3/papers.cfm?abstract_id=1140694): "trading by some parties in advance of large trades by other parties, in anticipation of profiting from the price movement that follows the large trade."
The second point here is even if you want to restrict the definition to require privileged information, privilege in p2p networks is not binary: there are some nodes that are better peered on the topology, have better mining equipment, etc. who can use these privileges to extract market rent, harming the security of a blockchain.
This is a complex and dense paper that took 8 people 18 months to produce, and I recommend you read it with an open mind, rather than having a gut reaction to whether we use your preferred definition of "frontrunning". I also recommend reading the primary source material directly, or at least my summary on Twitter - https://twitter.com/phildaian/status/1116155236433956865
Happy to answer any questions!
That said, I think you're off a bit on the nomenclature, too. Market makers can indeed have clients. For example, [1] is a list of the Chicago Mercantile Exchange's market makers for equity options. Citigroup, which has clients out the wazoo, is on the list. It's (presumably) just that the market making operations themselves are not done on behalf of a client.
You're maybe conflating the concept of a market maker with that of a proprietary trading firm. It's very common for market makers to be prop shops.
Prop shops, by virtue of not having clients of their own, are perhaps some of the least-well-positioned firms to engage in frontrunning. But a player like Citigroup or Goldman Sachs (which does a fair bit of currency and interest options market making) could have a relatively easy time of it.
[1]: https://www.cmegroup.com/trading/equity-index/e-mini-equity-...
Market makers generally don't have clients.
Once upon a time, I was a big-bank algorithmic equity derivatives market maker. We only had counterparties. Sometimes, those counterparties were our own bank's sales-trading desks. We were isolated from them, in terms of supervision and information access. (The sales-traders had clients.)
A parent company could operate both a market maker and agency/broker businesses side by side. Leaking information from the agency/broker to the market maker operation is illegal.
Perhaps you think I am nitpicking here, but the point is the bad guys in OPs example are the broker/agency which illegally sell/give away their clients information. Their illegal behavior is not predicated on the existence of the market maker. The market maker is simply an easy bogeyman for people who don't know what the hell theyre talking about.
Wikipedia states, for instance: >Front running, also known as tailgating, is the prohibited practice of entering into an equity (stock) trade, option, futures contract, derivative, or security-based swap to capitalize on advance, nonpublic knowledge of a large pending transaction that will influence the price of the underlying security.
No client needed.
A nice neutral primer on the HFT frontrunning debate can be found here, which contains a note regarding the HFT industry's attempt to advance the 'fiduciary' requirement. https://fas.org/sgp/crs/misc/R43608.pdf
Matt Levine, for instance, is very firmly on the 'keep frontrunning to only mean brokers interceeding before client orders' side of the semantic battle. Charlie Munger, by contrast, had no issues calling out the entire HFT industry as 'evil' and 'legalized front-running'. All this to say, there's clearly a lot of fight over the semantics here.
If you want to look at the official industry position, look at the communication between SIFMA and FINRA during the relevant time period wrt frontrunning regulations. You'll see SIFMA makes repeated reference to recognizing they have a duty in respect of customer orders, while the FINRA rules (5270, for instance) do not track this language. SIFMA attempted to conflate Rule 5270 (Front Running of Block Transactions) with Rule 5320 (Prohibition Against Trading Ahead of Customer Orders). I know a few people who have admitted in private that this strategy was not a mistake.
Rule 5270 notably has no exclusionary requirement that the non-public knowledge is in respect of a client trade. Rule 5270 also contains a definition of Publicly Available Information, which requires that the trade be COMPLETED prior to it being public.
To note how much of a gong show this situation was, note that in requests from SIFMA to delay the implementation of Rule 5270, FINRA said they'd grant the extension because firms needed time to train staff and retool systems - but FINRA explicitly noted that the activities prohibited under 5270 were almost all already illegal and covered by other FINRA rules.
So insider trading on non-public information is illegal and that's not news. Unless everyone does it with computers for a while. The regulator would look like an idiot for charging practically the entire industry, so instead they tell people they have a few years to knock off all that silly business while giving them a stern finger wagging.
But they only 'fixed' it for large orders, and then only in an official sense. The SEC hasn't done much in the way of enforcement on this point.
Edit: And that version claimed tailgating is legal. Looks like it was in this version: https://en.wikipedia.org/w/index.php?title=Front_running&old...
Read the rebuttal!
https://www.amazon.com/Flash-Boys-Insiders-Perspective-High-...
I can vouch for Peter because I worked with him for close to 5 years at Madison Tyler Trading / EWT, LLC (which later merged with Virtu Financial).
He’s a very talented technologist who build the real-time clearing and risk system along with an encyclopedic memory of financial regulations and nuance. He always stuck out to me as an “honest to a fault” kind of guy, and that is one of the reasons we got on so well, as I was never much for nuance.
There used to be a finite number of spots in the trading pits. If you didn't get into the pit, you couldn't be in on the trading and potentially millions that were made. Now the trading went from the speed of human communication to the speed of electrons moving over fiber optics. However, instead of a limited spot on the floor, literally anyone can buy space in exchange co-located datacenters. You and I could chip in and buy some servers to put in the Weehawken, NJ datacenter used for NYSE and it would be affordable. Electronic trading brought a lot of changes, some good, and some bad, but it is arguably more "fair" now than it has been for a very long time.
Some people liked the idea of the wild west being the wild west. But it turned out that a lawless frontier favored a few people over a lot of others, and just because something is beneficial to you doesn't mean it's equally beneficial to others, or to society at large.
More useful is to ensure that governments have the rules that their populace wants. And even most useful is to ensure that the human beings who don't have money (for the multitude of unfair reasons that may cause such a situation) receive enough to survive.
Flash Boys 2.0: Frontrunning, Transaction Reordering, and Consensus Instability in Decentralized Exchanges
https://arxiv.org/abs/1904.05234v1 https://www.cbspringconference.org/
That paper is about a side-effect based on the design of "Decentralized Exchanges" on Ethereum and similar systems. That's why people should always dive in the details of those blockchain solutions; not only you have implementation issues, but even design issues where the "solution" falls apart when game theory is accounted for all actors and interactions with the network.
Unfortunately, the complexity of such "decentralized solutions" makes it easy to miss a lot of issues. Even with audits that cost thousands of dollars per case, you still have several cases where serious vulnerabilities go unnoticed.
https://slideslive.com/38911605/smart-contract-security-ince...
Probably my favourite talk from that conference.
Perfectly exploited, you act as an infinitesimal holding-time middleman that has zero probability of not being able to sell, since the future queue is already known. You buy enough so that the real buyer has to pay the upper limit for their limit order every time they buy.
Imperfectly exploited, you still make a very reliable, very low risk profit.
This essentially means you're profiting off an understanding of volatility. As Taleb showed, this requires care, since the standard deviation of a security cannot be reliably quantified from historical data, yes.
But there are almost always ways to trade large volumes on a prediction of volatility without running into Taleb's steamroller. The easiest first step is to never write a call option on a stock you don't already own (or short sell stocks in any other fashion). Then your losses are bounded since you can't go below zero dollars. Then you've just got to make sure you don't bust when you're left holding the busted security. This can be done with ordinary bankroll management like a poker player might use. But it's also what hedging is for. With hedging, you control the risk distribution of a given trade. All you do is simultaneously make other trades that boom in the case that the first trade busts.
The same will happen to cryptos. There is always early profitability because theres no competition, but the profitability will erode.
Since a lot of comments are talking about the equity markets I figured I would add my thoughts.
There is definitely a need for regulation. No we don't need to get rid of electronic trading, frontrunners or algs but we do need to pay attention to whats happening. I remember that window of time where the NASDAQ was selling order information subseconds before it happened. This is bad. Or the exchange (forgot which one) that was creating special order types for just big clients that were unpublished, this is also illegal and was stopped.
I love frontrunning. People seem to forget the era pre computer market making where there was a guy that made the market for a specific stock. Or how slowly information traveled. People on the floor would know the moment something happened and be able to trade on it right away compared to everyone else. We had dollar size spreads. Today we have penny or even sub-penny level spreads. Sure someone is making money off of me when I make a tread, but their margin is A LOT less than what it once was. Is someone manipulating my order...probably not, I am too small of a fry. Is someone manipulating Vanguards orders, people are probably trying but I suspect based on literature that firms like Vanguard have put out...they overall like it, cost of trades are drastically lower than historically.
TLDR if someone has a way to trade across markets faster than the rest...thats great, they are serving a useful job in making prices across markets even and if they are doing it well they are earning their money for the risk and cost associated with it.
Edit: I highly recommend the book Dark Pools. Its a much more unbiased book about electronic markets and how they came to be. I feel that it paints a much more realistic picture compared to Lewis' hype.
I read or watched somewhere where the algo traders would skim a tiny percentage of every transaction of mutual funds because they know exactly when to strike.
There are lots of sharks in the muddy water...
In flash boys the front-running that these quant funds are running isn't about an algorithm, but literally all about having high capacity pipes that can see an order come in and then fill it between different exchanges and based on the minute differences in stock prices pocket the difference.
So an algo fund can lose money if the algorithm is incorrect. While front-running you never lose money.
It's basically like being a tax collector.
I don't understand how they can see the order come in. Is this something that only happens in decentralized exchanges?
Isn't it more like paying off mobsters, or just having someone steal a fraction of a penny from everyone?
If you can see this, you can front the sell (before the deposit even confirms) and then be the buyer shortly after it confirms.
But I don’t see this as being much different than providing liquidity and taking the risk that someone else doesn’t want to take.
More info here: https://ethereum.stackexchange.com/questions/3/what-is-meant...
The article talks about flaws in DEX design, opening the risk of front running. What's happening is that DEXs work on chain, therefore orders are submitted on chain and thus visible in the mempool while waiting for miners to include it in a block. Front runners view these pending orders and then submit a similar order (but with a higher gas fee), thus incentivizing miners to take their Ethereum transaction instead of the earlier order (for higher fees).
While the article in question is correct with regards to what I explained above, I hate how generalizing it is. Not all DEXs are designed the same way. The first generation of DEXs did everything on chain which also has the downside of limited throughput (limited by blockchain transactions per second). The next generation DEXs are working to solve this with off chain solutions which would also solve the front running problem.
Just because you were taught not to use it in email doesn't mean that certain forms of arbitrage are not front running.