Attack on MM 2: Market Maker Order Book and Order Flow

深潮Опубликовано 2025-12-28Обновлено 2025-12-28

Введение

"Attack of the MM 2: Market Maker Order Books and Order Flow" by Dave explores the dynamics of market making in crypto, focusing on the Limit Order Book (LOB) and order flow. The LOB is the market maker's battlefield, defined by depth, tick size, and the concept of price improvement—providing better prices than the current best bid/ask to create market value. Market makers profit from the bid-ask spread, which covers order processing costs, inventory risk (holding assets amid price fluctuations), and adverse selection risk (being exploited by informed "toxic" traders). The spread types include quoted, effective, and realized spread, with the latter factoring in future mid-prices to measure true profitability. Order flow involves managing incoming trades, with a focus on identifying "toxic flow" from informed traders who can cause losses. Market makers use metrics like VPIN (Volume-weighted Probability of Informed Trading) to detect one-sided pressure and respond by pulling quotes, widening spreads, or reducing order sizes to mitigate risk. The article hints at deeper institutional strategies in future installments.

Author: Dave

Why do I always have bad luck shortly after buying altcoins? Why couldn't the seemingly invincible market makers handle the sell orders on 10/11?

Why did every market maker I talked to after 10/11 casually say they didn't lose much / even made money that day? This article will introduce you to the market maker's order book and order flow.

1. Limit Order Book (LOB)

The market maker's battlefield is not the candlestick chart, but the LOB.

Core concepts:

  • Depth: The volume of orders at each price level.

  • Tick Size: The minimum unit of price movement. In a high-frequency environment, tick size is crucial for queuing strategies.

  • Price Improvement: When you provide a price better than the current National Best Bid and Offer (NBBO), you create value for the market.

For example, if the current BTC bid is 100k and the ask is 110k, if you offer a price of 101k, you narrow the spread and create value for the market.

While writing this article, I was thinking about how to explain this section to you all. Later, I felt that nothing would be clearer than showing a real order book. Let me do a little promotion for a friend at BG. Using BGB as an example:

The above is the BGB order book at the minimum tick size. We see the minimum is 0.001. The current depth is only a little over $1000, the spread is controlled to be very small, hitting the minimum tick size. Simultaneously, the depth is distributed in a "Christmas tree" shape—the further from the spread, the larger the order size. However, when we increase the tick size a bit, we find that the depth should be distributed in a horn shape: the closer to the spread, the larger the order size and the more liquidity; the further away, the fewer the orders (one of the reasons for the liquidity vacuum on 10/11).

Speaking of Christmas trees, this article's scheduled release time is 12.24, Christmas Eve. Merry Christmas to everyone!

2. Market Maker Profit Source: Spread

The spread is not just profit; it is primarily composed of three costs:

  1. Order Processing Cost: Exchange fees, hardware latency, manpower.

  2. Inventory Risk: The risk of price moving against you while holding a position, which we covered in the previous episode.

  3. Adverse Selection Cost: This is the core—when you trade, the counterparty might have information you don't. This means you might get tricked by an insider.

  4. There are also three types of spreads: Quoted Spread, Effective Spread, and Realized Spread. The Quoted Spread is the easiest to understand: the ask-bid difference. The Realized Spread measures the actual profit the market maker keeps after price adjustments: 2 x (P_trade – P_futuremid), which includes the future mid-price, somewhat like considering opportunity cost.

3. Order Flow

Order flow is the stream of orders received by the market maker. This is a deep topic. Market makers perform various operations on order flow, such as hedging, matching, adjusting quotes, etc., in order to manage their book (ledger?). This involves many professional concepts and operational techniques, and can even involve legal issues, such as agency trades not being able to be counterparties to principal trades due to conflict of interest. This article will only introduce the concepts of Order Flow Toxicity and VPIN. If any MM boss hires me, I'll update my followers on professional order flow management.

Toxic Flow refers to orders from informed traders who know the price is about to move, thus causing realized spread losses because they know P_futuremid through insider information. So, as market makers, we also need to be careful not to be tricked by toxic insiders.

Noise/Retail Flow comes from retail investors or funds passively adjusting their weights. This is the market maker's favorite "food".

