TradeLabs AILearn

Front-Running

Front running means trading ahead of a known pending order to profit from its impact. Learn the illegal and legal forms, crypto MEV and how to protect orders.

Intermediate3 min readUpdated 3 Oct 2026
Markdown
Read firstWash Trading
Lesson 6 of 44

Front running is trading in advance of a pending order that you know about, to profit from the price move that order will cause. The classic illegal form is a broker who learns a client is about to buy a large block of stock and buys first, then sells to the client or into the rising price. It breaches the duty owed to the client and is prohibited in regulated markets. Related but different practices, such as anticipating order flow from public data, and new forms in crypto, such as MEV, raise questions about where the line sits.

The classic illegal form#

  1. A client gives a broker a large buy order.
  2. The broker buys the same stock for their own account first.
  3. The client's large order pushes the price up.
  4. The broker sells at the higher price, sometimes to the client.
RuleDetail
FINRA Rule 5270Prohibits members from trading securities or related derivatives while holding material non public information about an imminent block transaction
Best execution dutiesBrokers must seek the most favourable terms for client orders
Market abuse rules (EU, UK)Prohibit misuse of client order information
Futures rulesExchange and CFTC rules prohibit trading ahead of customer orders

Front running versus anticipation#

ActivityLegal status
Using confidential client order informationIllegal
Trading ahead of your own firm's research report releaseRestricted by conflict of interest rules
Predicting index rebalancing flows from public rulesLegal; a common strategy. See Index Rebalancing
Detecting a large order from public market data and trading alongside itGenerally legal, though controversial
High frequency traders reacting faster to public quotesLegal, though debated. See High-Frequency Trading

The key distinction is whether the information came from a duty of confidentiality.

Front running in crypto: MEV#

On public blockchains, pending transactions sit in a public waiting area, the mempool, before they are added to a block. Bots can see a large pending swap on a decentralised exchange, submit their own buy with a higher fee to be processed first, then sell after the victim's trade moves the price. This "sandwich attack" is a form of maximal extractable value (MEV). Its legal status is unclear in many jurisdictions, but it imposes real costs on users. See MEV and Mempools and Gas.

Protecting your orders#

ContextProtection
Institutional ordersExecution algorithms that hide size, dark pools, trusted brokers. See Execution Algorithms vs Alpha Algorithms and Dark Pools
Retail stock tradingLimit orders; regulated brokers with best execution obligations
Decentralised exchangesSet low slippage tolerance; use private transaction relays or MEV protection features
Large tradesSplit into smaller pieces and avoid predictable patterns

Information leakage#

Even without illegal front running, large orders leak information through their footprint in the market. Execution algorithms randomise size and timing to reduce the chance that others infer and trade ahead of them. See Market Impact.

Frequently asked questions#

What is front running?#

Trading ahead of a known pending order to profit from the price move it will cause, typically using confidential information about a client's order.

Is front running illegal?#

Yes, when it uses confidential information in breach of a duty, such as a broker trading ahead of client orders. Anticipating flows from public information is generally legal.

What is a sandwich attack in crypto?#

A form of MEV where a bot places a trade before and after a victim's pending decentralised exchange swap, profiting from the price move the victim causes.

Next, learn a rule that affects many US day traders in Pattern Day Trader Rule.

Check your understanding

3 quick questions on this lesson. Get them all right to finish it.

Turn on JavaScript to take the quiz.

Finished this lesson?Sign in to save your progress across devices.
Next lessonPattern Day Trader RuleThe US pattern day trader rule applies to margin accounts with four or more day trades in five business days. Learn the $25,000 minimum, workarounds and changes.

Mentioned in