To protect themselves, market makers' anti-toxicity mechanisms adjust quotes. A simple way to prevent "toxicity" is to assume all aggressive orders are toxic. Assuming a buy order, the MM immediately lowers the reservation price, shifting the entire quote down. This also answers the question left in the previous chapter: why do we always buy at the high? Because market makers adjust their quotes for risk control. But the smart you will surely ask another question: what if an insider buys a large amount? What if they rely on their information advantage and stubbornly impact the spread head-on? Yes, this might be what happened on 10/11, and it's also the reason why a large MM with billions in assets couldn't hold the line.

Core metric: VPIN (Volume-weighted Probability of Informed Trading).

VPIN ≈ The probability that the market maker is currently being "continuously hit by one-sided flow" in the market. When significant one-sided pressure appears, MM inventory accumulates one-sidedly, and the mean reversion assumption fails. At this time, the MM will pull quotes (withdraw orders), temporarily stopping providing liquidity to wait for the order flow to return to symmetry. But what if the order flow doesn't return to symmetry? Or if the order flow deviation is too extreme and directly causes a blow-up? This is the 10/11 disaster. I'm thinking about doing an episode on how exchanges made money on 10/11. We'll see.

Back on topic, after a VPIN anomaly, MMs will pull quotes (withdraw orders) or widen the spread (to earn more service fees to compensate for price losses), and also reduce size to control the speed of inventory accumulation.

This episode is the end of the first part of our market maker story. From a retail perspective, the truth behind the legendary market manipulation by "whales" has been revealed. Next, I will introduce some more "institutional" topics from the MM's perspective. Hold on tight.

Anime episodes often end with a preview for the next episode, so let's do one for this article: If we entered the world of Jujutsu Kaisen, and order flow is "cursed energy," and quote operations are "cursed techniques," then in the next part, we will look at the "Domain Expansion" in market making.

To find out what happens next, stay tuned for the next episode.

Связанные с этим вопросы

QWhat is the three main components that constitute the bid-ask spread for a market maker?

AThe bid-ask spread is primarily composed of three costs: Order Processing costs (exchange fees, hardware latency, manpower), Inventory Risk (the risk of holding a position while the price moves against you), and Adverse Selection cost (the risk of trading against an informed, or 'toxic', trader who has superior information).

QWhat is 'Order Flow Toxicity' and how do market makers typically protect themselves from it?

A'Order Flow Toxicity' refers to orders coming from informed traders who know the price is about to move, causing losses for the market maker. To protect themselves, market makers employ anti-toxicity mechanisms such as adjusting their reservation price (e.g., lowering quotes after a buy order), pulling their quotes (withdrawing liquidity), widening the spread, or reducing order size to control inventory accumulation.

QWhat does the VPIN metric measure and what action does a high VPIN value trigger for a market maker?

AVPIN (Volume-weighted Probability of Informed Trading) approximates the probability that a market maker is being hit by persistent one-sided order flow from informed traders. A high or abnormal VPIN value triggers risk management actions such as pulling quotes (withdrawing liquidity temporarily), widening the bid-ask spread, or reducing order size to manage the speed of inventory accumulation.

QAccording to the article, what is the key difference between 'Quoted Spread' and 'Realized Spread'?

AThe Quoted Spread is the simple difference between the best ask and bid prices (ask - bid). The Realized Spread is a more advanced metric that measures the profit a market maker actually keeps after price adjustments, calculated as 2 x (P_trade – P_futuremid), and it incorporates the future mid-price, resembling an opportunity cost.

QIn the context of a Limit Order Book (LOB), what is 'Price Improvement' and how is it created?

A'Price Improvement' occurs when a market participant provides a price that is better than the current best available price (the NBBO - National Best Bid and Offer). For example, if the best bid is 100,000 and the best ask is 110,000, a trader who places a bid at 101,000 provides price improvement by narrowing the spread, thus creating value for the market.

Похожее

The Largest IPO in History Ignites Heated Debate: Is SpaceX Worth $1.77 Trillion?

SpaceX's potential IPO is priced at $135 per share, aiming to raise $75 billion and valuing the company at approximately $1.77 trillion, which would make it the largest IPO in history. This valuation has sparked intense debate among investors. Bullish analysts, including major underwriters Goldman Sachs and Morgan Stanley, argue the valuation is justified by SpaceX's long-term potential. They see it not just as a rocket company but as a future leader in space infrastructure, with key growth drivers being Starlink satellite internet, low-cost rocket launches, and future AI-related ventures. They project revenues reaching hundreds of billions to trillions of dollars by 2030-2040. ARK Invest's model suggests a 2030 enterprise value could reach $2.5 trillion. Bearish analysts from independent research firms like Morningstar, PitchBook, and New Constructs contend the IPO price is excessively high, already pricing in unrealistic future growth. Using DCF and sum-of-the-parts models, they estimate fair value between $780 billion and $1.7 trillion, significantly below the IPO target. They highlight risks such as the speculative nature of AI projections, over-dependence on Elon Musk, high growth expectations, and corporate governance concerns. Trefis set a target price of just $79 per share. While both sides acknowledge SpaceX's unique position in commercial space, the core disagreement centers on whether the $135 share price offers a reasonable margin of safety or is overly optimistic. Despite the valuation controversy, reported strong demand for the IPO indicates significant market interest.

marsbit47 мин. назад

The Largest IPO in History Ignites Heated Debate: Is SpaceX Worth $1.77 Trillion?

marsbit47 мин. назад

After the Passage of the GENIUS Act and the CLARITY Act, What Is the Correct Architecture for On-Chain Yield?

The article discusses the evolution of on-chain credit, distinguishing three markets: overcollateralized crypto lending, unsecured lending (largely unsuccessful), and asset-backed credit (ABC). ABC, backed by identifiable real-world collateral with legal recourse, is identified as the fastest-growing category and the only one credibly addressing adverse selection—the core problem in credit where the riskiest borrowers self-select. Current growth in on-chain Real World Assets (RWAs), particularly tokenized private credit funds (e.g., Maple Finance, Centrifuge), is substantial but often merely "wraps" existing fund structures, inheriting their risks rather than solving adverse selection at the protocol level. The regulatory landscape is a key driver, with the US GENIUS Act (prohibiting stablecoin issuers from paying yield) and the proposed CLARITY Act (closing loopholes on indirect yield) set to redefine permissible yield-bearing products. This makes vaults (like ERC-4626) the critical architecture—they become the primary compliant vehicle for delivering yield, functioning as issuance, disclosure, distribution, and recovery mechanisms. The author's thesis is that the correct post-GENIUS/CLARITY architecture involves building ABC solutions where credit assessment, structure, and recovery are encoded directly into the smart contract vault layer, moving beyond mere tokenized fund wrappers to solve adverse selection fundamentally and ensure regulatory compliance.

Foresight News1 ч. назад

After the Passage of the GENIUS Act and the CLARITY Act, What Is the Correct Architecture for On-Chain Yield?

Foresight News1 ч. назад

TechFlow Intelligence Bureau: Anthropic's New Model Fable Sparks Controversy by Restricting Biosafety Research, US CPI Soars to 4.2%, a Three-Year High

**Summary of TechFlow Intelligence Report:** The newsletter covers several key tech and finance developments. In AI, Anthropic's new Fable model faced backlash for secretly limiting biomedical research capabilities and enforcing a 30-day data retention policy, prompting the company to promise more transparent adjustments. In a related story, Anthropic's founder revealed his departure from OpenAI was due to dishonesty from Sam Altman, not safety concerns. Meanwhile, OpenAI is considering significant price cuts to compete with Anthropic, potentially sparking a price war. In crypto/Web3, BlackRock filed a new amendment for a yield-generating Bitcoin ETF, while Bank of America's CEO warned that stablecoin yields could drain trillions from traditional banks. U.S. Senator Cynthia Lummis advocated for the U.S. to officially accumulate Bitcoin reserves. In hardware, Nvidia released the DiffusionGemma-2-6B image model optimized for efficient inference, and AMD promoted its unified memory architecture to challenge Nvidia's dominance. TSMC's CFO hinted at possible price increases due to soaring AI chip demand. A major legal ruling in Germany held Google legally responsible for inaccurate information generated by its AI Overviews feature. Google Chrome also moved to fully block ad-blocker workarounds like uBlock Origin. Macroeconomic headlines included U.S. CPI rising to 4.2% (a 3-year high) and Iran's complete closure of the Strait of Hormuz, raising oil price and inflation fears. South Korean markets saw continued volatility with massive foreign capital outflow. Other notable stories: Microsoft expanded its Copilot AI assistant "Mico" globally; a study found r/wallstreetbets users' stock picks outperformed Wall Street; a fully autonomous drone killed a human soldier for the first time, raising AI ethics concerns; and a Chinese hospital used brain-computer interface technology to help a blind person "see." The overarching theme connects debates over AI boundaries and responsibility (Anthropic's restrictions, Google's liability, lethal autonomous drones) with real-world economic and geopolitical turmoil (inflation, Strait of Hormuz closure, market instability), highlighting the tense interplay between technological advancement and global chaos.

marsbit1 ч. назад

TechFlow Intelligence Bureau: Anthropic's New Model Fable Sparks Controversy by Restricting Biosafety Research, US CPI Soars to 4.2%, a Three-Year High

marsbit1 ч. назад

Alibaba's Yet Another New Business Division: What Signal Does It Send?

Alibaba has established a new "Token Foundry" business unit, merging its Tongyi large model division and Future Life Lab. Led directly by Group CEO Wu Yongming, this marks the company's third significant AI organizational reshuffle in 2026, following the creation of the Alibaba Token Hub (ATH) and a Group Technology Committee. The move signals a strategic shift from consolidating AI resources to accelerating productization and commercialization. The "Token Foundry" name reflects Alibaba's ambition to become a foundational supplier in the AI era, focusing on model development and commercial application. Key teams, including those behind the high-performing HappyHorse video generation model, have been integrated into the new unit. Concurrently, Zhou Jingren, architect of the Qwen model series, has been appointed Group Chief Scientist to lead a new AI Future Research Institute, focusing on long-term technological breakthroughs like Agent capabilities. This restructuring creates a clear four-layer AI architecture within Alibaba: the research institute for frontier exploration, Token Foundry for core models and commercialization, MaaS for platform services, and business units like Qianwen (C端) and Wukong (B端) for end-user applications. The adjustments align with a global trend among tech giants like Google and Microsoft to centralize AI leadership under the CEO and deeply integrate research with business units. The urgency is driven by a narrowing competitive window. Alibaba has announced its AI business is now entering a commercialization phase, with AI-related revenue seeing triple-digit growth for eleven consecutive quarters. The company faces intense competition in the MaaS (Model-as-a-Service) sector from rivals like ByteDance and Tencent. The Token Foundry initiative represents Alibaba's effort to streamline execution and enhance competitiveness in this critical, fast-evolving landscape.

marsbit2 ч. назад

Alibaba's Yet Another New Business Division: What Signal Does It Send?

marsbit2 ч. назад

Торговля

Спот
Фьючерсы

Популярные статьи

Как купить FLOW

Добро пожаловать на HTX.com! Мы сделали приобретение Flow (FLOW) простым и удобным. Следуйте нашему пошаговому руководству и отправляйтесь в свое крипто-путешествие.Шаг 1: Создайте аккаунт на HTXИспользуйте свой адрес электронной почты или номер телефона, чтобы зарегистрироваться и бесплатно создать аккаунт на HTX. Пройдите удобную регистрацию и откройте для себя весь функционал.Создать аккаунтШаг 2: Перейдите в Купить криптовалюту и выберите свой способ оплатыКредитная/Дебетовая Карта: Используйте свою карту Visa или Mastercard для мгновенной покупки Flow (FLOW).Баланс: Используйте средства с баланса вашего аккаунта HTX для простой торговли.Третьи Лица: Мы добавили популярные способы оплаты, такие как Google Pay и Apple Pay, для повышения удобства.P2P: Торгуйте напрямую с другими пользователями на HTX.Внебиржевая Торговля (OTC): Мы предлагаем индивидуальные услуги и конкурентоспособные обменные курсы для трейдеров.Шаг 3: Хранение Flow (FLOW)После приобретения вами Flow (FLOW) храните их в своем аккаунте на HTX. В качестве альтернативы вы можете отправить их куда-либо с помощью перевода в блокчейне или использовать для торговли с другими криптовалютами.Шаг 4: Торговля Flow (FLOW)С легкостью торгуйте Flow (FLOW) на спотовом рынке HTX. Просто зайдите в свой аккаунт, выберите торговую пару, совершайте сделки и следите за ними в режиме реального времени. Мы предлагаем удобный интерфейс как для начинающих, так и для опытных трейдеров.

521 просмотров всегоОпубликовано 2024.03.29Обновлено 2026.06.02

Как купить FLOW

Обсуждения

Добро пожаловать в Сообщество HTX. Здесь вы сможете быть в курсе последних новостей о развитии платформы и получить доступ к профессиональной аналитической информации о рынке. Мнения пользователей о цене на FLOW (FLOW) представлены ниже.

活动图片